mirror of
https://github.com/koel/koel
synced 2025-02-17 22:08:28 +00:00
26 lines
653 B
TypeScript
26 lines
653 B
TypeScript
|
/// <reference path="./types.d.ts"/>
|
||
|
import Vue, { createApp } from 'vue'
|
||
|
import App from './app.vue'
|
||
|
import { http } from '@/services'
|
||
|
import { clickaway, droppable, focus } from '@/directives'
|
||
|
|
||
|
http.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')
|
||
|
|
||
|
if ('serviceWorker' in navigator) {
|
||
|
navigator.serviceWorker.register('./sw.js').then((): void => console.log('Service Worker Registered'))
|
||
|
}
|