Commit Graph

80 Commits

Author SHA1 Message Date
jack zhang
2cb1203aa4
refactor(client)!: application, router and plugin (#2068)
BREAKING CHANGE:

* refactor: update umi version 3.x to version 4.x

* refactor: update react-router-dom version to 6.x

* refactor(react-router-dom): change Layout Component `props.children` to `<Outlet />`

* refactor(react-router-dom): change <Route /> props and <RouteSwitch /> correct

* refactor(react-router-dom): replace `<Redirect />` to `<Navigate replace />`

* refactor(react-router-dom): replace `useHistory` to `useNavigate`

* refactor(react-router-dom): replace `useRouteMatch` to `useParams`

* refactor(react-router-dom & dumi): fix <RouteSwitch /> & umi document bug

* refactor(react-router-dom): `useRoutes` Optimize `<RouteSwitch />` code

* refactor(react-router-dom): update `Route` types and docs

* refactor(react-router-dom): optimize RouteSwitch code

* refactor(react-router-dom): `useLocation` no generics type

* refactor(react-router-dom): add `less v3.9.0` to `resolutions` to solve the error of `gulp-less`

* refactor(react-router-dom): fix `<RouteSwitch />`  `props.routes` as an array is not handled

* chore: upgrade `dumi` and refactor docs

* fix: completed code review, add `targets` to solve browser compatibility & removed `chainWebpack`

* refactor(dumi): upgraded dumi under `packages/core/client`

* refactor(dumi): delete `packages/core/dumi-theme-nocobase`

* refactor(dumi): degrade `react`  & replace `dumi-theme-antd` to `dumi-theme-nocobase`

* refactor(dumi): solve conflicts between multiple dumi applications

* fix: login page error in react 17

* refactor(dumi): remove less resolutions

* refactor(dumi): umi add `msfu: true` config

* fix: merge bug

* fix: self code review

* fix: code reivew and test bug

* refactor: upgrade react to 18

* refactor: degrade react types to 17

* chore: fix ci error

* fix: support routerBase & fix workflow page params

* fix(doc): menu externel link

* fix: build error

* fix: delete

* fix: vitest error

* fix: react-router new code replace

* fix: vitest markdown error

* fix: title is none when refresh

* fix: merge error

* fix: sidebar width is wrong

* fix: useProps error

* fix: side-menu-width

* fix: menu selectId is wrong & useProps is string

* fix: menu selected first default & side menu hide when change

* fix: test error & v0.10 change log

* fix: new compnent doc modify

* fix: set umi `fastRefresh=false`

* refactor: application v2

* fix: improve code

* fix: bug

* fix: page = 0 error

* fix: workflow navigate error

* feat: plugin manager

* fix: afterAdd

* feat: complete basic functional refactor

* fix: performance Application

* feat: support client and server build

* refactor: nocobase build-in plugin and providers

* fix: server can't start

* refactor: all plugins package `Prodiver` change to `Plugin`

* feat: nested router and change mobile client

* feat: delete application-v1 and router-switch

* feat: improve routes

* fix: change mobile not nested

* feat: delete RouteSwitchContext and change buildin Provider to Plugin

* feat: delete RouteSwitchContext plugins

* fix: refactor SchemaComponentOptions

* feat: improve SchemaComponentOptions

* fix: add useAdminSchemaUid

* fix: merge master error

* fix: vitest error

* fix: bug

* feat: bugs

* fix: improve code

* fix: restore code

* feat: vitest

* fix: bugs

* fix: bugs

* docs: update doc

* feat: improve code

* feat: add docs and imporve code

* fix: bugs

* feat: add tests

* fix: remove deps

* fix: muti app router error

* fix: router error

* fix: workflow error

* fix: cli error

* feat: change NoCobase -> Nocobase

* fix: code review

* fix: type error

* fix: cli error and plugin demo

* feat: update doc theme

* fix: build error

* fix: mobile router

* fix: code rewview

* fix: bug

* fix: test bug

* fix: bug

* refactor: add the "client" directory to all plugins

* refactor: modify samples client and plugin template

* fix: merge error

* fix: add files in package.json

* refactor: add README to files in package.json

* fix: adjust plugins depencies

* refactor: completing plugins' devDependencies and dependencies

* fix: bug

* refactor: remove @emotion/css

* refactor: jsonwebtoken deps

* refactor: remove sequelize

* refactor: dayjs and moment deps

* fix: bugs

* fix: bug

* fix: cycle detect

* fix: merge bug

* feat: new plugin bug

* fix: lang bug

* fix: dynamic import bug

* refactor: plugins and example add father config

* feat: improve code

* fix: add AppSpin and AppError components

* Revert "refactor: plugins and example add father config"

This reverts commit 483315bca5524e4b8cbbb20cbad77986f081089d.

# Conflicts:
#	packages/plugins/auth/package.json
#	packages/plugins/multi-app-manager/package.json
#	packages/samples/command/package.json
#	packages/samples/custom-collection-template/package.json
#	packages/samples/ratelimit/package.json
#	packages/samples/shop-actions/package.json
#	packages/samples/shop-events/package.json
#	packages/samples/shop-modeling/package.json

* feat: update doc

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-07-07 14:35:22 +08:00
jack zhang
acafe0f386
fix: mobile docs style (#2083) 2023-06-20 17:11:18 +08:00
jack zhang
d76e8fb87f
refactor: upgrade umi, react and react-router-dom (#1921)
* refactor: update umi version 3.x to version 4.x

* refactor: update react-router-dom version to 6.x

* refactor(react-router-dom): change Layout Component `props.children` to `<Outlet />`

* refactor(react-router-dom): change <Route /> props and <RouteSwitch /> correct

* refactor(react-router-dom): replace `<Redirect />` to `<Navigate replace />`

* refactor(react-router-dom): replace `useHistory` to `useNavigate`

* refactor(react-router-dom): replace `useRouteMatch` to `useParams`

* refactor(react-router-dom & dumi): fix <RouteSwitch /> & umi document bug

* refactor(react-router-dom): `useRoutes` Optimize `<RouteSwitch />` code

* refactor(react-router-dom): update `Route` types and docs

* refactor(react-router-dom): optimize RouteSwitch code

* refactor(react-router-dom): `useLocation` no generics type

* refactor(react-router-dom): add `less v3.9.0` to `resolutions` to solve the error of `gulp-less`

* refactor(react-router-dom): fix `<RouteSwitch />`  `props.routes` as an array is not handled

* chore: upgrade `dumi` and refactor docs

* fix: completed code review, add `targets` to solve browser compatibility & removed `chainWebpack`

* refactor(dumi): upgraded dumi under `packages/core/client`

* refactor(dumi): delete `packages/core/dumi-theme-nocobase`

* refactor(dumi): degrade `react`  & replace `dumi-theme-antd` to `dumi-theme-nocobase`

* refactor(dumi): solve conflicts between multiple dumi applications

* fix: login page error in react 17

* refactor(dumi): remove less resolutions

* refactor(dumi): umi add `msfu: true` config

* fix: merge bug

* fix: self code review

* fix: code reivew and test bug

* refactor: upgrade react to 18

* refactor: degrade react types to 17

* chore: fix ci error

* fix: support routerBase & fix workflow page params

* fix(doc): menu externel link

* fix: build error

* fix: delete

* fix: vitest error

* fix: react-router new code replace

* fix: vitest markdown error

* fix: title is none when refresh

* fix: merge error

* fix: sidebar width is wrong

* fix: useProps error

* fix: side-menu-width

* fix: menu selectId is wrong & useProps is string

* fix: menu selected first default & side menu hide when change

* fix: test error & v0.10 change log

* fix: new compnent doc modify

* fix: set umi `fastRefresh=false`

* refactor: application v2

* fix: improve code

* fix: bug

* fix: page = 0 error

* fix: workflow navigate error

* feat: plugin manager

* fix: afterAdd

* feat: update docs

* feat: update docs

* fix: page tab change not work

* fix: login redirect query param doesn't work

* fix: bug and doc

* feat: update docs

* fix: ci error

* fix: merge main

* feat: update docs

* feat: update docs

* feat: update docs

* chore(versions): 😊 publish v0.10.0-alpha.1

* fix: translations

* chore: backend node test max old space size

* docs: add useSearchParams

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: ChengLei Shao <chareice@live.com>
2023-06-20 11:48:02 +08:00
Junyi
0126a48cfa
feat(plugin-workflow): add workflow specific logger (#1677)
* feat(plugin-workflow): add workflow specific logger

* fix(plugin-workflow): fix packages

* refactor(logger): adjust logger path env
2023-04-10 06:00:29 -07:00
Pearl C
c8aba5f139
Update actions.md 2023-02-25 23:48:19 +08:00
Pearl C
c7295e067f
Update sdk.md 2023-02-20 23:24:26 +08:00
Pearl C
17e02ff12a
Update cli.md 2023-02-20 23:18:02 +08:00
Pearl C
9dd749ef9a
Update collection-manager.md 2023-02-18 23:53:19 +08:00
Pearl C
a7df5c1307
Update block-provider.md 2023-02-18 23:44:38 +08:00
Pearl C
33c75a5a07
Update schema-initializer.md 2023-02-18 23:42:55 +08:00
Pearl C
8539fa1dd5
Update schema-component.md 2023-02-18 23:38:10 +08:00
Pearl C
620a8c9daf
Update route-switch.md 2023-02-18 23:36:36 +08:00
Pearl C
931d20beb8
Update application.md 2023-02-18 23:35:36 +08:00
Pearl C
5ec875efb7
Update acl-resource.md 2023-02-18 23:32:09 +08:00
Pearl C
3a4be69fe9
Update acl-role.md 2023-02-18 23:23:14 +08:00
Pearl C
b4641eb0d5
Update acl.md 2023-02-17 19:15:57 +08:00
Pearl C
7affcece55
Update acl.md 2023-02-17 19:15:30 +08:00
Pearl C
0cc007250b
Update action.md 2023-02-10 16:58:42 +08:00
Pearl C
882090fda5
Update middleware.md 2023-02-10 16:57:56 +08:00
Pearl C
032408f725
Update action.md 2023-02-10 16:35:05 +08:00
Pearl C
f4958e57d1
Update action.md 2023-02-10 16:34:34 +08:00
Pearl C
cdc73506de
Update resource.md 2023-02-09 00:06:11 +08:00
Pearl C
5fa583eb27
Update index.md 2023-02-08 23:51:52 +08:00
Pearl C
a6190b54f5
Update resource.md 2023-02-07 23:29:08 +08:00
Pearl C
a8252fc614
Update index.md 2023-02-07 23:24:08 +08:00
Pearl C
93b9cc829d
Update index.md 2023-02-05 12:36:42 +08:00
Pearl C
ffdd54b62e
Update belongs-to-many-repository.md 2023-02-05 12:35:52 +08:00
Pearl C
0e9ab0d410
Update has-many-repository.md 2023-02-05 12:35:37 +08:00
Pearl C
8b50d7da7f
Update has-one-repository.md 2023-02-05 12:35:24 +08:00
Pearl C
eb9efe154a
Update repository.md 2023-02-05 12:34:59 +08:00
Pearl C
f80a138a07
Update field.md 2023-02-05 12:34:08 +08:00
Pearl C
a37a2e75fb
Update collection.md 2023-02-05 12:33:01 +08:00
Pearl C
e5973a76cc
Update index.md 2023-02-05 12:31:04 +08:00
Pearl C
e82837c27a
Update index.md 2023-02-05 12:26:08 +08:00
Pearl C
a11c4bbe48
Update index.md 2023-02-03 17:55:40 +08:00
Pearl C
25861221ec
Update operators.md 2023-01-27 23:06:31 +08:00
Pearl C
1a7afe1265
Update operators.md 2023-01-27 23:02:33 +08:00
Pearl C
8cbfdc5381
Update has-many-repository.md 2023-01-27 22:24:45 +08:00
Pearl C
0b249ee261
Update belongs-to-many-repository.md 2023-01-27 22:24:04 +08:00
Pearl C
12cc5b9174
Update repository.md 2023-01-26 23:04:02 +08:00
Pearl C
306fdca6a8
Update has-one-repository.md 2023-01-26 23:01:51 +08:00
Pearl C
f8baed5666
Update belongs-to-repository.md 2023-01-26 23:00:30 +08:00
Pearl C
f35bdc522d
Update has-many-repository.md 2023-01-26 22:58:32 +08:00
Pearl C
dba8bbd5c5
Update has-one-repository.md 2023-01-26 22:52:04 +08:00
Pearl C
e447c5e2ae
Update has-one-repository.md 2023-01-26 22:47:12 +08:00
Pearl C
dd2a092f2d
Update repository.md 2023-01-26 21:24:50 +08:00
Pearl C
266df9f6c2
Update repository.md 2023-01-26 21:14:23 +08:00
Pearl C
1d787c1fd1
Update repository.md 2023-01-21 16:55:09 +08:00
Pearl C
05f69a79e5
Update field.md 2023-01-21 15:54:29 +08:00
Pearl C
fd4dcd950d
Update field.md 2023-01-20 23:14:24 +08:00