Commit Graph

52 Commits (4dc05bd04a3675c7b2aec32a2939caf37a30a186)

Author SHA1 Message Date
Ryan Wang ee3b6605fa chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-30 11:41:40 +08:00
Ryan Wang 325525c07c feat: api supports field filtering (halo-dev/console#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 4fb5c6f588 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 fadbe47a54 feat: add plugin uninstall support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-26 11:45:00 +08:00
Ryan Wang 0a087d3956 refactor: basic components styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 16:48:37 +08:00
Ryan Wang d0746def44 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 e7022a072b feat: add support for uploading plugins (halo-dev/console#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 51c87c1519 feat: user editing support using yaml
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 17:04:30 +08:00
Ryan Wang e218818a59 feat: add codemirror component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 16:12:28 +08:00
Ryan Wang d90838f4cb chore: bump packages version
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 15:10:46 +08:00
Ryan Wang 5862db903f perf: improve user detail page style
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 15:03:30 +08:00
Ryan Wang 0b0220e30d 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 1a3492bd1e refactor: plugin detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 14:16:51 +08:00
Ryan Wang eaf64c5bc2 perf: refine basic layout component styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 14:28:33 +08:00
Ryan Wang a5b13f7d4c feat: add set api url support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 10:56:40 +08:00
Ryan Wang 3744d2b731 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 c15330f1e8 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-18 12:35:34 +08:00
Ryan Wang 0f3b17baa9 chore: cleanup type definition
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-18 12:23:14 +08:00
Ryan Wang faa7fa9141 feat: add change user password support 2022-07-18 11:52:13 +08:00
Ryan Wang d5c1e3e428 feat: support permission judgment of interface elements and routes 2022-07-15 16:26:27 +08:00
Ryan Wang 16cf4d70a1 refactor: response structure of Extension list API
see halo-dev/halo#2244
2022-07-14 16:48:54 +08:00
Ryan Wang 03bb8d6bc6 refactor: admin ui theme system
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-14 11:38:13 +08:00
Ryan Wang 75b76ec919 refactor: removal of plugin batch operation
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 17:39:31 +08:00
Ryan Wang 728dab4b74 refactor: api client
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 15:36:21 +08:00
Ryan Wang 4bd201d399 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 10:11:43 +08:00
Ryan Wang 9e16e1f26c feat: add pagination component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 18:16:45 +08:00
Ryan Wang 4b84ee053e perf: refine dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 16:27:46 +08:00
Ryan Wang 0e853e2e8b perf: refine tailwindcss config
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 12:25:24 +08:00
Ryan Wang a80c5298ef 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 2ec35c36b1 chore: add changeset
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 14:52:52 +08:00
Ryan Wang 6e390f4083 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 6eff21edbd 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 9765dd5529 feat: add user login support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-02 14:01:40 +08:00
Ryan Wang 9dc7016f06 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 87e56bd165 feat: add dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-29 14:53:57 +08:00
Ryan Wang 6e14600c04 feat: support roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-28 13:54:45 +08:00
Ryan Wang e5ef896d51 feat: user creation support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-27 16:16:49 +08:00
Ryan Wang 71bda8e956 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 a915c59c3f 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 edf7b5faa7 feat: support load plugin's stylesheet
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 21:22:24 +08:00
Ryan Wang c01b75960b feat: add pages extension points
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 15:31:32 +08:00
Ryan Wang 1aa7a61c55 chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-23 11:51:03 +08:00
Ryan Wang 6cf17b2381 feat: plugin management (halo-dev/console#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 7f304a92b4 feat(components): add switch component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 17:31:23 +08:00
Ryan Wang 7dab901864 feat(components): add switch component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 17:25:24 +08:00
Ryan Wang 2f4721c62b refactor(components): remove tooltip component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-21 16:36:41 +08:00
Ryan Wang ff03774563 feat: bundle core modules 2022-06-20 12:25:36 +08:00
Ryan Wang 771926852b 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 1b3aae9ef8 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 3f7958158f feat: create admin-shared package (halo-dev/console#581)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 10:42:13 +00:00