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

32 lines
810 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"
import VueLazyLoad from 'vue3-lazyload'
2020-10-07 03:03:02 -04:00
import VueScrollTo from 'vue-scrollto'
2022-02-19 00:18:01 -05:00
import { filters } from './filter'
import App from './App.vue'
2022-02-19 00:18:01 -05:00
import './mystyles.scss'
import 'mdi/css/materialdesignicons.css'
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)
2022-02-19 00:18:01 -05:00
app.config.globalProperties.$filters = filters
app.mount('#app')