owntone-server/web-src/src/main.js

30 lines
718 B
JavaScript
Raw Normal View History

2023-07-25 08:41:34 -04:00
import './mystyles.scss'
import App from './App.vue'
2022-02-19 00:18:01 -05:00
import { createApp } from 'vue'
2023-07-25 08:41:34 -04:00
import { filters } from './filter'
2022-05-20 07:44:22 -04:00
import i18n from './i18n'
2023-07-25 08:41:34 -04:00
import { icons } from './icons'
import mdiVue from 'mdi-vue/v3'
import VueClickAway from 'vue3-click-away'
2022-02-19 00:18:01 -05:00
import VueLazyLoad from 'vue3-lazyload'
2023-07-25 08:41:34 -04:00
import VueProgressBar from '@aacassandra/vue3-progressbar'
import { router } from './router'
import store from './store'
2022-02-19 00:18:01 -05:00
const app = createApp(App)
.use(store)
.use(router)
.use(VueProgressBar)
2022-02-19 00:18:01 -05:00
.use(VueClickAway)
.use(VueLazyLoad, {
// Do not log errors, if image does not exist
log: false
})
.use(mdiVue, {
2023-07-25 08:41:34 -04:00
icons
})
2022-05-20 07:44:22 -04:00
.use(i18n)
2022-02-19 00:18:01 -05:00
app.config.globalProperties.$filters = filters
app.mount('#app')