feat(front): [WIP] start migration to pinia and uno-css

This commit is contained in:
jon r 2025-04-17 12:52:26 +02:00
parent c11626277c
commit 199c594ff7
1 changed files with 9 additions and 0 deletions

View File

@ -1,9 +1,12 @@
import type { InitModule, InitModuleContext } from '~/types'
import VueDOMPurifyHTML from 'vue-dompurify-html'
import store, { key } from '~/store'
import router from '~/router'
import { createApp, defineAsyncComponent, h } from 'vue'
import { createPinia } from 'pinia'
import useLogger from '~/composables/useLogger'
import useTheme from '~/composables/useTheme'
@ -12,6 +15,8 @@ import '~/style/_main.scss'
import '~/api'
import 'virtual:uno.css'
// NOTE: Set the theme as fast as possible
useTheme()
@ -35,8 +40,12 @@ const app = createApp({
}
})
const pinia = createPinia()
app.use(router)
app.use(pinia)
app.use(store, key)
app.use(VueDOMPurifyHTML)
const modules: Record<string | 'axios', { install?: InitModule }> = import.meta.glob('./init/*.ts', { eager: true })
const moduleContext: InitModuleContext = {