feat(web): add xterm terminal panel (#5)

Use @xterm/xterm for terminal emulation and its official @xterm/addon-fit for container sizing. Lazy-load both on first open to keep them out of the main bundle. Preserve the mounted terminal on collapse and offer explicit reconnect; provide an echo transport for demos.
This commit is contained in:
Florian Schmidt
2026-11-16 00:21:17 +01:00
parent 08d5441cf2
commit a6429e0527
7 changed files with 336 additions and 9 deletions
+3 -1
View File
@@ -17,7 +17,9 @@
"@codemirror/lang-markdown": "^6.3.1",
"@codemirror/view": "^6.35.0",
"codemirror": "^6.0.1",
"highlight.js": "^11.10.0"
"highlight.js": "^11.10.0",
"@xterm/xterm": "^5.5.0",
"@xterm/addon-fit": "^0.10.0"
},
"devDependencies": {
"@types/react": "^18.3.12",