{"size": 1620, "ext": "js", "max_stars_repo_path": "src/main.js", "max_stars_repo_name": "slzll/vue_admin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/main.js", "max_issues_repo_name": "slzll/vue_admin", "max_issues_repo_issues_event_min_datetime": "2022-03-01T23:51:11.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-01T23:51:11.000Z", "max_forks_repo_path": "src/main.js", "max_forks_repo_name": "slzll/vue_admin", "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": 29.4545454545, "max_line_length": 80, "alphanum_fraction": 0.6537037037}
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import Vuex from 'vuex';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './style.less';
import '@/assets/css/reset.css';
import 'bootstrap/dist/css/bootstrap.css';
import '@/assets/css/el-reset.css';

import store from '@/store';
import App from './App';
import router from './router';


Vue.config.productionTip = false;
/*Date格式化*/
Date.prototype.format = function(str) {
    let year = this.getFullYear();
    let month = this.getMonth() + 1;
    let dmonth = month.toString().length == 1 ? '0' + month : month;
    let day = this.getDate();
    let dday = day.toString().length == 1 ? '0' + day : day;
    let hour = this.getHours();
    let minute = this.getMinutes();
    let seconds = this.getSeconds();
    let formatStr = str;
    formatStr = formatStr.replace(/yyyy|YYYY/, year);
    formatStr = formatStr.replace(/MM/, dmonth);
    formatStr = formatStr.replace(/dd/, dday);
    formatStr = formatStr.replace(/hh/, hour);
    formatStr = formatStr.replace(/mm/, minute);
    formatStr = formatStr.replace(/ss/, seconds);
    return formatStr;
};
/*string转Date*/
String.prototype.parseDate = function(format) {
    let value = this.match(/(-\d+|\d+)/)[1];
    return new Date(parseInt(value)).format(format || "yyyy/MM/dd hh:mm:ss");
};

Vue.use(Vuex);
Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: { App }
});
