mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
fix(admin-ui): ship FontAwesome CSS in bundle to satisfy style-src 'self'
FontAwesome injected a style element at runtime. The admin CSP blocks that and logged a console error on every load. The UI now imports the stylesheet and disables auto injection.
This commit is contained in:
+40
-40
File diff suppressed because one or more lines are too long
@@ -1,3 +1,5 @@
|
||||
import { config } from '@fortawesome/fontawesome-svg-core'
|
||||
import '@fortawesome/fontawesome-svg-core/styles.css'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
import { createPinia } from 'pinia'
|
||||
import { createApp } from 'vue'
|
||||
@@ -7,6 +9,9 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user