summaryrefslogtreecommitdiffstats
path: root/webapp/src/main.js
diff options
context:
space:
mode:
authorUdo Walter2018-08-03 23:51:11 +0200
committerUdo Walter2018-08-03 23:51:11 +0200
commit344a0502ab3800e69712bff15d4026550d50ab76 (patch)
treefd6b9c771fc89be5524eac25f2a5667eebb05faf /webapp/src/main.js
parent[groups] icon fix (diff)
downloadbas-344a0502ab3800e69712bff15d4026550d50ab76.tar.gz
bas-344a0502ab3800e69712bff15d4026550d50ab76.tar.xz
bas-344a0502ab3800e69712bff15d4026550d50ab76.zip
[webapp] everythiing configurable (dashboardmodule, stores and global i18n messages is now in the config folder; router rework: modules can now set their own subroutes
Diffstat (limited to 'webapp/src/main.js')
-rw-r--r--webapp/src/main.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/webapp/src/main.js b/webapp/src/main.js
index 26c6b2c..63a8cbe 100644
--- a/webapp/src/main.js
+++ b/webapp/src/main.js
@@ -2,15 +2,21 @@ import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
import VueTouch from 'vue-touch'
-import store from './store'
+import Vuex from 'vuex'
+import globalStore from '@/store/global'
+import storeModules from '@/config/store'
import axios from 'axios'
-import router from './router'
+import router from '@/router'
import VueI18n from 'vue-i18n'
-import i18nMessages from './i18n.json'
+import i18nMessages from '@/config/i18n'
import '@/assets/styles.css'
Vue.config.productionTip = false
+Vue.use(Vuex)
+globalStore.modules = storeModules
+var store = new Vuex.Store(globalStore)
+
Vue.use(VueI18n)
const i18n = new VueI18n({