Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.

45 lines
1014 B
TypeScript
Raw Normal View History

2020-01-13 08:05:38 +00:00
import './assets/styles/main.scss'
import Vue from 'vue'
2020-01-22 17:16:40 +00:00
2020-01-13 08:05:38 +00:00
import Notifications from 'vue-notification'
2020-01-22 17:16:40 +00:00
import ToolTip from 'v-tooltip'
import Logger from './plugins/log'
2020-01-20 14:36:18 +00:00
import Client from './plugins/neko'
2020-01-22 17:16:40 +00:00
import Axios from './plugins/axios'
import Swal from './plugins/swal'
2020-01-23 15:23:26 +00:00
import Anime from './plugins/anime'
2020-01-22 17:16:40 +00:00
2020-04-05 02:57:22 +00:00
import { i18n } from './plugins/i18n'
2020-01-20 14:36:18 +00:00
import store from './store'
2020-01-22 17:16:40 +00:00
import app from './app.vue'
2020-01-13 08:05:38 +00:00
Vue.config.productionTip = false
2020-01-20 14:36:18 +00:00
Vue.use(Logger)
2020-01-13 08:05:38 +00:00
Vue.use(Notifications)
2020-01-22 17:16:40 +00:00
Vue.use(ToolTip)
Vue.use(Axios)
Vue.use(Swal)
2020-01-23 15:23:26 +00:00
Vue.use(Anime)
2020-01-20 14:36:18 +00:00
Vue.use(Client)
2020-01-13 08:05:38 +00:00
new Vue({
2020-04-05 02:57:22 +00:00
i18n,
2020-01-20 14:36:18 +00:00
store,
2020-04-05 03:17:06 +00:00
render: (h) => h(app),
2020-01-20 14:36:18 +00:00
created() {
2020-02-12 22:41:52 +00:00
const click = () => {
this.$accessor.setActive()
if (this.$accessor.settings.autoplay && this.$accessor.video.playing) {
this.$accessor.video.setMuted(false)
}
window.removeEventListener('click', click, false)
}
window.addEventListener('click', click, false)
2020-01-20 14:36:18 +00:00
this.$client.init(this)
2020-02-01 20:35:48 +00:00
this.$accessor.initialise()
2020-01-20 14:36:18 +00:00
},
2020-01-13 08:05:38 +00:00
}).$mount('#neko')