You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
679 B
27 lines
679 B
import Vue from "vue";
|
|
import App from "./App.vue";
|
|
import router from "./router";
|
|
import store from "./store";
|
|
import "./registerServiceWorker";
|
|
|
|
import { CHECK_AUTH } from "./store/actions.type";
|
|
import ApiService from "./common/api.service";
|
|
import DateFilter from "./common/date.filter";
|
|
import ErrorFilter from "./common/error.filter";
|
|
|
|
Vue.config.productionTip = false;
|
|
Vue.filter("date", DateFilter);
|
|
Vue.filter("error", ErrorFilter);
|
|
|
|
ApiService.init();
|
|
|
|
// Ensure we checked auth before each page load.
|
|
router.beforeEach((to, from, next) =>
|
|
Promise.all([store.dispatch(CHECK_AUTH)]).then(next)
|
|
);
|
|
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: h => h(App)
|
|
}).$mount("#app");
|