aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/store/index.ts')
-rw-r--r--viewer/src/store/index.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/viewer/src/store/index.ts b/viewer/src/store/index.ts
index 0277fa4..d5339e8 100644
--- a/viewer/src/store/index.ts
+++ b/viewer/src/store/index.ts
@@ -17,12 +17,12 @@
17-- along with this program. If not, see <https://www.gnu.org/licenses/>. 17-- along with this program. If not, see <https://www.gnu.org/licenses/>.
18*/ 18*/
19 19
20import Vue from 'vue' 20import Vue from "vue"
21import Vuex from 'vuex' 21import Vuex from "vuex"
22import { extractVuexModule } from "vuex-class-component"; 22import { extractVuexModule } from "vuex-class-component";
23import { createProxy } from "vuex-class-component"; 23import { createProxy } from "vuex-class-component";
24import UIStore from '@/store/uiStore'; 24import UIStore from "@/store/uiStore";
25import GalleryStore from '@/store/galleryStore'; 25import GalleryStore from "@/store/galleryStore";
26 26
27Vue.use(Vuex) 27Vue.use(Vuex)
28 28
@@ -30,13 +30,14 @@ const store = new Vuex.Store({
30 modules: { 30 modules: {
31 ...extractVuexModule(UIStore), 31 ...extractVuexModule(UIStore),
32 ...extractVuexModule(GalleryStore) 32 ...extractVuexModule(GalleryStore)
33 } 33 },
34 strict: process.env.NODE_ENV !== "production",
34}); 35});
35 36
36Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore)); 37Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore));
37Vue.use((vue) => vue.prototype.$galleryStore = createProxy(store, GalleryStore)); 38Vue.use((vue) => vue.prototype.$galleryStore = createProxy(store, GalleryStore));
38 39
39declare module 'vue/types/vue' { 40declare module "vue/types/vue" {
40 interface Vue { 41 interface Vue {
41 $uiStore: UIStore, 42 $uiStore: UIStore,
42 $galleryStore: GalleryStore 43 $galleryStore: GalleryStore