Ryan Wang
4bd201d399
chore: bump dependencies
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-13 10:11:43 +08:00
guqing
de493ccb2c
feat: add plugin setting support ( #2238 )
...
<!-- 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
/area core
/milestone 2.0
<!--
添加其中一个类别:
Add one of the following kinds:
/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind improvement
适当添加其中一个或多个类别(可选):
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:
新增插件设置,允许通过 Setting 自定义模型生成表单并收集其值为 ConfigMap
插件可以通过注入 SettingFetcher 来获取值并使用它,例如:
```java
Sns sns = settingFetcher.getGroupForObject("sns", Sns.class);
```
#### 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 #
#### Special notes for your reviewer:
/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-12 14:57:08 +00: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
guqing
abe29c12bf
feat: add configmap extension ( #2232 )
...
* feat: add configmap extension
2022-07-12 15:31:29 +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
John Niang
5953d2201d
Refactor CICD for Halo next ( #2236 )
2022-07-12 11:01:00 +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
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
ecef9d90b7
chore: add Dockerfile
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-11 11:02:48 +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
c97804780b
refactor: configure the api request to allow credentials and X-XSRF-TOKEN,COOKIE headers ( #2227 )
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 09:44:13 +00: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
edc505a648
chore: add changeset
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 15:14:59 +08:00
guqing
3e8f8b8789
feat: add plugin reconciler ( #2221 )
...
* feat: add plugin reconciler
* feat: add unit test case
2022-07-08 07:08:13 +00: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
10974cfa2f
refactor: update get current login user api
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-08 14:40:14 +08:00
John Niang
3f7cb58370
Add support for custom endpoints ( #2223 )
...
* Support to add custom endpoints
Signed-off-by: johnniang <johnniang@fastmail.com>
* Update docs/developer-guide/custom-endpoint.md
Co-authored-by: guqing <38999863+guqing@users.noreply.github.com>
Co-authored-by: Ryan Wang <i@ryanc.cc>
Co-authored-by: guqing <38999863+guqing@users.noreply.github.com>
2022-07-08 04:40:13 +00: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
guqing
73d43cae64
refactor: JSON serialize exception ( #2222 )
2022-07-07 09:32:14 +00: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
John Niang
2afe19f1b9
Add rolebinding reconciler to reset role names of users ( #2217 )
...
* Add rolebinding reconciler to reset role names of users
Signed-off-by: johnniang <johnniang@fastmail.com>
* Add @Bean annotations on roleBindingController
* Fix errors complained by unneccesary catch
Signed-off-by: johnniang <johnniang@fastmail.com>
2022-07-07 03:36:10 +00:00
guqing
f62d089237
feat: add role reconciler ( #2212 )
...
* feat: add role reconciler
* refactor: get role by name
* refactor: reconcile
* refactor: reconciler
* fix: test
2022-07-06 08:40:12 +00:00
Ryan Wang
6e3de9ea11
refactor: use formkit
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-07-06 14:31:42 +08:00
guqing
f7945081a5
refactor: plugin custom api generate rules ( #2211 )
...
* refactor: plugin custom api generate rules
* refactor: boolean convert
* fix: unit test
2022-07-05 07:00:12 +00: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
John Niang
27435a1aeb
Implement Extension reconciliation mechanism ( #2204 )
2022-07-04 03:14:24 +00: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
8aa2973267
chore: remove user-mock.ts file
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-29 15:39:52 +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
13ac104dc8
feat: support update a user
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-27 17:03:08 +08:00
Ryan Wang
8029668b70
perf: refine user detail page
...
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-27 16:30:22 +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
guqing
d7cfe4c4a5
refactor: Unstructured loading opportunity for plugin ( #2191 )
...
* refactor: Unstructured loading opportunity for plugin
* refactor: gvk
2022-06-27 07:14:10 +00:00
John Niang
61d2169a51
Add additional method to fetch Extension by GVK and name ( #2190 )
2022-06-26 16:04:09 +00: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
guqing
c0758f32d1
refactor: plugin configuration loading to adapt to plugin development mode ( #2183 )
...
* refactor: plugin configuration loading to adapt to plugin development mode
* refactor: extension locations
* refactor: plugin labels
* fix: unit test
2022-06-23 09:56:26 +00: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