2018-03-31 21:52:11 +01:00
|
|
|
import Vue from 'vue';
|
2018-03-31 22:33:10 +01:00
|
|
|
import Vuex from 'vuex';
|
|
|
|
import vuexI18n from 'vuex-i18n';
|
2018-03-31 21:52:11 +01:00
|
|
|
import VueRouter from 'vue-router';
|
2018-06-18 00:53:24 +01:00
|
|
|
import VeeValidate from 'vee-validate';
|
2018-03-31 22:33:10 +01:00
|
|
|
|
2018-06-16 20:43:32 +01:00
|
|
|
Vue.config.productionTip = false;
|
2018-06-06 07:42:34 +01:00
|
|
|
require('./bootstrap');
|
|
|
|
|
2018-03-31 22:33:10 +01:00
|
|
|
// Helpers
|
2018-03-31 21:52:11 +01:00
|
|
|
import { Ziggy } from './helpers/ziggy';
|
2018-05-26 20:33:27 +01:00
|
|
|
import Locales from './../../../resources/lang/locales';
|
2018-05-26 22:50:38 +01:00
|
|
|
import { flash } from './mixins/flash';
|
2018-06-16 20:43:32 +01:00
|
|
|
import store from './store/index.js';
|
2018-06-16 22:05:39 +01:00
|
|
|
import router from './router';
|
2018-03-31 21:52:11 +01:00
|
|
|
|
2018-05-26 22:50:38 +01:00
|
|
|
window.events = new Vue;
|
2018-03-31 21:52:11 +01:00
|
|
|
window.Ziggy = Ziggy;
|
|
|
|
|
2018-03-31 22:33:10 +01:00
|
|
|
Vue.use(Vuex);
|
2018-06-16 22:05:39 +01:00
|
|
|
Vue.use(VueRouter);
|
|
|
|
Vue.use(vuexI18n.plugin, store);
|
2018-06-18 00:53:24 +01:00
|
|
|
Vue.use(VeeValidate);
|
2018-06-06 07:00:01 +01:00
|
|
|
|
2018-05-26 20:33:27 +01:00
|
|
|
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
|
2018-03-31 21:52:11 +01:00
|
|
|
|
2018-04-08 22:00:52 +01:00
|
|
|
Vue.mixin({ methods: { route } });
|
2018-05-26 22:50:38 +01:00
|
|
|
Vue.mixin(flash);
|
2018-03-31 21:52:11 +01:00
|
|
|
|
2018-03-31 22:33:10 +01:00
|
|
|
Vue.i18n.add('en', Locales.en);
|
|
|
|
Vue.i18n.set('en');
|
2018-03-31 21:52:11 +01:00
|
|
|
|
2018-06-07 05:44:52 +01:00
|
|
|
if (module.hot) {
|
|
|
|
module.hot.accept();
|
|
|
|
}
|
|
|
|
|
2018-04-08 22:00:52 +01:00
|
|
|
const app = new Vue({ store, router }).$mount('#pterodactyl');
|