Commit Graph

134 Commits (058c5e312ee3e346707334a686450c7940425c1e)

Author SHA1 Message Date
Ryan Wang 6c71424421 perf: improve plugin detail and settings page 2022-09-10 17:23:51 +08:00
Ryan Wang b24040c688 chore: bump dependencies 2022-09-09 19:04:04 +08:00
Ryan Wang 21ec46d47f perf: improve tabbar component styles 2022-09-09 18:24:14 +08:00
Ryan Wang 92020618d3 perf: update the api client of singlePage 2022-09-09 11:10:20 +08:00
Ryan Wang 6bfd0d27c4
feat: menu items support setting singlePage ref relations (#608)
#### What type of PR is this?

/kind feature
/milestone 2.0

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

菜单项支持绑定自定义页面。适配 https://github.com/halo-dev/halo/pull/2395

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

#### Screenshots:

#### Special notes for your reviewer:

功能测试步骤:

1. 本地仓库 Checkout 到当前 PR。
2. Halo 后端需要 Checkout 到 https://github.com/halo-dev/halo/pull/2395/files PR。
3. 更新依赖:pnpm install
4. 构建依赖包:pnpm build:packages
5. 进入后台的自定义页面并新建页面。
6. 进入菜单管理,添加类型为自定义页面的菜单项。
7. 检查最终菜单项提供的显示名称和 permalink 是否正确。
8. 修改页面标题或者 slug,再检查最终菜单项的显示名称和 permalink 是否有自动修改。

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

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

```release-note
None
```
2022-09-08 10:32:09 +00:00
Ryan Wang 0d2e70fb2a
feat: single page management (#606) 2022-09-08 16:49:42 +08:00
Ryan Wang a57e832816
feat: menu items support setting ref relations (#604)
<!--  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/2380

> 自定义页面(pageRef)会等到 https://github.com/halo-dev/halo/pull/2381 合并之后再做适配。

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

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

<!--
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="1389" alt="image" src="https://user-images.githubusercontent.com/21301288/188453129-26711a32-707f-4c45-a137-fa386beff6a3.png">
<img width="1389" alt="image" src="https://user-images.githubusercontent.com/21301288/188453143-4c32ae32-3910-49a1-9a1f-1ae51f596c99.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:

/hold until https://github.com/halo-dev/halo/pull/2380 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-09-06 07:24:11 +00:00
Ryan Wang f2a1f3a303
feat: system configmap setting page (#603)
Signed-off-by: Ryan Wang <i@ryanc.cc>

Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-09-06 15:22:37 +08:00
Ryan Wang cd33946ca3
refactor: method parameters of api client (#605)
<!--  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 improvement
/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:

修改 api-client 的请求参数结构,改为所有参数由一个对象包裹,而不是将各个参数作为方法的参数,防止因为后端参数结构发生改变,或者生成 api-client 时参数顺序发生改变导致请求异常。如:

```diff
await apiClient.extension.storage.group.updatestorageHaloRunV1alpha1Group(
-        formState.value.metadata.name,
-        formState.value
+        {
+          name: formState.value.metadata.name,
+          group: formState.value,
+        }
      );
```

#### 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:

/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-09-06 02:26:11 +00:00
Ryan Wang e3fd9e8709
feat: add attachment management support (#600)
<!--  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/2354

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

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

<!--
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:

None

<!--
如果此 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:

todo list:

- [x] 根据分组筛选附件列表。
- [x] 非图片文件支持显示占位图。
- [x] 完善选择附件组件。
- [ ] ~~附件引用关系查询。~~

#### 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-09-04 17:06:11 +00:00
Ryan Wang f14f24cf8c chore: use vue/vue3-recommended eslint plugin
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-30 17:30:43 +08:00
Ryan Wang 066cbce120 perf: refine system settings form
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-25 15:21:16 +08:00
Ryan Wang e3fc574b30 refactor: post editor creation
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-24 15:29:21 +08:00
Ryan Wang dae208f543 refactor: user detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-23 17:33:45 +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 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 e96ca64cb5 feat: add empty component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-22 16:01:59 +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 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 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 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 fa6b42e1da refactor: plugin settings page form
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-08-04 12:04: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 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 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 7975890b44 refactor: basic components styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 16:48:37 +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 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 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 8ec13d1073 feat: add codemirror component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 16:12:28 +08:00
Ryan Wang d38daf4122 chore: bump packages version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 15:10:46 +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 08e2f2b2ce fix: @halo-dev/shared packages import location
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 14:26:55 +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 1959271d40 perf: refine basic layout component styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 14:28:33 +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 d0b72738da chore: fix @halo-dev/api-client dependency location
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-19 15:08:20 +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 e8fd09205d feat: support permission judgment of interface elements and routes 2022-07-15 16:26:27 +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 64240d3caf chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 10:11:43 +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 ebc9756a8d perf: refine dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 16:27:46 +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 9bf6d0f650 chore: bump @halo-dev/admin-shared version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 15:27:46 +08:00
Ryan Wang 8d357d47ae chore: add changeset
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 14:52:52 +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 1d09bc5af3 feat: refine the configuration of unplugin-icons
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-03 16:50:25 +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 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 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 62412028b0 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 11:51:03 +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 5a16fa7d1f feat(components): add switch component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 17:31:23 +08:00
Ryan Wang 84f981a8cb feat(components): add switch component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 17:25:24 +08:00
Ryan Wang 59f5d8ce36 refactor(components): remove tooltip component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 16:36:41 +08:00
Ryan Wang d8c14531e0 feat: bundle core modules 2022-06-20 12:25:36 +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 b142b3ca80 chore(packages/components): change d.ts dist folder
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 22:08:42 +08:00
Ryan Wang 93d154b484
feat: create admin-shared package (#581)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 10:42:13 +00:00
Ryan Wang 887f3ee4d2 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 15:02:32 +08:00
Ryan Wang d4b64f203d
chore: use pnpm's workspace feature to manage base components (#579) 2022-06-14 15:56:55 +08:00