mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
25 lines
653 B
TypeScript
25 lines
653 B
TypeScript
import './staticLoader'
|
|
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import { httpService } from '@/services'
|
|
import { clickaway, droppable, focus } from '@/directives'
|
|
import router from '@/router'
|
|
|
|
httpService.init()
|
|
router.init()
|
|
|
|
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')
|
|
|
|
navigator.serviceWorker.register('./sw.js').then((): void => console.log('Service Worker Registered'))
|