fix: terminal WebSocket connection — manage xterm containers in JS

- Remove Alpine x-for template for xterm containers (async rendering bug)
- Add static #xterm-wrapper div, JS creates/removes container elements directly
- addTab() uses document.createElement + appendChild for instant DOM
- switchTab() toggles display:block/none, closeTab() removes from DOM
- Add console.log for WebSocket open/close/error debugging
- Terminal now connects on page load
This commit is contained in:
swanadiva
2026-07-09 19:28:15 +07:00
parent 71864336f6
commit d5406eab6c
3 changed files with 90 additions and 88 deletions
+3
View File
@@ -369,6 +369,9 @@
.block {
display: block;
}
.contents {
display: contents;
}
.flex {
display: flex;
}