mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
The per-user detail cache grew without limit and now keeps the 20 most recently fetched users. Spend refresh built the breakdown from a stale ranking after the ranking failed or was superseded, and now skips that step. The FontAwesome stylesheet overrode Tailwind hidden and showed two accordion chevrons, so it now loads in a low cascade layer.
23 lines
785 B
TypeScript
23 lines
785 B
TypeScript
import { config } from '@fortawesome/fontawesome-svg-core'
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
import { createPinia } from 'pinia'
|
|
import { createApp } from 'vue'
|
|
|
|
import App from '@/App.vue'
|
|
import '@/assets/main.css'
|
|
import { messageOf } from '@/lib/api'
|
|
import { useToastsStore } from '@/stores/toasts'
|
|
|
|
// The admin CSP is style-src 'self': FontAwesome's runtime <style> injection is blocked, so its CSS ships in the bundle instead.
|
|
config.autoAddCss = false
|
|
|
|
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)}` })
|
|
}
|
|
app.component('FontAwesomeIcon', FontAwesomeIcon)
|
|
app.mount('#app')
|