diff options
author | Zero~Informatique | 2019-12-21 08:08:54 +0100 |
---|---|---|
committer | Zero~Informatique | 2019-12-21 08:08:54 +0100 |
commit | 9e4fdd6f38853d8a4a959901ab7902569de75484 (patch) | |
tree | 3255e7fc08a6767ce8c333a42388f6398d2b460e /viewer/src/plugins/vuex.ts | |
parent | 40e8303d6b37a062754fdfbe824a153b8e5e2ddf (diff) | |
download | ldgallery-9e4fdd6f38853d8a4a959901ab7902569de75484.tar.gz |
viewer:
Implemented the "example" project in devServer
Display loader and error messages (not translated yet)
Created a "GalleryStore" to fetch the JSon data from the gallery (currently from example)
Diffstat (limited to 'viewer/src/plugins/vuex.ts')
-rw-r--r-- | viewer/src/plugins/vuex.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/viewer/src/plugins/vuex.ts b/viewer/src/plugins/vuex.ts deleted file mode 100644 index 9b2fa46..0000000 --- a/viewer/src/plugins/vuex.ts +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | import Vue from 'vue' | ||
2 | import Vuex from 'vuex' | ||
3 | import { extractVuexModule } from "vuex-class-component"; | ||
4 | import { createProxy } from "vuex-class-component"; | ||
5 | import UIStore from '@/store/uiStore'; | ||
6 | |||
7 | Vue.use(Vuex) | ||
8 | |||
9 | const store = new Vuex.Store({ | ||
10 | modules: { | ||
11 | ...extractVuexModule(UIStore) | ||
12 | } | ||
13 | }); | ||
14 | |||
15 | Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore)); | ||
16 | |||
17 | declare module 'vue/types/vue' { | ||
18 | interface Vue { | ||
19 | $uiStore: UIStore | ||
20 | } | ||
21 | } | ||
22 | |||
23 | export default store; | ||