mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
feat(webui): perfect-design app shell, command palette and theme boot
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { config } from '@fortawesome/fontawesome-svg-core'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
import { useThemeStore } from '@perfect-design/ui'
|
||||
import { createPinia } from 'pinia'
|
||||
import { createApp } from 'vue'
|
||||
|
||||
@@ -18,5 +19,9 @@ app.config.errorHandler = (err) => {
|
||||
console.error(err)
|
||||
useToastsStore(pinia).push({ kind: 'error', message: `Unexpected error: ${messageOf(err)}` })
|
||||
}
|
||||
// Workbench is the app-wide style; init() restores the saved mode and the persisted choice survives reloads.
|
||||
const theme = useThemeStore(pinia)
|
||||
theme.init()
|
||||
theme.setStyle('workbench')
|
||||
app.component('FontAwesomeIcon', FontAwesomeIcon)
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user