text: import Vue from "vue";
  import App from "./App.vue";
  import router from "./router";
  import store from "./store";
  import vuetify from "./plugins/vuetify";
  import VuePageTransition from 'vue-page-transition'
  import { apolloProvider } from '@/services'
  import VueSweetalert2 from 'vue-sweetalert2';
  import VueTimeago from 'vue-timeago'
  import { fb } from '@/services'
  import { VLazyImagePlugin } from 'v-lazy-image';
  
  Vue.config.productionTip = false;
  
  /**  VUETIFY ICONS **/
  import 'material-design-icons-iconfont/dist/material-design-icons.css'
  
  /** SWEETALERT2 CSS **/
  import 'sweetalert2/dist/sweetalert2.min.css';
  
  /** VUE-PAGE-TRANSITION **/
  Vue.use(VuePageTransition)
  /** VUE SWEET ALERT 2 **/
  Vue.use(VueSweetalert2);
  /** VUE-TIMEAGO **/
  Vue.use(VueTimeago, {
    locale: 'en',
    locales: {
      'zh-CN': require('date-fns/locale/zh_cn')
    }
  })
  /** VUE-LAZY-IMAGE LOADING **/
  Vue.use(VLazyImagePlugin);
  
  let app = ''
  
  
  fb.auth().onAuthStateChanged(() => {
    if (!app) {
      new Vue({
        router,
        store,
        vuetify,
        apolloProvider,
        render: h => h(App)
      }).$mount("#app");
    }
  })
  