import Vue from 'vue';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';

import './images/favicon.png';
import './images/headerLogo.png';
import './scss/index.scss';

import App from './App.vue';

import routes from './routes';
import store from './store/index';
import firebaseApp, { getAccessToken } from './firebase';

Vue.use(VueRouter);
Vue.use(VueResource);

firebaseApp.auth().onAuthStateChanged((user) => {
  store.dispatch('setUser', user);
  if (user) {
    getAccessToken(user).then((token) => {
      store.dispatch('setAccessToken', token);
    });
  }
});

const router = new VueRouter({ routes });

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});

@@ -342,16 +342,447 @@
 base';%0A%0A
+if (NODE_ENV === 'production') %7B%0A  (function(i,s,o,g,r,a,m)%7Bi%5B'GoogleAnalyticsObject'%5D=r;i%5Br%5D=i%5Br%5D%7C%7Cfunction()%7B%0A  (i%5Br%5D.q=i%5Br%5D.q%7C%7C%5B%5D).push(arguments)%7D,i%5Br%5D.l=1*new Date();a=s.createElement(o),%0A  m=s.getElementsByTagName(o)%5B0%5D;a.async=1;a.src=g;m.parentNode.insertBefore(a,m)%0A  %7D)(window,document,'script','https://www.google-analytics.com/analytics.js','ga');%0A%0A  ga('create', 'UA-80557105-2', 'auto');%0A  ga('send', 'pageview');%0A%7D%0A%0A
 Vue.use(

add Google Analytics