2
0
Fork 0
mirror of https://github.com/koel/koel synced 2024-12-29 05:53:06 +00:00
koel/resources/assets/js/app.ts

27 lines
897 B
TypeScript
Raw Normal View History

2022-04-15 17:00:08 +00:00
import { createApp } from 'vue'
import { clickaway, focus, hideBrokenIcon, overflowFade, tooltip } from '@/directives'
import { FontAwesomeIcon, FontAwesomeLayers } from '@fortawesome/vue-fontawesome'
import { RouterKey } from '@/symbols'
import { routes } from '@/config'
import Router from '@/router'
2022-07-26 15:13:58 +00:00
import App from './App.vue'
2022-04-15 14:24:30 +00:00
2022-05-14 23:37:16 +00:00
createApp(App)
.provide(RouterKey, new Router(routes))
2023-11-10 13:16:06 +00:00
.component('Icon', FontAwesomeIcon)
.component('IconLayers', FontAwesomeLayers)
2022-05-14 23:37:16 +00:00
.directive('koel-focus', focus)
.directive('koel-clickaway', clickaway)
.directive('koel-tooltip', tooltip)
.directive('koel-hide-broken-icon', hideBrokenIcon)
.directive('koel-overflow-fade', overflowFade)
2022-05-14 23:37:16 +00:00
/**
* For Ancelot, the ancient cross of war
* for the holy town of Gods
* Gloria, gloria perpetua
* in this dawn of victory
*/
.mount('#app')
2022-04-15 14:24:30 +00:00
2022-07-27 20:09:48 +00:00
navigator.serviceWorker?.register('./sw.js')