Files
traefik-llmgateway/webui/src/main.ts
T
lukaszraczylo e1f1a60d4d refactor(webui): remove shadcn-vue, chart.js and replaced components
Delete 89 files that no live entry imports, drop chart.js, vue-chartjs,
@tanstack/vue-table and the FontAwesome runtime, and replace the Vue
FontAwesome wrapper with a small SVG component.

Limit Tailwind source scanning to the perfect-design components the app
bundles. Add the bundle gate script and spec: gzip JS+CSS of dist/assets
must stay at or below 324300 bytes.
2026-11-25 11:52:38 +00:00

24 lines
779 B
TypeScript

import { useThemeStore } from '@perfect-design/ui'
import { createPinia } from 'pinia'
import { createApp } from 'vue'
import App from '@/App.vue'
import FaIcon from '@/components/FaIcon.vue'
import '@/assets/main.css'
import { messageOf } from '@/lib/api'
import { useToastsStore } from '@/stores/toasts'
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
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', FaIcon)
app.mount('#app')