This commit is contained in:
Alicia Sykes
2022-08-19 10:04:38 +01:00
parent 8f893c36d7
commit cdf1bb9529
7 changed files with 41 additions and 66 deletions

View File

@@ -13,14 +13,15 @@ import TreeView from 'vue-json-tree-view';
// Import base Dashy components and utils
import Dashy from '@/App.vue'; // Main Dashy Vue app
import router from '@/router'; // Router, for navigation
import store from '@/store'; // Store, for local state management
import router from '@/router'; // Router, for navigation
import serviceWorker from '@/utils/InitServiceWorker'; // Service worker initialization
import { messages } from '@/utils/languages'; // Language texts
import ErrorReporting from '@/utils/ErrorReporting'; // Error reporting initializer (off)
import clickOutside from '@/directives/ClickOutside'; // Directive for closing popups, modals, etc
import { toastedOptions, tooltipOptions, language as defaultLanguage } from '@/utils/defaults';
import { initKeycloakAuth, isKeycloakEnabled } from '@/utils/KeycloakAuth';
import Keys from '@/utils/StoreMutations';
// Initialize global Vue components
Vue.use(VueI18n);
@@ -53,6 +54,8 @@ ErrorReporting(Vue, router);
// Render function
const render = (awesome) => awesome(Dashy);
store.dispatch(Keys.INITIALIZE_CONFIG).then((thing) => console.log('main', thing));
// Mount the app, with router, store i18n and render func
const mount = () => new Vue({
store, router, render, i18n,