2018-03-31 20:52:11 +00:00
|
|
|
import Vue from 'vue';
|
2018-03-31 21:33:10 +00:00
|
|
|
import Vuex from 'vuex';
|
2018-12-30 00:11:49 +00:00
|
|
|
import VueI18n from 'vue-i18n';
|
2018-03-31 20:52:11 +00:00
|
|
|
import VueRouter from 'vue-router';
|
2018-06-17 23:53:24 +00:00
|
|
|
import VeeValidate from 'vee-validate';
|
2018-03-31 21:33:10 +00:00
|
|
|
// Helpers
|
2018-12-30 00:11:49 +00:00
|
|
|
// @ts-ignore
|
|
|
|
import {Ziggy} from './helpers/ziggy';
|
|
|
|
// @ts-ignore
|
2018-05-26 19:33:27 +00:00
|
|
|
import Locales from './../../../resources/lang/locales';
|
2018-12-30 00:11:49 +00:00
|
|
|
|
2018-12-30 03:24:09 +00:00
|
|
|
import {FlashMixin} from './mixins/flash';
|
2018-12-16 23:29:44 +00:00
|
|
|
import store from './store/index';
|
2018-06-16 21:05:39 +00:00
|
|
|
import router from './router';
|
2018-03-31 20:52:11 +00:00
|
|
|
|
2018-12-30 00:11:49 +00:00
|
|
|
Vue.config.productionTip = false;
|
|
|
|
require('./bootstrap');
|
|
|
|
|
2018-09-23 23:06:23 +00:00
|
|
|
window.events = new Vue();
|
2018-03-31 20:52:11 +00:00
|
|
|
window.Ziggy = Ziggy;
|
|
|
|
|
2018-03-31 21:33:10 +00:00
|
|
|
Vue.use(Vuex);
|
2018-06-16 21:05:39 +00:00
|
|
|
Vue.use(VueRouter);
|
2018-06-17 23:53:24 +00:00
|
|
|
Vue.use(VeeValidate);
|
2018-12-30 00:11:49 +00:00
|
|
|
Vue.use(VueI18n);
|
2018-06-06 06:00:01 +00:00
|
|
|
|
2018-05-26 19:33:27 +00:00
|
|
|
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
|
2018-03-31 20:52:11 +00:00
|
|
|
|
2018-12-30 00:11:49 +00:00
|
|
|
Vue.mixin({methods: {route}});
|
2018-12-30 03:24:09 +00:00
|
|
|
Vue.mixin(FlashMixin);
|
2018-03-31 20:52:11 +00:00
|
|
|
|
2018-12-30 00:11:49 +00:00
|
|
|
const i18n = new VueI18n({
|
|
|
|
locale: 'en',
|
|
|
|
messages: {...Locales},
|
|
|
|
});
|
2018-03-31 20:52:11 +00:00
|
|
|
|
2018-06-07 04:44:52 +00:00
|
|
|
if (module.hot) {
|
|
|
|
module.hot.accept();
|
|
|
|
}
|
|
|
|
|
2018-12-30 00:11:49 +00:00
|
|
|
new Vue({store, router, i18n}).$mount('#pterodactyl');
|