{"size": 1437, "ext": "js", "max_stars_repo_path": "resources/js/app-stats.js", "max_stars_repo_name": "jdenoc/money-tracker", "max_stars_repo_stars_event_min_datetime": "2019-10-12T10:53:19.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-05T05:29:43.000Z", "max_issues_repo_path": "resources/js/app-stats.js", "max_issues_repo_name": "jdenoc/money-tracker", "max_issues_repo_issues_event_min_datetime": "2017-02-27T06:10:17.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-22T04:18:31.000Z", "max_forks_repo_path": "resources/js/app-stats.js", "max_forks_repo_name": "jdenoc/money-tracker", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 184, "max_forks_count": null, "avg_line_length": 27.1132075472, "max_line_length": 86, "alphanum_fraction": 0.6492693111}
import Vue from 'vue';
import Store from './store';

import Snotify from 'vue-snotify';
Vue.use(Snotify, {toast: {timeout: 8000}});    // 8 seconds

import VTooltip from 'v-tooltip';
Vue.use(VTooltip);

import eventHub from "./plugins/eventHub";
Vue.use(eventHub);

import LoadingModal from './components/loading-modal';
import Navbar from './components/navbar';
import Notification from './components/notification';
import Stats from "./components/stats/stats";
import StatsNav from "./components/stats/stats-nav";

import {Accounts} from "./accounts";
import {AccountTypes} from "./account-types";
import {Tags} from "./tags";
import {Version} from './version';

new Vue({
    el: "#app",
    components: {
        LoadingModal,
        Navbar,
        Notification,
        Stats,
        StatsNav
    },
    store: Store,
    computed:{ },
    methods: {
        displayNotification: function(notification){
            this.$eventHub.broadcast(this.$eventHub.EVENT_NOTIFICATION, notification);
        },
    },
    mounted: function(){
        let accounts = new Accounts();
        accounts.fetch().then(this.displayNotification.bind(this));

        let accountTypes = new AccountTypes();
        accountTypes.fetch().then(this.displayNotification.bind(this));

        let tags = new Tags();
        tags.fetch().then(this.displayNotification.bind(this));

        let version = new Version();
        version.fetch();
    }
});