Files
traefik-llmgateway/webui/src/main.ts
T
lukaszraczyloandGitHub 979d903c19 feat: admin redesign, decision assist, prompt caching and shared state (#11)
This change adds the redesigned admin panel and the smart router decision model assist.
It adds opt-in prompt-prefix caching per provider and cached-token pricing and metrics.
With Redis, the metrics route reports fleet-wide values. The redis.sharedState switch shares six coordination states across replicas.
PR CI grants actions read, which the shared go-pr workflow needs.
The pull request description has the full list and the verification.
2026-11-26 15:50:11 +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')