{"size": 883, "ext": "js", "max_stars_repo_path": "client/src/main.js", "max_stars_repo_name": "TobiasBriones/example.programming.web.attendance-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/src/main.js", "max_issues_repo_name": "TobiasBriones/example.programming.web.attendance-app", "max_issues_repo_issues_event_min_datetime": "2022-02-27T07:51:27.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T07:51:27.000Z", "max_forks_repo_path": "client/src/main.js", "max_forks_repo_name": "TobiasBriones/example.programming.web.attendance-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.075, "max_line_length": 66, "alphanum_fraction": 0.6693091733}
/*
 * Copyright (c) 2020 Tobias Briones.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App.vue';
import store from './store';
import router from './routes';
import { auth } from './firebase';
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';

let app = null;

Vue.use(VueRouter);

// Install BootstrapVue
Vue.use(BootstrapVue);

// Optionally install the BootstrapVue icon components plugin
Vue.use(IconsPlugin);

Vue.config.productionTip = false;

auth.onAuthStateChanged(() => {
  if (!app) {
    app = new Vue(
      {
        router,
        store,
        render: h => h(App)
      }
    ).$mount('#app');
  }
});