forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.ts
More file actions
41 lines (32 loc) · 903 Bytes
/
app.ts
File metadata and controls
41 lines (32 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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');