Commit Graph

4617 Commits (7a84f553005b2d8047ccdb0acf473693384a7b51)

Author SHA1 Message Date
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
guqing b9e5ed2f4c
feat: add shared application context for plugin (#2174)
* feat: add shared application context for plugin

* chore: remove todo notes

* fix: router function composite
2022-06-21 07:34:25 +00:00
guqing 7cd1282ad3
feat: add request mapping handler mapping for plugin (#2161)
* feat: add requet mapping handler mapping for plugin

* fix: request info resolve

* fix: test code style

* refactor: plugin api version resolve

* fix: merge conflicts
2022-06-21 03:22:24 +00:00
guqing 89eeccd99c
fix: locale for unit test of json extension converter (#2170) 2022-06-20 15:18:28 +00:00
Ryan Wang ebfbb639a8 chore: global loading of base dependencies 2022-06-20 15:08:17 +08:00
Ryan Wang ff03774563 feat: bundle core modules 2022-06-20 12:25:36 +08:00
John Niang f5d629d2bf
Add user support for authentication and authorization (#2163)
* Move role and rolebinding extensions into core package

* Add UserExtensionUserDetailService to find user and update password

* Rename DefaultUserDetailService

* Fix test errors

* Add SuperAdminInitializer to initialize first user

* Add unit tests for DefaultUserDetailService and UserService

* Add test for verifying SuperAdminInitializer

* Fix unstable test due to database reusability

Signed-off-by: johnniang <johnniang@fastmail.com>
2022-06-20 03:26:18 +00:00
Ryan Wang eabfadfa86 feat: add animation for user profile route 2022-06-19 23:39:45 +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 e3cfe9f427 refactor: load admin core as modules (halo-dev/console#582)
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-17 06:12:15 +00: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 c08396a3fb chore: rename views to modules
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 22:05:03 +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
Ryan Wang 1a6b57576e perf: optimize the code of main.ts
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 17:01:18 +08:00
Ryan Wang 25543cf84e chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 15:02:32 +08:00
Ryan Wang 6614d924f2 chore: set vite chunkSizeWarningLimit option
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-16 11:21:02 +08:00
John Niang e52db6859f
Add feature to generate APIs for schemes automatically (#2158)
* Add ExtensionEndpointInstaller

* Refactor Schemes with SchemeManager

* Add some unit tests

1. Add ExtensionCompositeRouterFunctionTest
2. Add ExtensionConfigurationTest
3. Refactor Unstructured
4. Fix bad ObjectMapper in Json converter.

* Fix bad scheme registration
2022-06-16 03:10:14 +00:00
guqing fcbf0031a4
feat: plugin supports multiple ways of specifying licenses (#2152)
* feat: plugin supports multiple ways of specifying licenses

* feat: add unit test case for deserialize license
2022-06-15 15:36:12 +00:00
guqing 83d668b0a9
feat: add plugin unstructured resource loader (#2154)
* feat: add plugin unstructured resource loader

* feat: add test unit case
2022-06-14 15:38:12 +00:00
guqing 6bbaa9aeba
feat: add reverse proxy router registry for plugin by reverse proxy rules (#2151)
* feat: add reverse proxy router registry for plugin by reverse proxy rules

* Update src/main/java/run/halo/app/plugin/resources/ReverseProxyRouterFunctionFactory.java

Co-authored-by: John Niang <johnniang@fastmail.com>

* refactor: merge stream operation

* refactor: plugin composite router function

* feat: add unit test case

Co-authored-by: John Niang <johnniang@fastmail.com>
2022-06-14 10:58:21 +00:00
Ryan Wang c4c92024b0 docs: update readme
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-06-14 17:55:41 +08:00
Ryan Wang 8783c5b1f1 chore: use pnpm's workspace feature to manage base components (halo-dev/console#579) 2022-06-14 15:56:55 +08:00
guqing a2f49c60bc
feat: add plugin life cycle management (#2134)
* feat: add plugin life cycle management

* refactor: plugin lifecycle endpoint mapping
2022-06-13 02:36:11 +00:00
Halo Dev Bot 95c6caaca1
docs: add CODE_OF_CONDUCT.md (#2150)
Co-authored-by: Ryan Wang <i@ryanc.cc>
2022-06-12 08:10:12 +00:00
John Niang a956758a2f
Overwrite Jackson2Json decoder and encoder (#2145) 2022-06-09 08:04:13 +00:00
John Niang 02a7143fe5
Enable CSRF token in Set-Cookie header (#2144) 2022-06-09 02:30:13 +00:00
guqing b3b13bc820
feat: add yaml descriptor finder for plugin (#2132)
* feat: add yaml plugin descriptor finder

* refactor: json assert

* refactor: plugin descriptor finder

* refactor: yaml plguin finder

* refactor: plugin dependencies
2022-06-07 06:32:12 +00:00
John Niang 1024f71635
Replace webmvc with webflux (#2138)
* Replace webmvc to webflux

Signed-off-by: johnniang <johnniang@fastmail.com>

* Remove jetty dependency

Signed-off-by: johnniang <johnniang@fastmail.com>

* Refactor authentication module

* Refactor authentication module

* Migrate authorization module

* Refactor Login components

* Fix broken imports

* Upgrade springdoc version

* Refine security matcher using pathMatchers utility
2022-06-07 02:20:12 +00:00
guqing 19db04c430
refactor: policy rule constructor to avoid null values (#2131)
* refactor: policy rule constructor to avoid null values

* fix: unit test case
2022-06-02 02:52:10 +00:00
Ryan Wang 89892a9d79 perf: improve forms ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-31 16:19:04 +08:00
guqing 2c057f4fe1
feat: add plugin implementation (#2128) 2022-05-31 04:06:10 +00:00
Ryan Wang b5394f19b9 perf: improve plugin detail page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-31 11:58:02 +08:00
Ryan Wang 9169a8e308 feat: add user personal access token settings page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-31 11:34:48 +08:00
Ryan Wang 6f6adaaf59 feat: add role management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 22:38:57 +08:00
Ryan Wang 7e032b5cab perf: improve user profile page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 21:06:02 +08:00
Ryan Wang 2880bc46c1 perf: improve settings page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 19:54:43 +08:00
guqing f4a943e45a
refactor: rule resolver and role binding lister (#2119) 2022-05-30 09:08:09 +00:00
Ryan Wang c057bf9065 perf: improve plugin detail page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 17:06:18 +08:00
Ryan Wang 4e67f034c5 refactor: theme page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-30 16:36:34 +08:00
Ryan Wang e2c811fc4e chore: add tailwindcss prettier plugin and reformat code
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 23:55:06 +08:00
Ryan Wang 196328df71 perf: improve sheets management page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 21:22:37 +08:00
Ryan Wang 4120fcde5e feat: add visual theme editing page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-29 15:13:01 +08:00
guqing 9a05942bc4
feat: add yaml unstructured loader (#2122) 2022-05-28 09:44:08 +00:00
Ryan Wang b38c00c45d feat: add menu management page
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-28 16:05:49 +08:00
Ryan Wang 021f6b21a5 chore: update pnpm-lock.yaml
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-27 18:08:16 +08:00
Ryan Wang 5fcba1d66c perf: improve dashboard page ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-27 17:28:25 +08:00
guqing 3c856d04af
feat: add personal access token authentication mechanism (#2116)
* feat: add personal access token authentication

* fix: merge conflicts

* refactor: remove base62 codec

* refactor: remove deprecated method

* feat: add base64 test

* chore: add todo for test only methods
2022-05-27 06:26:37 +00:00
Ryan Wang ad17e01225 feat: add filters dropdown ui
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-05-26 17:37:08 +08:00
John Niang b5d7f194ef
Create unstructured Extension which can store any Extensions (#2111)
* Extract ExtensionOperator and MetadataOperator

* Move groupVersionKind methods up to ExtensionOperator interface

* Add Unstructured Extension for generic Extension

* Refine mapping of GVK and Scheme

* Add two compatible methods
2022-05-26 08:38:10 +00:00