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

36 lines
872 B
JavaScript
Raw Normal View History

2022-02-19 00:18:01 -05:00
import { createApp } from 'vue'
import store from './store'
2022-02-19 00:18:01 -05:00
import { router } from './router'
import VueProgressBar from '@aacassandra/vue3-progressbar'
import VueClickAway from 'vue3-click-away'
2022-02-19 00:18:01 -05:00
import VueLazyLoad from 'vue3-lazyload'
2020-10-07 03:03:02 -04:00
import VueScrollTo from 'vue-scrollto'
import mdiVue from 'mdi-vue/v3'
2022-02-19 00:18:01 -05:00
import { filters } from './filter'
import { icons } from './icons'
2022-02-19 00:18:01 -05:00
import App from './App.vue'
2022-02-19 00:18:01 -05:00
import './mystyles.scss'
import '@vueform/slider/themes/default.css'
2022-02-19 00:18:01 -05:00
const app = createApp(App)
.use(store)
.use(router)
.use(VueProgressBar, {
color: 'hsl(204, 86%, 53%)',
failedColor: 'red',
height: '1px'
})
.use(VueClickAway)
.use(VueLazyLoad, {
// Do not log errors, if image does not exist
log: false
})
.use(VueScrollTo)
.use(mdiVue, {
icons: icons
})
2022-02-19 00:18:01 -05:00
app.config.globalProperties.$filters = filters
app.mount('#app')