koel/resources/assets/js/app.ts

26 lines
653 B
TypeScript
Raw Normal View History

2022-04-24 08:29:14 +00:00
import './staticLoader'
2022-04-15 17:00:08 +00:00
import { createApp } from 'vue'
2022-04-25 13:07:38 +00:00
import App from './App.vue'
2022-04-24 08:50:45 +00:00
import { httpService } from '@/services'
2022-04-15 14:24:30 +00:00
import { clickaway, droppable, focus } from '@/directives'
2022-04-15 17:00:08 +00:00
import router from '@/router'
2022-04-15 14:24:30 +00:00
2022-04-24 08:50:45 +00:00
httpService.init()
2022-04-15 17:00:08 +00:00
router.init()
2022-04-15 14:24:30 +00: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 13:07:38 +00:00
navigator.serviceWorker.register('./sw.js').then((): void => console.log('Service Worker Registered'))