aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/plugins')
-rw-r--r--viewer/src/plugins/fontawesome.ts (renamed from viewer/src/plugins/fontawesome.js)0
-rw-r--r--viewer/src/plugins/vuex.ts23
2 files changed, 23 insertions, 0 deletions
diff --git a/viewer/src/plugins/fontawesome.js b/viewer/src/plugins/fontawesome.ts
index 9bf4dba..9bf4dba 100644
--- a/viewer/src/plugins/fontawesome.js
+++ b/viewer/src/plugins/fontawesome.ts
diff --git a/viewer/src/plugins/vuex.ts b/viewer/src/plugins/vuex.ts
new file mode 100644
index 0000000..9b2fa46
--- /dev/null
+++ b/viewer/src/plugins/vuex.ts
@@ -0,0 +1,23 @@
1import Vue from 'vue'
2import Vuex from 'vuex'
3import { extractVuexModule } from "vuex-class-component";
4import { createProxy } from "vuex-class-component";
5import UIStore from '@/store/uiStore';
6
7Vue.use(Vuex)
8
9const store = new Vuex.Store({
10 modules: {
11 ...extractVuexModule(UIStore)
12 }
13});
14
15Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore));
16
17declare module 'vue/types/vue' {
18 interface Vue {
19 $uiStore: UIStore
20 }
21}
22
23export default store;