zova-ui-empty 5.1.79 → 5.1.81
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/package.json +21 -21
- package/package.original.json +16 -16
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/component/card.ts +9 -1
- package/src/suite/a-demo/modules/demo-basic/src/.metadata/page/component.ts +5 -1
- package/src/suite/a-demo/modules/demo-basic/src/routes.ts +2 -2
- package/src/suite/a-home/modules/home-api/mock/menu.fake.ts +11 -11
- package/src/suite/a-home/modules/home-base/src/.metadata/component/page.ts +9 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/page/authCallback.ts +5 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/page/errorExpired.ts +5 -1
- package/src/suite/a-home/modules/home-base/src/.metadata/page/errorNotFound.ts +5 -1
- package/src/suite/a-home/modules/home-index/src/routes.ts +1 -1
- package/src/suite/a-home/modules/home-layout/src/.metadata/component/itemLink.ts +9 -1
- package/src/suite/a-home/modules/home-layout/src/.metadata/component/layoutEmpty.ts +9 -1
- package/src/suite/a-home/modules/home-layout/src/.metadata/component/layoutTabs.ts +9 -1
- package/src/suite/a-home/modules/home-passport/src/model/passport.ts +10 -3
- package/src/suite/a-demo/modules/demo-basic/rest/component/card.ts +0 -7
- package/src/suite/a-demo/modules/demo-basic/rest/components.ts +0 -1
- package/src/suite/a-demo/modules/demo-basic/rest/index.ts +0 -2
- package/src/suite/a-demo/modules/demo-basic/rest/pages.ts +0 -1
- package/src/suite/a-home/modules/home-base/rest/component/page.ts +0 -7
- package/src/suite/a-home/modules/home-base/rest/components.ts +0 -1
- package/src/suite/a-home/modules/home-base/rest/index.ts +0 -2
- package/src/suite/a-home/modules/home-base/rest/pages.ts +0 -1
- package/src/suite/a-home/modules/home-icon/rest/icons.ts +0 -1
- package/src/suite/a-home/modules/home-icon/rest/index.ts +0 -1
- package/src/suite/a-home/modules/home-index/rest/index.ts +0 -1
- package/src/suite/a-home/modules/home-index/rest/pages.ts +0 -1
- package/src/suite/a-home/modules/home-layout/rest/component/itemLink.ts +0 -7
- package/src/suite/a-home/modules/home-layout/rest/component/layoutEmpty.ts +0 -7
- package/src/suite/a-home/modules/home-layout/rest/component/layoutTabs.ts +0 -7
- package/src/suite/a-home/modules/home-layout/rest/components.ts +0 -3
- package/src/suite/a-home/modules/home-layout/rest/index.ts +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-ui-empty",
|
|
3
|
-
"version": "5.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "5.1.81",
|
|
4
|
+
"gitHead": "8edb6021cb1a8999e38b3809ef607fdeaf56d5f2",
|
|
5
5
|
"description": "A vue3 empty framework with ioc",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ioc",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@cabloy/compose": "^2.1.4",
|
|
48
48
|
"@cabloy/deps": "^1.1.4",
|
|
49
|
-
"@cabloy/json5": "^1.1.
|
|
49
|
+
"@cabloy/json5": "^1.1.6",
|
|
50
50
|
"@cabloy/logger": "^1.1.10",
|
|
51
51
|
"@cabloy/module-info": "^2.0.0",
|
|
52
52
|
"@cabloy/utils": "^2.1.16",
|
|
@@ -68,23 +68,23 @@
|
|
|
68
68
|
"luxon": "^3.7.2",
|
|
69
69
|
"mutate-on-copy": "^1.1.8",
|
|
70
70
|
"openapi3-ts": "^4.5.0",
|
|
71
|
-
"quasar": "^2.
|
|
71
|
+
"quasar": "^2.19.3",
|
|
72
72
|
"table-identity": "^1.1.4",
|
|
73
73
|
"typestyle": "^2.4.0",
|
|
74
|
-
"vue": "^3.5.
|
|
75
|
-
"vue-router": "
|
|
74
|
+
"vue": "^3.5.34",
|
|
75
|
+
"vue-router": "npm:@cabloy/vue-router@^4.4.16",
|
|
76
76
|
"zod": "^4.3.6",
|
|
77
|
-
"zova": "^5.1.
|
|
78
|
-
"zova-jsx": "^1.1.
|
|
77
|
+
"zova": "^5.1.62",
|
|
78
|
+
"zova-jsx": "^1.1.37",
|
|
79
79
|
"zova-module-a-api": "^5.1.10",
|
|
80
80
|
"zova-module-a-app": "^5.1.12",
|
|
81
81
|
"zova-module-a-bean": "^5.1.17",
|
|
82
82
|
"zova-module-a-behavior": "^5.1.13",
|
|
83
83
|
"zova-module-a-behaviors": "^5.1.10",
|
|
84
84
|
"zova-module-a-boundary": "^5.1.10",
|
|
85
|
-
"zova-module-a-command": "^5.1.
|
|
85
|
+
"zova-module-a-command": "^5.1.20",
|
|
86
86
|
"zova-module-a-fetch": "^5.1.10",
|
|
87
|
-
"zova-module-a-form": "^5.1.
|
|
87
|
+
"zova-module-a-form": "^5.1.21",
|
|
88
88
|
"zova-module-a-icon": "^5.1.14",
|
|
89
89
|
"zova-module-a-interceptor": "^5.1.16",
|
|
90
90
|
"zova-module-a-logger": "^5.1.11",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"zova-module-a-style": "^5.1.19",
|
|
101
101
|
"zova-module-a-table": "^5.1.19",
|
|
102
102
|
"zova-module-a-zod": "^5.1.13",
|
|
103
|
-
"zova-module-a-zova": "^5.1.
|
|
103
|
+
"zova-module-a-zova": "^5.1.41",
|
|
104
104
|
"zova-module-demo-basic": "workspace:^",
|
|
105
105
|
"zova-module-home-api": "workspace:^",
|
|
106
106
|
"zova-module-home-base": "workspace:^",
|
|
@@ -112,23 +112,23 @@
|
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@cabloy/cli": "^3.1.9",
|
|
115
|
-
"@cabloy/lint": "^5.1.
|
|
115
|
+
"@cabloy/lint": "^5.1.9",
|
|
116
116
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
117
|
-
"@quasar/app-vite": "2.
|
|
117
|
+
"@quasar/app-vite": "npm:@cabloy/quasar-app-vite@^2.5.9",
|
|
118
118
|
"@types/luxon": "^3.7.1",
|
|
119
|
-
"@types/node": "^22.
|
|
119
|
+
"@types/node": "^22.19.19",
|
|
120
120
|
"concurrently": "^8.2.2",
|
|
121
121
|
"fs-extra": "^11.3.4",
|
|
122
122
|
"oxfmt": "^0.45.0",
|
|
123
|
-
"oxlint": "^1.
|
|
124
|
-
"quasar-app-extension-zova": "^1.2.
|
|
125
|
-
"sass": "^1.
|
|
123
|
+
"oxlint": "^1.64.0",
|
|
124
|
+
"quasar-app-extension-zova": "^1.2.25",
|
|
125
|
+
"sass": "^1.99.0",
|
|
126
126
|
"typescript": "^5.9.3",
|
|
127
|
-
"vite": "^7.3.
|
|
127
|
+
"vite": "^7.3.3",
|
|
128
128
|
"vite-plugin-fake-server-turbo": "^3.0.18",
|
|
129
|
-
"vue-tsc": "^3.2.
|
|
129
|
+
"vue-tsc": "^3.2.8",
|
|
130
130
|
"zova-openapi": "^1.1.9",
|
|
131
|
-
"zova-vite": "^1.1.
|
|
131
|
+
"zova-vite": "^1.1.24"
|
|
132
132
|
},
|
|
133
133
|
"packageManager": "pnpm@10.19.0",
|
|
134
134
|
"pnpm": {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@quasar/app-vite": "npm:@cabloy/quasar-app-vite@^2.5.9",
|
|
137
137
|
"@vue/babel-plugin-jsx": "npm:@cabloy/vue-babel-plugin-jsx@^2.0.1",
|
|
138
138
|
"@vue/compiler-sfc": "npm:@cabloy/vue-compiler-sfc@^3.5.14",
|
|
139
|
-
"@vue/runtime-core": "npm:@cabloy/vue-runtime-core@^3.5.
|
|
139
|
+
"@vue/runtime-core": "npm:@cabloy/vue-runtime-core@^3.5.52",
|
|
140
140
|
"@vue/runtime-dom": "npm:@cabloy/vue-runtime-dom@^3.5.13",
|
|
141
141
|
"@vue/reactivity": "npm:@cabloy/vue-reactivity@^3.5.16",
|
|
142
142
|
"@vue/server-renderer": "npm:@cabloy/vue-server-renderer@^3.5.18",
|
package/package.original.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-ui-empty",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.80",
|
|
4
4
|
"packageManager": "pnpm@10.19.0",
|
|
5
5
|
"description": "A vue3 empty framework with ioc",
|
|
6
6
|
"publishConfig": {
|
|
@@ -43,35 +43,35 @@
|
|
|
43
43
|
"connect": "^3.7.0",
|
|
44
44
|
"cors": "^2.8.6",
|
|
45
45
|
"express": "^5.2.1",
|
|
46
|
-
"quasar": "^2.
|
|
47
|
-
"vue": "^3.5.
|
|
48
|
-
"vue-router": "
|
|
49
|
-
"zova": "^5.1.
|
|
46
|
+
"quasar": "^2.19.3",
|
|
47
|
+
"vue": "^3.5.34",
|
|
48
|
+
"vue-router": "npm:@cabloy/vue-router@^4.4.16",
|
|
49
|
+
"zova": "^5.1.61"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@cabloy/lint": "^5.1.
|
|
52
|
+
"@cabloy/lint": "^5.1.9",
|
|
53
53
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
54
|
-
"@quasar/app-vite": "2.
|
|
55
|
-
"@types/node": "^22.
|
|
54
|
+
"@quasar/app-vite": "npm:@cabloy/quasar-app-vite@^2.5.9",
|
|
55
|
+
"@types/node": "^22.19.19",
|
|
56
56
|
"concurrently": "^8.2.2",
|
|
57
57
|
"oxfmt": "^0.45.0",
|
|
58
|
-
"oxlint": "^1.
|
|
59
|
-
"quasar-app-extension-zova": "^1.2.
|
|
60
|
-
"sass": "^1.
|
|
58
|
+
"oxlint": "^1.64.0",
|
|
59
|
+
"quasar-app-extension-zova": "^1.2.25",
|
|
60
|
+
"sass": "^1.99.0",
|
|
61
61
|
"typescript": "^5.9.3",
|
|
62
|
-
"vite": "^7.3.
|
|
62
|
+
"vite": "^7.3.3",
|
|
63
63
|
"vite-plugin-fake-server-turbo": "^3.0.18",
|
|
64
|
-
"vue-tsc": "^3.2.
|
|
65
|
-
"zova-vite": "^1.1.
|
|
64
|
+
"vue-tsc": "^3.2.8",
|
|
65
|
+
"zova-vite": "^1.1.24"
|
|
66
66
|
},
|
|
67
67
|
"license": "MIT",
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "1c1c99cd879a2f00f32fb4b369a16ae90b9405da",
|
|
69
69
|
"pnpm": {
|
|
70
70
|
"overrides": {
|
|
71
71
|
"@quasar/app-vite": "npm:@cabloy/quasar-app-vite@^2.5.9",
|
|
72
72
|
"@vue/babel-plugin-jsx": "npm:@cabloy/vue-babel-plugin-jsx@^2.0.1",
|
|
73
73
|
"@vue/compiler-sfc": "npm:@cabloy/vue-compiler-sfc@^3.5.14",
|
|
74
|
-
"@vue/runtime-core": "npm:@cabloy/vue-runtime-core@^3.5.
|
|
74
|
+
"@vue/runtime-core": "npm:@cabloy/vue-runtime-core@^3.5.52",
|
|
75
75
|
"@vue/runtime-dom": "npm:@cabloy/vue-runtime-dom@^3.5.13",
|
|
76
76
|
"@vue/reactivity": "npm:@cabloy/vue-reactivity@^3.5.16",
|
|
77
77
|
"@vue/server-renderer": "npm:@cabloy/vue-server-renderer@^3.5.18",
|
|
@@ -10,7 +10,10 @@ export type TypeControllerCardPublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerCard) => void;
|
|
11
11
|
} & ControllerCardProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerCardProps,
|
|
15
|
+
keyof typeof ControllerCard.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-demo-basic' {
|
|
15
18
|
export interface ControllerCard {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZCard = defineComponent((_props: TypeControllerCardPublicProps) =>
|
|
|
21
24
|
useController(ControllerCard, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'demo-basic:card': ControllerCardProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -2,4 +2,8 @@ import { createZovaComponentPage } from 'zova';
|
|
|
2
2
|
|
|
3
3
|
import { ControllerPageComponent } from '../../page/component/controller.jsx';
|
|
4
4
|
|
|
5
|
-
export const ZPageComponent = createZovaComponentPage(
|
|
5
|
+
export const ZPageComponent = createZovaComponentPage(
|
|
6
|
+
ControllerPageComponent,
|
|
7
|
+
undefined,
|
|
8
|
+
undefined,
|
|
9
|
+
);
|
|
@@ -4,6 +4,6 @@ import { ZPageComponent } from './.metadata/page/component.js';
|
|
|
4
4
|
import { ZPageState } from './.metadata/page/state.js';
|
|
5
5
|
|
|
6
6
|
export const routes: IModuleRoute[] = [
|
|
7
|
-
{ path: 'state', component: ZPageState },
|
|
8
|
-
{ path: 'component', component: ZPageComponent },
|
|
7
|
+
{ path: 'state', component: ZPageState, meta: { requiresAuth: false } },
|
|
8
|
+
{ path: 'component', component: ZPageComponent, meta: { requiresAuth: false } },
|
|
9
9
|
];
|
|
@@ -12,11 +12,11 @@ export default defineFakeRoute([
|
|
|
12
12
|
{
|
|
13
13
|
url: '/home/base/menu/{:publicPath}',
|
|
14
14
|
method: 'get',
|
|
15
|
-
response:
|
|
16
|
-
const name = getNameFromAuthorizationHeader(req);
|
|
17
|
-
if (!name) {
|
|
18
|
-
|
|
19
|
-
}
|
|
15
|
+
response: _req => {
|
|
16
|
+
// const name = getNameFromAuthorizationHeader(req);
|
|
17
|
+
// if (!name) {
|
|
18
|
+
// return { code: 401, message: 'Error menu/select' };
|
|
19
|
+
// }
|
|
20
20
|
return {
|
|
21
21
|
code: 0,
|
|
22
22
|
message: 'Success',
|
|
@@ -26,9 +26,9 @@ export default defineFakeRoute([
|
|
|
26
26
|
},
|
|
27
27
|
]);
|
|
28
28
|
|
|
29
|
-
function getNameFromAuthorizationHeader(req: any): string | undefined {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
29
|
+
// function getNameFromAuthorizationHeader(req: any): string | undefined {
|
|
30
|
+
// if (!req.headers.authorization) return undefined;
|
|
31
|
+
// const token = req.headers.authorization.split(' ')[1];
|
|
32
|
+
// if (!token) return undefined;
|
|
33
|
+
// return token.substring('accessToken-'.length);
|
|
34
|
+
// }
|
|
@@ -10,7 +10,10 @@ export type TypeControllerPagePublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerPage) => void;
|
|
11
11
|
} & ControllerPageProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerPageProps,
|
|
15
|
+
keyof typeof ControllerPage.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-home-base' {
|
|
15
18
|
export interface ControllerPage {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZPage = defineComponent((_props: TypeControllerPagePublicProps) =>
|
|
|
21
24
|
useController(ControllerPage, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'home-base:page': ControllerPageProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -9,4 +9,8 @@ export namespace NSControllerPageAuthCallback {
|
|
|
9
9
|
export type QueryOutput = z.output<typeof ControllerPageAuthCallbackSchemaQuery>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export const ZPageAuthCallback = createZovaComponentPage(
|
|
12
|
+
export const ZPageAuthCallback = createZovaComponentPage(
|
|
13
|
+
ControllerPageAuthCallback,
|
|
14
|
+
undefined,
|
|
15
|
+
undefined,
|
|
16
|
+
);
|
|
@@ -9,4 +9,8 @@ export namespace NSControllerPageErrorExpired {
|
|
|
9
9
|
export type QueryOutput = z.output<typeof ControllerPageErrorExpiredSchemaQuery>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export const ZPageErrorExpired = createZovaComponentPage(
|
|
12
|
+
export const ZPageErrorExpired = createZovaComponentPage(
|
|
13
|
+
ControllerPageErrorExpired,
|
|
14
|
+
undefined,
|
|
15
|
+
undefined,
|
|
16
|
+
);
|
|
@@ -2,4 +2,8 @@ import { createZovaComponentPage } from 'zova';
|
|
|
2
2
|
|
|
3
3
|
import { ControllerPageErrorNotFound } from '../../page/errorNotFound/controller.jsx';
|
|
4
4
|
|
|
5
|
-
export const ZPageErrorNotFound = createZovaComponentPage(
|
|
5
|
+
export const ZPageErrorNotFound = createZovaComponentPage(
|
|
6
|
+
ControllerPageErrorNotFound,
|
|
7
|
+
undefined,
|
|
8
|
+
undefined,
|
|
9
|
+
);
|
|
@@ -10,7 +10,10 @@ export type TypeControllerItemLinkPublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerItemLink) => void;
|
|
11
11
|
} & ControllerItemLinkProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerItemLinkProps,
|
|
15
|
+
keyof typeof ControllerItemLink.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-home-layout' {
|
|
15
18
|
export interface ControllerItemLink {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZItemLink = defineComponent((_props: TypeControllerItemLinkPublicPr
|
|
|
21
24
|
useController(ControllerItemLink, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'home-layout:itemLink': ControllerItemLinkProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -10,7 +10,10 @@ export type TypeControllerLayoutEmptyPublicProps = {
|
|
|
10
10
|
controllerRef?: (ref: ControllerLayoutEmpty) => void;
|
|
11
11
|
} & ControllerLayoutEmptyProps;
|
|
12
12
|
|
|
13
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
13
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
14
|
+
ControllerLayoutEmptyProps,
|
|
15
|
+
keyof typeof ControllerLayoutEmpty.$propsDefault
|
|
16
|
+
>;
|
|
14
17
|
declare module 'zova-module-home-layout' {
|
|
15
18
|
export interface ControllerLayoutEmpty {
|
|
16
19
|
$props: ControllerInnerProps;
|
|
@@ -21,3 +24,8 @@ export const ZLayoutEmpty = defineComponent((_props: TypeControllerLayoutEmptyPu
|
|
|
21
24
|
useController(ControllerLayoutEmpty, undefined, undefined);
|
|
22
25
|
return () => {};
|
|
23
26
|
}, prepareComponentOptions());
|
|
27
|
+
declare module 'zova-module-a-bean' {
|
|
28
|
+
export interface IVonaComponentRecord {
|
|
29
|
+
'home-layout:layoutEmpty': ControllerLayoutEmptyProps;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -12,7 +12,10 @@ export type TypeControllerLayoutTabsPublicProps = {
|
|
|
12
12
|
controllerRef?: (ref: ControllerLayoutTabs) => void;
|
|
13
13
|
} & ControllerLayoutTabsProps;
|
|
14
14
|
|
|
15
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
15
|
+
type ControllerInnerProps = TypeControllerInnerProps<
|
|
16
|
+
ControllerLayoutTabsProps,
|
|
17
|
+
keyof typeof ControllerLayoutTabs.$propsDefault
|
|
18
|
+
>;
|
|
16
19
|
declare module 'zova-module-home-layout' {
|
|
17
20
|
export interface ControllerLayoutTabs {
|
|
18
21
|
$props: ControllerInnerProps;
|
|
@@ -28,3 +31,8 @@ export const ZLayoutTabs = defineComponent((_props: TypeControllerLayoutTabsPubl
|
|
|
28
31
|
useController(ControllerLayoutTabs, RenderLayoutTabs, StyleLayoutTabs);
|
|
29
32
|
return () => {};
|
|
30
33
|
}, prepareComponentOptions());
|
|
34
|
+
declare module 'zova-module-a-bean' {
|
|
35
|
+
export interface IVonaComponentRecord {
|
|
36
|
+
'home-layout:layoutTabs': ControllerLayoutTabsProps;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
import { combineQueries, isNil } from '@cabloy/utils';
|
|
11
11
|
import { SchemaObject } from 'openapi3-ts/oas31';
|
|
12
12
|
import { BeanModelBase, Model } from 'zova-module-a-model';
|
|
13
|
-
import {
|
|
13
|
+
import { IPermissionHint, IResourceFormActionRowNameRecord, IResourceTableActionNameRecord, TypeOpenapiPermissions } from 'zova-module-a-openapi';
|
|
14
14
|
import { ApiApiHomeUserPassportloginOauthPath, OpenApiBaseURL } from 'zova-module-home-api';
|
|
15
15
|
|
|
16
16
|
export interface IModelOptionsPassport extends IDecoratorModelOptions {}
|
|
@@ -183,7 +183,14 @@ export class ModelPassport extends BeanModelBase {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
public checkPermission(
|
|
186
|
+
public checkPermission(
|
|
187
|
+
permissions: TypeOpenapiPermissions | undefined,
|
|
188
|
+
actionName?: keyof (IResourceTableActionNameRecord & IResourceFormActionRowNameRecord),
|
|
189
|
+
permissionHint?: IPermissionHint,
|
|
190
|
+
): boolean {
|
|
191
|
+
if (permissionHint?.public) return true;
|
|
192
|
+
const permissionAction = permissionHint?.action ?? actionName;
|
|
193
|
+
if (!permissionAction) return true;
|
|
187
194
|
if (isNil(permissions)) return false;
|
|
188
195
|
if (permissions === false) return false;
|
|
189
196
|
if (permissions === true) return true;
|
|
@@ -192,7 +199,7 @@ export class ModelPassport extends BeanModelBase {
|
|
|
192
199
|
// roleNames
|
|
193
200
|
if (permissions.roleNames && permissions.roleNames.some(roleName => this.roles?.some(role => role.name === roleName))) return true;
|
|
194
201
|
// actions
|
|
195
|
-
if (permissions.actions && !!permissions.actions[
|
|
202
|
+
if (permissions.actions && !!permissions.actions[permissionAction]) return true;
|
|
196
203
|
// others
|
|
197
204
|
return false;
|
|
198
205
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerCardProps } from 'zova-module-demo-basic';
|
|
3
|
-
|
|
4
|
-
type TypeControllerCardPublicProps = TypeRenderComponentJsxPropsPublic & ControllerCardProps;
|
|
5
|
-
export function BBZDemoBasicCard(_props: TypeControllerCardPublicProps) {
|
|
6
|
-
return 'demo-basic:card';
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './component/card.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-demo-basic';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerPageProps } from 'zova-module-home-base';
|
|
3
|
-
|
|
4
|
-
type TypeControllerPagePublicProps = TypeRenderComponentJsxPropsPublic & ControllerPageProps;
|
|
5
|
-
export function BBZHomeBasePage(_props: TypeControllerPagePublicProps) {
|
|
6
|
-
return 'home-base:page';
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './component/page.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-home-base';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-home-icon';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './icons.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pages.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'zova-module-home-index';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerItemLinkProps } from 'zova-module-home-layout';
|
|
3
|
-
|
|
4
|
-
type TypeControllerItemLinkPublicProps = TypeRenderComponentJsxPropsPublic & ControllerItemLinkProps;
|
|
5
|
-
export function BBZHomeLayoutItemLink(_props: TypeControllerItemLinkPublicProps) {
|
|
6
|
-
return 'home-layout:itemLink';
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerLayoutEmptyProps } from 'zova-module-home-layout';
|
|
3
|
-
|
|
4
|
-
type TypeControllerLayoutEmptyPublicProps = TypeRenderComponentJsxPropsPublic & ControllerLayoutEmptyProps;
|
|
5
|
-
export function BBZHomeLayoutEmpty(_props: TypeControllerLayoutEmptyPublicProps) {
|
|
6
|
-
return 'home-layout:layoutEmpty';
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeRenderComponentJsxPropsPublic } from 'zova-jsx';
|
|
2
|
-
import type { ControllerLayoutTabsProps } from 'zova-module-home-layout';
|
|
3
|
-
|
|
4
|
-
type TypeControllerLayoutTabsPublicProps = TypeRenderComponentJsxPropsPublic & ControllerLayoutTabsProps;
|
|
5
|
-
export function BBZHomeLayoutTabs(_props: TypeControllerLayoutTabsPublicProps) {
|
|
6
|
-
return 'home-layout:layoutTabs';
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components.js';
|