import Vue from "vue" ; import Vuex from "vuex" ; import PermissionsView from "./components/Permissions.vue" ; import CommonComponents from "./components/common/index" ; import { loadI18nMessages } from "./store/i18n" ; import { Permissions } from "./store/Permissions" ; async function init ( ) { Vue . prototype . i18n = await loadI18nMessages ( ) ; Vue . use ( Vuex ) ; for ( const component of CommonComponents ) { Vue . component ( component . name , component . component ) ; } const store = new Vuex . Store ( { modules : { permissions : await new Permissions ( ) . getModule ( ) , } , } ) ; const instance = new Vue ( { render : ( h ) => h ( PermissionsView ) , store , } ) . $mount ( "#permissions" ) ; try { document . title = instance . i18n . extName ; } catch ( e ) { console . error ( e ) ; } } init ( ) ;