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.
This commit is contained in:
2026-11-25 11:52:38 +00:00
parent 945621a3c5
commit e1f1a60d4d
105 changed files with 156 additions and 9470 deletions
+2 -6
View File
@@ -1,17 +1,13 @@
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'
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'
// 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)
@@ -23,5 +19,5 @@ app.config.errorHandler = (err) => {
const theme = useThemeStore(pinia)
theme.init()
theme.setStyle('workbench')
app.component('FontAwesomeIcon', FontAwesomeIcon)
app.component('FontAwesomeIcon', FaIcon)
app.mount('#app')