Storage improve (#6976)
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* Update storage.ts
* Update storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update storage.ts
* wip
* wip
* wip
* wip
* 🍕
* wip
* wip
* wip
* wip
* wip
* wip
* Update deck-storage.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update store.ts
* wip
* wip
* wip
* wip
* Update init.ts
* wip
* wip
* Update pizzax.ts
* wip
* wip
* Update timeline.vue
* Update init.ts
* wip
* wip
* Update init.ts
This commit is contained in:
@@ -57,7 +57,7 @@ export default defineComponent({
|
||||
},
|
||||
mounted() {
|
||||
os.api('charts/user/notes', {
|
||||
userId: this.$store.state.i.id,
|
||||
userId: this.$i.id,
|
||||
span: 'day',
|
||||
limit: 7 * 21
|
||||
}).then(activity => {
|
||||
|
@@ -17,6 +17,8 @@ export default function <T extends Form>(data: {
|
||||
}
|
||||
},
|
||||
|
||||
emits: ['updateProps'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
props: this.widget ? JSON.parse(JSON.stringify(this.widget.data)) : {}
|
||||
@@ -66,12 +68,7 @@ export default function <T extends Form>(data: {
|
||||
},
|
||||
|
||||
save() {
|
||||
if (this.widget) {
|
||||
this.$store.commit('deviceUser/updateWidget', {
|
||||
...this.widget,
|
||||
data: this.props
|
||||
});
|
||||
}
|
||||
this.$emit('updateProps', this.props);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@@ -42,9 +42,9 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
created() {
|
||||
this.text = this.$store.state.settings.memo;
|
||||
this.text = this.$store.state.memo;
|
||||
|
||||
this.$watch(() => this.$store.state.settings.memo, text => {
|
||||
this.$watch(() => this.$store.reactiveState.memo, text => {
|
||||
this.text = text;
|
||||
});
|
||||
},
|
||||
@@ -57,10 +57,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
saveMemo() {
|
||||
this.$store.dispatch('settings/set', {
|
||||
key: 'memo',
|
||||
value: this.text
|
||||
});
|
||||
this.$store.set('memo', this.text);
|
||||
this.changed = false;
|
||||
}
|
||||
}
|
||||
|
@@ -74,7 +74,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
thumbnail(image: any): string {
|
||||
return this.$store.state.device.disableShowingAnimatedImages
|
||||
return this.$store.state.disableShowingAnimatedImages
|
||||
? getStaticImageUrl(image.thumbnailUrl)
|
||||
: image.thumbnailUrl;
|
||||
},
|
||||
|
Reference in New Issue
Block a user