zova-module-a-model 5.0.20 → 5.0.22
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-module-a-model",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.22",
|
|
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": "32f556ffbbe6864613db3b5a50adc3fb259411d9"
|
|
59
59
|
}
|
|
@@ -3,7 +3,7 @@ import { ScopeModule } from '../resource/this.js';
|
|
|
3
3
|
import { dehydrate, hydrate, QueryClient, VueQueryPlugin, VueQueryPluginOptions } from '@tanstack/vue-query';
|
|
4
4
|
|
|
5
5
|
@Local()
|
|
6
|
-
export class
|
|
6
|
+
export class LocalStorage extends BeanBase<ScopeModule> {
|
|
7
7
|
protected async __init__() {
|
|
8
8
|
// options
|
|
9
9
|
let options = this.scope.config.queryClientConfig.defaultOptions;
|
package/src/monkey.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BeanBase, BeanContainer, BeanSimple, IMonkeySystem } from 'zova';
|
|
2
|
-
import {
|
|
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
6
|
export class Monkey extends BeanSimple implements IMonkeySystem {
|
|
7
|
-
storage:
|
|
7
|
+
storage: LocalStorage;
|
|
8
8
|
|
|
9
9
|
async appInitialize(bean: BeanContainer) {
|
|
10
10
|
// storage
|
|
11
|
-
this.storage = await bean._newBean(
|
|
11
|
+
this.storage = await bean._newBean(LocalStorage, false);
|
|
12
12
|
}
|
|
13
13
|
async appInitialized(_bean: BeanContainer) {}
|
|
14
14
|
async appReady(_bean: BeanContainer) {}
|