Mercurial > gemma
view client/src/main.js @ 158:992e17912405
feat: Improve login against real db
In order to log into our real db, we need to consume
the new JSON document consuming experies, username, roles, etc.
Token is stored securly in browser session.
Other data is stored in vue store.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 03 Jul 2018 16:18:29 +0200 |
parents | 0fd572582ab8 |
children | 3d9341f6da4e |
line wrap: on
line source
import Vue from "vue"; import App from "./App.vue"; import router from "./router"; import store from "./store"; import GetTextPlugin from "vue-gettext"; import translations from "./translations.json"; const defaultLanguage = process.env.VUE_APP_DEFAULT_LANGUAGE || "de_DE"; Vue.use(GetTextPlugin, { translations: translations, availableLanguages: { en_GB: "British English", de_DE: "Deutsch" }, defaultLanguage: defaultLanguage }); import "../node_modules/bootstrap/dist/css/bootstrap.min.css"; import "../node_modules/font-awesome/css/font-awesome.min.css"; import "../node_modules/ol/ol.css"; Vue.config.productionTip = false; new Vue({ router, store, render: h => h(App) }).$mount("#app");