mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
cb522a70fe
- src/dashboard/fragments.ts: server-side HTML fragment renderers reusing the same JSON payloads (HTML and JSON surfaces can't drift) - node.ts/dashboard.ts: /fragments/<name> routes (header, session-summary, recent, latest, sessions, stats, toggle) with htmx polling + Alpine for local state; toggle is a POST-returning-fragment htmx swap - vendored htmx 2.0.4 + Alpine 3.14.9 in src/dashboard/vendor.ts (offline, single-file npm package, no CDN) - deleted Svelte components/stores/bundle build step; dropped svelte/vite devDeps; build is now just tsc + esbuild - tests: +5 fragment contract tests (routing, toggle state, HTML escaping of source text, 404) - 339 total