-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-implement console based on newest react-console
Changes: 1. drop portaled toolbars - react-console provides AccessConsoles component with built-in grid layout that includes toolbar 2. drop support for native consoles on the console page: a) to enter the screen user needs to first chose BrowserVnc console. Only after disconnecting native consoles can be chosen b) react-console by default generates the *.vv files - more research is needed how to merge it with current flow (downloading) c) react-console uses one common 'Connect' button for all native consoles and internally picks the preferred connection type d) react-consoles prefers SPICE over VNC when both are available 3. adapt VncConsole component from @patternfly/react-console to fix following issues: a) use 'binary' as default 'wsProtocols' to support Qemu < 5.0.0 b) infinite re-connect loop in case of connection problem - problem caused by useEffect dependencies changing with every render and triggering 'Maximum update depth exceeded' warning c) add onConnect callback removed in newer version - required for handling focus Reference-Url: novnc/noVNC@c912230 Reference-Url: #1525 (comment)
- Loading branch information
Showing
7 changed files
with
267 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.