cabloy 5.1.40 → 5.1.42
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/CHANGELOG.md +32 -0
- package/package.json +4 -1
- package/scripts/init.ts +16 -14
- package/scripts/upgrade.ts +12 -13
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/pnpm-lock.yaml +82 -338
- package/vona/src/suite/cabloy-basic/modules/basic-siteadmin/src/bean/ssrSite.admin.ts +2 -2
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/package.json +53 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/.metadata/index.ts +87 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/.metadata/locales.ts +18 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/.metadata/this.ts +2 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/bean/ssrMenu.home.ts +26 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/bean/ssrSite.web.ts +26 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/config/locale/en-us.ts +3 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/config/locale/zh-cn.ts +3 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/src/index.ts +2 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/tsconfig.build.json +11 -0
- package/vona/src/suite/cabloy-basic/modules/basic-siteweb/tsconfig.json +7 -0
- package/vona/src/suite/cabloy-basic/package.json +1 -0
- package/vona/src/suite/cabloy-basic/tsconfig.json +3 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssr/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssr/src/types/ssrMenu.ts +0 -13
- package/vona/src/suite-vendor/a-cabloy/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-menu/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-menu/src/types/menu.ts +12 -2
- package/vona/src/suite-vendor/a-vona/package.json +1 -1
- package/zova/env/.env +1 -1
- package/zova/env/.env.cabloyBasicWeb +1 -1
- package/zova/package.original.json +6 -1
- package/zova/pnpm-lock.yaml +42 -12
- package/zova/src/front/config/config/config.cabloyBasicAdmin.ts +14 -0
- package/zova/src/front/config/config/config.cabloyBasicWeb.ts +17 -0
- package/zova/src/front/config/config/config.ts +3 -3
- package/zova/src/suite/a-demo/modules/demo-basic/package.json +1 -14
- package/zova/src/suite/a-demo/modules/demo-basic/src/.metadata/index.ts +0 -50
- package/zova/src/suite/a-home/modules/home-base/src/.metadata/index.ts +17 -2
- package/zova/src/suite/a-home/modules/home-base/src/config/locale/en-us.ts +2 -0
- package/zova/src/suite/a-home/modules/home-base/src/config/locale/zh-cn.ts +2 -0
- package/zova/src/suite/a-home/modules/home-base/src/lib/utils.ts +13 -1
- package/zova/src/suite/a-home/modules/home-base/src/service/locale.ts +11 -0
- package/zova/src/suite/a-home/modules/home-base/src/service/routerGuards.ts +13 -0
- package/zova/src/suite/a-home/modules/{home-index → home-indexadmin}/package.json +1 -1
- package/zova/src/suite/a-home/modules/home-indexadmin/src/.metadata/index.ts +75 -0
- package/zova/src/suite/a-home/modules/home-indexadmin/src/.metadata/page/dashboard.ts +9 -0
- package/zova/src/suite/a-home/modules/home-indexadmin/src/.metadata/this.ts +2 -0
- package/zova/src/suite/a-home/modules/home-indexadmin/src/page/dashboard/controller.tsx +23 -0
- package/zova/src/suite/a-home/modules/home-indexadmin/src/routes.ts +8 -0
- package/zova/src/suite/a-home/modules/home-indexweb/package.json +52 -0
- package/zova/src/suite/a-home/modules/{home-index → home-indexweb}/src/.metadata/index.ts +9 -9
- package/zova/src/suite/a-home/modules/home-indexweb/src/.metadata/this.ts +2 -0
- package/zova/src/suite/a-home/modules/home-indexweb/src/index.ts +1 -0
- package/zova/src/suite/a-home/modules/{home-index → home-indexweb}/src/page/home/controller.tsx +2 -0
- package/zova/src/suite/a-home/modules/home-indexweb/src/routes.ts +15 -0
- package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/package.json +2 -2
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/.metadata/component/layoutAdmin.ts +44 -0
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/.metadata/index.ts +249 -0
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/.metadata/locales.ts +22 -0
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/.metadata/this.ts +2 -0
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/controller.tsx +6 -3
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/component/layoutAdmin/render.content.tsx +14 -0
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.header.tsx +2 -2
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.locale.tsx +10 -19
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.sidebar.tsx +2 -2
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.tabs.tsx +33 -29
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.theme.tsx +19 -12
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.tsx +1 -1
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.user.tsx +3 -1
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/style.ts +1 -1
- package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/config/locale/en-us.ts +1 -0
- package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/config/locale/zh-cn.ts +1 -0
- package/zova/src/suite/a-home/modules/home-layoutadmin/tsconfig.build.json +13 -0
- package/zova/src/suite/a-home/modules/home-layoutadmin/tsconfig.json +5 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/package.json +52 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/.metadata/component/layoutWeb.ts +39 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/.metadata/index.ts +200 -0
- package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutweb}/src/.metadata/locales.ts +1 -1
- package/zova/src/suite/a-home/modules/home-layoutweb/src/.metadata/this.ts +2 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/controller.tsx +112 -0
- package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutweb/src/component/layoutWeb}/render.content.tsx +2 -2
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.header.tsx +39 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.locale.tsx +50 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.tabs.tsx +95 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.theme.tsx +98 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.tsx +39 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/config/config.ts +20 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/config/locale/en-us.ts +10 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/config/locale/zh-cn.ts +10 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/index.ts +2 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/model/layout.ts +27 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/src/model/menu.ts +115 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/tsconfig.build.json +13 -0
- package/zova/src/suite/a-home/modules/home-layoutweb/tsconfig.json +5 -0
- package/zova/src/suite/a-home/modules/home-passport/src/model/passport.ts +1 -1
- package/zova/src/suite/a-home/package.json +4 -2
- package/zova/src/suite/a-demo/modules/demo-basic/src/bean/aop.home.tsx +0 -23
- package/zova/src/suite/a-demo/modules/demo-basic/src/bean/aop.home3.tsx +0 -14
- package/zova/src/suite/a-home/modules/home-index/src/.metadata/this.ts +0 -2
- package/zova/src/suite/a-home/modules/home-index/src/routes.ts +0 -8
- package/zova/src/suite/a-home/modules/home-layouttabs/src/.metadata/component/layoutTabs.ts +0 -44
- package/zova/src/suite/a-home/modules/home-layouttabs/src/.metadata/index.ts +0 -249
- package/zova/src/suite/a-home/modules/home-layouttabs/src/.metadata/this.ts +0 -2
- /package/zova/src/suite/a-home/modules/{home-index → home-indexadmin}/src/index.ts +0 -0
- /package/zova/src/suite/a-home/modules/{home-index → home-indexadmin}/tsconfig.build.json +0 -0
- /package/zova/src/suite/a-home/modules/{home-index → home-indexadmin}/tsconfig.json +0 -0
- /package/zova/src/suite/a-home/modules/{home-index → home-indexweb}/src/.metadata/page/home.ts +0 -0
- /package/zova/src/suite/a-home/modules/{home-layouttabs → home-indexweb}/tsconfig.build.json +0 -0
- /package/zova/src/suite/a-home/modules/{home-layouttabs → home-indexweb}/tsconfig.json +0 -0
- /package/zova/src/suite/a-home/modules/{home-layouttabs/src/component/layoutTabs → home-layoutadmin/src/component/layoutAdmin}/render.menu.tsx +0 -0
- /package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/config/config.ts +0 -0
- /package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/index.ts +0 -0
- /package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/model/layout.ts +0 -0
- /package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/model/menu.ts +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { classes } from 'typestyle';
|
|
2
|
+
import { BeanRenderBase, Use } from 'zova';
|
|
3
|
+
import { Render } from 'zova-module-a-bean';
|
|
4
|
+
|
|
5
|
+
import { RenderContent } from './render.content.jsx';
|
|
6
|
+
import { RenderHeader } from './render.header.jsx';
|
|
7
|
+
import { RenderLocale } from './render.locale.jsx';
|
|
8
|
+
import { RenderTabs } from './render.tabs.jsx';
|
|
9
|
+
import { RenderTheme } from './render.theme.jsx';
|
|
10
|
+
|
|
11
|
+
@Render()
|
|
12
|
+
export class RenderLayoutWeb extends BeanRenderBase {
|
|
13
|
+
@Use()
|
|
14
|
+
$$renderTheme: RenderTheme;
|
|
15
|
+
|
|
16
|
+
@Use()
|
|
17
|
+
$$renderLocale: RenderLocale;
|
|
18
|
+
|
|
19
|
+
@Use()
|
|
20
|
+
$$renderTabs: RenderTabs;
|
|
21
|
+
|
|
22
|
+
@Use()
|
|
23
|
+
$$renderContent: RenderContent;
|
|
24
|
+
|
|
25
|
+
@Use()
|
|
26
|
+
$$renderHeader: RenderHeader;
|
|
27
|
+
|
|
28
|
+
public render() {
|
|
29
|
+
return (
|
|
30
|
+
<div class={classes('drawer', this.leftDrawerOpen ? 'drawer-open' : false)}>
|
|
31
|
+
<input id="my-drawer-2" type="checkbox" class="drawer-toggle" />
|
|
32
|
+
<div class="drawer-content">
|
|
33
|
+
{this.$$renderHeader.render()}
|
|
34
|
+
{this.$$renderContent.render()}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ZovaSys } from 'zova';
|
|
2
|
+
|
|
3
|
+
export const config = (_sys: ZovaSys) => {
|
|
4
|
+
return {
|
|
5
|
+
layout: {
|
|
6
|
+
sidebar: {
|
|
7
|
+
width: 360,
|
|
8
|
+
},
|
|
9
|
+
navbar: {
|
|
10
|
+
height: 64,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
tabs: {
|
|
14
|
+
scene: 'web',
|
|
15
|
+
max: 6,
|
|
16
|
+
maxItems: 6,
|
|
17
|
+
cache: false,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'zova-module-a-model';
|
|
2
|
+
|
|
3
|
+
import { UseScope } from 'zova';
|
|
4
|
+
import { BeanModelBase, Model } from 'zova-module-a-model';
|
|
5
|
+
import { ScopeModuleASsr } from 'zova-module-a-ssr';
|
|
6
|
+
|
|
7
|
+
export interface IModelOptionsLayout extends IDecoratorModelOptions {}
|
|
8
|
+
|
|
9
|
+
@Model<IModelOptionsLayout>()
|
|
10
|
+
export class ModelLayout extends BeanModelBase {
|
|
11
|
+
leftDrawerOpenPC: boolean;
|
|
12
|
+
|
|
13
|
+
@UseScope()
|
|
14
|
+
$$scopeSsr: ScopeModuleASsr;
|
|
15
|
+
|
|
16
|
+
protected async __init__() {
|
|
17
|
+
this.leftDrawerOpenPC =
|
|
18
|
+
process.env.SSR && !this.$$scopeSsr.config.optimization.bodyReadyObserver
|
|
19
|
+
? this.sys.config.layout.sidebar.leftOpenPC
|
|
20
|
+
: this.$useStateLocal({
|
|
21
|
+
queryKey: ['sidebarLeftOpenPC'],
|
|
22
|
+
meta: {
|
|
23
|
+
defaultData: this.sys.config.layout.sidebar.leftOpenPC,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'zova-module-a-model';
|
|
2
|
+
import type {
|
|
3
|
+
ApiSchemaAMenuDtoMenuGroup,
|
|
4
|
+
ApiSchemaAMenuDtoMenuItem,
|
|
5
|
+
ApiSchemaAMenuDtoMenus,
|
|
6
|
+
} from 'zova-module-home-api';
|
|
7
|
+
|
|
8
|
+
import { TypeEventOff } from 'zova';
|
|
9
|
+
import { BeanModelBase, Model } from 'zova-module-a-model';
|
|
10
|
+
|
|
11
|
+
export type TypeMenuGroup = ApiSchemaAMenuDtoMenuGroup & { folder: true; children: TypeMenuItem[] };
|
|
12
|
+
export type TypeMenuItem = (ApiSchemaAMenuDtoMenuItem & { folder: false }) | TypeMenuGroup;
|
|
13
|
+
export type TypeMenuTree = TypeMenuItem[];
|
|
14
|
+
|
|
15
|
+
export interface IModelOptionsMenu extends IDecoratorModelOptions {}
|
|
16
|
+
|
|
17
|
+
@Model<IModelOptionsMenu>()
|
|
18
|
+
export class ModelMenu extends BeanModelBase {
|
|
19
|
+
menuTree?: TypeMenuTree;
|
|
20
|
+
private _eventSsrHmrReload: TypeEventOff;
|
|
21
|
+
|
|
22
|
+
protected async __init__() {
|
|
23
|
+
this.menuTree = this.$computed(() => {
|
|
24
|
+
const queryMenus = this.retrieveMenus();
|
|
25
|
+
if (!queryMenus.data) return;
|
|
26
|
+
return this._prepareMenuTree(queryMenus.data);
|
|
27
|
+
});
|
|
28
|
+
// event
|
|
29
|
+
if (process.env.CLIENT && this.sys.config.ssr.hmr) {
|
|
30
|
+
this._eventSsrHmrReload = this.sys.meta.event.on('a-ssrhmr:reload', async (_data, next) => {
|
|
31
|
+
await this.$refetchQueries({ queryKey: ['retrieveMenus'] });
|
|
32
|
+
return next();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// locale
|
|
36
|
+
this.$watch(
|
|
37
|
+
() => {
|
|
38
|
+
return this.app.meta.locale.current;
|
|
39
|
+
},
|
|
40
|
+
async () => {
|
|
41
|
+
await this.$refetchQueries({ queryKey: ['retrieveMenus'] });
|
|
42
|
+
},
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
protected __dispose__() {
|
|
47
|
+
if (this._eventSsrHmrReload) {
|
|
48
|
+
this._eventSsrHmrReload();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
retrieveMenus() {
|
|
53
|
+
return this.$useStateData({
|
|
54
|
+
queryKey: ['retrieveMenus'],
|
|
55
|
+
queryFn: async () => {
|
|
56
|
+
const data = await this.$api.homeBaseMenu.retrieveMenus({
|
|
57
|
+
params: { publicPath: this.sys.env.APP_PUBLIC_PATH },
|
|
58
|
+
});
|
|
59
|
+
const menus = data.menus
|
|
60
|
+
?.map(item => {
|
|
61
|
+
if (item.link && !this.$router.isRouterName(item.link) && item.meta?.params) {
|
|
62
|
+
const link = this.sys.util.apiActionPathTranslate(item.link, item.meta?.params);
|
|
63
|
+
return { ...item, link };
|
|
64
|
+
}
|
|
65
|
+
return item;
|
|
66
|
+
})
|
|
67
|
+
?.filter(item => {
|
|
68
|
+
return !item.external || this.$router.checkPathValid(item.link);
|
|
69
|
+
});
|
|
70
|
+
return { ...data, menus };
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
findMenuItem(search: { name?: string; link?: string }): ApiSchemaAMenuDtoMenuItem | undefined {
|
|
76
|
+
const menus = this.retrieveMenus().data;
|
|
77
|
+
if (!menus || !menus.menus) return;
|
|
78
|
+
return menus.menus.find(
|
|
79
|
+
item => (item.name && search.name && item.name === search.name) || item.link === search.link,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
private _prepareMenuTree(menus: ApiSchemaAMenuDtoMenus, groupName?: string): TypeMenuTree {
|
|
84
|
+
let children: TypeMenuItem[] = [];
|
|
85
|
+
if (menus.menus) {
|
|
86
|
+
children = children.concat(
|
|
87
|
+
menus.menus
|
|
88
|
+
?.filter(
|
|
89
|
+
item =>
|
|
90
|
+
item.group === groupName ||
|
|
91
|
+
(Array.isArray(item.group) && item.group.includes(groupName!)),
|
|
92
|
+
)
|
|
93
|
+
.map(item => {
|
|
94
|
+
return { ...item, folder: false };
|
|
95
|
+
}),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
if (menus.groups) {
|
|
99
|
+
const groups = menus.groups
|
|
100
|
+
.filter(
|
|
101
|
+
item =>
|
|
102
|
+
item.group === groupName ||
|
|
103
|
+
(Array.isArray(item.group) && item.group.includes(groupName!)),
|
|
104
|
+
)
|
|
105
|
+
.map(menuGroup => {
|
|
106
|
+
return Object.assign({}, menuGroup, {
|
|
107
|
+
folder: true,
|
|
108
|
+
children: this._prepareMenuTree(menus, menuGroup.name),
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
children = children.concat(groups);
|
|
112
|
+
}
|
|
113
|
+
return children.sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "src",
|
|
5
|
+
"outDir": "dist",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"emitDeclarationOnly": true,
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"noEmit": false
|
|
11
|
+
},
|
|
12
|
+
"include": ["src", "src/.metadata/**/*"]
|
|
13
|
+
}
|
|
@@ -113,7 +113,7 @@ export class ModelPassport extends BeanModelBase {
|
|
|
113
113
|
this._setPassportJwt();
|
|
114
114
|
// page: login
|
|
115
115
|
await this.app.$gotoLogin();
|
|
116
|
-
// clear: should after goto login page, avoid home-
|
|
116
|
+
// clear: should after goto login page, avoid home-layoutadmin use some cache data
|
|
117
117
|
this.$clear(); // not await
|
|
118
118
|
},
|
|
119
119
|
});
|
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
"zova-module-home-api": "^5.0.5",
|
|
10
10
|
"zova-module-home-base": "^5.0.7",
|
|
11
11
|
"zova-module-home-icon": "^5.0.5",
|
|
12
|
-
"zova-module-home-
|
|
12
|
+
"zova-module-home-indexadmin": "^5.0.5",
|
|
13
|
+
"zova-module-home-indexweb": "^5.0.0",
|
|
14
|
+
"zova-module-home-layoutadmin": "^5.0.6",
|
|
13
15
|
"zova-module-home-layoutempty": "^5.0.6",
|
|
14
|
-
"zova-module-home-
|
|
16
|
+
"zova-module-home-layoutweb": "^5.0.0",
|
|
15
17
|
"zova-module-home-login": "^5.0.8",
|
|
16
18
|
"zova-module-home-passport": "^5.0.6",
|
|
17
19
|
"zova-module-home-theme": "^5.0.5"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ControllerPageHome } from 'zova-module-home-index';
|
|
2
|
-
|
|
3
|
-
import { BeanAopBase, polyfillDispose } from 'zova';
|
|
4
|
-
import { Aop, AopActionDispose, AopActionInit, AopActionRender } from 'zova-module-a-bean';
|
|
5
|
-
|
|
6
|
-
@Aop({ match: 'home-index.controller.pageHome' })
|
|
7
|
-
export class AopHome extends BeanAopBase {
|
|
8
|
-
protected __init__: AopActionInit<ControllerPageHome> = async (_args, next, receiver) => {
|
|
9
|
-
await next();
|
|
10
|
-
receiver.message += '!';
|
|
11
|
-
polyfillDispose(receiver);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
protected __dispose__: AopActionDispose<ControllerPageHome> = (_args, next, receiver) => {
|
|
15
|
-
receiver.message = receiver.message.substring(0, receiver.message.length - 1);
|
|
16
|
-
next();
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
protected render: AopActionRender<ControllerPageHome> = (_args, next, _receiver) => {
|
|
20
|
-
const result = next();
|
|
21
|
-
return <div class="aop-home">{result}</div>;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BeanAopBase } from 'zova';
|
|
2
|
-
import { Aop, AopActionRender } from 'zova-module-a-bean';
|
|
3
|
-
import { ControllerPageHome } from 'zova-module-home-index';
|
|
4
|
-
|
|
5
|
-
@Aop({
|
|
6
|
-
match: /home-index\.controller\.pageHome/,
|
|
7
|
-
dependencies: 'demo-basic:home',
|
|
8
|
-
})
|
|
9
|
-
export class AopHome3 extends BeanAopBase {
|
|
10
|
-
protected render: AopActionRender<ControllerPageHome> = (_args, next, _receiver) => {
|
|
11
|
-
const result = next();
|
|
12
|
-
return <div class="aop-home-3">{result}</div>;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { TypeControllerInnerProps } from 'zova';
|
|
2
|
-
|
|
3
|
-
import { defineComponent } from 'vue';
|
|
4
|
-
import { prepareComponentOptions, useController } from 'zova';
|
|
5
|
-
|
|
6
|
-
import type { ControllerLayoutTabsProps } from '../../component/layoutTabs/controller.jsx';
|
|
7
|
-
|
|
8
|
-
import { ControllerLayoutTabs } from '../../component/layoutTabs/controller.jsx';
|
|
9
|
-
import { RenderLayoutTabs } from '../../component/layoutTabs/render.jsx';
|
|
10
|
-
import { StyleLayoutTabs } from '../../component/layoutTabs/style.js';
|
|
11
|
-
export type ZLayoutTabsProps = {
|
|
12
|
-
controllerRef?: (ref: ControllerLayoutTabs) => void;
|
|
13
|
-
} & ControllerLayoutTabsProps;
|
|
14
|
-
|
|
15
|
-
type ControllerInnerProps = TypeControllerInnerProps<
|
|
16
|
-
ControllerLayoutTabsProps,
|
|
17
|
-
keyof typeof ControllerLayoutTabs.$propsDefault
|
|
18
|
-
>;
|
|
19
|
-
declare module 'zova-module-home-layouttabs' {
|
|
20
|
-
export interface ControllerLayoutTabs {
|
|
21
|
-
$props: ControllerInnerProps;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
declare module 'zova-module-home-layouttabs' {
|
|
25
|
-
export interface StyleLayoutTabs extends ControllerLayoutTabs {}
|
|
26
|
-
export interface RenderLayoutTabs extends StyleLayoutTabs {}
|
|
27
|
-
export interface RenderContent extends StyleLayoutTabs {}
|
|
28
|
-
export interface RenderHeader extends StyleLayoutTabs {}
|
|
29
|
-
export interface RenderLocale extends StyleLayoutTabs {}
|
|
30
|
-
export interface RenderMenu extends StyleLayoutTabs {}
|
|
31
|
-
export interface RenderSidebar extends StyleLayoutTabs {}
|
|
32
|
-
export interface RenderTabs extends StyleLayoutTabs {}
|
|
33
|
-
export interface RenderTheme extends StyleLayoutTabs {}
|
|
34
|
-
export interface RenderUser extends StyleLayoutTabs {}
|
|
35
|
-
}
|
|
36
|
-
export const ZLayoutTabs = defineComponent((_props: ZLayoutTabsProps) => {
|
|
37
|
-
useController(ControllerLayoutTabs, RenderLayoutTabs, StyleLayoutTabs);
|
|
38
|
-
return () => {};
|
|
39
|
-
}, prepareComponentOptions());
|
|
40
|
-
declare module 'zova-module-a-bean' {
|
|
41
|
-
export interface IVonaComponentRecord {
|
|
42
|
-
'home-layouttabs:layoutTabs': ControllerLayoutTabsProps;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
// eslint-disable
|
|
2
|
-
/** model: begin */
|
|
3
|
-
export * from '../model/layout.js';
|
|
4
|
-
export * from '../model/menu.js';
|
|
5
|
-
import { IModelOptionsLayout } from '../model/layout.js';
|
|
6
|
-
import { IModelOptionsMenu } from '../model/menu.js';
|
|
7
|
-
import 'zova-module-a-model';
|
|
8
|
-
declare module 'zova-module-a-model' {
|
|
9
|
-
|
|
10
|
-
export interface IModelRecord {
|
|
11
|
-
'home-layouttabs:layout': IModelOptionsLayout;
|
|
12
|
-
'home-layouttabs:menu': IModelOptionsMenu;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
declare module 'zova-module-home-layouttabs' {
|
|
18
|
-
|
|
19
|
-
export interface ModelLayout {
|
|
20
|
-
/** @internal */
|
|
21
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface ModelLayout {
|
|
25
|
-
get $beanFullName(): 'home-layouttabs.model.layout';
|
|
26
|
-
get $onionName(): 'home-layouttabs:layout';
|
|
27
|
-
get $onionOptions(): IModelOptionsLayout;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface ModelMenu {
|
|
31
|
-
/** @internal */
|
|
32
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface ModelMenu {
|
|
36
|
-
get $beanFullName(): 'home-layouttabs.model.menu';
|
|
37
|
-
get $onionName(): 'home-layouttabs:menu';
|
|
38
|
-
get $onionOptions(): IModelOptionsMenu;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/** model: end */
|
|
42
|
-
/** model: begin */
|
|
43
|
-
import { ModelLayout } from '../model/layout.js';
|
|
44
|
-
import { ModelMenu } from '../model/menu.js';
|
|
45
|
-
import 'zova';
|
|
46
|
-
declare module 'zova' {
|
|
47
|
-
export interface IBeanRecordGeneral {
|
|
48
|
-
'home-layouttabs.model.layout': ModelLayout;
|
|
49
|
-
'home-layouttabs.model.menu': ModelMenu;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/** model: end */
|
|
53
|
-
/** controller: begin */
|
|
54
|
-
export * from '../component/layoutTabs/controller.jsx';
|
|
55
|
-
|
|
56
|
-
import 'zova';
|
|
57
|
-
declare module 'zova' {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
declare module 'zova-module-home-layouttabs' {
|
|
62
|
-
|
|
63
|
-
export interface ControllerLayoutTabs {
|
|
64
|
-
/** @internal */
|
|
65
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/** controller: end */
|
|
69
|
-
/** controller: begin */
|
|
70
|
-
import { ControllerLayoutTabs } from '../component/layoutTabs/controller.jsx';
|
|
71
|
-
import 'zova';
|
|
72
|
-
declare module 'zova' {
|
|
73
|
-
export interface IBeanRecordLocal {
|
|
74
|
-
'home-layouttabs.controller.layoutTabs': ControllerLayoutTabs;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/** controller: end */
|
|
78
|
-
|
|
79
|
-
/** components: begin */
|
|
80
|
-
export * from './component/layoutTabs.js';
|
|
81
|
-
import { ZLayoutTabs } from './component/layoutTabs.js';
|
|
82
|
-
export const components = {
|
|
83
|
-
'layoutTabs': ZLayoutTabs,
|
|
84
|
-
};
|
|
85
|
-
import 'zova';
|
|
86
|
-
declare module 'zova' {
|
|
87
|
-
export interface IComponentRecord {
|
|
88
|
-
'home-layouttabs:layoutTabs': ControllerLayoutTabs;
|
|
89
|
-
}
|
|
90
|
-
export interface IZovaComponentRecord {
|
|
91
|
-
'home-layouttabs:layoutTabs': typeof ZLayoutTabs;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
/** components: end */
|
|
95
|
-
/** render: begin */
|
|
96
|
-
export * from '../component/layoutTabs/render.content.jsx';
|
|
97
|
-
export * from '../component/layoutTabs/render.header.jsx';
|
|
98
|
-
export * from '../component/layoutTabs/render.locale.jsx';
|
|
99
|
-
export * from '../component/layoutTabs/render.menu.jsx';
|
|
100
|
-
export * from '../component/layoutTabs/render.sidebar.jsx';
|
|
101
|
-
export * from '../component/layoutTabs/render.tabs.jsx';
|
|
102
|
-
export * from '../component/layoutTabs/render.theme.jsx';
|
|
103
|
-
export * from '../component/layoutTabs/render.jsx';
|
|
104
|
-
export * from '../component/layoutTabs/render.user.jsx';
|
|
105
|
-
|
|
106
|
-
import 'zova';
|
|
107
|
-
declare module 'zova' {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
declare module 'zova-module-home-layouttabs' {
|
|
112
|
-
|
|
113
|
-
export interface RenderContent {
|
|
114
|
-
/** @internal */
|
|
115
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface RenderHeader {
|
|
119
|
-
/** @internal */
|
|
120
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export interface RenderLocale {
|
|
124
|
-
/** @internal */
|
|
125
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface RenderMenu {
|
|
129
|
-
/** @internal */
|
|
130
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface RenderSidebar {
|
|
134
|
-
/** @internal */
|
|
135
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface RenderTabs {
|
|
139
|
-
/** @internal */
|
|
140
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface RenderTheme {
|
|
144
|
-
/** @internal */
|
|
145
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface RenderLayoutTabs {
|
|
149
|
-
/** @internal */
|
|
150
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface RenderUser {
|
|
154
|
-
/** @internal */
|
|
155
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/** render: end */
|
|
159
|
-
/** render: begin */
|
|
160
|
-
import { RenderContent } from '../component/layoutTabs/render.content.jsx';
|
|
161
|
-
import { RenderHeader } from '../component/layoutTabs/render.header.jsx';
|
|
162
|
-
import { RenderLocale } from '../component/layoutTabs/render.locale.jsx';
|
|
163
|
-
import { RenderMenu } from '../component/layoutTabs/render.menu.jsx';
|
|
164
|
-
import { RenderSidebar } from '../component/layoutTabs/render.sidebar.jsx';
|
|
165
|
-
import { RenderTabs } from '../component/layoutTabs/render.tabs.jsx';
|
|
166
|
-
import { RenderTheme } from '../component/layoutTabs/render.theme.jsx';
|
|
167
|
-
import { RenderLayoutTabs } from '../component/layoutTabs/render.jsx';
|
|
168
|
-
import { RenderUser } from '../component/layoutTabs/render.user.jsx';
|
|
169
|
-
import 'zova';
|
|
170
|
-
declare module 'zova' {
|
|
171
|
-
export interface IBeanRecordLocal {
|
|
172
|
-
'home-layouttabs.render.content': RenderContent;
|
|
173
|
-
'home-layouttabs.render.header': RenderHeader;
|
|
174
|
-
'home-layouttabs.render.locale': RenderLocale;
|
|
175
|
-
'home-layouttabs.render.menu': RenderMenu;
|
|
176
|
-
'home-layouttabs.render.sidebar': RenderSidebar;
|
|
177
|
-
'home-layouttabs.render.tabs': RenderTabs;
|
|
178
|
-
'home-layouttabs.render.theme': RenderTheme;
|
|
179
|
-
'home-layouttabs.render.layoutTabs': RenderLayoutTabs;
|
|
180
|
-
'home-layouttabs.render.user': RenderUser;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
/** render: end */
|
|
184
|
-
/** style: begin */
|
|
185
|
-
export * from '../component/layoutTabs/style.js';
|
|
186
|
-
|
|
187
|
-
import 'zova';
|
|
188
|
-
declare module 'zova' {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
declare module 'zova-module-home-layouttabs' {
|
|
193
|
-
|
|
194
|
-
export interface StyleLayoutTabs {
|
|
195
|
-
/** @internal */
|
|
196
|
-
get scope(): ScopeModuleHomeLayouttabs;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
/** style: end */
|
|
200
|
-
/** style: begin */
|
|
201
|
-
import { StyleLayoutTabs } from '../component/layoutTabs/style.js';
|
|
202
|
-
import 'zova';
|
|
203
|
-
declare module 'zova' {
|
|
204
|
-
export interface IBeanRecordLocal {
|
|
205
|
-
'home-layouttabs.style.layoutTabs': StyleLayoutTabs;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
/** style: end */
|
|
209
|
-
/** config: begin */
|
|
210
|
-
export * from '../config/config.js';
|
|
211
|
-
import { config } from '../config/config.js';
|
|
212
|
-
/** config: end */
|
|
213
|
-
/** locale: begin */
|
|
214
|
-
import { locales } from './locales.js';
|
|
215
|
-
/** locale: end */
|
|
216
|
-
/** scope: begin */
|
|
217
|
-
import { BeanScopeBase, type BeanScopeUtil, TypeModuleConfig, TypeModuleLocales, TypeLocaleBase } from 'zova';
|
|
218
|
-
import { Scope } from 'zova-module-a-bean';
|
|
219
|
-
|
|
220
|
-
@Scope()
|
|
221
|
-
export class ScopeModuleHomeLayouttabs extends BeanScopeBase {}
|
|
222
|
-
|
|
223
|
-
export interface ScopeModuleHomeLayouttabs {
|
|
224
|
-
util: BeanScopeUtil;
|
|
225
|
-
config: TypeModuleConfig<typeof config>;
|
|
226
|
-
locale: TypeModuleLocales<(typeof locales)[TypeLocaleBase]>;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
import 'zova';
|
|
230
|
-
declare module 'zova' {
|
|
231
|
-
export interface IBeanScopeRecord {
|
|
232
|
-
'home-layouttabs': ScopeModuleHomeLayouttabs;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export interface IBeanScopeConfig {
|
|
236
|
-
'home-layouttabs': ReturnType<typeof config>;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export interface IBeanScopeLocale {
|
|
240
|
-
'home-layouttabs': (typeof locales)[TypeLocaleBase];
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export function locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `home-layouttabs::${K}` {
|
|
247
|
-
return `home-layouttabs::${key}`;
|
|
248
|
-
}
|
|
249
|
-
/** scope: end */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/zova/src/suite/a-home/modules/{home-index → home-indexweb}/src/.metadata/page/home.ts
RENAMED
|
File without changes
|
/package/zova/src/suite/a-home/modules/{home-layouttabs → home-indexweb}/tsconfig.build.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/config/config.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/model/layout.ts
RENAMED
|
File without changes
|
/package/zova/src/suite/a-home/modules/{home-layouttabs → home-layoutadmin}/src/model/menu.ts
RENAMED
|
File without changes
|