zova-ui-empty 5.0.280 → 5.0.282

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.
Files changed (50) hide show
  1. package/package.json +10 -16
  2. package/package.original.json +1 -1
  3. package/src/suite/a-home/modules/home-base/src/bean/bean.api.ts +2 -6
  4. package/src/suite/a-home/modules/home-base/src/bean/local.router.ts +3 -9
  5. package/src/suite/a-home/modules/home-base/src/bean/local.ssr.ts +1 -8
  6. package/src/suite/a-home/modules/home-base/src/bean/style.default.ts +1 -8
  7. package/src/suite/a-home/modules/home-base/src/bean/theme.default.ts +2 -17
  8. package/src/suite/a-home/package.json +0 -4
  9. package/src/suite/a-home/modules/home-api/package.json +0 -35
  10. package/src/suite/a-home/modules/home-api/src/.metadata/index.ts +0 -25
  11. package/src/suite/a-home/modules/home-api/src/.metadata/this.ts +0 -2
  12. package/src/suite/a-home/modules/home-api/src/bean/bean.api.ts +0 -59
  13. package/src/suite/a-home/modules/home-api/src/index.ts +0 -3
  14. package/src/suite/a-home/modules/home-api/src/monkey.ts +0 -25
  15. package/src/suite/a-home/modules/home-api/src/types.ts +0 -13
  16. package/src/suite/a-home/modules/home-component/package.json +0 -28
  17. package/src/suite/a-home/modules/home-component/src/.metadata/index.ts +0 -29
  18. package/src/suite/a-home/modules/home-component/src/.metadata/this.ts +0 -2
  19. package/src/suite/a-home/modules/home-component/src/component/.gitkeep +0 -0
  20. package/src/suite/a-home/modules/home-component/src/component/page/controller.ts +0 -18
  21. package/src/suite/a-home/modules/home-component/src/component/page/index.vue +0 -13
  22. package/src/suite/a-home/modules/home-component/src/component/page/render.tsx +0 -12
  23. package/src/suite/a-home/modules/home-component/src/component/page/style.ts +0 -16
  24. package/src/suite/a-home/modules/home-component/src/index.ts +0 -2
  25. package/src/suite/a-home/modules/home-component/src/types.ts +0 -7
  26. package/src/suite/a-home/modules/home-pagesystem/package.json +0 -33
  27. package/src/suite/a-home/modules/home-pagesystem/src/.metadata/index.ts +0 -30
  28. package/src/suite/a-home/modules/home-pagesystem/src/.metadata/this.ts +0 -2
  29. package/src/suite/a-home/modules/home-pagesystem/src/index.ts +0 -1
  30. package/src/suite/a-home/modules/home-pagesystem/src/page/errorNotFound/controller.ts +0 -4
  31. package/src/suite/a-home/modules/home-pagesystem/src/page/errorNotFound/index.vue +0 -10
  32. package/src/suite/a-home/modules/home-pagesystem/src/page/errorNotFound/render.tsx +0 -24
  33. package/src/suite/a-home/modules/home-pagesystem/src/routes.ts +0 -15
  34. package/src/suite/a-home/modules/home-router/package.json +0 -36
  35. package/src/suite/a-home/modules/home-router/src/.metadata/index.ts +0 -22
  36. package/src/suite/a-home/modules/home-router/src/.metadata/this.ts +0 -2
  37. package/src/suite/a-home/modules/home-router/src/bean/local.router.ts +0 -12
  38. package/src/suite/a-home/modules/home-router/src/index.ts +0 -2
  39. package/src/suite/a-home/modules/home-router/src/monkey.ts +0 -18
  40. package/src/suite/a-home/modules/home-style/package.json +0 -28
  41. package/src/suite/a-home/modules/home-style/src/.metadata/index.ts +0 -25
  42. package/src/suite/a-home/modules/home-style/src/.metadata/this.ts +0 -2
  43. package/src/suite/a-home/modules/home-style/src/bean/style.default.ts +0 -11
  44. package/src/suite/a-home/modules/home-style/src/index.ts +0 -2
  45. package/src/suite/a-home/modules/home-style/src/types.ts +0 -7
  46. package/src/suite/a-home/modules/home-theme/package.json +0 -28
  47. package/src/suite/a-home/modules/home-theme/src/.metadata/index.ts +0 -25
  48. package/src/suite/a-home/modules/home-theme/src/.metadata/this.ts +0 -2
  49. package/src/suite/a-home/modules/home-theme/src/bean/theme.default.ts +0 -10
  50. package/src/suite/a-home/modules/home-theme/src/index.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-ui-empty",
3
- "version": "5.0.280",
3
+ "version": "5.0.282",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -52,24 +52,18 @@
52
52
  "vue": "^3.5.6",
53
53
  "vue-router": "^4.4.5",
54
54
  "zod": "^3.23.8",
55
- "zova": "^5.0.204",
55
+ "zova": "^5.0.205",
56
56
  "zova-module-a-core": "^5.0.44",
57
57
  "zova-module-a-demo": "^5.0.0",
58
- "zova-module-a-model": "^5.0.26",
59
- "zova-module-a-pinia": "^5.0.26",
60
- "zova-module-a-router": "^5.0.61",
61
- "zova-module-a-style": "^5.0.38",
58
+ "zova-module-a-model": "^5.0.29",
59
+ "zova-module-a-pinia": "^5.0.29",
60
+ "zova-module-a-router": "^5.0.64",
61
+ "zova-module-a-style": "^5.0.41",
62
62
  "zova-module-a-tabs": "^5.0.20",
63
- "zova-module-home-api": "^5.0.0",
64
63
  "zova-module-home-base": "^5.0.0",
65
- "zova-module-home-component": "^5.0.0",
66
64
  "zova-module-home-icon": "^5.0.0",
67
65
  "zova-module-home-index": "^5.0.0",
68
- "zova-module-home-layout": "^5.0.0",
69
- "zova-module-home-pagesystem": "^5.0.0",
70
- "zova-module-home-router": "^5.0.0",
71
- "zova-module-home-style": "^5.0.0",
72
- "zova-module-home-theme": "^5.0.0"
66
+ "zova-module-home-layout": "^5.0.0"
73
67
  },
74
68
  "devDependencies": {
75
69
  "@cabloy/lint": "^4.0.11",
@@ -77,13 +71,13 @@
77
71
  "@types/node": "^20.14.2",
78
72
  "@vitejs/plugin-vue": "^5.0.5",
79
73
  "concurrently": "^8.2.2",
80
- "quasar-app-extension-zova": "^1.1.167",
74
+ "quasar-app-extension-zova": "^1.1.169",
81
75
  "sass": "^1.77.5",
82
76
  "typescript": "^5.4.5",
83
77
  "vite": "^5.3.1",
84
78
  "vue-tsc": "^2.0.29",
85
- "zova-vite": "^1.0.169"
79
+ "zova-vite": "^1.0.170"
86
80
  },
87
81
  "license": "MIT",
88
- "gitHead": "b89efc4131f17bc884c12d2921ac69cda4b799e1"
82
+ "gitHead": "c08d7bf125ba6e68cbb90bee0c0ea2dbc7ba9148"
89
83
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-ui-empty",
3
- "version": "5.0.279",
3
+ "version": "5.0.280",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,7 +1,6 @@
1
- import { Bean, BeanBase, Use } from 'zova';
1
+ import { Bean, BeanBase } from 'zova';
2
2
  import axios, { AxiosInstance } from 'axios';
3
3
  import { markRaw } from 'vue';
4
- import type { ModelAuth } from 'zova-module-home-user';
5
4
 
6
5
  const SymbolApi = Symbol('SymbolApi');
7
6
 
@@ -9,9 +8,6 @@ export interface BeanApi extends AxiosInstance {}
9
8
 
10
9
  @Bean()
11
10
  export class BeanApi extends BeanBase {
12
- @Use('home-user.model.auth')
13
- $$modelAuth: ModelAuth;
14
-
15
11
  private [SymbolApi]: AxiosInstance;
16
12
 
17
13
  protected async __init__() {
@@ -29,7 +25,7 @@ export class BeanApi extends BeanBase {
29
25
  api.interceptors.request.use(
30
26
  config => {
31
27
  if (this.app.config.base.jwt) {
32
- config.headers.Authorization = `Bearer ${this.$$modelAuth.jwtAuthorization || ''}`;
28
+ config.headers.Authorization = 'Bearer ';
33
29
  }
34
30
  return config;
35
31
  },
@@ -1,18 +1,12 @@
1
- import { Local, Use } from 'zova';
1
+ import { Local } from 'zova';
2
2
  import { ScopeModule } from '../.metadata/this.js';
3
3
  import { BeanRouter, BeanRouterBase } from 'zova-module-a-router';
4
- import type { ModelAuth } from 'zova-module-home-user';
5
4
 
6
5
  @Local()
7
6
  export class LocalRouter extends BeanRouterBase<ScopeModule> {
8
- @Use('home-user.model.auth')
9
- $$modelAuth: ModelAuth;
10
-
11
7
  protected onRouterGuards(router: BeanRouter) {
12
- router.beforeEach(async to => {
13
- if (to.meta.requiresAuth !== false && !this.$$modelAuth.isAuthenticated) {
14
- return '/login';
15
- }
8
+ router.beforeEach(async _to => {
9
+ //console.log(to);
16
10
  });
17
11
  }
18
12
  }
@@ -12,14 +12,7 @@ export class LocalSSR extends BeanBase<ScopeModule> {
12
12
  }
13
13
  // ssr theme
14
14
  if (process.env.SERVER) {
15
- this.ctx.meta.ssr.context.onRendered(() => {
16
- if (!this.app.config.ssr.cookieThemeDark) {
17
- this.ctx.meta.ssr.context._meta.bodyTags += `<script id="__prefersColorSchemeDarkJS">
18
- document.body.setAttribute('data-theme', window.ssr_themedark_data);
19
- document.querySelector('#__prefersColorSchemeDarkJS').remove();
20
- </script>`.replaceAll('\n', '');
21
- }
22
- });
15
+ this.ctx.meta.ssr.context.onRendered(() => {});
23
16
  }
24
17
  }
25
18
  }
@@ -1,18 +1,11 @@
1
- import { BeanBase, Style, useComputed } from 'zova';
1
+ import { BeanBase, Style } from 'zova';
2
2
  import { ScopeModule } from '../.metadata/this.js';
3
3
 
4
4
  @Style()
5
5
  export class StyleDefault extends BeanBase<ScopeModule> {
6
6
  textCenter: string;
7
- buttonPrimary: string;
8
7
 
9
8
  protected async __init__() {
10
9
  this.textCenter = this.$style({ textAlign: 'center' });
11
- this.buttonPrimary = useComputed(() => {
12
- return this.$style({
13
- color: this.$token.color.primary,
14
- borderColor: this.$token.var.borderColor,
15
- });
16
- });
17
10
  }
18
11
  }
@@ -1,25 +1,10 @@
1
1
  import { BeanBase, Theme } from 'zova';
2
2
  import { ScopeModule } from '../.metadata/this.js';
3
3
  import { ThemeApplyParams, ThemeApplyResult, ThemeBase } from 'zova-module-a-style';
4
- import { ThemeToken } from 'zova-module-a-devui';
5
4
 
6
5
  @Theme()
7
6
  export class ThemeDefault extends BeanBase<ScopeModule> implements ThemeBase {
8
- async apply({ name: _name, dark }: ThemeApplyParams): Promise<ThemeApplyResult> {
9
- const token: ThemeToken = {
10
- color: {
11
- primary: '#1976d2',
12
- },
13
- var: {
14
- borderColor: '#297acc',
15
- },
16
- component: {
17
- page: {
18
- background: dark ? '#121212' : '#fff',
19
- color: dark ? '#fff' : '#000',
20
- },
21
- },
22
- };
23
- return { token };
7
+ async apply({ name: _name, dark: _dark }: ThemeApplyParams): Promise<ThemeApplyResult> {
8
+ return {};
24
9
  }
25
10
  }
@@ -8,11 +8,7 @@
8
8
  "dependencies": {
9
9
  "zova-module-home-index": "workspace:^",
10
10
  "zova-module-home-icon": "workspace:^",
11
- "zova-module-home-pagesystem": "workspace:^",
12
11
  "zova-module-home-layout": "workspace:^",
13
- "zova-module-home-router": "workspace:^",
14
- "zova-module-home-api": "workspace:^",
15
- "zova-module-home-component": "workspace:^",
16
12
  "zova-module-home-base": "workspace:^"
17
13
  }
18
14
  }
@@ -1,35 +0,0 @@
1
- {
2
- "name": "zova-module-home-api",
3
- "version": "5.0.0",
4
- "title": "home-api",
5
- "zovaModule": {
6
- "capabilities": {
7
- "monkey": true
8
- }
9
- },
10
- "type": "module",
11
- "exports": {
12
- ".": {
13
- "types": [
14
- "./src/index.ts",
15
- "./dist/index.d.ts"
16
- ],
17
- "import": "./src/index.ts",
18
- "default": "./dist/index.js"
19
- },
20
- "./*": "./*"
21
- },
22
- "description": "api",
23
- "keywords": [
24
- "Zova Module"
25
- ],
26
- "author": "zhennann",
27
- "files": [
28
- "mock",
29
- "dist"
30
- ],
31
- "scripts": {},
32
- "dependencies": {
33
- "axios": "^1.6.8"
34
- }
35
- }
@@ -1,25 +0,0 @@
1
- /** beans: begin */
2
- export * from '../bean/bean.api.js';
3
- import { BeanApi } from '../bean/bean.api.js';
4
- import 'zova';
5
- declare module 'zova' {
6
- export interface IBeanRecord {
7
- 'home-api.bean.api': BeanApi;
8
- }
9
- }
10
- /** beans: end */
11
- /** scope: begin */
12
- import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
13
-
14
- @Scope()
15
- export class ScopeModuleHomeApi extends BeanScopeBase {}
16
-
17
- export interface ScopeModuleHomeApi extends TypeModuleResource<any, any, any, any, any, any> {}
18
-
19
- import 'zova';
20
- declare module 'zova' {
21
- export interface IBeanScopeRecord {
22
- 'home-api': ScopeModuleHomeApi;
23
- }
24
- }
25
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'home-api';
2
- export { ScopeModuleHomeApi as ScopeModule } from './index.js';
@@ -1,59 +0,0 @@
1
- import { Bean, BeanBase } from 'zova';
2
- import axios, { AxiosInstance } from 'axios';
3
- import { markRaw } from 'vue';
4
-
5
- const SymbolApi = Symbol('SymbolApi');
6
-
7
- export interface BeanApi extends AxiosInstance {}
8
-
9
- @Bean()
10
- export class BeanApi extends BeanBase {
11
- private [SymbolApi]: AxiosInstance;
12
-
13
- protected async __init__() {
14
- const baseURL = this.app.meta.util.getApiBaseURL();
15
- this[SymbolApi] = markRaw(axios.create({ baseURL }));
16
- this._addInterceptors(this[SymbolApi]);
17
- }
18
-
19
- protected __get__(prop) {
20
- return this[SymbolApi] && this[SymbolApi][prop];
21
- }
22
-
23
- private _addInterceptors(api: AxiosInstance) {
24
- // request
25
- api.interceptors.request.use(
26
- config => {
27
- if (this.app.config.base.jwt) {
28
- config.headers.Authorization = 'Bearer ';
29
- }
30
- return config;
31
- },
32
- error => {
33
- return Promise.reject(error);
34
- },
35
- );
36
- // response
37
- api.interceptors.response.use(
38
- response => {
39
- const contentType = response.headers['content-type'];
40
- if (!contentType || contentType.indexOf('application/json') === -1) return response;
41
- if (response.data.code !== 0) {
42
- const error = new Error();
43
- error.code = response.data.code;
44
- error.message = response.data.message;
45
- return Promise.reject(error);
46
- }
47
- // return data
48
- return response.data.data;
49
- },
50
- error => {
51
- if (error.response) {
52
- error.code = (error.response.data && error.response.data.code) || error.response.status;
53
- error.message = (error.response.data && error.response.data.message) || error.response.statusText;
54
- }
55
- return Promise.reject(error);
56
- },
57
- );
58
- }
59
- }
@@ -1,3 +0,0 @@
1
- export * from './.metadata/index.js';
2
- export * from './types.js';
3
- export * from './monkey.js';
@@ -1,25 +0,0 @@
1
- import { BeanBase, BeanContainer, BeanSimple, IMonkeySystem } from 'zova';
2
- import axios from 'axios';
3
- import { BeanApi } from './bean/bean.api.js';
4
-
5
- export class Monkey extends BeanSimple implements IMonkeySystem {
6
- async appInitialize() {
7
- this.app.meta.$axios = axios;
8
- this.app.meta.$api = (await this.bean._getBean('home-api.bean.api', false)) as BeanApi;
9
- }
10
- async appInitialized() {}
11
- async appReady() {}
12
- async beanInit(bean: BeanContainer, beanInstance: BeanBase) {
13
- const self = this;
14
- bean.defineProperty(beanInstance, '$api', {
15
- enumerable: false,
16
- configurable: true,
17
- get() {
18
- return self.app.meta.$api;
19
- },
20
- });
21
- }
22
- async beanInited(_bean: BeanContainer, _beanInstance: BeanBase) {}
23
- beanDispose(_bean: BeanContainer, _beanInstance: BeanBase) {}
24
- beanDisposed(_bean: BeanContainer, _beanInstance: BeanBase) {}
25
- }
@@ -1,13 +0,0 @@
1
- import { AxiosInstance } from 'axios';
2
- import { BeanApi } from './bean/bean.api.js';
3
-
4
- import 'zova';
5
- declare module 'zova' {
6
- export interface AppMeta {
7
- $axios: AxiosInstance;
8
- $api: BeanApi;
9
- }
10
- export interface BeanBase {
11
- $api: BeanApi;
12
- }
13
- }
@@ -1,28 +0,0 @@
1
- {
2
- "name": "zova-module-home-component",
3
- "version": "5.0.0",
4
- "title": "home-component",
5
- "type": "module",
6
- "exports": {
7
- ".": {
8
- "types": [
9
- "./src/index.ts",
10
- "./dist/index.d.ts"
11
- ],
12
- "import": "./src/index.ts",
13
- "default": "./dist/index.js"
14
- },
15
- "./*": "./*"
16
- },
17
- "description": "component",
18
- "keywords": [
19
- "Zova Module"
20
- ],
21
- "author": "zhennann",
22
- "files": [
23
- "mock",
24
- "dist"
25
- ],
26
- "scripts": {},
27
- "dependencies": {}
28
- }
@@ -1,29 +0,0 @@
1
- /** components: begin */
2
- export * as NSControllerPage from '../component/page/controller.js';
3
- import * as NSControllerPage from '../component/page/controller.js';
4
- import component_page from '../component/page/index.vue';
5
- export const components = {
6
- page: component_page,
7
- };
8
- import 'zova';
9
- declare module 'zova' {
10
- export interface IComponentRecord {
11
- 'home-component:page': NSControllerPage.ControllerPage;
12
- }
13
- }
14
- /** components: end */
15
- /** scope: begin */
16
- import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
17
-
18
- @Scope()
19
- export class ScopeModuleHomeComponent extends BeanScopeBase {}
20
-
21
- export interface ScopeModuleHomeComponent extends TypeModuleResource<typeof components, any, any, any, any, any> {}
22
-
23
- import 'zova';
24
- declare module 'zova' {
25
- export interface IBeanScopeRecord {
26
- 'home-component': ScopeModuleHomeComponent;
27
- }
28
- }
29
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'home-component';
2
- export { ScopeModuleHomeComponent as ScopeModule } from './index.js';
@@ -1,18 +0,0 @@
1
- import { BeanControllerBase, Local, PropsBase } from 'zova';
2
- import { ScopeModule } from '../../.metadata/this.js';
3
- import { JSX } from 'vue/jsx-runtime';
4
-
5
- export interface Props extends PropsBase<ControllerPage, Slots> {}
6
-
7
- export type Emits = {};
8
-
9
- export interface Slots {
10
- default?(): JSX.Element;
11
- }
12
-
13
- @Local()
14
- export class ControllerPage extends BeanControllerBase<ScopeModule, Props, Emits, Slots> {
15
- static $propsDefault = {};
16
-
17
- protected async __init__() {}
18
- }
@@ -1,13 +0,0 @@
1
- <template>
2
- <template></template>
3
- </template>
4
-
5
- <script setup lang="ts">
6
- import { useController } from 'zova';
7
- import { ControllerPage, Props, Emits } from './controller.js';
8
- import { RenderPage } from './render.jsx';
9
- import { StylePage } from './style.js';
10
- const props = withDefaults(defineProps<Props>(), ControllerPage.$propsDefault);
11
- const emit = defineEmits<Emits>();
12
- useController(props, emit, ControllerPage, RenderPage, StylePage);
13
- </script>
@@ -1,12 +0,0 @@
1
- import { BeanRenderBase, Local } from 'zova';
2
- import type { StylePage } from './style.js';
3
- import { ScopeModule } from '../../.metadata/this.js';
4
-
5
- export interface RenderPage extends StylePage {}
6
-
7
- @Local()
8
- export class RenderPage extends BeanRenderBase<ScopeModule> {
9
- render() {
10
- return <div class={this.cPage}>{this.$slots.default?.()}</div>;
11
- }
12
- }
@@ -1,16 +0,0 @@
1
- import { BeanStyleBase, Local } from 'zova';
2
- import type { ControllerPage } from './controller.js';
3
- import { ScopeModule } from '../../.metadata/this.js';
4
-
5
- export interface StylePage extends ControllerPage {}
6
-
7
- @Local()
8
- export class StylePage extends BeanStyleBase<ScopeModule> {
9
- cPage: string;
10
-
11
- protected async __init__() {
12
- this.cPage = this.$style({
13
- padding: '8px',
14
- });
15
- }
16
- }
@@ -1,2 +0,0 @@
1
- export * from './.metadata/index.js';
2
- export * from './types.js';
@@ -1,7 +0,0 @@
1
- import 'zova';
2
- import { components } from './.metadata/index.js';
3
- declare module 'zova' {
4
- export interface BeanBase {
5
- $component: typeof components;
6
- }
7
- }
@@ -1,33 +0,0 @@
1
- {
2
- "name": "zova-module-home-pagesystem",
3
- "version": "5.0.0",
4
- "title": "home-pagesystem",
5
- "zovaModule": {
6
- "capabilities": {
7
- "sync": true
8
- }
9
- },
10
- "type": "module",
11
- "exports": {
12
- ".": {
13
- "types": [
14
- "./src/index.ts",
15
- "./dist/index.d.ts"
16
- ],
17
- "import": "./src/index.ts",
18
- "default": "./dist/index.js"
19
- },
20
- "./*": "./*"
21
- },
22
- "description": "page system",
23
- "keywords": [
24
- "Zova Module"
25
- ],
26
- "author": "zhennann",
27
- "files": [
28
- "mock",
29
- "dist"
30
- ],
31
- "scripts": {},
32
- "dependencies": {}
33
- }
@@ -1,30 +0,0 @@
1
- /** pages: begin */
2
- export * as NSControllerPageErrorNotFound from '../page/errorNotFound/controller.js';
3
-
4
- export * from '../routes.js';
5
-
6
- import 'zova';
7
- declare module 'zova' {
8
- export interface IPagePathRecord {
9
- '/home/pagesystem//:catchAll(.*)*': undefined;
10
- }
11
- export interface IPageNameRecord {}
12
- }
13
- export const pagePathSchemas = {};
14
- export const pageNameSchemas = {};
15
- /** pages: end */
16
- /** scope: begin */
17
- import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
18
-
19
- @Scope()
20
- export class ScopeModuleHomePagesystem extends BeanScopeBase {}
21
-
22
- export interface ScopeModuleHomePagesystem extends TypeModuleResource<any, any, any, any, any, any> {}
23
-
24
- import 'zova';
25
- declare module 'zova' {
26
- export interface IBeanScopeRecord {
27
- 'home-pagesystem': ScopeModuleHomePagesystem;
28
- }
29
- }
30
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'home-pagesystem';
2
- export { ScopeModuleHomePagesystem as ScopeModule } from './index.js';
@@ -1 +0,0 @@
1
- export * from './.metadata/index.js';
@@ -1,4 +0,0 @@
1
- import { BeanControllerPageBase, Local } from 'zova';
2
-
3
- @Local()
4
- export class ControllerPageErrorNotFound extends BeanControllerPageBase {}
@@ -1,10 +0,0 @@
1
- <template>
2
- <template></template>
3
- </template>
4
-
5
- <script setup lang="ts">
6
- import { useControllerPage } from 'zova';
7
- import { ControllerPageErrorNotFound } from './controller.js';
8
- import { RenderErrorNotFound } from './render.jsx';
9
- useControllerPage(ControllerPageErrorNotFound, RenderErrorNotFound);
10
- </script>
@@ -1,24 +0,0 @@
1
- import { BeanRenderBase, Local } from 'zova';
2
- import type { ControllerPageErrorNotFound } from './controller.js';
3
- import { RouterLink } from 'vue-router';
4
-
5
- export interface RenderErrorNotFound extends ControllerPageErrorNotFound {}
6
-
7
- @Local()
8
- export class RenderErrorNotFound extends BeanRenderBase {
9
- render() {
10
- return (
11
- <div class="fill-height bg-blue text-white text-center">
12
- <div>
13
- <div style="font-size: 30vh">404</div>
14
-
15
- <div class="text-h2" style="opacity:.4">
16
- Oops. Nothing here...
17
- </div>
18
-
19
- <RouterLink to="/">Go Home</RouterLink>
20
- </div>
21
- </div>
22
- );
23
- }
24
- }
@@ -1,15 +0,0 @@
1
- import ErrorNotFound from './page/errorNotFound/index.vue';
2
- import { IModuleRoute } from 'zova-module-a-router';
3
-
4
- export const routes: IModuleRoute[] = [
5
- // { path: '/', redirect: '/home/index', meta: { absolute: true } },
6
- {
7
- path: '/:catchAll(.*)*',
8
- component: ErrorNotFound,
9
- meta: {
10
- absolute: true,
11
- layout: 'empty',
12
- requiresAuth: false,
13
- },
14
- },
15
- ];
@@ -1,36 +0,0 @@
1
- {
2
- "name": "zova-module-home-router",
3
- "version": "5.0.0",
4
- "title": "home-router",
5
- "zovaModule": {
6
- "capabilities": {
7
- "monkey": true
8
- },
9
- "dependencies": {
10
- "a-core": "5.0.0"
11
- }
12
- },
13
- "type": "module",
14
- "exports": {
15
- ".": {
16
- "types": [
17
- "./src/index.ts",
18
- "./dist/index.d.ts"
19
- ],
20
- "import": "./src/index.ts",
21
- "default": "./dist/index.js"
22
- },
23
- "./*": "./*"
24
- },
25
- "description": "router",
26
- "keywords": [
27
- "Zova Module"
28
- ],
29
- "author": "zhennann",
30
- "files": [
31
- "mock",
32
- "dist"
33
- ],
34
- "scripts": {},
35
- "dependencies": {}
36
- }
@@ -1,22 +0,0 @@
1
- /** beans: begin */
2
-
3
- import 'zova';
4
- declare module 'zova' {
5
- export interface IBeanRecord {}
6
- }
7
- /** beans: end */
8
- /** scope: begin */
9
- import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
10
-
11
- @Scope()
12
- export class ScopeModuleHomeRouter extends BeanScopeBase {}
13
-
14
- export interface ScopeModuleHomeRouter extends TypeModuleResource<any, any, any, any, any, any> {}
15
-
16
- import 'zova';
17
- declare module 'zova' {
18
- export interface IBeanScopeRecord {
19
- 'home-router': ScopeModuleHomeRouter;
20
- }
21
- }
22
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'home-router';
2
- export { ScopeModuleHomeRouter as ScopeModule } from './index.js';
@@ -1,12 +0,0 @@
1
- import { Local } from 'zova';
2
- import { ScopeModule } from '../.metadata/this.js';
3
- import { BeanRouter, BeanRouterBase } from 'zova-module-a-router';
4
-
5
- @Local()
6
- export class LocalRouter extends BeanRouterBase<ScopeModule> {
7
- protected onRouterGuards(router: BeanRouter) {
8
- router.beforeEach(async _to => {
9
- //console.log(to);
10
- });
11
- }
12
- }
@@ -1,2 +0,0 @@
1
- export * from './.metadata/index.js';
2
- export * from './monkey.js';
@@ -1,18 +0,0 @@
1
- import { BeanBase, BeanContainer, BeanSimple, IMonkeySystem } from 'zova';
2
- import { LocalRouter } from './bean/local.router.js';
3
-
4
- export class Monkey extends BeanSimple implements IMonkeySystem {
5
- localRouter: LocalRouter;
6
-
7
- async appInitialize() {
8
- // router
9
- this.localRouter = await this.bean._newBean(LocalRouter, false);
10
- }
11
- async appInitialized() {}
12
- async appReady() {}
13
-
14
- async beanInit(_bean: BeanContainer, _beanInstance: BeanBase) {}
15
- async beanInited(_bean: BeanContainer, _beanInstance: BeanBase) {}
16
- beanDispose(_bean: BeanContainer, _beanInstance: BeanBase) {}
17
- beanDisposed(_bean: BeanContainer, _beanInstance: BeanBase) {}
18
- }
@@ -1,28 +0,0 @@
1
- {
2
- "name": "zova-module-home-style",
3
- "version": "5.0.0",
4
- "title": "home-style",
5
- "type": "module",
6
- "exports": {
7
- ".": {
8
- "types": [
9
- "./src/index.ts",
10
- "./dist/index.d.ts"
11
- ],
12
- "import": "./src/index.ts",
13
- "default": "./dist/index.js"
14
- },
15
- "./*": "./*"
16
- },
17
- "description": "style",
18
- "keywords": [
19
- "Zova Module"
20
- ],
21
- "author": "zhennann",
22
- "files": [
23
- "mock",
24
- "dist"
25
- ],
26
- "scripts": {},
27
- "dependencies": {}
28
- }
@@ -1,25 +0,0 @@
1
- /** beans: begin */
2
- export * from '../bean/style.default.js';
3
- import { StyleDefault } from '../bean/style.default.js';
4
- import 'zova';
5
- declare module 'zova' {
6
- export interface IBeanRecord {
7
- 'home-style.style.default': StyleDefault;
8
- }
9
- }
10
- /** beans: end */
11
- /** scope: begin */
12
- import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
13
-
14
- @Scope()
15
- export class ScopeModuleHomeStyle extends BeanScopeBase {}
16
-
17
- export interface ScopeModuleHomeStyle extends TypeModuleResource<any, any, any, any, any, any> {}
18
-
19
- import 'zova';
20
- declare module 'zova' {
21
- export interface IBeanScopeRecord {
22
- 'home-style': ScopeModuleHomeStyle;
23
- }
24
- }
25
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'home-style';
2
- export { ScopeModuleHomeStyle as ScopeModule } from './index.js';
@@ -1,11 +0,0 @@
1
- import { BeanBase, Style } from 'zova';
2
- import { ScopeModule } from '../.metadata/this.js';
3
-
4
- @Style()
5
- export class StyleDefault extends BeanBase<ScopeModule> {
6
- textCenter: string;
7
-
8
- protected async __init__() {
9
- this.textCenter = this.$style({ textAlign: 'center' });
10
- }
11
- }
@@ -1,2 +0,0 @@
1
- export * from './.metadata/index.js';
2
- export * from './types.js';
@@ -1,7 +0,0 @@
1
- import { StyleDefault } from './bean/style.default.js';
2
- import 'zova';
3
- declare module 'zova' {
4
- export interface BeanBase {
5
- $class: StyleDefault;
6
- }
7
- }
@@ -1,28 +0,0 @@
1
- {
2
- "name": "zova-module-home-theme",
3
- "version": "5.0.0",
4
- "title": "home-theme",
5
- "type": "module",
6
- "exports": {
7
- ".": {
8
- "types": [
9
- "./src/index.ts",
10
- "./dist/index.d.ts"
11
- ],
12
- "import": "./src/index.ts",
13
- "default": "./dist/index.js"
14
- },
15
- "./*": "./*"
16
- },
17
- "description": "theme",
18
- "keywords": [
19
- "Zova Module"
20
- ],
21
- "author": "zhennann",
22
- "files": [
23
- "mock",
24
- "dist"
25
- ],
26
- "scripts": {},
27
- "dependencies": {}
28
- }
@@ -1,25 +0,0 @@
1
- /** beans: begin */
2
- export * from '../bean/theme.default.js';
3
- import { ThemeDefault } from '../bean/theme.default.js';
4
- import 'zova';
5
- declare module 'zova' {
6
- export interface IBeanRecord {
7
- 'home-theme.theme.default': ThemeDefault;
8
- }
9
- }
10
- /** beans: end */
11
- /** scope: begin */
12
- import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
13
-
14
- @Scope()
15
- export class ScopeModuleHomeTheme extends BeanScopeBase {}
16
-
17
- export interface ScopeModuleHomeTheme extends TypeModuleResource<any, any, any, any, any, any> {}
18
-
19
- import 'zova';
20
- declare module 'zova' {
21
- export interface IBeanScopeRecord {
22
- 'home-theme': ScopeModuleHomeTheme;
23
- }
24
- }
25
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'home-theme';
2
- export { ScopeModuleHomeTheme as ScopeModule } from './index.js';
@@ -1,10 +0,0 @@
1
- import { BeanBase, Theme } from 'zova';
2
- import { ScopeModule } from '../.metadata/this.js';
3
- import { ThemeApplyParams, ThemeApplyResult, ThemeBase } from 'zova-module-a-style';
4
-
5
- @Theme()
6
- export class ThemeDefault extends BeanBase<ScopeModule> implements ThemeBase {
7
- async apply({ name: _name, dark: _dark }: ThemeApplyParams): Promise<ThemeApplyResult> {
8
- return {};
9
- }
10
- }
@@ -1 +0,0 @@
1
- export * from './.metadata/index.js';