misc_pterodactyl-panel/resources/assets/scripts/app.ts
2019-02-02 18:49:51 -08:00

41 lines
903 B
TypeScript

import Vue from 'vue';
import Vuex from 'vuex';
import VueI18n from 'vue-i18n';
import VueRouter from 'vue-router';
import VeeValidate from 'vee-validate';
// Helpers
// @ts-ignore
import {Ziggy} from './helpers/ziggy';
// @ts-ignore
import Locales from './../../../resources/lang/locales';
import {FlashMixin} from './mixins/flash';
import store from './store/index';
import router from './router';
Vue.config.productionTip = false;
require('./bootstrap');
window.events = new Vue();
window.Ziggy = Ziggy;
Vue.use(Vuex);
Vue.use(VueRouter);
Vue.use(VeeValidate);
Vue.use(VueI18n);
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
Vue.mixin({methods: {route}});
Vue.mixin(FlashMixin);
const i18n = new VueI18n({
locale: 'en',
messages: {...Locales},
});
if (module.hot) {
module.hot.accept();
}
new Vue({store, router, i18n}).$mount('#pterodactyl');