1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/console/tests
catborise 2b54198965 feat(console): the serial console page on the panel's bar; a taken-over user learns by whom
The serial page had a white strip of inline styles with an untranslated
status and a browser-default button above the terminal, sent input while
disconnected, sized the terminal only on window load and resize, and left
the keyboard elsewhere after the key menu. When a superuser opened a
console open in another window, its user saw "[An administrator opened
this console]" and a plain "disconnected".

- console-xterm.html shares the VNC page's bar: status badge (Connecting,
  Connected, Disconnected, the server's refusal), Disconnect, then
  Reconnect (a new page for a new token). The script is
  static/js/console_serial.js; the token reaches it as json_script data.
- The terminal takes the keyboard on connect and after the key menu; input
  is sent only while connected; it fits its box on connect and whenever
  the box changes size (ResizeObserver).
- A console that writes nothing yet gets a dim local hint: press Enter.
- socketiod sends the displaced client "taken_over" with the superuser's
  username; the page shows "Taken over by <name>" in the bar and the
  terminal. The superuser is not asked first (owner's decision).
- Fullscreen uses the shared console_keys.js handler (keyboard lock).
2026-10-27 08:12:33 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_consolecallback.py fix(console): a serial session follows its user's access; a superuser takes over 2026-10-26 19:46:41 +03:00
test_live_serial.py feat(console): the serial console page on the panel's bar; a taken-over user learns by whom 2026-10-27 08:12:33 +03:00
test_socketiod.py feat(console): the serial console page on the panel's bar; a taken-over user learns by whom 2026-10-27 08:12:33 +03:00
test_socketiod_child.py feat(console): the serial console page on the panel's bar; a taken-over user learns by whom 2026-10-27 08:12:33 +03:00
test_sshtunnels.py fix(console): an SSH console tunnel neither stalls on its errors nor hangs on close 2026-10-26 23:52:37 +03:00
test_views.py feat(console): the serial console page on the panel's bar; a taken-over user learns by whom 2026-10-27 08:12:33 +03:00