Commit Graph

999 Commits (c3875c06714ca03056edbb22c15b3ba2da7602b6)

Author SHA1 Message Date
Ryan Wang c3875c0671 refactor: disabled dashboard widgets responsive option
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-25 17:41:15 +08:00
Ryan Wang 20612642e8 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 f130c8769e 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 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 b737637a21 refactor: UserEditingModal component
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-22 21:37:27 +08: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 c5d0656608 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 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 1a3492bd1e refactor: plugin detail page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-21 14:16:51 +08:00
Ryan Wang 6e3ebacd8e 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 e3b5abc529 chore: update themes data mock
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 16:54:20 +08:00
Ryan Wang 931c0eb8be feat: add plugin status tooltip
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-20 15:51:21 +08:00
Ryan Wang 3ab60a4bbf 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 a1774ded3d 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 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 8cd7091d04 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 64b8619bca 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 ca4e4bbeae feat: ui permission binding
see https://github.com/halo-dev/halo/pull/2260
2022-07-19 14:07:28 +08:00
Ryan Wang 1cded7a581 feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-19 11:41:05 +08:00
Ryan Wang 84e4cae994 feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-19 11:18:47 +08:00
Ryan Wang 82d966cba6 perf: add type support to usePluginStore
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-18 16:12:54 +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 24e1a3c4f7 fix: permission logic of super administrator
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-16 12:04:58 +08:00
Ryan Wang d5c1e3e428 feat: support permission judgment of interface elements and routes 2022-07-15 16:26:27 +08:00
Ryan Wang 1f0ea9d168 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 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 a023974db8 typo: configmapName -> configMapName
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 10:13:52 +08:00
Ryan Wang 3fceca7efa 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 13c4267a84 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 e721fadf86 fix: role creation
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-12 15:06:46 +08:00
Ryan Wang 37cf54bcd6 refactor: pagination component usage
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-12 11:11:05 +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 c9e3536040 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 0e853e2e8b perf: refine tailwindcss config
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 12:25:24 +08:00
Ryan Wang 83d8216fc2 feat: add url base config
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 10:21:38 +08:00
Ryan Wang 10974cfa2f 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 2b7d3a9aa5 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 84a25046d4 feat: add formkit auto animate plugin
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-07 20:34:55 +08:00
Ryan Wang 21a2fbe620 refactor: plugin enable/disable api
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-07 17:05:46 +08:00
Ryan Wang 12ca1b0595 feat: config formkit styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-07 16:50:50 +08:00
Ryan Wang 6e3de9ea11 refactor: use formkit
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-06 14:31:42 +08:00
Ryan Wang 875f6ba046 perf: search input styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-05 14:54:28 +08:00
Ryan Wang 710e499e63 feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-04 19:28:53 +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 9765dd5529 feat: add user login support
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-02 14:01:40 +08:00