aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store/index.ts
diff options
context:
space:
mode:
authorpacien2020-09-25 16:01:49 +0200
committerpacien2020-09-25 16:01:49 +0200
commite93f7b1eb84c083d67567115284c0002a3a7d5fc (patch)
tree8d373e8f7f571485e1330928f43b090ed004c525 /viewer/src/store/index.ts
parent8e3ac8fe44bebb38e1882ca7f06b8100078ad88d (diff)
parentfd542f75a1d94ee5f804d0925823276b97f38581 (diff)
downloadldgallery-e93f7b1eb84c083d67567115284c0002a3a7d5fc.tar.gz
Merge branch 'develop' for release v2.0v2.0
Diffstat (limited to 'viewer/src/store/index.ts')
-rw-r--r--viewer/src/store/index.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/viewer/src/store/index.ts b/viewer/src/store/index.ts
index d5339e8..f86d66b 100644
--- a/viewer/src/store/index.ts
+++ b/viewer/src/store/index.ts
@@ -17,30 +17,30 @@
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
29const store = new Vuex.Store({ 29const 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 strict: process.env.NODE_ENV !== "production",
35}); 35});
36 36
37Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore)); 37Vue.use(vue => (vue.prototype.$uiStore = createProxy(store, UIStore)));
38Vue.use((vue) => vue.prototype.$galleryStore = createProxy(store, GalleryStore)); 38Vue.use(vue => (vue.prototype.$galleryStore = createProxy(store, GalleryStore)));
39 39
40declare module "vue/types/vue" { 40declare module "vue/types/vue" {
41 interface Vue { 41 interface Vue {
42 $uiStore: UIStore, 42 $uiStore: UIStore;
43 $galleryStore: GalleryStore 43 $galleryStore: GalleryStore;
44 } 44 }
45} 45}
46 46