Created
February 7, 2020 15:52
-
-
Save dumebi/2f48ac697e4f8886e8712cec9487d64b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'vue-loading-overlay/dist/vue-loading.css' | |
import 'izitoast/dist/css/iziToast.min.css' | |
import Vue from 'vue' | |
import App from './App.vue' | |
import router from './router' | |
// import './registerServiceWorker' | |
import store from './store/store' | |
import DashboardPlugin from './plugins/dashboard' | |
import utilsMixins from './mixins/utils_mixin' | |
import userMixins from './mixins/user_mixin' | |
import tokenMixins from './mixins/token_mixin' | |
import VueTelInput from 'vue-tel-input' | |
import VueLoading from 'vue-loading-overlay' | |
import VueIziToast from 'vue-izitoast' | |
import Datepicker from 'vuejs-datepicker' | |
import vSelect from 'vue-select'; | |
import { requiresAuth, requiresNoAuth } from './middleware' | |
import wysiwyg from "vue-wysiwyg"; | |
Vue.use(wysiwyg, {}); // config is optional. more below | |
import "vue-wysiwyg/dist/vueWysiwyg.css"; | |
import "vue-select/dist/vue-select.css"; | |
router.beforeEach((to, from, next) => { | |
requiresAuth(to, from, next, store.state) | |
requiresNoAuth(to, from, next, store.state) | |
}) | |
Vue.config.productionTip = false | |
Vue.mixin(utilsMixins) | |
Vue.mixin(tokenMixins) | |
Vue.mixin(userMixins) | |
Vue.use(VueLoading) | |
Vue.use(VueTelInput) | |
Vue.use(VueIziToast) | |
Vue.component('datepicker', Datepicker) | |
Vue.component('v-select', vSelect) | |
Vue.component('Loading', VueLoading) | |
Vue.use(DashboardPlugin) | |
new Vue({ | |
router, | |
store, | |
render: h => h(App) | |
}).$mount('#app') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment