mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
45c83dedb5
Replace the hand-rolled dashboard with a Svelte component tree (App + Sessions / StatsTable / LatestPng / RecentRequests / StatsHeader / Cleanup / CompressionToggle / ToastTray), move the API layer into lib/, and split state into stores/. Add a dedicated dashboard build (`build:dashboard-ui` + a separate tsconfig.dashboard.json) so dashboard sources typecheck independently of the proxy core, which previously broke the root `tsc` build.
29 lines
1018 B
JSON
29 lines
1018 B
JSON
{
|
|
// Type-check the Svelte browser bundle separately from the root tsconfig.
|
|
//
|
|
// The root config targets Node + WebWorker (`lib: ES2022, WebWorker`) which
|
|
// is wrong for the dashboard: it uses `document`, `localStorage`, and
|
|
// browser-only fetch APIs. We need `lib: DOM` here without polluting the
|
|
// proxy bundle's type universe.
|
|
//
|
|
// Usage:
|
|
// pnpm exec tsc -p tsconfig.dashboard.json --noEmit
|
|
//
|
|
// The actual JS output is produced by scripts/build-dashboard-ui.mjs via
|
|
// esbuild + esbuild-svelte; this config exists only so editors + CI can
|
|
// verify the .ts files in src/dashboard/ are sound. Svelte 5's compiler
|
|
// handles .svelte files itself.
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"types": [],
|
|
"noEmit": true,
|
|
"declaration": false,
|
|
"declarationMap": false,
|
|
"sourceMap": false,
|
|
"outDir": null
|
|
},
|
|
"include": ["src/dashboard/**/*.ts"],
|
|
"exclude": ["node_modules", "dist", "legacy"]
|
|
}
|