neko/client/src/main.ts

34 lines
662 B
TypeScript
Raw Normal View History

2020-01-13 21:05:38 +13:00
import './assets/styles/main.scss'
import Vue from 'vue'
2020-01-23 06:16:40 +13:00
2020-01-13 21:05:38 +13:00
import Notifications from 'vue-notification'
2020-01-23 06:16:40 +13:00
import ToolTip from 'v-tooltip'
import Logger from './plugins/log'
2020-01-21 03:36:18 +13:00
import Client from './plugins/neko'
2020-01-23 06:16:40 +13:00
import Axios from './plugins/axios'
import Swal from './plugins/swal'
2020-01-24 04:23:26 +13:00
import Anime from './plugins/anime'
2020-01-23 06:16:40 +13:00
2020-01-21 03:36:18 +13:00
import store from './store'
2020-01-23 06:16:40 +13:00
import app from './app.vue'
2020-01-13 21:05:38 +13:00
Vue.config.productionTip = false
2020-01-21 03:36:18 +13:00
Vue.use(Logger)
2020-01-13 21:05:38 +13:00
Vue.use(Notifications)
2020-01-23 06:16:40 +13:00
Vue.use(ToolTip)
Vue.use(Axios)
Vue.use(Swal)
2020-01-24 04:23:26 +13:00
Vue.use(Anime)
2020-01-21 03:36:18 +13:00
Vue.use(Client)
2020-01-13 21:05:38 +13:00
new Vue({
2020-01-21 03:36:18 +13:00
store,
2020-01-23 06:16:40 +13:00
render: h => h(app),
2020-01-21 03:36:18 +13:00
created() {
this.$client.init(this)
2020-02-02 09:35:48 +13:00
this.$accessor.initialise()
2020-01-21 03:36:18 +13:00
},
2020-01-13 21:05:38 +13:00
}).$mount('#neko')