Commit Graph

1411 Commits (913828413737fb4c44a7ec25d1023f9be07748c0)

Author SHA1 Message Date
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 dcfdf0047b chore: bump packages version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 21:07:18 +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 ec4c87be32 chore: bump @halo-dev/richtext-editor version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-15 15:11:05 +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 6aeb9563c1 chore: bump histoire version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-14 11:59:35 +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 76d3eb6c15 chore: update husky pre-commit file
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-12 16:24:47 +08:00
Ryan Wang 4beaaca15c chore: remove netlify.toml
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-12 16:22:34 +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 a1a319ddc5 chore: bump vite version to 3.0
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-07 23:54:54 +08: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 aff568acb8 chore: remove github issue templates
issue is no longer tracked in this repository, please move to https://github.com/halo-dev/halo/issues
2022-08-02 21:17:33 +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 9c37f16b63 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-30 11:41:40 +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 7975890b44 refactor: basic components styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 16:48:37 +08:00
Ryan Wang ed0153dcd0 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 16:26:26 +08:00
Ryan Wang 8d805f64c2 chore: bump @halo-dev/api-client version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 13:55:27 +08:00
Ryan Wang e344e0ac0e feat: add base url config support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 11:23:46 +08:00