koel/resources/assets/js/app.ts

26 lines
653 B
TypeScript
Raw Normal View History

2022-04-24 11:29:14 +03:00
import './staticLoader'
2022-04-15 19:00:08 +02:00
import { createApp } from 'vue'
2022-04-25 16:07:38 +03:00
import App from './App.vue'
2022-04-24 11:50:45 +03:00
import { httpService } from '@/services'
2022-04-15 16:24:30 +02:00
import { clickaway, droppable, focus } from '@/directives'
2022-04-15 19:00:08 +02:00
import router from '@/router'
2022-04-15 16:24:30 +02:00
2022-04-24 11:50:45 +03:00
httpService.init()
2022-04-15 19:00:08 +02:00
router.init()
2022-04-15 16:24:30 +02:00
const app = createApp(App)
app.directive('koel-focus', focus)
app.directive('koel-clickaway', clickaway)
app.directive('koel-droppable', droppable)
/**
* For Ancelot, the ancient cross of war
* for the holy town of Gods
* Gloria, gloria perpetua
* in this dawn of victory
*/
app.mount('#app')
2022-04-25 16:07:38 +03:00
navigator.serviceWorker.register('./sw.js').then((): void => console.log('Service Worker Registered'))