import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import VueScrollReveal from 'vue-scroll-reveal' // import Vuetify from 'vuetify' import { global } from '../Global/mixins/global'; // import Vuetify from 'vuetify/lib' import vuetify from '@JS/Plugin/vuetify' import 'popper.js' import 'bootstrap-v4-rtl' import 'bootstrap-v4-rtl/scss/bootstrap-rtl.scss' import 'bootstrap-select' import 'bootstrap-select/dist/css/bootstrap-select.css' // import 'vuetify/dist/vuetify.min.css' // Ensure you are using css-loader import '@Global/assets/Font-Icons/css/fontello.css' import "@Global/scss/style.scss" // components import PartTitle from "@Global/components/Dividers/PartTitle.vue"; Vue.component('WM-PartTitle', PartTitle) import PageTitle from "@Global/components/Dividers/PageTitle.vue"; Vue.component('WM-PageTitle', PageTitle) import Checkbox from "@Global/components/Inputs/Checkbox.vue"; Vue.component('WM-Checkbox', Checkbox) import InfoBlock from "@Global/components/Misc/InfoBlock.vue"; Vue.component('WM-InfoBlock', InfoBlock) import Breadcrumbs from '@Global/components/Misc/Breadcrumbs'; Vue.component('wm-breadcrumbs', Breadcrumbs) import HintText from "@Global/components/Texts/Hint.vue"; Vue.component('wm-hint-text', HintText) /** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ window.Vue = require('vue'); /** * The following block of code may be used to automatically register your * Vue components. It will recursively scan this directory for the Vue * components and automatically register them with their "basename". * * Eg. ./components/ExampleComponent.vue -> */ // const files = require.context('./', true, /\.vue$/i) // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) /** * Next, we will create a fresh Vue application instance and attach it to * the page. Then, you may begin adding components to this application * or customize the JavaScript scaffolding to fit your unique needs. */ // Vue.use(Vuetify, { // iconfont: 'fa', // rtl: true, // }); // Vue.config.productionTip = false; Vue.use(VueScrollReveal, { class: 'v-scroll-reveal', // A CSS class applied to elements with the v-scroll-reveal directive; useful for animation overrides. duration: 800, scale: 1, distance: '10px', mobile: false }); Vue.mixin(global); import { TokenService } from "@Global/services/storage.services"; import ApiService from "@Global/services/api.services"; // If token exists set Authorizion header if (TokenService.getToken()) { ApiService.setAuthHeader(); } const app = new Vue({ router, store, vuetify, render: h => h(App), }).$mount('#app');