zova-ui-vuetify 5.1.92 → 5.1.94
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/.vscode/extensions.json +1 -1
- package/.vscode/settings.json +6 -6
- package/package.json +20 -20
- package/src/css/settings.scss +2 -2
- package/src/suite/a-home/modules/home-api/cli/openapi.config.ts +7 -1
- package/src/suite/a-home/modules/home-api/mock/menu.fake.ts +30 -4
- package/src/suite/a-home/modules/home-api/mock/passport.fake.ts +23 -20
- package/src/suite/a-home/modules/home-api/src/api/home.ts +4 -1
- package/src/suite/a-home/modules/home-api/src/api/homeBasePermission.ts +4 -2
- package/src/suite/a-home/modules/home-api/src/api/homeUserPassport.ts +32 -14
- package/src/suite/a-home/modules/home-api/src/api/openapi/schemas.ts +36 -18
- package/src/suite/a-home/modules/home-api/src/api/openapi/types.ts +6 -2
- package/src/suite/a-home/modules/home-api/src/apiSchema/captcha.ts +5 -1
- package/src/suite/a-home/modules/home-api/src/apiSchema/homeBasePermission.ts +5 -1
- package/src/suite/a-home/modules/home-api/src/apiSchema/homeUserPassport.ts +10 -2
- package/src/suite/a-home/modules/home-api/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/locales.ts +6 -1
- package/src/suite/a-home/modules/home-base/src/component/itemLink/controller.tsx +7 -1
- package/src/suite/a-home/modules/home-base/src/monkey.ts +11 -2
- package/src/suite/a-home/modules/home-base/src/service/routerGuards.ts +5 -1
- package/src/suite/a-home/modules/home-base/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-icon/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-index/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-layoutempty/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-layouttabs/src/.metadata/locales.ts +6 -1
- package/src/suite/a-home/modules/home-layouttabs/src/component/layoutTabs/controller.tsx +9 -2
- package/src/suite/a-home/modules/home-layouttabs/src/component/layoutTabs/render.header.tsx +5 -1
- package/src/suite/a-home/modules/home-layouttabs/src/component/layoutTabs/render.locale.tsx +3 -1
- package/src/suite/a-home/modules/home-layouttabs/src/component/layoutTabs/render.tabs.tsx +6 -1
- package/src/suite/a-home/modules/home-layouttabs/src/model/menu.ts +25 -6
- package/src/suite/a-home/modules/home-passport/src/model/passport.ts +40 -10
- package/src/suite/a-home/modules/home-passport/tsconfig.json +1 -1
- package/src/suite/a-home/modules/home-theme/src/bean/theme.default.ts +7 -1
- package/src/suite/a-home/modules/home-theme/src/bean/theme.orange.ts +7 -1
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/bean/sys.appBar.tsx +29 -8
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/bean/sys.icon.ts +12 -2
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/bean/sys.main.tsx +8 -2
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/bean/sys.navigationDrawer.tsx +37 -7
- package/src/suite/a-vuetify/modules/vuetify-adapter/src/types/vuetify.ts +7 -1
- package/src/suite/a-vuetify/modules/vuetify-adapter/tsconfig.json +1 -1
- package/src-ssr/server.ts +7 -1
- package/tsconfig.base.json +2 -2
package/.vscode/extensions.json
CHANGED
package/.vscode/settings.json
CHANGED
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
"editor.formatOnSave": true,
|
|
19
19
|
// oxlint
|
|
20
20
|
"editor.codeActionsOnSave": {
|
|
21
|
-
"source.fixAll.oxc": "always"
|
|
21
|
+
"source.fixAll.oxc": "always"
|
|
22
22
|
},
|
|
23
23
|
"[typescriptreact]": {
|
|
24
|
-
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
24
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
25
25
|
},
|
|
26
26
|
"[typescript]": {
|
|
27
|
-
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
27
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
28
28
|
},
|
|
29
29
|
// associations
|
|
30
30
|
"files.associations": {
|
|
31
31
|
"*.ejs": "html",
|
|
32
32
|
"*.code-snippets": "text",
|
|
33
|
-
"docker-compose-dockerfile-app": "dockerfile"
|
|
33
|
+
"docker-compose-dockerfile-app": "dockerfile"
|
|
34
34
|
},
|
|
35
35
|
// watcher
|
|
36
36
|
"files.watcherExclude": {
|
|
37
|
-
"node_modules": true
|
|
38
|
-
}
|
|
37
|
+
"node_modules": true
|
|
38
|
+
}
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-ui-vuetify",
|
|
3
|
-
"version": "5.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "5.1.94",
|
|
4
|
+
"gitHead": "ed6b11bdf77a2b7efcc261676c2812c3044768f1",
|
|
5
5
|
"description": "A vue3 vuetify framework with ioc",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ioc",
|
|
@@ -88,33 +88,33 @@
|
|
|
88
88
|
"vue-router": "npm:@cabloy/vue-router@^4.4.16",
|
|
89
89
|
"vuetify": "^4.0.7",
|
|
90
90
|
"zod": "^4.4.3",
|
|
91
|
-
"zova": "^5.1.
|
|
92
|
-
"zova-jsx": "^1.1.
|
|
91
|
+
"zova": "^5.1.68",
|
|
92
|
+
"zova-jsx": "^1.1.40",
|
|
93
93
|
"zova-module-a-api": "^5.1.10",
|
|
94
94
|
"zova-module-a-app": "^5.1.12",
|
|
95
|
-
"zova-module-a-bean": "^5.1.
|
|
95
|
+
"zova-module-a-bean": "^5.1.18",
|
|
96
96
|
"zova-module-a-behavior": "^5.1.13",
|
|
97
97
|
"zova-module-a-behaviors": "^5.1.10",
|
|
98
98
|
"zova-module-a-boundary": "^5.1.10",
|
|
99
|
-
"zova-module-a-command": "^5.1.
|
|
99
|
+
"zova-module-a-command": "^5.1.21",
|
|
100
100
|
"zova-module-a-fetch": "^5.1.12",
|
|
101
|
-
"zova-module-a-form": "^5.1.
|
|
101
|
+
"zova-module-a-form": "^5.1.24",
|
|
102
102
|
"zova-module-a-icon": "^5.1.14",
|
|
103
|
-
"zova-module-a-interceptor": "^5.1.
|
|
103
|
+
"zova-module-a-interceptor": "^5.1.17",
|
|
104
104
|
"zova-module-a-logger": "^5.1.11",
|
|
105
105
|
"zova-module-a-meta": "^5.1.10",
|
|
106
|
-
"zova-module-a-model": "^5.1.
|
|
107
|
-
"zova-module-a-openapi": "^5.1.
|
|
106
|
+
"zova-module-a-model": "^5.1.18",
|
|
107
|
+
"zova-module-a-openapi": "^5.1.22",
|
|
108
108
|
"zova-module-a-router": "^5.1.15",
|
|
109
|
-
"zova-module-a-routerstack": "^5.1.
|
|
110
|
-
"zova-module-a-routertabs": "^5.1.
|
|
109
|
+
"zova-module-a-routerstack": "^5.1.14",
|
|
110
|
+
"zova-module-a-routertabs": "^5.1.18",
|
|
111
111
|
"zova-module-a-ssr": "^5.1.12",
|
|
112
112
|
"zova-module-a-ssrhmr": "^5.1.11",
|
|
113
113
|
"zova-module-a-ssrserver": "^5.1.10",
|
|
114
|
-
"zova-module-a-style": "^5.1.
|
|
115
|
-
"zova-module-a-table": "^5.1.
|
|
116
|
-
"zova-module-a-zod": "^5.1.
|
|
117
|
-
"zova-module-a-zova": "^5.1.
|
|
114
|
+
"zova-module-a-style": "^5.1.20",
|
|
115
|
+
"zova-module-a-table": "^5.1.21",
|
|
116
|
+
"zova-module-a-zod": "^5.1.16",
|
|
117
|
+
"zova-module-a-zova": "^5.1.44",
|
|
118
118
|
"zova-module-demo-basic": "workspace:^",
|
|
119
119
|
"zova-module-home-api": "workspace:^",
|
|
120
120
|
"zova-module-home-base": "workspace:^",
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
"zova-module-home-layouttabs": "workspace:^",
|
|
125
125
|
"zova-module-home-passport": "workspace:^",
|
|
126
126
|
"zova-module-home-theme": "workspace:^",
|
|
127
|
-
"zova-module-rest-resource": "^5.1.
|
|
127
|
+
"zova-module-rest-resource": "^5.1.20",
|
|
128
128
|
"zova-module-vuetify-adapter": "workspace:^",
|
|
129
|
-
"zova-suite-a-cabloy": "^5.1.
|
|
129
|
+
"zova-suite-a-cabloy": "^5.1.21"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@cabloy/cli": "^3.1.10",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"less": "^4.6.4",
|
|
143
143
|
"oxfmt": "^0.45.0",
|
|
144
144
|
"oxlint": "^1.64.0",
|
|
145
|
-
"quasar-app-extension-zova": "^1.2.
|
|
145
|
+
"quasar-app-extension-zova": "^1.2.27",
|
|
146
146
|
"sass-embedded": "^1.99.0",
|
|
147
147
|
"typescript": "^5.9.3",
|
|
148
148
|
"unplugin-fonts": "^1.4.0",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"vite-plugin-vuetify": "^2.1.3",
|
|
152
152
|
"vue-tsc": "^3.2.8",
|
|
153
153
|
"zova-openapi": "^1.1.9",
|
|
154
|
-
"zova-vite": "^1.1.
|
|
154
|
+
"zova-vite": "^1.1.26"
|
|
155
155
|
},
|
|
156
156
|
"packageManager": "pnpm@10.19.0",
|
|
157
157
|
"pnpm": {
|
package/src/css/settings.scss
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
:root {
|
|
13
13
|
--v-font-body:
|
|
14
|
-
'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
|
|
15
|
-
'Helvetica Neue', sans-serif;
|
|
14
|
+
'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
|
|
15
|
+
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.zova-icon__img {
|
|
@@ -3,7 +3,13 @@ import type { ZovaOpenapiConfigModule } from 'zova-openapi';
|
|
|
3
3
|
export default function (): ZovaOpenapiConfigModule {
|
|
4
4
|
return {
|
|
5
5
|
operations: {
|
|
6
|
-
match: [
|
|
6
|
+
match: [
|
|
7
|
+
/^Home_*/,
|
|
8
|
+
/^HomeBaseMenu_*/,
|
|
9
|
+
/^HomeBasePermission_*/,
|
|
10
|
+
/^HomeUserPassport_*/,
|
|
11
|
+
/^Captcha_*/,
|
|
12
|
+
],
|
|
7
13
|
},
|
|
8
14
|
};
|
|
9
15
|
}
|
|
@@ -3,10 +3,36 @@ import { defineFakeRoute } from 'vite-plugin-fake-server-turbo/client';
|
|
|
3
3
|
const __MenuItems = [
|
|
4
4
|
{ order: 0, title: 'Home', caption: '', icon: '::home', link: '/' },
|
|
5
5
|
{ group: 'basic', title: 'State', caption: 'ref, computed', icon: '', link: '/demo/basic/state' },
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
{
|
|
7
|
+
group: 'basic',
|
|
8
|
+
title: 'Component',
|
|
9
|
+
caption: 'props, emits, slots',
|
|
10
|
+
icon: '',
|
|
11
|
+
link: '/demo/basic/component',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
group: 'basic',
|
|
15
|
+
title: 'CSS-in-JS',
|
|
16
|
+
caption: 'Style & Theme',
|
|
17
|
+
icon: '',
|
|
18
|
+
link: '/demo/basic/style',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
group: 'vuetify',
|
|
22
|
+
title: 'Docs',
|
|
23
|
+
caption: 'vuetifyjs.com',
|
|
24
|
+
icon: ':social:school',
|
|
25
|
+
external: true,
|
|
26
|
+
link: 'https://vuetifyjs.com',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
group: 'vuetify',
|
|
30
|
+
title: 'GitHub',
|
|
31
|
+
caption: 'github.com/vuetifyjs',
|
|
32
|
+
icon: ':editor:code',
|
|
33
|
+
external: true,
|
|
34
|
+
link: 'https://github.com/vuetifyjs',
|
|
35
|
+
},
|
|
10
36
|
{
|
|
11
37
|
group: 'vuetify',
|
|
12
38
|
title: 'Vuetify Awesome',
|
|
@@ -277,28 +277,29 @@ const __sdkSchemaPassportLogin = {
|
|
|
277
277
|
},
|
|
278
278
|
required: ['username', 'password', 'captcha'],
|
|
279
279
|
},
|
|
280
|
-
'a-captcha.dto.captchaVerify_c3cd80b1eeafe39bfe4433491bb081d68e84797e_3218e7d152830e08f6e764b9e0c3796df929ee2b':
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
280
|
+
'a-captcha.dto.captchaVerify_c3cd80b1eeafe39bfe4433491bb081d68e84797e_3218e7d152830e08f6e764b9e0c3796df929ee2b':
|
|
281
|
+
{
|
|
282
|
+
type: 'object',
|
|
283
|
+
properties: {
|
|
284
|
+
id: {
|
|
285
|
+
type: 'string',
|
|
286
|
+
errorMessage: {
|
|
287
|
+
default: '必填项',
|
|
288
|
+
},
|
|
287
289
|
},
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
token: {
|
|
291
|
+
type: 'string',
|
|
292
|
+
errorMessage: {
|
|
293
|
+
default: '必填项',
|
|
294
|
+
},
|
|
293
295
|
},
|
|
294
296
|
},
|
|
297
|
+
required: ['id', 'token'],
|
|
298
|
+
rest: {
|
|
299
|
+
render: 'captcha',
|
|
300
|
+
iconPrefix: ':editor:code-block',
|
|
301
|
+
},
|
|
295
302
|
},
|
|
296
|
-
required: ['id', 'token'],
|
|
297
|
-
rest: {
|
|
298
|
-
render: 'captcha',
|
|
299
|
-
iconPrefix: ':editor:code-block',
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
303
|
},
|
|
303
304
|
parameters: {},
|
|
304
305
|
},
|
|
@@ -367,8 +368,10 @@ export default defineFakeRoute([
|
|
|
367
368
|
if (captcha.id !== '88b3ad2d-e2a9-44bf-9154-3086ef9770a4' || captcha.token !== '7') {
|
|
368
369
|
return {
|
|
369
370
|
code: 422,
|
|
370
|
-
message:
|
|
371
|
-
|
|
371
|
+
message:
|
|
372
|
+
'[\n {\n "code": "custom",\n "path": [\n "captcha"\n ],\n "message": "验证码不正确"\n }\n]',
|
|
373
|
+
stack:
|
|
374
|
+
'Error: [\n {\n "code": "custom",\n "path": [\n "captcha"\n ],\n "message": "验证码不正确"\n }\n]\n',
|
|
372
375
|
name: 'Error',
|
|
373
376
|
level: 'error',
|
|
374
377
|
};
|
|
@@ -13,6 +13,9 @@ export type ApiApiHomeindexResponseBody =
|
|
|
13
13
|
export class ApiHome extends BeanApiBase {
|
|
14
14
|
/** @description Home */
|
|
15
15
|
index(options?: IApiActionOptions) {
|
|
16
|
-
return this.$fetch.get<any, ApiApiHomeindexResponseBody>(
|
|
16
|
+
return this.$fetch.get<any, ApiApiHomeindexResponseBody>(
|
|
17
|
+
ApiApiHomeindexPath,
|
|
18
|
+
this.$configPrepare(OpenApiBaseURL(this.sys), options),
|
|
19
|
+
);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -3,8 +3,10 @@ import { Api, BeanApiBase, IApiActionOptions } from 'zova-module-a-api';
|
|
|
3
3
|
import { OpenApiBaseURL, type paths } from './openapi/index.js';
|
|
4
4
|
|
|
5
5
|
/** HomeBasePermission_retrievePermissions */
|
|
6
|
-
export const ApiApiHomeBasePermissionretrievePermissionsPath =
|
|
7
|
-
|
|
6
|
+
export const ApiApiHomeBasePermissionretrievePermissionsPath =
|
|
7
|
+
'/api/home/base/permission/{resource}';
|
|
8
|
+
export type ApiApiHomeBasePermissionretrievePermissionsPath =
|
|
9
|
+
'/api/home/base/permission/{resource}';
|
|
8
10
|
export type ApiApiHomeBasePermissionretrievePermissionsMethod = 'get';
|
|
9
11
|
export type ApiApiHomeBasePermissionretrievePermissionsRequestParams =
|
|
10
12
|
paths[ApiApiHomeBasePermissionretrievePermissionsPath][ApiApiHomeBasePermissionretrievePermissionsMethod]['parameters']['path'];
|
|
@@ -20,7 +20,8 @@ export type ApiApiHomeUserPassportlogoutResponseBody =
|
|
|
20
20
|
export const ApiApiHomeUserPassportregisterPath = '/api/home/user/passport/register';
|
|
21
21
|
export type ApiApiHomeUserPassportregisterPath = '/api/home/user/passport/register';
|
|
22
22
|
export type ApiApiHomeUserPassportregisterMethod = 'post';
|
|
23
|
-
export type ApiApiHomeUserPassportregisterRequestBody =
|
|
23
|
+
export type ApiApiHomeUserPassportregisterRequestBody =
|
|
24
|
+
components['schemas']['home-user.dto.register'];
|
|
24
25
|
export type ApiApiHomeUserPassportregisterResponseBody =
|
|
25
26
|
paths[ApiApiHomeUserPassportregisterPath][ApiApiHomeUserPassportregisterMethod]['responses']['200']['content']['application/json']['data'];
|
|
26
27
|
|
|
@@ -33,8 +34,10 @@ export type ApiApiHomeUserPassportloginResponseBody =
|
|
|
33
34
|
paths[ApiApiHomeUserPassportloginPath][ApiApiHomeUserPassportloginMethod]['responses']['200']['content']['application/json']['data'];
|
|
34
35
|
|
|
35
36
|
/** HomeUserPassport_loginOauth */
|
|
36
|
-
export const ApiApiHomeUserPassportloginOauthPath =
|
|
37
|
-
|
|
37
|
+
export const ApiApiHomeUserPassportloginOauthPath =
|
|
38
|
+
'/api/home/user/passport/login/{module}/{providerName}/{clientName?}';
|
|
39
|
+
export type ApiApiHomeUserPassportloginOauthPath =
|
|
40
|
+
'/api/home/user/passport/login/{module}/{providerName}/{clientName?}';
|
|
38
41
|
export type ApiApiHomeUserPassportloginOauthMethod = 'get';
|
|
39
42
|
export type ApiApiHomeUserPassportloginOauthRequestParams =
|
|
40
43
|
paths[ApiApiHomeUserPassportloginOauthPath][ApiApiHomeUserPassportloginOauthMethod]['parameters']['path'];
|
|
@@ -44,8 +47,10 @@ export type ApiApiHomeUserPassportloginOauthResponseBody =
|
|
|
44
47
|
paths[ApiApiHomeUserPassportloginOauthPath][ApiApiHomeUserPassportloginOauthMethod]['responses']['200']['content']['application/json']['data'];
|
|
45
48
|
|
|
46
49
|
/** HomeUserPassport_associate */
|
|
47
|
-
export const ApiApiHomeUserPassportassociatePath =
|
|
48
|
-
|
|
50
|
+
export const ApiApiHomeUserPassportassociatePath =
|
|
51
|
+
'/api/home/user/passport/associate/{module}/{providerName}/{clientName?}';
|
|
52
|
+
export type ApiApiHomeUserPassportassociatePath =
|
|
53
|
+
'/api/home/user/passport/associate/{module}/{providerName}/{clientName?}';
|
|
49
54
|
export type ApiApiHomeUserPassportassociateMethod = 'get';
|
|
50
55
|
export type ApiApiHomeUserPassportassociateRequestParams =
|
|
51
56
|
paths[ApiApiHomeUserPassportassociatePath][ApiApiHomeUserPassportassociateMethod]['parameters']['path'];
|
|
@@ -55,8 +60,10 @@ export type ApiApiHomeUserPassportassociateResponseBody =
|
|
|
55
60
|
paths[ApiApiHomeUserPassportassociatePath][ApiApiHomeUserPassportassociateMethod]['responses']['200']['content']['application/json']['data'];
|
|
56
61
|
|
|
57
62
|
/** HomeUserPassport_migrate */
|
|
58
|
-
export const ApiApiHomeUserPassportmigratePath =
|
|
59
|
-
|
|
63
|
+
export const ApiApiHomeUserPassportmigratePath =
|
|
64
|
+
'/api/home/user/passport/migrate/{module}/{providerName}/{clientName?}';
|
|
65
|
+
export type ApiApiHomeUserPassportmigratePath =
|
|
66
|
+
'/api/home/user/passport/migrate/{module}/{providerName}/{clientName?}';
|
|
60
67
|
export type ApiApiHomeUserPassportmigrateMethod = 'get';
|
|
61
68
|
export type ApiApiHomeUserPassportmigrateRequestParams =
|
|
62
69
|
paths[ApiApiHomeUserPassportmigratePath][ApiApiHomeUserPassportmigrateMethod]['parameters']['path'];
|
|
@@ -66,7 +73,8 @@ export type ApiApiHomeUserPassportmigrateResponseBody =
|
|
|
66
73
|
paths[ApiApiHomeUserPassportmigratePath][ApiApiHomeUserPassportmigrateMethod]['responses']['200']['content']['application/json']['data'];
|
|
67
74
|
|
|
68
75
|
/** HomeUserPassport_refreshAuthToken */
|
|
69
|
-
export const ApiApiHomeUserPassportrefreshAuthTokenPath =
|
|
76
|
+
export const ApiApiHomeUserPassportrefreshAuthTokenPath =
|
|
77
|
+
'/api/home/user/passport/refreshAuthToken';
|
|
70
78
|
export type ApiApiHomeUserPassportrefreshAuthTokenPath = '/api/home/user/passport/refreshAuthToken';
|
|
71
79
|
export type ApiApiHomeUserPassportrefreshAuthTokenMethod = 'post';
|
|
72
80
|
export type ApiApiHomeUserPassportrefreshAuthTokenRequestBody = {
|
|
@@ -76,8 +84,10 @@ export type ApiApiHomeUserPassportrefreshAuthTokenResponseBody =
|
|
|
76
84
|
paths[ApiApiHomeUserPassportrefreshAuthTokenPath][ApiApiHomeUserPassportrefreshAuthTokenMethod]['responses']['200']['content']['application/json']['data'];
|
|
77
85
|
|
|
78
86
|
/** HomeUserPassport_createPassportJwtFromOauthCode */
|
|
79
|
-
export const ApiApiHomeUserPassportcreatePassportJwtFromOauthCodePath =
|
|
80
|
-
|
|
87
|
+
export const ApiApiHomeUserPassportcreatePassportJwtFromOauthCodePath =
|
|
88
|
+
'/api/home/user/passport/createPassportJwtFromOauthCode';
|
|
89
|
+
export type ApiApiHomeUserPassportcreatePassportJwtFromOauthCodePath =
|
|
90
|
+
'/api/home/user/passport/createPassportJwtFromOauthCode';
|
|
81
91
|
export type ApiApiHomeUserPassportcreatePassportJwtFromOauthCodeMethod = 'post';
|
|
82
92
|
export type ApiApiHomeUserPassportcreatePassportJwtFromOauthCodeRequestBody = {
|
|
83
93
|
code: string;
|
|
@@ -86,8 +96,10 @@ export type ApiApiHomeUserPassportcreatePassportJwtFromOauthCodeResponseBody =
|
|
|
86
96
|
paths[ApiApiHomeUserPassportcreatePassportJwtFromOauthCodePath][ApiApiHomeUserPassportcreatePassportJwtFromOauthCodeMethod]['responses']['200']['content']['application/json']['data'];
|
|
87
97
|
|
|
88
98
|
/** HomeUserPassport_createTempAuthToken */
|
|
89
|
-
export const ApiApiHomeUserPassportcreateTempAuthTokenPath =
|
|
90
|
-
|
|
99
|
+
export const ApiApiHomeUserPassportcreateTempAuthTokenPath =
|
|
100
|
+
'/api/home/user/passport/createTempAuthToken';
|
|
101
|
+
export type ApiApiHomeUserPassportcreateTempAuthTokenPath =
|
|
102
|
+
'/api/home/user/passport/createTempAuthToken';
|
|
91
103
|
export type ApiApiHomeUserPassportcreateTempAuthTokenMethod = 'post';
|
|
92
104
|
export type ApiApiHomeUserPassportcreateTempAuthTokenRequestQuery =
|
|
93
105
|
paths[ApiApiHomeUserPassportcreateTempAuthTokenPath][ApiApiHomeUserPassportcreateTempAuthTokenMethod]['parameters']['query'];
|
|
@@ -163,7 +175,10 @@ export class ApiHomeUserPassport extends BeanApiBase {
|
|
|
163
175
|
);
|
|
164
176
|
}
|
|
165
177
|
|
|
166
|
-
refreshAuthToken(
|
|
178
|
+
refreshAuthToken(
|
|
179
|
+
body: ApiApiHomeUserPassportrefreshAuthTokenRequestBody,
|
|
180
|
+
options?: IApiActionOptions,
|
|
181
|
+
) {
|
|
167
182
|
return this.$fetch.post<any, ApiApiHomeUserPassportrefreshAuthTokenResponseBody>(
|
|
168
183
|
ApiApiHomeUserPassportrefreshAuthTokenPath,
|
|
169
184
|
body,
|
|
@@ -171,7 +186,10 @@ export class ApiHomeUserPassport extends BeanApiBase {
|
|
|
171
186
|
);
|
|
172
187
|
}
|
|
173
188
|
|
|
174
|
-
createPassportJwtFromOauthCode(
|
|
189
|
+
createPassportJwtFromOauthCode(
|
|
190
|
+
body: ApiApiHomeUserPassportcreatePassportJwtFromOauthCodeRequestBody,
|
|
191
|
+
options?: IApiActionOptions,
|
|
192
|
+
) {
|
|
175
193
|
return this.$fetch.post<any, ApiApiHomeUserPassportcreatePassportJwtFromOauthCodeResponseBody>(
|
|
176
194
|
ApiApiHomeUserPassportcreatePassportJwtFromOauthCodePath,
|
|
177
195
|
body,
|
|
@@ -16,7 +16,8 @@ export type ApiSchemaAMenuDtoMenuItemMeta = components['schemas']['a-menu.dto.me
|
|
|
16
16
|
export type ApiSchemaAMenuDtoMenuItemMetaPartial = Partial<ApiSchemaAMenuDtoMenuItemMeta>;
|
|
17
17
|
export type ApiSchemaAMenuDtoMenuGroup = components['schemas']['a-menu.dto.menuGroup'];
|
|
18
18
|
export type ApiSchemaAMenuDtoMenuGroupPartial = Partial<ApiSchemaAMenuDtoMenuGroup>;
|
|
19
|
-
export type ApiSchemaAPermissionDtoPermissions =
|
|
19
|
+
export type ApiSchemaAPermissionDtoPermissions =
|
|
20
|
+
components['schemas']['a-permission.dto.permissions'];
|
|
20
21
|
export type ApiSchemaAPermissionDtoPermissionsPartial = Partial<ApiSchemaAPermissionDtoPermissions>;
|
|
21
22
|
export type ApiSchemaHomeUserDtoPassport = components['schemas']['home-user.dto.passport'];
|
|
22
23
|
export type ApiSchemaHomeUserDtoPassportPartial = Partial<ApiSchemaHomeUserDtoPassport>;
|
|
@@ -42,13 +43,17 @@ export type ApiSchemaACaptchaDtoCaptchaVerify_c3cd80b1eeafe39bfe4433491bb081d68e
|
|
|
42
43
|
components['schemas']['a-captcha.dto.captchaVerify_c3cd80b1eeafe39bfe4433491bb081d68e84797e_3218e7d152830e08f6e764b9e0c3796df929ee2b'];
|
|
43
44
|
export type ApiSchemaACaptchaDtoCaptchaVerify_c3cd80b1eeafe39bfe4433491bb081d68e84797e_3218e7d152830e08f6e764b9e0c3796df929ee2bPartial =
|
|
44
45
|
Partial<ApiSchemaACaptchaDtoCaptchaVerify_c3cd80b1eeafe39bfe4433491bb081d68e84797e_3218e7d152830e08f6e764b9e0c3796df929ee2b>;
|
|
45
|
-
export type ApiSchemaTestRestDtoProductCreate =
|
|
46
|
+
export type ApiSchemaTestRestDtoProductCreate =
|
|
47
|
+
components['schemas']['test-rest.dto.productCreate'];
|
|
46
48
|
export type ApiSchemaTestRestDtoProductCreatePartial = Partial<ApiSchemaTestRestDtoProductCreate>;
|
|
47
|
-
export type ApiSchemaTestRestDtoProductQueryRes =
|
|
48
|
-
|
|
49
|
+
export type ApiSchemaTestRestDtoProductQueryRes =
|
|
50
|
+
components['schemas']['test-rest.dto.productQueryRes'];
|
|
51
|
+
export type ApiSchemaTestRestDtoProductQueryResPartial =
|
|
52
|
+
Partial<ApiSchemaTestRestDtoProductQueryRes>;
|
|
49
53
|
export type ApiSchemaTestRestEntityProduct = components['schemas']['test-rest.entity.product'];
|
|
50
54
|
export type ApiSchemaTestRestEntityProductPartial = Partial<ApiSchemaTestRestEntityProduct>;
|
|
51
|
-
export type ApiSchemaTestRestDtoProductUpdate =
|
|
55
|
+
export type ApiSchemaTestRestDtoProductUpdate =
|
|
56
|
+
components['schemas']['test-rest.dto.productUpdate'];
|
|
52
57
|
export type ApiSchemaTestRestDtoProductUpdatePartial = Partial<ApiSchemaTestRestDtoProductUpdate>;
|
|
53
58
|
export type ApiSchemaTestSsrDtoTestResult = components['schemas']['test-ssr.dto.testResult'];
|
|
54
59
|
export type ApiSchemaTestSsrDtoTestResultPartial = Partial<ApiSchemaTestSsrDtoTestResult>;
|
|
@@ -58,12 +63,17 @@ export type ApiSchemaTestSsrDtoTestBody = components['schemas']['test-ssr.dto.te
|
|
|
58
63
|
export type ApiSchemaTestSsrDtoTestBodyPartial = Partial<ApiSchemaTestSsrDtoTestBody>;
|
|
59
64
|
export type ApiSchemaTestCaptchaDtoSignin = components['schemas']['test-captcha.dto.signin'];
|
|
60
65
|
export type ApiSchemaTestCaptchaDtoSigninPartial = Partial<ApiSchemaTestCaptchaDtoSignin>;
|
|
61
|
-
export type ApiSchemaAPaypalEntityPaypalRecord =
|
|
66
|
+
export type ApiSchemaAPaypalEntityPaypalRecord =
|
|
67
|
+
components['schemas']['a-paypal.entity.paypalRecord'];
|
|
62
68
|
export type ApiSchemaAPaypalEntityPaypalRecordPartial = Partial<ApiSchemaAPaypalEntityPaypalRecord>;
|
|
63
|
-
export type ApiSchemaAPaypalDtoPaypalOrderRecordPayload =
|
|
64
|
-
|
|
65
|
-
export type
|
|
66
|
-
|
|
69
|
+
export type ApiSchemaAPaypalDtoPaypalOrderRecordPayload =
|
|
70
|
+
components['schemas']['a-paypal.dto.paypalOrderRecordPayload'];
|
|
71
|
+
export type ApiSchemaAPaypalDtoPaypalOrderRecordPayloadPartial =
|
|
72
|
+
Partial<ApiSchemaAPaypalDtoPaypalOrderRecordPayload>;
|
|
73
|
+
export type ApiSchemaAPaypalDtoPaypalOrderRecordOptions =
|
|
74
|
+
components['schemas']['a-paypal.dto.paypalOrderRecordOptions'];
|
|
75
|
+
export type ApiSchemaAPaypalDtoPaypalOrderRecordOptionsPartial =
|
|
76
|
+
Partial<ApiSchemaAPaypalDtoPaypalOrderRecordOptions>;
|
|
67
77
|
export type ApiSchemaAPlayDtoPlay = components['schemas']['a-play.dto.play'];
|
|
68
78
|
export type ApiSchemaAPlayDtoPlayPartial = Partial<ApiSchemaAPlayDtoPlay>;
|
|
69
79
|
export type ApiSchemaTestVonaDtoUserLazy = components['schemas']['test-vona.dto.userLazy'];
|
|
@@ -110,19 +120,27 @@ export type ApiSchemaTestVonaEntityProduct_bce173590aaef19772f1ae3a82196493c2633
|
|
|
110
120
|
components['schemas']['test-vona.entity.product_bce173590aaef19772f1ae3a82196493c2633e2e'];
|
|
111
121
|
export type ApiSchemaTestVonaEntityProduct_bce173590aaef19772f1ae3a82196493c2633e2ePartial =
|
|
112
122
|
Partial<ApiSchemaTestVonaEntityProduct_bce173590aaef19772f1ae3a82196493c2633e2e>;
|
|
113
|
-
export type ApiSchemaTestVonaDtoOrderResultPage =
|
|
114
|
-
|
|
123
|
+
export type ApiSchemaTestVonaDtoOrderResultPage =
|
|
124
|
+
components['schemas']['test-vona.dto.orderResultPage'];
|
|
125
|
+
export type ApiSchemaTestVonaDtoOrderResultPagePartial =
|
|
126
|
+
Partial<ApiSchemaTestVonaDtoOrderResultPage>;
|
|
115
127
|
export type ApiSchemaTestVonaDtoPostGroup = components['schemas']['test-vona.dto.postGroup'];
|
|
116
128
|
export type ApiSchemaTestVonaDtoPostGroupPartial = Partial<ApiSchemaTestVonaDtoPostGroup>;
|
|
117
|
-
export type ApiSchemaTestVonaDtoPostAggregate =
|
|
129
|
+
export type ApiSchemaTestVonaDtoPostAggregate =
|
|
130
|
+
components['schemas']['test-vona.dto.postAggregate'];
|
|
118
131
|
export type ApiSchemaTestVonaDtoPostAggregatePartial = Partial<ApiSchemaTestVonaDtoPostAggregate>;
|
|
119
132
|
export type ApiSchemaTestVonaDtoPostQueryRes = components['schemas']['test-vona.dto.postQueryRes'];
|
|
120
133
|
export type ApiSchemaTestVonaDtoPostQueryResPartial = Partial<ApiSchemaTestVonaDtoPostQueryRes>;
|
|
121
|
-
export type ApiSchemaTestVonaDtoSerializerSimple =
|
|
122
|
-
|
|
123
|
-
export type
|
|
124
|
-
|
|
125
|
-
export type
|
|
134
|
+
export type ApiSchemaTestVonaDtoSerializerSimple =
|
|
135
|
+
components['schemas']['test-vona.dto.serializerSimple'];
|
|
136
|
+
export type ApiSchemaTestVonaDtoSerializerSimplePartial =
|
|
137
|
+
Partial<ApiSchemaTestVonaDtoSerializerSimple>;
|
|
138
|
+
export type ApiSchemaTestVonaDtoSerializerArray =
|
|
139
|
+
components['schemas']['test-vona.dto.serializerArray'];
|
|
140
|
+
export type ApiSchemaTestVonaDtoSerializerArrayPartial =
|
|
141
|
+
Partial<ApiSchemaTestVonaDtoSerializerArray>;
|
|
142
|
+
export type ApiSchemaTestVonaDtoSerializerLazy =
|
|
143
|
+
components['schemas']['test-vona.dto.serializerLazy'];
|
|
126
144
|
export type ApiSchemaTestVonaDtoSerializerLazyPartial = Partial<ApiSchemaTestVonaDtoSerializerLazy>;
|
|
127
145
|
export type ApiSchemaTestVonaDtoSerializerSimple_1c4b95bcfe8fe28a56dbcc7028097cf11836b4fc =
|
|
128
146
|
components['schemas']['test-vona.dto.serializerSimple_1c4b95bcfe8fe28a56dbcc7028097cf11836b4fc'];
|
|
@@ -1526,7 +1526,9 @@ export interface components {
|
|
|
1526
1526
|
orderNo?: string;
|
|
1527
1527
|
/** @description Remark */
|
|
1528
1528
|
remark?: string | undefined;
|
|
1529
|
-
products?:
|
|
1529
|
+
products?:
|
|
1530
|
+
| components['schemas']['test-vona.entity.product_29731960f3f38d3572bc2f8a01a7498bfe927055'][]
|
|
1531
|
+
| undefined;
|
|
1530
1532
|
};
|
|
1531
1533
|
'test-vona.entity.product_29731960f3f38d3572bc2f8a01a7498bfe927055': {
|
|
1532
1534
|
/** @description Name */
|
|
@@ -1546,7 +1548,9 @@ export interface components {
|
|
|
1546
1548
|
orderNo?: string;
|
|
1547
1549
|
/** @description Remark */
|
|
1548
1550
|
remark?: string | undefined;
|
|
1549
|
-
products?:
|
|
1551
|
+
products?:
|
|
1552
|
+
| components['schemas']['test-vona.entity.product_9cf2c6bcd41713270c34bcfce21b7b4942e3fbc6'][]
|
|
1553
|
+
| undefined;
|
|
1550
1554
|
};
|
|
1551
1555
|
'test-vona.entity.product_9cf2c6bcd41713270c34bcfce21b7b4942e3fbc6': {
|
|
1552
1556
|
/**
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { BeanBase } from 'zova';
|
|
2
2
|
import { ApiSchema, IApiSchemaOptions } from 'zova-module-a-api';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
ApiApiCaptchacreatePath,
|
|
6
|
+
ApiApiCaptcharefreshPath,
|
|
7
|
+
ApiApiCaptchaverifyImmediatePath,
|
|
8
|
+
} from '../api/captcha.js';
|
|
5
9
|
|
|
6
10
|
@ApiSchema()
|
|
7
11
|
export class ApiSchemaCaptcha extends BeanBase {
|
|
@@ -6,6 +6,10 @@ import { ApiApiHomeBasePermissionretrievePermissionsPath } from '../api/homeBase
|
|
|
6
6
|
@ApiSchema()
|
|
7
7
|
export class ApiSchemaHomeBasePermission extends BeanBase {
|
|
8
8
|
retrievePermissions(options?: IApiSchemaOptions) {
|
|
9
|
-
return this.$sdk.createApiSchemas(
|
|
9
|
+
return this.$sdk.createApiSchemas(
|
|
10
|
+
ApiApiHomeBasePermissionretrievePermissionsPath,
|
|
11
|
+
'get',
|
|
12
|
+
options,
|
|
13
|
+
);
|
|
10
14
|
}
|
|
11
15
|
}
|
|
@@ -49,10 +49,18 @@ export class ApiSchemaHomeUserPassport extends BeanBase {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
createPassportJwtFromOauthCode(options?: IApiSchemaOptions) {
|
|
52
|
-
return this.$sdk.createApiSchemas(
|
|
52
|
+
return this.$sdk.createApiSchemas(
|
|
53
|
+
ApiApiHomeUserPassportcreatePassportJwtFromOauthCodePath,
|
|
54
|
+
'post',
|
|
55
|
+
options,
|
|
56
|
+
);
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
createTempAuthToken(options?: IApiSchemaOptions) {
|
|
56
|
-
return this.$sdk.createApiSchemas(
|
|
60
|
+
return this.$sdk.createApiSchemas(
|
|
61
|
+
ApiApiHomeUserPassportcreateTempAuthTokenPath,
|
|
62
|
+
'post',
|
|
63
|
+
options,
|
|
64
|
+
);
|
|
57
65
|
}
|
|
58
66
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { TypeLocaleBase } from 'zova';
|
|
2
|
+
|
|
2
3
|
import { useApp, useComputed } from 'zova';
|
|
4
|
+
|
|
3
5
|
import locale_en_us from '../config/locale/en-us.js';
|
|
4
6
|
import locale_zh_cn from '../config/locale/zh-cn.js';
|
|
5
7
|
|
|
@@ -8,7 +10,10 @@ export const locales = {
|
|
|
8
10
|
'zh-cn': locale_zh_cn,
|
|
9
11
|
};
|
|
10
12
|
|
|
11
|
-
export function $useLocale<K extends keyof (typeof locales)[TypeLocaleBase]>(
|
|
13
|
+
export function $useLocale<K extends keyof (typeof locales)[TypeLocaleBase]>(
|
|
14
|
+
key: K,
|
|
15
|
+
...args: any[]
|
|
16
|
+
) {
|
|
12
17
|
const app = useApp();
|
|
13
18
|
const str = `home-base::${key}`;
|
|
14
19
|
return useComputed(() => {
|
|
@@ -26,7 +26,13 @@ export class ControllerItemLink extends BeanControllerBase {
|
|
|
26
26
|
},
|
|
27
27
|
};
|
|
28
28
|
return (
|
|
29
|
-
<VListItem
|
|
29
|
+
<VListItem
|
|
30
|
+
tag="a"
|
|
31
|
+
href={this.$props.href}
|
|
32
|
+
to={this.$props.to}
|
|
33
|
+
subtitle={this.$props.description}
|
|
34
|
+
v-slots={slots}
|
|
35
|
+
>
|
|
30
36
|
<VListItemTitle>{this.$props.title}</VListItemTitle>
|
|
31
37
|
</VListItem>
|
|
32
38
|
);
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
BeanBase,
|
|
3
|
+
BeanContainer,
|
|
4
|
+
IMonkeyAppClose,
|
|
5
|
+
IMonkeyAppInitialize,
|
|
6
|
+
IMonkeyBeanInit,
|
|
7
|
+
} from 'zova';
|
|
2
8
|
|
|
3
9
|
import { BeanSimple } from 'zova';
|
|
4
10
|
|
|
@@ -6,7 +12,10 @@ import { definePropertyScopeBase } from './lib/utils.js';
|
|
|
6
12
|
import { ServiceRouterGuards } from './service/routerGuards.js';
|
|
7
13
|
import { ServiceSsr } from './service/ssr.js';
|
|
8
14
|
|
|
9
|
-
export class Monkey
|
|
15
|
+
export class Monkey
|
|
16
|
+
extends BeanSimple
|
|
17
|
+
implements IMonkeyAppInitialize, IMonkeyAppClose, IMonkeyBeanInit
|
|
18
|
+
{
|
|
10
19
|
serviceRouterGuards: ServiceRouterGuards;
|
|
11
20
|
serviceSsr: ServiceSsr;
|
|
12
21
|
|
|
@@ -14,7 +14,11 @@ export class ServiceRouterGuards extends BeanRouterGuardsBase {
|
|
|
14
14
|
|
|
15
15
|
protected onRouterGuards(router: BeanRouter) {
|
|
16
16
|
router.beforeEach(async to => {
|
|
17
|
-
if (
|
|
17
|
+
if (
|
|
18
|
+
!this.sys.config.ssr.ignoreCookieOnServer &&
|
|
19
|
+
to.meta.requiresAuth !== false &&
|
|
20
|
+
!this.$passport.isAuthenticated
|
|
21
|
+
) {
|
|
18
22
|
const [_res, err] = await catchError(() => {
|
|
19
23
|
return this.$passport.ensurePassport();
|
|
20
24
|
});
|