text: import Vue from "vue";
  import VueRouter from "vue-router";
  import App from "./App";
  
  // router setup
  import routes from "./routes/routes";
  
  import store from './store'
  import axios from 'axios';
  
  Vue.config.productionTip = false
  
  // Setting up default vue's http modules for api calls
  Vue.prototype.$http = axios;
  // Load the token from the localStorage
  const token = localStorage.getItem("token");
  // Is there is any token then we will simply append default axios authorization headers
  if (token) {
    Vue.prototype.$http.defaults.headers.common['Authorization'] = token;
  }
  
  // Plugins
  import GlobalComponents from "./globalComponents";
  import GlobalDirectives from "./globalDirectives";
  import Material from "./materialPlugin";
  import SideBar from "./components/SidebarPlugin";
  import Notifications from "./components/NotificationPlugin";
  
  
  // configure router
  const router = new VueRouter({
    routes, // short for routes: routes
    linkExactActiveClass: "nav-item active"
  });
  
  Vue.use(VueRouter);
  Vue.use(GlobalComponents);
  Vue.use(GlobalDirectives);
  Vue.use(Material);
  Vue.use(SideBar);
  Vue.use(Notifications);
  
  /* eslint-disable no-new */
  new Vue({
    el: "#app",
    router,
    store,
    render: h => h(App),
    data : {}
  });
  