zova-module-a-model 5.0.26 → 5.0.29
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 +2 -2
- package/src/.metadata/index.ts +3 -0
- package/src/index.ts +0 -1
- package/src/monkey.ts +4 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-model",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.29",
|
|
4
4
|
"title": "a-model",
|
|
5
5
|
"zovaModule": {
|
|
6
6
|
"capabilities": {
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"@tanstack/vue-query": "^5.45.0",
|
|
56
56
|
"localforage": "^1.10.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "82b2bc7d0826a0e8619a318de31e078fcaf47825"
|
|
59
59
|
}
|
package/src/.metadata/index.ts
CHANGED
|
@@ -12,6 +12,9 @@ declare module 'zova' {
|
|
|
12
12
|
export * from '../config/config.js';
|
|
13
13
|
import { config } from '../config/config.js';
|
|
14
14
|
/** config: end */
|
|
15
|
+
/** monkey: begin */
|
|
16
|
+
export * from '../monkey.js';
|
|
17
|
+
/** monkey: end */
|
|
15
18
|
/** scope: begin */
|
|
16
19
|
import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
|
|
17
20
|
|
package/src/index.ts
CHANGED
package/src/monkey.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { BeanBase, BeanContainer, BeanSimple,
|
|
1
|
+
import { BeanBase, BeanContainer, BeanSimple, IMonkeyAppInitialize, IMonkeyBeanInit } from 'zova';
|
|
2
2
|
import { LocalStorage } from './bean/local.storage.js';
|
|
3
3
|
import { useQueryClient } from '@tanstack/vue-query';
|
|
4
4
|
import { markRaw } from 'vue';
|
|
5
5
|
|
|
6
|
-
export class Monkey extends BeanSimple implements
|
|
6
|
+
export class Monkey extends BeanSimple implements IMonkeyAppInitialize, IMonkeyBeanInit {
|
|
7
7
|
storage: LocalStorage;
|
|
8
8
|
|
|
9
|
-
async appInitialize(
|
|
9
|
+
async appInitialize() {
|
|
10
10
|
// storage
|
|
11
|
-
this.storage = await bean._newBean(LocalStorage, false);
|
|
11
|
+
this.storage = await this.bean._newBean(LocalStorage, false);
|
|
12
12
|
}
|
|
13
|
-
async appInitialized(_bean: BeanContainer) {}
|
|
14
|
-
async appReady(_bean: BeanContainer) {}
|
|
15
13
|
|
|
16
14
|
async beanInit(bean: BeanContainer, beanInstance: BeanBase) {
|
|
17
15
|
bean.defineProperty(beanInstance, '$queryClient', {
|
|
@@ -22,7 +20,4 @@ export class Monkey extends BeanSimple implements IMonkeySystem {
|
|
|
22
20
|
},
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
|
-
async beanInited(_bean: BeanContainer, _beanInstance: BeanBase) {}
|
|
26
|
-
beanDispose(_bean: BeanContainer, _beanInstance: BeanBase) {}
|
|
27
|
-
beanDisposed(_bean: BeanContainer, _beanInstance: BeanBase) {}
|
|
28
23
|
}
|