Ryan Wang
63bbd4fa81
Refactor plugin installation modal to support extend ( #4461 )
...
#### What type of PR is this?
/area console
/kind feature
/milestone 2.9.x
#### What this PR does / why we need it:
重构插件安装的界面,以支持扩展。
文档:https://github.com/halo-dev/halo/pull/4461/files?short_path=fe4adc6#diff-fe4adc66005d24150478d0919c5f330ee695c2b5657ee7baed56929830c7eb90
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/4432
#### Special notes for your reviewer:
需要测试插件的本地上传和远程下载的安装的更新。
#### Does this PR introduce a user-facing change?
```release-note
重构 Console 端插件安装界面,支持通过插件扩展选项卡。
```
2023-08-25 15:28:12 +00:00
Ryan Wang
70eb039468
feat: add extension point for extend data list operation items ( #4452 )
...
#### What type of PR is this?
/area console
/kind feature
/milestone 2.9.x
#### What this PR does / why we need it:
添加扩展数据列表中操作按钮列表的基础能力,并为文章和插件管理列表的操作按钮列表添加扩展点以测试此扩展能力。
todo:
- [x] 场景测试
- [x] 文档
#### Which issue(s) this PR fixes:
Ref https://github.com/halo-dev/halo/issues/4177
#### Special notes for your reviewer:
可以使用以下插件进行测试:
- 源码:[plugin-export-md.zip](https://github.com/halo-dev/halo/files/12436956/plugin-export-md.zip )
- 可安装的 JAR 包:[plugin-export-md-1.0.0-SNAPSHOT.jar.zip](https://github.com/halo-dev/halo/files/12436950/plugin-export-md-1.0.0-SNAPSHOT.jar.zip )
安装之后可以在文章列表的操作按钮列表中新增一个 `导出为 Markdown 文档` 的按钮,点击之后会导出一个 Markdown 文档。
<img width="374" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/eb0b7c61-f5c8-4af3-bf13-579681d36097 ">
#### Does this PR introduce a user-facing change?
```release-note
Console 端的文章和插件列表的操作按钮列表支持扩展。
```
2023-08-25 09:02:12 +00:00
guqing
5c115563e0
feat: add API to obtain the bundled js file for all enabled plugins ( #3444 )
...
#### What type of PR is this?
/kind feature
/milestone 2.3.x
/area core
#### What this PR does / why we need it:
提供 `/apis/api.console.halo.run/v1alpha1/plugins/bundle.js` 来获取已启用插件的捆绑后的 main.js 和 style.css 文件
#### Which issue(s) this PR fixes:
Fixes #3442
#### Does this PR introduce a user-facing change?
```release-note
优化已启用插件 jsbundle 文件的加载方式
```
2023-08-25 07:28:11 +00:00
Ryan Wang
58679b2811
chore: bump vue related packages version ( #4427 )
...
#### What type of PR is this?
/area console
/kind improvement
/milestone 2.9.x
#### What this PR does / why we need it:
升级 Vue 至 3.3 以及相关的依赖。
see https://blog.vuejs.org/posts/vue-3-3
#### Which issue(s) this PR fixes:
Fixes #4425
#### Does this PR introduce a user-facing change?
```release-note
升级 Vue 至 3.3 以及相关的依赖。
```
2023-08-16 02:16:25 +00:00
John Niang
7efd29e722
Prepare for developing Halo 2.9.0 ( #4344 )
...
#### What type of PR is this?
/kind cleanup
/area core
#### What this PR does / why we need it:
Bump up Halo to `2.9.0-SNAPSHOT` for developing Halo 2.9.0.
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-08-01 07:33:45 +00:00
Ryan Wang
ebe77ad697
chore: bump console version to prepare release 2.8 ( #4341 )
...
#### What type of PR is this?
/kind cleanup
#### What this PR does / why we need it:
修改 Console 以及其下 packages 的版本号,发布 Halo 2.8
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-08-01 02:48:16 +00:00
John Niang
5a18adcdd0
Prepare for releasing 2.8.0-rc.2 ( #4323 )
...
#### What type of PR is this?
/kind cleanup
#### What this PR does / why we need it:
Bump version of console to 2.8.0-rc.2.
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-07-28 07:17:18 +00:00
Ryan Wang
cfe77c5ded
chore: release 2.8.0-rc.1 ( #4290 )
...
#### What this PR does / why we need it:
修改版本号,发布 2.8.0-rc.1
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-07-24 12:48:15 +00:00
John Niang
bd912c36b9
Support backup and restore ( #4206 )
...
#### What type of PR is this?
/kind feature
/area core
#### What this PR does / why we need it:
See 9921deb076/docs/backup-and-restore.md
for more.
<img width="1906" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/41531186-d305-44fd-8bdc-30df9b71af43 ">
<img width="1909" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/3d7af1b9-37ad-4a40-9b81-f15ed0f1f6e8 ">
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/4059
Fixes https://github.com/halo-dev/halo/issues/3274
#### Special notes for your reviewer:
#### Does this PR introduce a user-facing change?
```release-note
支持备份和恢复功能。
```
2023-07-24 08:26:16 +00:00
Ryan Wang
c0aae3a63c
feat: make plugin tabs extensible ( #4041 )
...
#### What type of PR is this?
/area console
/kind feature
/milestone 2.7.x
#### What this PR does / why we need it:
插件自身的详情页面中的 Tabs 选项卡支持拓展,允许开发者自行为插件编写设置界面、一些不常用的操作页面等。
示例:
<img width="1358" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/1e414e4e-688d-47de-907f-5f2a0afa9350 ">
扩展方式:
参考文档:https://github.com/ruibaby/halo/blob/feat/plugin-tabs-extend/console/docs/extension-points/plugin-self-tabs.md
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/3987
#### Special notes for your reviewer:
需要测试:
1. 测试任意插件的详情页面是否能够正常使用。
2. 测试任意插件的设置表单能否正常使用。
3. 可以尝试根据文档为某个插件添加自定义的选项卡,测试是否能够正常工作。
#### Does this PR introduce a user-facing change?
```release-note
Console 端插件详情选项卡支持通过插件扩展。
```
2023-07-07 04:38:11 +00:00
Ryan Wang
dcafee7e1f
chore: release 2.7.0 ( #4158 )
...
#### What this PR does / why we need it:
修改版本号,准备发布 2.7.0。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-06-30 03:16:12 +00:00
Ryan Wang
c39691d6fe
feat: make default editor extensible ( #4090 )
...
#### What type of PR is this?
/area console
/kind feature
/milestone 2.7.x
#### What this PR does / why we need it:
默认编辑器支持扩展,包括输入类型、工具栏、Slash Command 等。
Ref https://github.com/halo-sigs/richtext-editor/pull/16
## 定义方式
```ts
import ExtensionFoo from "./tiptap/extension-foo.ts"
export default definePlugin({
extensionPoints: {
"default:editor:extension:create": () => {
return [ExtensionFoo];
},
},
});
```
其中,`ExtensionFoo` 是一个 Tiptap Extension,可以参考 [Tiptap 文档](https://tiptap.dev/ ) 和 [https://github.com/halo-sigs/richtext-editor/blob/main/docs/extension.md ](https://github.com/halo-sigs/richtext-editor/blob/main/docs/extension.md )。
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/4028
#### Does this PR introduce a user-facing change?
```release-note
Console 端的默认编辑器支持被扩展
```
2023-06-26 13:33:59 +00:00
Ryan Wang
8c05a6d30e
feat: make comment subject ref provider extensible ( #4039 )
...
#### What type of PR is this?
/area console
/kind feature
#### What this PR does / why we need it:
让评论来源的显示支持通过插件扩展,目前如 [瞬间](https://github.com/halo-sigs/plugin-moments ) 这类的插件如果使用了评论模块,那么在评论管理是无法显示具体来源的:
<img width="627" alt="image" src="https://github.com/halo-dev/halo/assets/21301288/0df354dc-ed42-4217-abbd-5bce67329e0d ">
此 PR 为 Console 端提供了拓展方法,使用方式如下:
```ts
import { definePlugin } from "@halo-dev/console-shared";
import type { CommentSubjectRefResult } from "@halo-dev/console-shared";
import type { Extension } from "@halo-dev/api-client";
import type { Moment } from "./types";
export default definePlugin({
components: {},
extensionPoints: {
"comment:subject-ref:create": () => {
return [
{
kind: "Moment",
group: "moment.halo.run",
resolve: (subject: Extension): CommentSubjectRefResult => {
const moment = subject as Moment;
return {
label: "瞬间",
title: determineMomentTitle(moment),
externalUrl: `/moments/${moment.metadata.name}`,
route: {
name: "Moments",
},
};
},
},
];
},
},
});
```
#### Which issue(s) this PR fixes:
Fixes #3554
#### Special notes for your reviewer:
#### Does this PR introduce a user-facing change?
```release-note
Console 端的评论来源显示支持通过插件扩展
```
2023-06-26 04:20:18 +00:00
Ryan Wang
96225e4040
chore: improve the console project infrastructure ( #4105 )
...
#### What type of PR is this?
/area console
/kind improvement
/milestone 2.7.x
#### What this PR does / why we need it:
维护 Console 端的开发基础设施。
- 升级 TypeScript 以及 Vue 对于 TS 支持的相关包。
- 优化 packages 下所有包的配置,解决构建时生成 d.ts 文件的异常。
- 解决 TS 异常。
#### Special notes for your reviewer:
尝试执行:
1. pnpm build:packages
2. pnpm typecheck
观察是否正常即可。
#### Does this PR introduce a user-facing change?
```release-note
维护 Console 端的开发基础设施。
```
2023-06-26 03:54:17 +00:00
Ryan Wang
65b27eed6c
chore: release 2.6.0 ( #4021 )
...
#### What type of PR is this?
/area core
#### What this PR does / why we need it:
修改版本号,准备发布 2.6.0。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-06-01 03:08:12 +00:00
Ryan Wang
67e13546ae
chore: bump up version to 2.6.0-rc.1 ( #3998 )
...
#### What this PR does / why we need it:
修改版本号,准备发布 2.6.0-rc.1。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-05-26 15:06:13 +00:00
Ryan Wang
ec5599068c
chore: bump up version to 2.5.1 ( #3874 )
...
#### What this PR does / why we need it:
修改版本号,准备发布 2.5.1。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-04-28 07:56:19 +00:00
Ryan Wang
0794644dbd
chore: bump up version to 2.5.0 ( #3870 )
...
#### What this PR does / why we need it:
修改版本号,准备发布 2.5.0。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-04-28 02:40:17 +00:00
Ryan Wang
795d4f9261
chore: bump up version to 2.5.0-rc.2 ( #3864 )
...
#### What this PR does / why we need it:
修改版本号,准备发布 2.5.0-rc.2。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-04-26 13:56:14 +00:00
Ryan Wang
18c0ced64e
chore: bump up version to 2.5.0-rc.1 ( #3845 )
...
#### What this PR does / why we need it:
修改版本号,准备发布 2.5.0-rc.1。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-04-24 12:28:16 +00:00
Ryan Wang
74c543ec37
chore: bump console version to 2.4.0 ( #3650 )
...
#### What type of PR is this?
/kind improvement
/area console
/milestone 2.4.0
#### What this PR does / why we need it:
修改 Console 的版本号为 2.4.0。
修改 `@halo-dev/components` 的版本为 1.3.0
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-03-31 03:10:19 +00:00
Ryan Wang
8d9be88b94
chore: bump the patch version of all console dependencies ( #3617 )
...
#### What type of PR is this?
/kind improvement
/area console
/milestone 2.4.x
#### What this PR does / why we need it:
升级 Console 依赖的所有 patch 版本,由于升级了 prettier 的版本,可能发生了规则改变,所以同时包含重新格式化后的文件。
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-03-29 13:44:14 +00:00
Ryan Wang
ab4b7c1f0d
chore: bump console and packages version to 2.4.0-rc.1 ( #3596 )
...
#### What type of PR is this?
/area console
/milestone 2.4.0
#### What this PR does / why we need it:
修改 Console 以及其下 packages 的版本为 2.4.0-rc.1
#### Does this PR introduce a user-facing change?
```release-note
None
```
2023-03-27 09:28:18 +00:00
johnniang
64919f9a1b
Move root to console
...
Signed-off-by: johnniang <johnniang@fastmail.com>
2023-03-02 15:49:22 +08:00