zova-ui-empty 5.0.333 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +11 -8
- package/.vscode/extensions.json +1 -1
- package/.vscode/settings.json +18 -40
- package/.vscode/zova.code-snippets +198 -0
- package/env/.env +40 -10
- package/env/.env.ssr.admin +5 -3
- package/env/.env.ssr.production +0 -4
- package/env/.env.ssr.web +7 -0
- package/oxfmt.config.ts +28 -0
- package/oxlint.config.ts +62 -0
- package/package.json +105 -50
- package/package.original.json +37 -32
- package/pnpm-workspace.yaml +42 -0
- package/src/boot/app/index.ts +6 -0
- package/src/boot/main.ts +2 -3
- package/src/boot/zova.ts +9 -5
- package/src/css/settings.scss +4 -0
- package/src/front/config/config/config.admin.ts +2 -2
- package/src/front/config/config/config.ts +86 -3
- package/src/front/config/config/config.web.ts +10 -0
- package/src/front/config/locale/en-us.ts +1 -1
- package/src/front/config/locale/zh-cn.ts +1 -1
- package/src/front/typing/quasar.d.ts +9 -8
- package/src/suite/a-demo/modules/demo-basic/package.json +34 -12
- package/src/suite/a-demo/modules/demo-basic/rest/component/card.ts +8 -0
- package/src/suite/a-demo/modules/demo-basic/rest/components.ts +1 -0
- package/src/suite/a-demo/modules/demo-basic/rest/index.ts +1 -0
- package/src/suite/a-demo/modules/demo-basic/rest/pagesImport.txt +0 -0
- package/src/suite/a-demo/modules/demo-basic/rest/pagesRecord.txt +2 -0
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/component/card.ts +24 -0
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/index.ts +118 -22
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/page/component.ts +5 -0
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/page/state.ts +5 -0
- package/src/suite/a-demo/modules/demo-basic/src/bean/theme.orange.ts +28 -0
- package/src/suite/a-demo/modules/demo-basic/src/component/card/{render.tsx → controller.tsx} +21 -10
- package/src/suite/a-demo/modules/demo-basic/src/page/component/controller.tsx +52 -0
- package/src/suite/a-demo/modules/demo-basic/src/page/state/controller.tsx +34 -0
- package/src/suite/a-demo/modules/demo-basic/src/routes.ts +6 -5
- package/src/suite/a-demo/modules/demo-basic/tsconfig.build.json +13 -0
- package/src/suite/a-demo/modules/demo-basic/tsconfig.json +1 -1
- package/src/suite/a-demo/package.json +3 -3
- package/src/suite/a-home/modules/home-api/cli/openapi.config.ts +9 -0
- package/src/suite/a-home/modules/home-api/mock/captcha.fake.ts +21 -0
- package/src/suite/a-home/modules/home-api/mock/menu.fake.ts +34 -0
- package/src/suite/a-home/modules/home-api/mock/passport.fake.ts +469 -0
- package/src/suite/a-home/modules/home-api/package.json +51 -0
- package/src/suite/a-home/modules/home-api/src/.metadata/index.ts +260 -0
- package/src/suite/a-home/modules/home-api/src/.metadata/this.ts +2 -0
- package/src/suite/a-home/modules/home-api/src/api/captcha.ts +64 -0
- package/src/suite/a-home/modules/home-api/src/api/home.ts +20 -0
- package/src/suite/a-home/modules/home-api/src/api/homeBaseMenu.ts +28 -0
- package/src/suite/a-home/modules/home-api/src/api/homeBasePermission.ts +28 -0
- package/src/suite/a-home/modules/home-api/src/api/homeUserPassport.ts +196 -0
- package/src/suite/a-home/modules/home-api/src/api/openapi/baseURL.ts +5 -0
- package/src/suite/a-home/modules/home-api/src/api/openapi/index.ts +3 -0
- package/src/suite/a-home/modules/home-api/src/api/openapi/schemas.ts +170 -0
- package/src/suite/a-home/modules/home-api/src/api/openapi/types.ts +4498 -0
- package/src/suite/a-home/modules/home-api/src/apiSchema/captcha.ts +19 -0
- package/src/suite/a-home/modules/home-api/src/apiSchema/home.ts +11 -0
- package/src/suite/a-home/modules/home-api/src/apiSchema/homeBaseMenu.ts +11 -0
- package/src/suite/a-home/modules/home-api/src/apiSchema/homeBasePermission.ts +11 -0
- package/src/suite/a-home/modules/home-api/src/apiSchema/homeUserPassport.ts +58 -0
- package/src/suite/a-home/modules/home-api/src/index.ts +2 -0
- package/src/suite/a-home/modules/home-api/src/service/jwtAdapter.ts +17 -0
- package/src/suite/a-home/modules/home-api/src/types/api.ts +8 -0
- package/src/suite/a-home/modules/home-api/src/types/index.ts +1 -0
- package/src/suite/a-home/modules/home-api/tsconfig.build.json +13 -0
- package/src/suite/a-home/modules/home-api/tsconfig.json +9 -0
- package/src/suite/a-home/modules/home-base/package.json +41 -31
- package/src/suite/a-home/modules/home-base/rest/component/page.ts +8 -0
- package/src/suite/a-home/modules/home-base/rest/components.ts +1 -0
- package/src/suite/a-home/modules/home-base/rest/index.ts +1 -0
- package/src/suite/a-home/modules/home-base/rest/pagesImport.txt +2 -0
- package/src/suite/a-home/modules/home-base/rest/pagesRecord.txt +3 -0
- package/src/suite/a-home/modules/home-base/src/.metadata/component/page.ts +24 -0
- package/src/suite/a-home/modules/home-base/src/.metadata/index.ts +236 -32
- package/src/suite/a-home/modules/home-base/src/.metadata/locales.ts +19 -0
- package/src/suite/a-home/modules/home-base/src/.metadata/page/authCallback.ts +14 -0
- package/src/suite/a-home/modules/home-base/src/.metadata/page/errorExpired.ts +14 -0
- package/src/suite/a-home/modules/home-base/src/.metadata/page/errorNotFound.ts +5 -0
- package/src/suite/a-home/modules/home-base/src/bean/css.default.ts +15 -0
- package/src/suite/a-home/modules/home-base/src/bean/theme.default.ts +12 -8
- package/src/suite/a-home/modules/home-base/src/component/page/controller.tsx +21 -0
- package/src/suite/a-home/modules/home-base/src/config/locale/en-us.ts +3 -0
- package/src/suite/a-home/modules/home-base/src/config/locale/zh-cn.ts +3 -0
- package/src/suite/a-home/modules/home-base/src/index.ts +3 -2
- package/src/suite/a-home/modules/home-base/src/lib/index.ts +1 -0
- package/src/suite/a-home/modules/home-base/src/lib/utils.ts +14 -0
- package/src/suite/a-home/modules/home-base/src/main.ts +18 -0
- package/src/suite/a-home/modules/home-base/src/monkey.ts +21 -32
- package/src/suite/a-home/modules/home-base/src/monkeySys.ts +11 -0
- package/src/suite/a-home/modules/home-base/src/page/authCallback/controller.tsx +27 -0
- package/src/suite/a-home/modules/home-base/src/page/errorExpired/controller.tsx +37 -0
- package/src/suite/a-home/modules/home-base/src/page/errorNotFound/controller.tsx +34 -0
- package/src/suite/a-home/modules/home-base/src/routes.ts +30 -4
- package/src/suite/a-home/modules/home-base/src/service/routerGuards.ts +26 -0
- package/src/suite/a-home/modules/home-base/src/service/ssr.ts +40 -0
- package/src/suite/a-home/modules/home-base/src/types/index.ts +2 -0
- package/src/suite/a-home/modules/home-base/src/types/style.ts +10 -0
- package/src/suite/a-home/modules/home-base/src/types/themeToken.ts +7 -0
- package/src/suite/a-home/modules/home-base/tsconfig.build.json +13 -0
- package/src/suite/a-home/modules/home-base/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-icon/icons/daisy/lock.svg +11 -0
- package/src/suite/a-home/modules/home-icon/icons/daisy/person.svg +7 -0
- package/src/suite/a-home/modules/home-icon/icons/default/dark-theme.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/default/none.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/emoji/flower.svg +1 -0
- package/src/suite/a-home/modules/home-icon/icons/social/cabloy.svg +3 -0
- package/src/suite/a-home/modules/home-icon/icons/social/vona.svg +3 -0
- package/src/suite/a-home/modules/home-icon/icons/social/zova.svg +3 -0
- package/src/suite/a-home/modules/home-icon/package.json +39 -17
- package/src/suite/a-home/modules/home-icon/rest/icons.txt +237 -0
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/auth.svg +6 -6
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/business.svg +10 -10
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/daisy.svg +4 -0
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/default.svg +113 -112
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/editor.svg +30 -30
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/emoji.svg +3 -0
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/flow.svg +11 -11
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/login.svg +5 -5
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/outline.svg +39 -39
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/role.svg +8 -8
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/social.svg +10 -7
- package/src/suite/a-home/modules/home-icon/src/.metadata/icons/groups/tools.svg +2 -2
- package/src/suite/a-home/modules/home-icon/src/.metadata/index.ts +30 -8
- package/src/suite/a-home/modules/home-icon/tsconfig.build.json +13 -0
- package/src/suite/a-home/modules/home-icon/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-index/package.json +33 -11
- package/src/suite/a-home/modules/home-index/rest/pagesImport.txt +0 -0
- package/src/suite/a-home/modules/home-index/rest/pagesRecord.txt +1 -0
- package/src/suite/a-home/modules/home-index/src/.metadata/index.ts +56 -11
- package/src/suite/a-home/modules/home-index/src/.metadata/page/home.ts +5 -0
- package/src/suite/a-home/modules/home-index/src/page/home/controller.tsx +22 -0
- package/src/suite/a-home/modules/home-index/src/routes.ts +4 -3
- package/src/suite/a-home/modules/home-index/tsconfig.build.json +13 -0
- package/src/suite/a-home/modules/home-index/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-layout/package.json +34 -12
- package/src/suite/a-home/modules/home-layout/rest/component/itemLink.ts +8 -0
- package/src/suite/a-home/modules/home-layout/rest/component/layoutEmpty.ts +8 -0
- package/src/suite/a-home/modules/home-layout/rest/component/layoutTabs.ts +8 -0
- package/src/suite/a-home/modules/home-layout/rest/components.ts +3 -0
- package/src/suite/a-home/modules/home-layout/rest/index.ts +1 -0
- package/src/suite/a-home/modules/home-layout/src/.metadata/component/itemLink.ts +24 -0
- package/src/suite/a-home/modules/home-layout/src/.metadata/component/layoutDefault.ts +17 -0
- package/src/suite/a-home/modules/home-layout/src/.metadata/component/layoutEmpty.ts +24 -0
- package/src/suite/a-home/modules/home-layout/src/.metadata/component/layoutTabs.ts +31 -0
- package/src/suite/a-home/modules/home-layout/src/.metadata/index.ts +221 -36
- package/src/suite/a-home/modules/home-layout/src/.metadata/locales.ts +19 -0
- package/src/suite/a-home/modules/home-layout/src/component/itemLink/controller.tsx +36 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutEmpty/controller.tsx +19 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutTabs/controller.tsx +30 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutTabs/render.content.tsx +19 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutTabs/render.menu.tsx +66 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutTabs/render.tsx +23 -0
- package/src/suite/a-home/modules/home-layout/src/component/layoutTabs/style.ts +21 -0
- package/src/suite/a-home/modules/home-layout/src/config/config.ts +12 -0
- package/src/suite/a-home/modules/home-layout/src/config/locale/en-us.ts +23 -0
- package/src/suite/a-home/modules/home-layout/src/config/locale/zh-cn.ts +23 -0
- package/src/suite/a-home/modules/home-layout/src/index.ts +1 -0
- package/src/suite/a-home/modules/home-layout/src/model/menu.ts +87 -0
- package/src/suite/a-home/modules/home-layout/src/service/ssr.ts +25 -0
- package/src/suite/a-home/modules/home-layout/tsconfig.build.json +13 -0
- package/src/suite/a-home/modules/home-layout/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-passport/package.json +58 -0
- package/src/suite/a-home/modules/home-passport/src/.metadata/index.ts +71 -0
- package/src/suite/a-home/modules/home-passport/src/.metadata/this.ts +2 -0
- package/src/suite/a-home/modules/home-passport/src/config/config.ts +9 -0
- package/src/suite/a-home/modules/home-passport/src/index.ts +2 -0
- package/src/suite/a-home/modules/home-passport/src/model/passport.ts +199 -0
- package/src/suite/a-home/modules/home-passport/src/monkey.ts +42 -0
- package/src/suite/a-home/modules/home-passport/src/types/index.ts +1 -0
- package/src/suite/a-home/modules/home-passport/src/types/passport.ts +8 -0
- package/src/suite/a-home/modules/home-passport/tsconfig.build.json +13 -0
- package/src/suite/a-home/modules/home-passport/tsconfig.json +9 -0
- package/src/suite/a-home/package.json +7 -5
- package/src-ssr/middlewares/render.ts +12 -9
- package/src-ssr/server.ts +13 -18
- package/src-ssr/ssr-flag.d.ts +2 -2
- package/tsconfig.base.esm.json +6 -3
- package/tsconfig.base.json +5 -2
- package/tsconfig.json +14 -4
- package/tsconfig.rest.json +13 -0
- package/tsconfig.vue-tsc.json +8 -2
- package/.eslintignore +0 -8
- package/.eslintrc.cjs +0 -4
- package/.npmrc +0 -28
- package/prettier.config.cjs +0 -2
- package/src/boot/app/index.vue +0 -10
- package/src/front/config/config/config.front.ts +0 -10
- package/src/suite/a-demo/modules/demo-basic/src/component/card/controller.ts +0 -30
- package/src/suite/a-demo/modules/demo-basic/src/component/card/index.vue +0 -12
- package/src/suite/a-demo/modules/demo-basic/src/page/component/controller.ts +0 -9
- package/src/suite/a-demo/modules/demo-basic/src/page/component/index.vue +0 -10
- package/src/suite/a-demo/modules/demo-basic/src/page/component/render.tsx +0 -39
- package/src/suite/a-demo/modules/demo-basic/src/page/state/controller.ts +0 -21
- package/src/suite/a-demo/modules/demo-basic/src/page/state/index.vue +0 -10
- package/src/suite/a-demo/modules/demo-basic/src/page/state/render.tsx +0 -19
- package/src/suite/a-home/modules/home-base/src/bean/bean.api.ts +0 -59
- package/src/suite/a-home/modules/home-base/src/bean/local.router.ts +0 -12
- package/src/suite/a-home/modules/home-base/src/bean/local.ssr.ts +0 -18
- package/src/suite/a-home/modules/home-base/src/bean/style.default.ts +0 -11
- package/src/suite/a-home/modules/home-base/src/component/page/controller.ts +0 -23
- package/src/suite/a-home/modules/home-base/src/component/page/index.vue +0 -13
- package/src/suite/a-home/modules/home-base/src/component/page/render.tsx +0 -12
- package/src/suite/a-home/modules/home-base/src/component/page/style.ts +0 -16
- package/src/suite/a-home/modules/home-base/src/page/errorNotFound/controller.ts +0 -7
- package/src/suite/a-home/modules/home-base/src/page/errorNotFound/index.vue +0 -11
- package/src/suite/a-home/modules/home-base/src/page/errorNotFound/render.tsx +0 -23
- package/src/suite/a-home/modules/home-base/src/page/errorNotFound/style.ts +0 -10
- package/src/suite/a-home/modules/home-base/src/themeToken.ts +0 -1
- package/src/suite/a-home/modules/home-base/src/types.ts +0 -30
- package/src/suite/a-home/modules/home-icon/icons/default/zova.svg +0 -3
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/auth.svg +0 -8
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/business.svg +0 -12
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/default.svg +0 -114
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/editor.svg +0 -32
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/flow.svg +0 -13
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/login.svg +0 -7
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/outline.svg +0 -41
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/role.svg +0 -10
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/social.svg +0 -9
- package/src/suite/a-home/modules/home-icon/src/assets/icons/groups/tools.svg +0 -4
- package/src/suite/a-home/modules/home-icon/src/config/icons.ts +0 -23
- package/src/suite/a-home/modules/home-index/src/page/index/controller.ts +0 -7
- package/src/suite/a-home/modules/home-index/src/page/index/index.vue +0 -11
- package/src/suite/a-home/modules/home-index/src/page/index/render.tsx +0 -20
- package/src/suite/a-home/modules/home-index/src/page/index/style.ts +0 -10
- package/src/suite/a-home/modules/home-layout/mock/menu.fake.ts +0 -43
- package/src/suite/a-home/modules/home-layout/src/bean/model.menu.ts +0 -18
- package/src/suite/a-home/modules/home-layout/src/component/essentialLink/controller.ts +0 -26
- package/src/suite/a-home/modules/home-layout/src/component/essentialLink/index.vue +0 -12
- package/src/suite/a-home/modules/home-layout/src/component/essentialLink/render.tsx +0 -27
- package/src/suite/a-home/modules/home-layout/src/component/layoutDefault/controller.ts +0 -35
- package/src/suite/a-home/modules/home-layout/src/component/layoutDefault/index.vue +0 -13
- package/src/suite/a-home/modules/home-layout/src/component/layoutDefault/render.tsx +0 -51
- package/src/suite/a-home/modules/home-layout/src/component/layoutDefault/style.ts +0 -24
- package/src/suite/a-home/modules/home-layout/src/component/layoutEmpty/controller.ts +0 -17
- package/src/suite/a-home/modules/home-layout/src/component/layoutEmpty/index.vue +0 -12
- package/src/suite/a-home/modules/home-layout/src/component/layoutEmpty/render.tsx +0 -16
- package/src/suite/a-home/modules/home-layout/src/service/menu.ts +0 -17
- package/src-ssr/middlewares/env.ts +0 -21
- package/tsconfig.base.cjs.json +0 -3
package/.gitignore
CHANGED
|
@@ -3,19 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
.DS_Store
|
|
5
5
|
.thumbs.db
|
|
6
|
-
|
|
6
|
+
pnpm-lock.yaml
|
|
7
7
|
# package-lock.json
|
|
8
8
|
node_modules
|
|
9
9
|
miniprogram_npm
|
|
10
10
|
vite.config.ts.timestamp-*
|
|
11
11
|
|
|
12
|
-
**/dist
|
|
13
|
-
|
|
12
|
+
**/dist/
|
|
13
|
+
**/dist-toolsIsolate/
|
|
14
|
+
**/dist-cli/
|
|
15
|
+
dist-releases
|
|
16
|
+
dist-mock
|
|
14
17
|
|
|
15
18
|
# zova core related directories
|
|
19
|
+
.temp-dynamic-*
|
|
16
20
|
.zova
|
|
21
|
+
.zova-rest
|
|
17
22
|
.quasar
|
|
18
23
|
/quasar.config.*.temporary.compiled*
|
|
24
|
+
/openapi.config.ts
|
|
19
25
|
|
|
20
26
|
# Cordova related directories and files
|
|
21
27
|
/src-cordova/node_modules
|
|
@@ -45,21 +51,18 @@ env/.env*.mine
|
|
|
45
51
|
/src/front/config/config/config*.mine.ts
|
|
46
52
|
/src/front/typing/modules.d.ts
|
|
47
53
|
**/.metadata/modules.d.ts
|
|
54
|
+
# /package.json
|
|
48
55
|
|
|
49
56
|
**/*.tsbuildinfo
|
|
50
57
|
|
|
51
58
|
/src/suite/*
|
|
52
59
|
!/src/suite/.gitkeep
|
|
53
|
-
!/src/suite/a-base
|
|
54
|
-
!/src/suite/a-cms
|
|
55
|
-
!/src/suite/a-zova
|
|
56
60
|
!/src/suite/a-demo
|
|
57
|
-
!/src/suite/a-flow
|
|
58
61
|
!/src/suite/a-home
|
|
59
|
-
!/src/suite/test-party
|
|
60
62
|
|
|
61
63
|
/src/suite-vendor/*
|
|
62
64
|
!/src/suite-vendor/.gitkeep
|
|
65
|
+
!/src/suite-vendor/a-zova
|
|
63
66
|
|
|
64
67
|
/src/module/*
|
|
65
68
|
!/src/module/.gitkeep
|
package/.vscode/extensions.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"recommendations": ["cabloy.zova-vscode", "
|
|
2
|
+
"recommendations": ["cabloy.zova-vscode", "oxc.oxc-vscode", "Vue.volar"],
|
|
3
3
|
"unwantedRecommendations": [
|
|
4
4
|
"Vue.vscode-typescript-vue-plugin",
|
|
5
5
|
"octref.vetur",
|
package/.vscode/settings.json
CHANGED
|
@@ -1,53 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"editor.bracketPairColorization.enabled": true,
|
|
3
3
|
"editor.guides.bracketPairs": true,
|
|
4
|
+
// typescript
|
|
5
|
+
"js/ts.tsserver.automaticTypeAcquisition.enabled": true,
|
|
6
|
+
"js/ts.format.enabled": true,
|
|
7
|
+
"js/ts.implementationsCodeLens.enabled": true,
|
|
8
|
+
"js/ts.tsserver.useSyntaxServer": "auto",
|
|
9
|
+
"js/ts.validate.enabled": true,
|
|
10
|
+
"js/ts.suggest.autoImports": true,
|
|
11
|
+
"js/ts.suggest.includeCompletionsForImportStatements": true,
|
|
12
|
+
"js/ts.preferences.importModuleSpecifier": "shortest",
|
|
13
|
+
"js/ts.preferences.importModuleSpecifierEnding": "js",
|
|
14
|
+
"js/ts.preferences.includePackageJsonAutoImports": "on",
|
|
15
|
+
// oxfmt
|
|
16
|
+
"oxc.fmt.configPath": "oxfmt.config.ts",
|
|
17
|
+
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
4
18
|
"editor.formatOnSave": true,
|
|
5
|
-
|
|
19
|
+
// oxlint
|
|
6
20
|
"editor.codeActionsOnSave": {
|
|
7
|
-
"source.fixAll.
|
|
8
|
-
},
|
|
9
|
-
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
|
|
10
|
-
"prettier.singleQuote": true,
|
|
11
|
-
"prettier.jsxSingleQuote": false,
|
|
12
|
-
"[html]": {
|
|
13
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
14
|
-
},
|
|
15
|
-
"[css]": {
|
|
16
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
17
|
-
},
|
|
18
|
-
"[less]": {
|
|
19
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
20
|
-
},
|
|
21
|
-
"[vue]": {
|
|
22
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
23
|
-
},
|
|
24
|
-
"[javascript]": {
|
|
25
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
21
|
+
"source.fixAll.oxc": "always"
|
|
26
22
|
},
|
|
27
23
|
"[typescriptreact]": {
|
|
28
|
-
"editor.defaultFormatter": "
|
|
29
|
-
},
|
|
30
|
-
"[jsonc]": {
|
|
31
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
24
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
32
25
|
},
|
|
33
26
|
"[typescript]": {
|
|
34
|
-
"editor.defaultFormatter": "
|
|
35
|
-
},
|
|
36
|
-
"[json]": {
|
|
37
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
27
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
38
28
|
},
|
|
39
|
-
"files.eol": "\n",
|
|
40
|
-
"typescript.tsdk": "node_modules/typescript/lib",
|
|
41
|
-
"typescript.disableAutomaticTypeAcquisition": false,
|
|
42
|
-
"typescript.format.enable": true,
|
|
43
|
-
"typescript.implementationsCodeLens.enabled": true,
|
|
44
|
-
"typescript.tsserver.useSyntaxServer": "auto",
|
|
45
|
-
"typescript.validate.enable": true,
|
|
46
|
-
"typescript.suggest.autoImports": true,
|
|
47
|
-
"typescript.suggest.includeCompletionsForImportStatements": true,
|
|
48
|
-
"typescript.preferences.importModuleSpecifier": "shortest",
|
|
49
|
-
"typescript.preferences.importModuleSpecifierEnding": "js",
|
|
50
|
-
"typescript.preferences.includePackageJsonAutoImports": "on",
|
|
51
29
|
// associations
|
|
52
30
|
"files.associations": {
|
|
53
31
|
"*.ejs": "html",
|
|
@@ -15,4 +15,202 @@
|
|
|
15
15
|
"body": ["protected __dispose__() {", " $0", "}"],
|
|
16
16
|
"description": "__dispose__",
|
|
17
17
|
},
|
|
18
|
+
"aop.__init__": {
|
|
19
|
+
"scope": "typescript,typescriptreact",
|
|
20
|
+
"prefix": "aopinit",
|
|
21
|
+
"body": [
|
|
22
|
+
"protected __init__: AopActionInit<ClassSome> = async (_args, next, _receiver) => {",
|
|
23
|
+
" await next();",
|
|
24
|
+
" $0",
|
|
25
|
+
"}"
|
|
26
|
+
],
|
|
27
|
+
"description": "aop.__init__"
|
|
28
|
+
},
|
|
29
|
+
"aop.__dispose__": {
|
|
30
|
+
"scope": "typescript,typescriptreact",
|
|
31
|
+
"prefix": "aopdispose",
|
|
32
|
+
"body": [
|
|
33
|
+
"protected __dispose__: AopActionDispose<ClassSome> = (_args, next, _receiver) => {",
|
|
34
|
+
" $0",
|
|
35
|
+
" next();",
|
|
36
|
+
"}"
|
|
37
|
+
],
|
|
38
|
+
"description": "aop.__dispose__"
|
|
39
|
+
},
|
|
40
|
+
"aop.__get__": {
|
|
41
|
+
"scope": "typescript,typescriptreact",
|
|
42
|
+
"prefix": "aopget",
|
|
43
|
+
"body": [
|
|
44
|
+
"protected __get__: AopActionGet<ClassSome> = (_prop, next, _receiver) => {",
|
|
45
|
+
" const value = next();",
|
|
46
|
+
" return value;",
|
|
47
|
+
"}"
|
|
48
|
+
],
|
|
49
|
+
"description": "aop.__get__"
|
|
50
|
+
},
|
|
51
|
+
"aop.__set__": {
|
|
52
|
+
"scope": "typescript,typescriptreact",
|
|
53
|
+
"prefix": "aopset",
|
|
54
|
+
"body": [
|
|
55
|
+
"protected __set__: AopActionSet<ClassSome> = (_prop, value, next, _receiver) => {",
|
|
56
|
+
" return next(value);",
|
|
57
|
+
"}"
|
|
58
|
+
],
|
|
59
|
+
"description": "aop.__set__"
|
|
60
|
+
},
|
|
61
|
+
"aop.__method__": {
|
|
62
|
+
"scope": "typescript,typescriptreact",
|
|
63
|
+
"prefix": "aopmethod",
|
|
64
|
+
"body": [
|
|
65
|
+
"protected __method__: AopActionMethod<ClassSome> = (_method, _args, next, _receiver) => {",
|
|
66
|
+
" $0",
|
|
67
|
+
" return next();",
|
|
68
|
+
"}"
|
|
69
|
+
],
|
|
70
|
+
"description": "aop.__method__"
|
|
71
|
+
},
|
|
72
|
+
"aop.getter": {
|
|
73
|
+
"scope": "typescript,typescriptreact",
|
|
74
|
+
"prefix": "aopgetter",
|
|
75
|
+
"body": [
|
|
76
|
+
"protected __get_xxx__: AopActionGetter<ClassSome, 'xxx'> = function (next, _receiver) {",
|
|
77
|
+
" const value = next();",
|
|
78
|
+
" return value;",
|
|
79
|
+
"}"
|
|
80
|
+
],
|
|
81
|
+
"description": "aop.getter"
|
|
82
|
+
},
|
|
83
|
+
"aop.setter": {
|
|
84
|
+
"scope": "typescript,typescriptreact",
|
|
85
|
+
"prefix": "aopsetter",
|
|
86
|
+
"body": [
|
|
87
|
+
"protected __set_xxx__: AopActionSetter<ClassSome, 'xxx'> = function (value, next, _receiver) {",
|
|
88
|
+
" return next(value);",
|
|
89
|
+
"}"
|
|
90
|
+
],
|
|
91
|
+
"description": "aop.setter"
|
|
92
|
+
},
|
|
93
|
+
"aop.action": {
|
|
94
|
+
"scope": "typescript,typescriptreact",
|
|
95
|
+
"prefix": "aopaction",
|
|
96
|
+
"body": [
|
|
97
|
+
"action: AopAction<ClassSome, 'action'> = async (_args, next, _receiver) => {",
|
|
98
|
+
" $0",
|
|
99
|
+
" return await next();",
|
|
100
|
+
"}"
|
|
101
|
+
],
|
|
102
|
+
"description": "aop.action"
|
|
103
|
+
},
|
|
104
|
+
"aop.actionsync": {
|
|
105
|
+
"scope": "typescript,typescriptreact",
|
|
106
|
+
"prefix": "aopactionsync",
|
|
107
|
+
"body": [
|
|
108
|
+
"action: AopAction<ClassSome, 'action'> = (_args, next, _receiver) => {",
|
|
109
|
+
" $0",
|
|
110
|
+
" return next();",
|
|
111
|
+
"}"
|
|
112
|
+
],
|
|
113
|
+
"description": "aop.actionsync"
|
|
114
|
+
},
|
|
115
|
+
"aopmethod.get": {
|
|
116
|
+
"scope": "typescript,typescriptreact",
|
|
117
|
+
"prefix": "aopmethodget",
|
|
118
|
+
"body": [
|
|
119
|
+
"get(_options: IDecoratorAopMethodOptions, next: NextSync, _receiver: any, _prop: string) {",
|
|
120
|
+
" return next();",
|
|
121
|
+
"}"
|
|
122
|
+
],
|
|
123
|
+
"description": "aopmethod.get"
|
|
124
|
+
},
|
|
125
|
+
"aopmethod.set": {
|
|
126
|
+
"scope": "typescript,typescriptreact",
|
|
127
|
+
"prefix": "aopmethodset",
|
|
128
|
+
"body": [
|
|
129
|
+
"set(_options: IDecoratorAopMethodOptions, value: any, next: NextSync, _receiver: any, _prop: string): boolean {",
|
|
130
|
+
" return next(value);",
|
|
131
|
+
"}"
|
|
132
|
+
],
|
|
133
|
+
"description": "aopmethod.set"
|
|
134
|
+
},
|
|
135
|
+
"aopmagic.get": {
|
|
136
|
+
"scope": "typescript,typescriptreact",
|
|
137
|
+
"prefix": "aopmagicget",
|
|
138
|
+
"body": [
|
|
139
|
+
"protected __get__(prop: string) {",
|
|
140
|
+
" $0",
|
|
141
|
+
"}"
|
|
142
|
+
],
|
|
143
|
+
"description": "aopmagic.get"
|
|
144
|
+
},
|
|
145
|
+
"aopmagic.set": {
|
|
146
|
+
"scope": "typescript,typescriptreact",
|
|
147
|
+
"prefix": "aopmagicset",
|
|
148
|
+
"body": [
|
|
149
|
+
"protected __set__(prop: string, value: any): boolean {",
|
|
150
|
+
" $0",
|
|
151
|
+
" return false;",
|
|
152
|
+
"}"
|
|
153
|
+
],
|
|
154
|
+
"description": "aopmagic.set"
|
|
155
|
+
},
|
|
156
|
+
"record.flavor": {
|
|
157
|
+
"scope": "typescript,typescriptreact",
|
|
158
|
+
"prefix": "recordflavor",
|
|
159
|
+
"body": [
|
|
160
|
+
"declare module '@cabloy/module-info' {",
|
|
161
|
+
" export interface ZovaMetaFlavorExtend {",
|
|
162
|
+
" $0: never;",
|
|
163
|
+
" }",
|
|
164
|
+
"}"
|
|
165
|
+
],
|
|
166
|
+
"description": "record.flavor"
|
|
167
|
+
},
|
|
168
|
+
"record.appmode": {
|
|
169
|
+
"scope": "typescript,typescriptreact",
|
|
170
|
+
"prefix": "recordappmode",
|
|
171
|
+
"body": [
|
|
172
|
+
"declare module '@cabloy/module-info' {",
|
|
173
|
+
" export interface ZovaMetaAppModeExtend {",
|
|
174
|
+
" $0: never;",
|
|
175
|
+
" }",
|
|
176
|
+
"}"
|
|
177
|
+
],
|
|
178
|
+
"description": "record.appmode"
|
|
179
|
+
},
|
|
180
|
+
"record.loggerclient": {
|
|
181
|
+
"scope": "typescript,typescriptreact",
|
|
182
|
+
"prefix": "recordloggerclient",
|
|
183
|
+
"body": [
|
|
184
|
+
"declare module 'zova' {",
|
|
185
|
+
" export interface ILoggerClientRecord {",
|
|
186
|
+
" $0: never;",
|
|
187
|
+
" }",
|
|
188
|
+
"}"
|
|
189
|
+
],
|
|
190
|
+
"description": "record.loggerclient"
|
|
191
|
+
},
|
|
192
|
+
"record.loggerchild": {
|
|
193
|
+
"scope": "typescript,typescriptreact",
|
|
194
|
+
"prefix": "recordloggerchild",
|
|
195
|
+
"body": [
|
|
196
|
+
"declare module 'zova' {",
|
|
197
|
+
" export interface ILoggerChildRecord {",
|
|
198
|
+
" $0: never;",
|
|
199
|
+
" }",
|
|
200
|
+
"}"
|
|
201
|
+
],
|
|
202
|
+
"description": "record.loggerchild"
|
|
203
|
+
},
|
|
204
|
+
"record.locale": {
|
|
205
|
+
"scope": "typescript,typescriptreact",
|
|
206
|
+
"prefix": "recordlocale",
|
|
207
|
+
"body": [
|
|
208
|
+
"declare module 'zova' {",
|
|
209
|
+
" export interface ILocaleRecord {",
|
|
210
|
+
" $0: never;",
|
|
211
|
+
" }",
|
|
212
|
+
"}"
|
|
213
|
+
],
|
|
214
|
+
"description": "record.locale"
|
|
215
|
+
},
|
|
18
216
|
}
|
package/env/.env
CHANGED
|
@@ -1,42 +1,72 @@
|
|
|
1
|
-
APP_ROUTER_MODE = history
|
|
2
|
-
APP_ROUTER_BASE =
|
|
3
|
-
APP_PUBLIC_PATH =
|
|
4
1
|
APP_NAME = Zova
|
|
5
2
|
APP_TITLE = Zova
|
|
3
|
+
APP_DESCRIPTION = A vue3 framework with ioc
|
|
6
4
|
APP_VERSION = 1.0.0
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
APP_META_VIEWPORT = 'user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width'
|
|
7
|
+
|
|
8
|
+
APP_PUBLIC_PATH =
|
|
9
|
+
APP_LOCALE_DEFAULT = en-us
|
|
10
|
+
APP_LOCALE_HEADER_KEY = x-vona-locale
|
|
11
|
+
APP_TZ_HEADER_KEY = x-vona-tz
|
|
12
|
+
|
|
13
|
+
ROUTER_MODE = history
|
|
14
|
+
ROUTER_PAGE_HOME = /
|
|
15
|
+
ROUTER_PAGE_LOGIN = /login
|
|
16
|
+
ROUTER_KEY_RETURNTO = returnTo
|
|
17
|
+
|
|
18
|
+
DEV_SERVER_HOSTNAME =
|
|
9
19
|
DEV_SERVER_PORT = 9000
|
|
10
20
|
|
|
11
21
|
PROJECT_DISABLED_MODULES =
|
|
12
22
|
PROJECT_DISABLED_SUITES =
|
|
13
23
|
|
|
24
|
+
LAYOUT_COMPONENT_EMPTY = home-layout:layoutEmpty
|
|
25
|
+
LAYOUT_COMPONENT_DEFAULT = home-layout:layoutTabs
|
|
26
|
+
LAYOUT_SIDEBAR_LEFTOPENPC = true
|
|
27
|
+
|
|
28
|
+
STYLE_DEFAULT_THEME = home-base:default
|
|
29
|
+
|
|
30
|
+
LOGGER_CLIENT_DEFAULT =
|
|
31
|
+
|
|
14
32
|
BUILD_OUTDIR =
|
|
15
33
|
BUILD_MINIFY = true
|
|
34
|
+
BUILD_SOURCEMAP = true
|
|
35
|
+
BUILD_TARGET_BROWSER = es2015,firefox115,chrome115,safari16.4
|
|
36
|
+
BUILD_TARGET_NODE = node24
|
|
16
37
|
BUILD_ANALYZE = false
|
|
38
|
+
BUILD_COPY_DIST =
|
|
39
|
+
BUILD_COPY_RELEASE =
|
|
40
|
+
BUILD_REST_COPY_DIST =
|
|
17
41
|
|
|
18
|
-
API_BASE_URL=
|
|
42
|
+
API_BASE_URL = http://localhost:7102 # first api, then mock
|
|
19
43
|
API_PREFIX = /api
|
|
20
44
|
API_JWT = true
|
|
21
45
|
|
|
46
|
+
OPENAPI_BASE_URL_DEFAULT =
|
|
47
|
+
|
|
22
48
|
PINIA_ENABLED = false
|
|
23
49
|
|
|
24
50
|
PROXY_API_ENABLED = true
|
|
25
51
|
PROXY_API_BASE_URL = http://localhost:$MOCK_BUILD_PORT
|
|
26
52
|
PROXY_API_PREFIX = $API_PREFIX
|
|
27
53
|
|
|
28
|
-
|
|
29
|
-
|
|
54
|
+
SSR_COOKIE_LOCALE = false
|
|
55
|
+
SSR_COOKIE_THEME = false
|
|
30
56
|
SSR_COOKIE_THEMEDARK_DEFAULT = true
|
|
31
57
|
SSR_BODYREADYOBSERVER = false
|
|
32
|
-
SSR_API_BASE_URL =
|
|
58
|
+
SSR_API_BASE_URL = $API_BASE_URL
|
|
33
59
|
SSR_PROD_PORT = 3000
|
|
34
|
-
|
|
60
|
+
SSR_PROD_PROTOCOL = http
|
|
61
|
+
SSR_PROD_HOST = localhost:3000
|
|
62
|
+
SSR_HMR = false
|
|
63
|
+
SSR_TRANSFERCACHE = false
|
|
64
|
+
SSR_TRANSFERCACHE_EXPIRES = 0
|
|
35
65
|
|
|
36
66
|
MOCK_ENABLED = true
|
|
37
67
|
MOCK_LOGGER = false
|
|
38
68
|
MOCK_BASE_NAME = $API_PREFIX
|
|
39
69
|
MOCK_BUILD = false
|
|
40
70
|
MOCK_BUILD_PORT = 8888
|
|
41
|
-
MOCK_BUILD_OUTPUT =
|
|
71
|
+
MOCK_BUILD_OUTPUT = dist-mock
|
|
42
72
|
MOCK_BUILD_CORS = true
|
package/env/.env.ssr.admin
CHANGED
package/env/.env.ssr.production
CHANGED
package/env/.env.ssr.web
ADDED
package/oxfmt.config.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { oxcFormatConfig } from '@cabloy/lint';
|
|
2
|
+
import { defineConfig } from 'oxfmt';
|
|
3
|
+
|
|
4
|
+
export default defineConfig(
|
|
5
|
+
oxcFormatConfig({
|
|
6
|
+
ignorePatterns: [
|
|
7
|
+
'*.min.js',
|
|
8
|
+
'*.code-snippets',
|
|
9
|
+
'**/dist/**',
|
|
10
|
+
'**/static/**',
|
|
11
|
+
'**/.rollup.cache/**',
|
|
12
|
+
'**/.metadata/index.ts',
|
|
13
|
+
'.vona',
|
|
14
|
+
'.assets',
|
|
15
|
+
'coverage',
|
|
16
|
+
'docker-compose',
|
|
17
|
+
'scripts',
|
|
18
|
+
'zovaRest',
|
|
19
|
+
'assets',
|
|
20
|
+
'vite.config.ts.timestamp-*',
|
|
21
|
+
'dist-releases',
|
|
22
|
+
'dist-mock',
|
|
23
|
+
'src-capacitor',
|
|
24
|
+
'src-cordova',
|
|
25
|
+
'.zova',
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
28
|
+
);
|
package/oxlint.config.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { oxcLintConfigVue } from '@cabloy/lint';
|
|
2
|
+
import { defineConfig } from 'oxlint';
|
|
3
|
+
|
|
4
|
+
export default defineConfig(
|
|
5
|
+
oxcLintConfigVue({
|
|
6
|
+
ignorePatterns: [
|
|
7
|
+
'**/node_modules',
|
|
8
|
+
'**/dist',
|
|
9
|
+
'**/package-lock.json',
|
|
10
|
+
'**/yarn.lock',
|
|
11
|
+
'**/pnpm-lock.yaml',
|
|
12
|
+
'**/bun.lockb',
|
|
13
|
+
'**/output',
|
|
14
|
+
'**/coverage',
|
|
15
|
+
'**/temp',
|
|
16
|
+
'**/.temp',
|
|
17
|
+
'**/tmp',
|
|
18
|
+
'**/.tmp',
|
|
19
|
+
'**/.history',
|
|
20
|
+
'**/.vitepress/cache',
|
|
21
|
+
'**/.nuxt',
|
|
22
|
+
'**/.next',
|
|
23
|
+
'**/.svelte-kit',
|
|
24
|
+
'**/.vercel',
|
|
25
|
+
'**/.changeset',
|
|
26
|
+
'**/.idea',
|
|
27
|
+
'**/.cache',
|
|
28
|
+
'**/.output',
|
|
29
|
+
'**/.vite-inspect',
|
|
30
|
+
'**/.yarn',
|
|
31
|
+
'**/vite.config.*.timestamp-*',
|
|
32
|
+
'**/CHANGELOG*.md',
|
|
33
|
+
'**/*.min.*',
|
|
34
|
+
'**/LICENSE*',
|
|
35
|
+
'**/__snapshots__',
|
|
36
|
+
'**/auto-import?(s).d.ts',
|
|
37
|
+
'**/components.d.ts',
|
|
38
|
+
'**/*.md',
|
|
39
|
+
'**/*.d.ts',
|
|
40
|
+
'**/node_modules/**',
|
|
41
|
+
'**/dist/**',
|
|
42
|
+
'**/static/**',
|
|
43
|
+
'**/.rollup.cache/**',
|
|
44
|
+
'postcss.config.cjs',
|
|
45
|
+
'**/.metadata/index.ts',
|
|
46
|
+
'.vona',
|
|
47
|
+
'.assets',
|
|
48
|
+
'coverage',
|
|
49
|
+
'docker-compose',
|
|
50
|
+
'package.json',
|
|
51
|
+
'scripts',
|
|
52
|
+
'zovaRest',
|
|
53
|
+
'assets',
|
|
54
|
+
'vite.config.ts.timestamp-*',
|
|
55
|
+
'dist-releases',
|
|
56
|
+
'dist-mock',
|
|
57
|
+
'src-capacitor',
|
|
58
|
+
'src-cordova',
|
|
59
|
+
'.zova',
|
|
60
|
+
],
|
|
61
|
+
}),
|
|
62
|
+
);
|