Commit Graph

1140 Commits (b1cc54335dae339739c217bf4da1a44de8e51655)

Author SHA1 Message Date
Ryan Wang dc823ac20b feat: formatting Date
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-23 14:33:53 +08:00
Ryan Wang 3ee45a117e
feat: post basic management capability (#599)
<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

/kind feature
/milestone 2.0

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

#### What this PR does / why we need it:

文章管理相关模块。适配 https://github.com/halo-dev/halo/pull/2326

#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes https://github.com/halo-dev/halo/issues/2322

#### Screenshots:

// pending

<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.

eg.

Before:

![screenshot-before](https://user-images.githubusercontent.com/screenshot.png)

After:

![screenshot-after](https://user-images.githubusercontent.com/screenshot.png)
-->

#### Special notes for your reviewer:

// pending

#### Does this PR introduce a user-facing change?

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
None
```
2022-08-23 04:08:10 +00:00
Ryan Wang 30197b64fb typo: fix ThemeListModal component empty actions typo
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-23 11:00:05 +08:00
Ryan Wang 441f45e10c feat: add empty state support for core modules
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-22 16:49:07 +08:00
Ryan Wang dc01a11738 perf: refine attachment management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-19 17:32:17 +08:00
Ryan Wang d65c6a815a feat: add use-user composable
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-18 15:35:32 +08:00
Ryan Wang 021e9a8a93 refactor: refine emits type declaration
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 20:31:51 +08:00
Ryan Wang cf85449b25 refactor: define props with pure types via a generic type argument
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 17:56:13 +08:00
Ryan Wang 91ae05fc72 feat: refine tag management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 16:48:13 +08:00
Ryan Wang 4d251aa7df feat: refine category management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 16:11:48 +08:00
Ryan Wang 25c6ec9119 perf: reset form when close editing modal
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 14:43:06 +08:00
Ryan Wang e4eb78c8e6 chore: bump @halo-dev/richtext-editor version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-13 11:37:07 +08:00
Ryan Wang 45d14da885
feat: menus management (#595)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-12 16:20:21 +08:00
Ryan Wang 1457dd8b9c Merge branch 'next' of github.com:halo-dev/halo-admin into next 2022-08-12 16:16:58 +08:00
Ryan Wang cdf93b002d feat: refine attachment management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-12 16:15:08 +08:00
Ryan Wang 71f347f6a6
feat: add theme uninstall support (#596)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-12 10:51:22 +08:00
Ryan Wang f201a93ab9 chore: add @halo-dev/richtext-editor
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-11 18:57:34 +08:00
Ryan Wang 7c3692c5ed feat: support for dynamically adding child routes to a route
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-09 12:05:40 +08:00
Ryan Wang 325a64546d
feat: add theme install support (#594)
Signed-off-by: Ryan Wang <i@ryanc.cc>

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

/kind feature
/milestone 2.0

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

#### What this PR does / why we need it:

新增主题上传支持,适配 https://github.com/halo-dev/halo/pull/2302

/hold until https://github.com/halo-dev/halo/pull/2302 merge

#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes halo-dev/halo#2291

#### Screenshots:

<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/182769346-4445639c-dd82-496c-9a1b-e241098fb272.png">


<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.

eg.

Before:

![screenshot-before](https://user-images.githubusercontent.com/screenshot.png)

After:

![screenshot-after](https://user-images.githubusercontent.com/screenshot.png)
-->

#### Special notes for your reviewer:

/cc @halo-dev/sig-halo-admin 

#### Does this PR introduce a user-facing change?

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
None
```
2022-08-08 10:30:17 +00:00
Ryan Wang da265e0187 fix: tailwind class name
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-05 17:34:27 +08:00
Ryan Wang fa6b42e1da refactor: plugin settings page form
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-04 12:04:42 +08:00
Ryan Wang 9f3ccb6af1 refactor: theme settings page form
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-04 11:15:42 +08:00
Ryan Wang 7bde20a515
feat: add theme settings support (#593)
Signed-off-by: Ryan Wang <i@ryanc.cc>

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

/kind feature
/milestone 2.0

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

#### What this PR does / why we need it:

为主题添加设置表单支持,适配 https://github.com/halo-dev/halo/pull/2299

/hold until https://github.com/halo-dev/halo/pull/2299 merge

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2298

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
#### Screenshots:

|<img width="1564" alt="image" src="https://user-images.githubusercontent.com/21301288/182583412-f14a890e-25ee-418c-b921-0924f94c0d1b.png">|<img width="1564" alt="image" src="https://user-images.githubusercontent.com/21301288/182583525-26fe165c-2dd0-4068-9d52-659dc626367a.png">|
| ---- | ---- |

<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.

eg.

Before:

![screenshot-before](https://user-images.githubusercontent.com/screenshot.png)

After:

![screenshot-after](https://user-images.githubusercontent.com/screenshot.png)
-->

#### Special notes for your reviewer:

测试方式:

1. Halo 后端需要 checkout 到 https://github.com/halo-dev/halo/pull/2299 分支。
2. 将被测主题放置在 `~/halo-next/themes`,可以使用 https://github.com/ruibaby/theme-astro-starter
3. 使用主题内的 `theme.yaml` 和 `settings.yaml` 创建 `Theme` 和 `Setting` 的资源。
4. admin 需要 checkout 到当前 PR 的分支,启动开发服务之后在主题列表即可启用该主题。
5. 测试保存和更新主题配置。

#### Does this PR introduce a user-facing change?

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
None
```
2022-08-04 01:44:13 +00:00
Ryan Wang 86e86d138b
feat: add support for theme management (#592)
Signed-off-by: Ryan Wang <i@ryanc.cc>

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

/kind feature
/milestone 2.0

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

#### What this PR does / why we need it:

添加基础的主题管理支持,适配 https://github.com/halo-dev/halo/pull/2280

/hold until https://github.com/halo-dev/halo/pull/2280 merge

#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
None

#### Screenshots:

|<img width="1564" alt="image" src="https://user-images.githubusercontent.com/21301288/182314023-546d5fe1-03bb-4c7e-af36-6730ab051931.png">|<img width="1564" alt="image" src="https://user-images.githubusercontent.com/21301288/182314339-6c13b60a-cddc-449d-a06f-faaa53f76335.png">|
| ---- | ---- |
|<img width="1564" alt="image" src="https://user-images.githubusercontent.com/21301288/182314487-4c551208-938c-4582-bce6-7f589f278e8f.png">|      |



<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.

eg.

Before:

![screenshot-before](https://user-images.githubusercontent.com/screenshot.png)

After:

![screenshot-after](https://user-images.githubusercontent.com/screenshot.png)
-->

#### Special notes for your reviewer:

None

#### Does this PR introduce a user-facing change?

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
None
```
2022-08-03 03:30:13 +00:00
Ryan Wang edfa8f6a90 feat: add return type to the usePluginLifeCycle function
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-02 22:23:01 +08:00
Ryan Wang 425ab3a480 refactor: vitest config
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-01 17:41:39 +08:00
Ryan Wang 0669b48cb5
feat: api supports field filtering (#591)
Signed-off-by: Ryan Wang <i@ryanc.cc>

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

/kind feature
/milestone 2.0

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

#### What this PR does / why we need it:

适配 https://github.com/halo-dev/halo/pull/2279

接口支持通过参数筛选数据。

#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
None

#### Screenshots:

<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.

eg.

Before:

![screenshot-before](https://user-images.githubusercontent.com/screenshot.png)

After:

![screenshot-after](https://user-images.githubusercontent.com/screenshot.png)
-->

None

#### Special notes for your reviewer:

/hold until https://github.com/halo-dev/halo/pull/2279 merge

#### Does this PR introduce a user-facing change?

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
None
```
2022-07-29 09:58:14 +00:00
Ryan Wang de119d35ff refactor: remove plugin loading status panel
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-29 11:41:01 +08:00
Ryan Wang c9a21957cd refactor: isStarted variable on the plugin detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-27 17:45:26 +08:00
Ryan Wang 7bdbf2500f refactor: plugin list item component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-27 16:36:04 +08:00
Ryan Wang bb25524c0a feat: add shortcut support for role editing form
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-27 15:05:54 +08:00
Ryan Wang 7094f3ebaa feat: support set username when creating new user
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-27 10:52:16 +08:00
Ryan Wang f750b24e6c feat: add shortcut support for user editing form
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-27 10:44:50 +08:00
Ryan Wang 0997cb5b41 refactor: logic for plugin lifecircle management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 21:15:24 +08:00
Ryan Wang fad809fec2 refactor: logic for role creation form
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 20:21:11 +08:00
Ryan Wang 05375a1a7b refactor: logic for role template selection
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 18:04:51 +08:00
Ryan Wang e2712265d7 perf(components): modal automatically focuses after opening
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 15:41:08 +08:00
Ryan Wang 7405b57c6d feat: add plugin uninstall support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 11:45:00 +08:00
Ryan Wang f99deaec83 feat: add plugin loading status panel
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 21:14:56 +08:00
Ryan Wang 2a1be5603d feat: handling front-end plugin loading failure exceptions
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 20:02:52 +08:00
Ryan Wang 20d2777e26 feat: display plugin started error reason
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 19:53:27 +08:00
Ryan Wang 89e8c6e158 refactor: disabled dashboard widgets responsive option
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 17:41:15 +08:00
Ryan Wang 3515108cab chore: update the base url of the plugin resources
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 10:41:24 +08:00
Ryan Wang 07ac270890 perf: retrieve the plugin before updating its status
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-24 22:15:30 +08:00
Ryan Wang d583e55390
feat: add support for uploading plugins (#590)
Signed-off-by: Ryan Wang <i@ryanc.cc>

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. 如果这是你的第一次,请阅读我们的贡献指南:<https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>。
1. If this is your first time, please read our contributor guidelines: <https://github.com/halo-dev/halo/blob/master/CONTRIBUTING.md>.
2. 请根据你解决问题的类型为 Pull Request 添加合适的标签。
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request.
3. 请确保你已经添加并运行了适当的测试。
3. Ensure you have added or ran the appropriate tests for your PR.
-->

#### What type of PR is this?

<!--
添加其中一个类别:
Add one of the following kinds:

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind optimization

适当添加其中一个或多个类别(可选):
Optionally add one or more of the following kinds if applicable:

/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

/kind feature
/milestone 2.0

#### What this PR does / why we need it:

添加上传插件的支持。

see https://github.com/halo-dev/halo/pull/2271

#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
None

#### Screenshots:

<img width="1156" alt="image" src="https://user-images.githubusercontent.com/21301288/180416186-49c56971-c0b9-4761-ae9e-8531e433a9c0.png">
<img width="1156" alt="image" src="https://user-images.githubusercontent.com/21301288/180416203-e4b35266-3645-497b-9d08-d6407b2dd7f7.png">


<!--
如果此 PR 有 UI 的改动,最好截图说明这个 PR 的改动。
If there are UI changes to this PR, it is best to take a screenshot to illustrate the changes to this PR.

eg.

Before:

![screenshot-before](https://user-images.githubusercontent.com/screenshot.png)

After:

![screenshot-after](https://user-images.githubusercontent.com/screenshot.png)
-->

#### Special notes for your reviewer:

可以使用以下插件仓库中 Actions 构建的 JAR 测试:

- https://github.com/halo-sigs/plugin-links/actions
- https://github.com/halo-sigs/plugin-meilisearch/actions
- https://github.com/halo-sigs/plugin-template/actions

/cc @halo-dev/sig-halo-admin 
/cc @halo-dev/sig-halo 

#### Does this PR introduce a user-facing change?

<!--
如果当前 Pull Request 的修改不会造成用户侧的任何变更,在 `release-note` 代码块儿中填写 `NONE`。
否则请填写用户侧能够理解的 Release Note。如果当前 Pull Request 包含破坏性更新(Break Change),
Release Note 需要以 `action required` 开头。
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->

```release-note
None
```
2022-07-23 12:42:13 +00:00
Ryan Wang 52bb68e565 refactor: UserEditingModal component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 21:37:27 +08:00
Ryan Wang 0c73b03faf feat: user editing support using yaml
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 17:04:30 +08:00
Ryan Wang 4e385222a7 feat: show the number of permissions under the role
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 12:49:06 +08:00
Ryan Wang 694d053c24 perf: improve user detail page style
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 15:03:30 +08:00
Ryan Wang 2925775c9a refactor: plugin detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 14:16:51 +08:00
Ryan Wang 99c6caa788 feat: create labels and annotations enumeration types
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 22:47:10 +08:00
Ryan Wang e64c7e6baa chore: update themes data mock
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 16:54:20 +08:00
Ryan Wang 1401f9ebe1 feat: add plugin status tooltip
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 15:51:21 +08:00
Ryan Wang 79e8e3005d feat: plugin details support display of included roles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 15:24:35 +08:00
Ryan Wang 65fdfd6749 fix: role page route on the user details page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 12:33:38 +08:00
Ryan Wang 44f09fd2c1 feat: add set api url support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 10:56:40 +08:00
Ryan Wang 263f510111 fix: package import name of lodash.isequal
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-19 15:41:39 +08:00
Ryan Wang cd317a9bed fix: the issue of redirection after login
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-19 14:56:30 +08:00
Ryan Wang d154fc412e feat: ui permission binding
see https://github.com/halo-dev/halo/pull/2260
2022-07-19 14:07:28 +08:00
Ryan Wang 4bc71814d9 feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-19 11:41:05 +08:00
Ryan Wang d3d934093d feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-19 11:18:47 +08:00
Ryan Wang 0b9dba88b4 perf: add type support to usePluginStore
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-18 16:12:54 +08:00
Ryan Wang 1567b52e15 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-18 12:35:34 +08:00
Ryan Wang 3bb9155230 chore: cleanup type definition
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-18 12:23:14 +08:00
Ryan Wang 56b9dcaa61 feat: add change user password support 2022-07-18 11:52:13 +08:00
Ryan Wang 31dbe5a0eb fix: permission logic of super administrator
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-16 12:04:58 +08:00
Ryan Wang e8fd09205d feat: support permission judgment of interface elements and routes 2022-07-15 16:26:27 +08:00
Ryan Wang 74274ef78b refactor: change role annotations name
change `plugin.halo.run/dependencies` to `rbac.authorization.halo.run/dependencies`
2022-07-14 18:39:19 +08:00
Ryan Wang 9569b43dab refactor: response structure of Extension list API
see halo-dev/halo#2244
2022-07-14 16:48:54 +08:00
Ryan Wang 3027293bd4 refactor: admin ui theme system
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-14 11:38:13 +08:00
Ryan Wang 284edbbee1 refactor: removal of plugin batch operation
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 17:39:31 +08:00
Ryan Wang 700e12cafd refactor: api client
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 15:36:21 +08:00
Ryan Wang ab0a7deda3 typo: configmapName -> configMapName
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 10:13:52 +08:00
Ryan Wang 9546abf1e2 feat: add granting roles for user support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-12 21:10:17 +08:00
Ryan Wang dc1da8fc91 feat: add settings support to the plugin
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-12 20:32:32 +08:00
Ryan Wang a4681ea8b1 fix: role creation
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-12 15:06:46 +08:00
Ryan Wang ddbca25307 refactor: pagination component usage
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-12 11:11:05 +08:00
Ryan Wang 86be841e28 feat: add pagination component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 18:16:45 +08:00
Ryan Wang 352f7a3acc perf: open confirm dialog when changing plugin status
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 16:07:21 +08:00
Ryan Wang ce17c6eff9 perf: refine tailwindcss config
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 12:25:24 +08:00
Ryan Wang b7d200f12b feat: add url base config
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 10:21:38 +08:00
Ryan Wang 7655134732 refactor: update get current login user api
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 14:40:14 +08:00
Ryan Wang 8f95fce0e4 feat: support bulk modification of plugin status
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 11:46:51 +08:00
Ryan Wang 086343ce74 feat: add formkit auto animate plugin
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-07 20:34:55 +08:00
Ryan Wang 70f7b522f1 refactor: plugin enable/disable api
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-07 17:05:46 +08:00
Ryan Wang d15c1636bd feat: config formkit styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-07 16:50:50 +08:00
Ryan Wang d4f40481ab refactor: use formkit
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-06 14:31:42 +08:00
Ryan Wang abe0f3787d perf: search input styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-05 14:54:28 +08:00
Ryan Wang f18951abd2 feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-04 19:28:53 +08:00
Ryan Wang ace341efef feat: get the currently logged-in user information
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-04 12:33:00 +08:00
Ryan Wang 2cf3b06a88 feat: add user login support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-02 14:01:40 +08:00
Ryan Wang 32955a4050 feat: add cookie header when requesting the api
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-30 16:20:08 +08:00
Ryan Wang ae4da4784c chore: remove user-mock.ts file
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-29 15:39:52 +08:00
Ryan Wang cd338f0b1f feat: add dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-29 14:53:57 +08:00
Ryan Wang f825047eb5 feat: support roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-28 13:54:45 +08:00
Ryan Wang e54faab91e feat: support update a user
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-27 17:03:08 +08:00
Ryan Wang 38266d721a perf: refine user detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-27 16:30:22 +08:00
Ryan Wang ce03f4c923 feat: user creation support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-27 16:16:49 +08:00
Ryan Wang efad1d8268 feat: admin shared package support api client
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-27 15:31:16 +08:00
Ryan Wang 095c74c40f refactor: move route layouts to @halo-dev/admin-shared
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-24 23:05:49 +08:00
Ryan Wang 36e3cd92c3 feat: support load plugin's stylesheet
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 21:22:24 +08:00
Ryan Wang c97a3c8836 feat: add pages extension points
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 15:31:32 +08:00
Ryan Wang 4ef9f0cf5d feat: users management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 14:28:29 +08:00
Ryan Wang 72e40542f8
feat: plugin management (#583)
* chore: remove unnecessary files

Signed-off-by: Ryan Wang <i@ryanc.cc>

* feat: plugin management

Signed-off-by: Ryan Wang <i@ryanc.cc>

* feat: refine plugin detail page

Signed-off-by: Ryan Wang <i@ryanc.cc>

* feat: refine plugin detail page

Signed-off-by: Ryan Wang <i@ryanc.cc>

* fix: theme plugin router link

Signed-off-by: Ryan Wang <i@ryanc.cc>

* Update src/modules/system/plugins/PluginList.vue

Co-authored-by: John Niang <johnniang@fastmail.com>

* feat: plugin detail page support start/stop plugin

Signed-off-by: Ryan Wang <i@ryanc.cc>

Co-authored-by: John Niang <johnniang@fastmail.com>
2022-06-23 03:28:23 +00:00
Ryan Wang 690802c52a chore: global loading of base dependencies 2022-06-20 15:08:17 +08:00
Ryan Wang d8c14531e0 feat: bundle core modules 2022-06-20 12:25:36 +08:00
Ryan Wang 2538959339 feat: add animation for user profile route 2022-06-19 23:39:45 +08:00
Ryan Wang 515ec78842 feat: use definePlugin function to define a plugin object
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-17 15:00:14 +08:00
Ryan Wang 8bc6ff798e
refactor: load admin core as modules (#582)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-17 06:12:15 +00:00
Ryan Wang 7df63685cf chore: rename views to modules
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 22:05:03 +08:00
Ryan Wang b9f5d4fb6b perf: optimize the code of main.ts
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 17:01:18 +08:00
Ryan Wang d4b64f203d
chore: use pnpm's workspace feature to manage base components (#579) 2022-06-14 15:56:55 +08:00
Ryan Wang f6bfe4aaf6 perf: improve forms ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-31 16:19:04 +08:00
Ryan Wang 72aad52064 perf: improve plugin detail page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-31 11:58:02 +08:00
Ryan Wang 839024435d feat: add user personal access token settings page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-31 11:34:48 +08:00
Ryan Wang 5c9fd988f5 feat: add role management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 22:38:57 +08:00
Ryan Wang 3c19615656 perf: improve user profile page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 21:06:02 +08:00
Ryan Wang 9c9a2ea5c4 perf: improve settings page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 19:54:43 +08:00
Ryan Wang ad10465da2 perf: improve plugin detail page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 17:06:18 +08:00
Ryan Wang 76ed305ae5 refactor: theme page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 16:36:34 +08:00
Ryan Wang 558b8a3778 chore: add tailwindcss prettier plugin and reformat code
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 23:55:06 +08:00
Ryan Wang bcb44b892d perf: improve sheets management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 21:22:37 +08:00
Ryan Wang 5b24b06859 feat: add visual theme editing page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 15:13:01 +08:00
Ryan Wang 87642a5698 feat: add menu management page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-28 16:05:49 +08:00
Ryan Wang 486b4615e5 perf: improve dashboard page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-27 17:28:25 +08:00
Ryan Wang 43945378d5 feat: add filters dropdown ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-26 17:37:08 +08:00
Ryan Wang 3755e8ae56 feat: add comments list page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-26 14:21:31 +08:00
Ryan Wang 303e8bdadd perf: improve attachments list page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-25 15:47:03 +08:00
Ryan Wang 79256a6c55 perf: improve attachments list page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-24 18:05:05 +08:00
Ryan Wang 4cc740ab84 feat: add algolia search engine plugin mock
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-24 15:44:29 +08:00
Ryan Wang ced9ede9af feat: add user list page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-24 15:10:16 +08:00
Ryan Wang 7d4f0ff11f perf: improve plugin detail page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-24 11:14:28 +08:00
Ryan Wang 90d2ddddca feat: add plugins list and detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-23 18:09:09 +08:00
Ryan Wang 4e37598520 feat: add post editor page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-23 15:16:23 +08:00
Ryan Wang 4a51a5cfcb perf: improve posts page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-19 16:41:52 +08:00
Ryan Wang 922f06fd0e perf: improve attachments page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-17 21:51:19 +08:00
Ryan Wang 906ecd9b57 feat: add post settings modal
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-17 16:45:30 +08:00
Ryan Wang 3d81d94197 feat(components/base/button): support route prop to push route 2022-05-16 16:23:09 +08:00
Ryan Wang 3208cc8bdc refactor: mobile menus drawer
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-16 14:30:21 +08:00
Ryan Wang 326a2384be fix(components/base/modal): cannot click on page elements after mounting modal components
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-16 13:26:42 +08:00
Ryan Wang 49705b6a80 refactor: modal component transition
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-16 12:39:35 +08:00
Ryan Wang 22a558bf67 feat: add SystemSettingsLayout layout component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-13 15:36:02 +08:00
Ryan Wang f588385c7c refactor: routes mapping and page views structure
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-12 15:28:21 +08:00
Ryan Wang 028842842d refactor: rename FilledLayout to BasicLayout
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-11 20:41:42 +08:00
Ryan Wang 400182c714 feat: add themes page component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-11 17:47:42 +08:00
Ryan Wang 1ba9502dce feat: add attachment list component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-11 17:20:10 +08:00
Ryan Wang 71c87968d9 refactor: post list component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-11 15:47:07 +08:00
Ryan Wang 43a3c6dadf refactor: post list component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-11 15:46:23 +08:00
Ryan Wang 66854e6bf2 feat: add posts mock data
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-10 18:06:47 +08:00
Ryan Wang ef8abcc158 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-08 23:31:30 +08:00