zova-ui-empty 5.0.138 → 5.0.140

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-ui-empty",
3
- "version": "5.0.138",
3
+ "version": "5.0.140",
4
4
  "description": "A vue3 empty framework with ioc",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,11 +35,11 @@
35
35
  "vue": "^3.4.29",
36
36
  "vue-router": "^4.3.3",
37
37
  "zod": "^3.23.8",
38
- "zova": "^5.0.101",
39
- "zova-module-a-data": "^5.0.3",
40
- "zova-module-a-pinia": "^5.0.18",
41
- "zova-module-a-router": "^5.0.38",
42
- "zova-module-a-style": "^5.0.12"
38
+ "zova": "^5.0.103",
39
+ "zova-module-a-data": "^5.0.5",
40
+ "zova-module-a-pinia": "^5.0.19",
41
+ "zova-module-a-router": "^5.0.39",
42
+ "zova-module-a-style": "^5.0.13"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@cabloy/lint": "^4.0.10",
@@ -49,8 +49,8 @@
49
49
  "typescript": "^5.4.5",
50
50
  "vite": "^5.3.1",
51
51
  "vue-tsc": "^2.0.21",
52
- "zova-vite": "^1.0.105"
52
+ "zova-vite": "^1.0.106"
53
53
  },
54
54
  "license": "MIT",
55
- "gitHead": "32a2f957769f38b297d22235e188478b92b9301e"
55
+ "gitHead": "7ed3f754f876b8469790f652698b6c116ab377e8"
56
56
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  <script setup lang="ts">
6
6
  import { useControllerPage } from 'zova';
7
- import { ControllerPageApp } from './controller.js';
8
- import { RenderApp } from './render.jsx';
7
+ import { ControllerPageApp } from '../../../.zova/app/controller.js';
8
+ import { RenderApp } from '../../../.zova/app/render.jsx';
9
9
  useControllerPage(ControllerPageApp, RenderApp);
10
10
  </script>
package/src/boot/main.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { createApp } from 'vue';
2
+ import { PluginBean } from 'zova';
2
3
  import App from './app/index.vue';
3
- import { zova } from './zova.js';
4
4
 
5
5
  import '../css/settings.scss';
6
6
 
7
7
  async function start({ app }) {
8
- await zova({ app });
8
+ app.use(PluginBean);
9
9
  app.mount('#app');
10
10
  }
11
11
 
@@ -8,7 +8,7 @@ export type BeanApiLike = BeanApi & AxiosInstance;
8
8
 
9
9
  // const __ApiMethods = ['delete', 'get', 'head', 'options', 'post', 'put', 'patch'];
10
10
 
11
- @Bean({ scene: 'bean', name: 'api', containerScope: 'ctx' })
11
+ @Bean()
12
12
  export class BeanApi extends BeanBase {
13
13
  private [SymbolApi]: AxiosInstance;
14
14
 
@@ -7,7 +7,7 @@
7
7
  "./.zova",
8
8
  "./node_modules",
9
9
  "vite.config.ts",
10
- "./src/boot/zova.ts",
10
+ "./src/boot/app",
11
11
  "./src/boot/main.ts"
12
12
  ]
13
13
  }
@@ -1,15 +0,0 @@
1
- import { BeanControllerPageBase, Cast, Local } from 'zova';
2
- import createRouter from '../router.js';
3
-
4
- @Local()
5
- export class ControllerPageApp extends BeanControllerPageBase {
6
- protected async __init__() {
7
- // router
8
- const router = createRouter();
9
- this.app.vue.provide('a-router:appRouter', router);
10
- // app
11
- await Cast(this.app).initialized({ bean: this.bean });
12
- // use router
13
- this.app.vue.use(router);
14
- }
15
- }
@@ -1,11 +0,0 @@
1
- import { BeanRenderBase, Local } from 'zova';
2
- import type { ControllerPageApp } from './controller.js';
3
-
4
- export interface RenderApp extends ControllerPageApp {}
5
-
6
- @Local()
7
- export class RenderApp extends BeanRenderBase {
8
- render() {
9
- return <router-view />;
10
- }
11
- }
package/src/boot/zova.ts DELETED
@@ -1,12 +0,0 @@
1
- /* eslint-disable */
2
-
3
- import { App } from 'vue';
4
- import { PluginZova } from 'zova';
5
- import { modulesMeta } from '../../.zova/modules-meta.js';
6
- import { AppMonkey } from '../front/config/monkey.js';
7
- import { locales } from '../front/config/locales.js';
8
- import config from '../../.zova/config.js';
9
-
10
- export async function zova({ app }: { app: App }) {
11
- await PluginZova.install(app, { modulesMeta, AppMonkey, locales, config });
12
- }