refactor(mcp-server): move the preview page into src/preview

The 580-line page template in http-server.ts becomes index.html,
preview.css and preview.js, copied to dist/preview by the build and
filled at request time. The rendered page is unchanged apart from the
session id and draw.io origin now coming from a small config script.
Biome skips the folder because of the {{placeholders}}, as it never
linted the old template string either.
This commit is contained in:
dayuan.jiang
2026-10-04 06:46:09 +09:00
parent 667f678eb3
commit f52f95025f
8 changed files with 677 additions and 625 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
},
"files": {
"ignoreUnknown": false,
"includes": ["**", "!public"]
"includes": ["**", "!public", "!packages/mcp-server/src/preview"]
},
"formatter": {
"enabled": true,