mirror of
https://github.com/koel/koel
synced 2024-12-12 13:42:27 +00:00
23 lines
699 B
TypeScript
23 lines
699 B
TypeScript
import { createApp } from 'vue'
|
|
import { clickaway, focus, tooltip } from '@/directives'
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
import { RouterKey } from '@/symbols'
|
|
import { routes } from '@/config'
|
|
import Router from '@/router'
|
|
import App from './App.vue'
|
|
|
|
createApp(App)
|
|
.provide(RouterKey, new Router(routes))
|
|
.component('icon', FontAwesomeIcon)
|
|
.directive('koel-focus', focus)
|
|
.directive('koel-clickaway', clickaway)
|
|
.directive('koel-tooltip', tooltip)
|
|
/**
|
|
* For Ancelot, the ancient cross of war
|
|
* for the holy town of Gods
|
|
* Gloria, gloria perpetua
|
|
* in this dawn of victory
|
|
*/
|
|
.mount('#app')
|
|
|
|
navigator.serviceWorker?.register('./sw.js')
|