30 lines
555 B
TypeScript
30 lines
555 B
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import PrimeVue from 'primevue/config'
|
|
import Aura from '@primeuix/themes/aura'
|
|
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import { useAuthStore } from './stores/auth'
|
|
import './style.css'
|
|
|
|
const app = createApp(App)
|
|
|
|
const pinia = createPinia()
|
|
|
|
app.use(pinia)
|
|
app.use(router)
|
|
app.use(PrimeVue, {
|
|
theme: {
|
|
preset: Aura,
|
|
options: {
|
|
darkModeSelector: false,
|
|
},
|
|
},
|
|
})
|
|
|
|
const authStore = useAuthStore(pinia)
|
|
void authStore.hydrate()
|
|
|
|
app.mount('#app')
|