2024-11-07 14:13:39 +02:00
|
|
|
import { createApp } from 'vue'
|
2024-12-02 08:50:25 +02:00
|
|
|
import { createHead } from '@unhead/vue'
|
2024-12-02 09:21:31 +02:00
|
|
|
import { Head } from '@unhead/vue/components'
|
2024-11-24 22:37:20 +02:00
|
|
|
import { VueQueryPlugin, type VueQueryPluginOptions } from '@tanstack/vue-query'
|
2024-12-02 08:50:25 +02:00
|
|
|
// import { createPinia } from 'pinia'
|
2024-11-20 01:59:52 +02:00
|
|
|
import PouchDB from '@/api/PouchDB'
|
2024-11-11 16:06:09 +02:00
|
|
|
|
2024-11-14 15:26:44 +02:00
|
|
|
import PrimeVue from 'primevue/config'
|
2024-12-08 11:06:31 +02:00
|
|
|
import { PrimeVueHereConnectPreset } from './themes/PrimeVueHereConnectPreset'
|
2024-11-14 15:26:44 +02:00
|
|
|
import './style.css'
|
|
|
|
|
import 'primeicons/primeicons.css'
|
|
|
|
|
|
2024-11-07 14:13:39 +02:00
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
|
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
2024-11-24 22:37:20 +02:00
|
|
|
const vueQueryPluginOptions: VueQueryPluginOptions = {
|
2024-11-19 18:49:12 +02:00
|
|
|
enableDevtoolsV6Plugin: import.meta.env.DEV,
|
2024-12-07 22:37:32 +02:00
|
|
|
|
2024-11-24 22:37:20 +02:00
|
|
|
queryClientConfig: {
|
|
|
|
|
defaultOptions: {
|
|
|
|
|
queries: {
|
|
|
|
|
refetchOnWindowFocus: false,
|
2024-12-02 08:50:25 +02:00
|
|
|
retryOnMount: false,
|
2024-11-24 22:37:20 +02:00
|
|
|
retry: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-02 09:21:31 +02:00
|
|
|
app.use(createHead())
|
|
|
|
|
app.component('MetaHead', Head)
|
2024-11-24 22:37:20 +02:00
|
|
|
app.use(VueQueryPlugin, vueQueryPluginOptions)
|
2024-12-02 08:50:25 +02:00
|
|
|
// app.use(createPinia())
|
2024-11-07 14:13:39 +02:00
|
|
|
app.use(router)
|
2024-11-14 15:26:44 +02:00
|
|
|
app.use(PrimeVue, {
|
|
|
|
|
theme: {
|
2024-12-08 11:06:31 +02:00
|
|
|
preset: PrimeVueHereConnectPreset,
|
2024-11-14 15:26:44 +02:00
|
|
|
options: {
|
2024-12-08 11:06:31 +02:00
|
|
|
darkModeSelector: 'system',
|
2024-11-14 15:26:44 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|
2024-11-07 14:13:39 +02:00
|
|
|
|
|
|
|
|
app.mount('#app')
|
2024-11-11 16:06:09 +02:00
|
|
|
|
|
|
|
|
window.PouchDB = PouchDB // it for debug in console only
|