From 7c2a2ff46469d5e8f44fb3ec7feae5f798e0baf8 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 27 Feb 2020 17:23:32 +0100 Subject: viewer: architectural fixes and improvements Make use of VueX's strict mode (which is different from vuex-class-component strict mode) Fixed issues and bad-practices with search filter tags mutations Correctly implement the new index.json format --- viewer/src/store/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'viewer/src/store/index.ts') diff --git a/viewer/src/store/index.ts b/viewer/src/store/index.ts index 0277fa4..956d4fd 100644 --- a/viewer/src/store/index.ts +++ b/viewer/src/store/index.ts @@ -30,7 +30,8 @@ const store = new Vuex.Store({ modules: { ...extractVuexModule(UIStore), ...extractVuexModule(GalleryStore) - } + }, + strict: process.env.NODE_ENV !== "production", }); Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore)); -- cgit v1.2.3 From ccecfd9421f4550a71134cd46e1388e486f8c564 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 28 Apr 2020 03:47:39 +0200 Subject: viewer: global formatting unification --- viewer/src/store/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'viewer/src/store/index.ts') diff --git a/viewer/src/store/index.ts b/viewer/src/store/index.ts index 956d4fd..d5339e8 100644 --- a/viewer/src/store/index.ts +++ b/viewer/src/store/index.ts @@ -17,12 +17,12 @@ -- along with this program. If not, see . */ -import Vue from 'vue' -import Vuex from 'vuex' +import Vue from "vue" +import Vuex from "vuex" import { extractVuexModule } from "vuex-class-component"; import { createProxy } from "vuex-class-component"; -import UIStore from '@/store/uiStore'; -import GalleryStore from '@/store/galleryStore'; +import UIStore from "@/store/uiStore"; +import GalleryStore from "@/store/galleryStore"; Vue.use(Vuex) @@ -37,7 +37,7 @@ const store = new Vuex.Store({ Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore)); Vue.use((vue) => vue.prototype.$galleryStore = createProxy(store, GalleryStore)); -declare module 'vue/types/vue' { +declare module "vue/types/vue" { interface Vue { $uiStore: UIStore, $galleryStore: GalleryStore -- cgit v1.2.3