+ },
+};
diff --git a/app/ui.js b/app/ui.js
-index cb6a9fd..6b4442f 100644
+index c1f6776..5ebb134 100644
--- a/app/ui.js
+++ b/app/ui.js
-@@ -16,6 +16,7 @@ import keysyms from "../core/input/keysymdef.js";
+@@ -17,6 +17,7 @@ import keysyms from "../core/input/keysymdef.js";
import Keyboard from "../core/input/keyboard.js";
import RFB from "../core/rfb.js";
import * as WebUtil from "./webutil.js";
const PAGE_TITLE = "noVNC";
-@@ -56,6 +57,8 @@ const UI = {
+@@ -57,6 +58,8 @@ const UI = {
// Render default UI and initialize settings menu
start() {
UI.initSettings();
// Translate the DOM
-@@ -100,6 +103,9 @@ const UI = {
+@@ -108,6 +111,9 @@ const UI = {
UI.addConnectionControlHandlers();
UI.addClipboardHandlers();
UI.addSettingsHandlers();
document.getElementById("noVNC_status")
.addEventListener('click', UI.hideStatus);
-@@ -108,19 +114,15 @@ const UI = {
+@@ -116,19 +122,15 @@ const UI = {
UI.openControlbar();
return Promise.resolve(UI.rfb);
},
-@@ -164,11 +166,12 @@ const UI = {
+@@ -172,11 +174,12 @@ const UI = {
/* Populate the controls if defaults are provided in the URL */
UI.initSetting('host', window.location.hostname);
UI.initSetting('port', port);
UI.initSetting('shared', true);
UI.initSetting('view_only', false);
UI.initSetting('show_dot', false);
-@@ -347,6 +350,7 @@ const UI = {
+@@ -357,6 +360,7 @@ const UI = {
UI.addSettingChangeHandler('resize');
UI.addSettingChangeHandler('resize', UI.applyResizeMode);
UI.addSettingChangeHandler('resize', UI.updateViewClip);
UI.addSettingChangeHandler('quality');
UI.addSettingChangeHandler('quality', UI.updateQuality);
UI.addSettingChangeHandler('compression');
-@@ -401,6 +405,9 @@ const UI = {
+@@ -411,6 +415,9 @@ const UI = {
document.documentElement.classList.add("noVNC_connecting");
break;
case 'connected':
document.documentElement.classList.add("noVNC_connected");
break;
case 'disconnecting':
-@@ -408,6 +415,11 @@ const UI = {
+@@ -418,6 +425,11 @@ const UI = {
document.documentElement.classList.add("noVNC_disconnecting");
break;
case 'disconnected':
break;
case 'reconnecting':
transitionElem.textContent = _("Reconnecting...");
-@@ -821,6 +833,7 @@ const UI = {
+@@ -843,6 +855,7 @@ const UI = {
UI.closePowerPanel();
UI.closeClipboardPanel();
UI.closeExtraKeys();
},
/* ------^-------
-@@ -998,6 +1011,12 @@ const UI = {
+@@ -1015,6 +1028,12 @@ const UI = {
UI.reconnectPassword = password;
}
if (password === null) {
password = undefined;
}
-@@ -1622,9 +1641,36 @@ const UI = {
+@@ -1689,9 +1708,36 @@ const UI = {
/* ------^-------
* /EXTRA KEYS
* ==============
if (!UI.rfb) return;
UI.rfb.viewOnly = UI.getSetting('view_only');
diff --git a/vnc.html b/vnc.html
-index 8d4b497..7ce9ba7 100644
+index 24a118d..e8a982f 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -163,7 +163,7 @@
- <li class="noVNC_heading">
- <img alt="" src="app/images/settings.svg"> Settings
- </li>
+@@ -154,7 +154,7 @@
+ <img alt="" src="app/images/settings.svg"> Settings
+ </div>
+ <ul>
- <li>
+ <li style="display:none;">
<label><input id="noVNC_setting_shared" type="checkbox"> Shared Mode</label>
</li>
<li>
-@@ -173,16 +173,18 @@
+@@ -164,16 +164,18 @@
<li>
<label><input id="noVNC_setting_view_clip" type="checkbox"> Clip to Window</label>
</li>
2 files changed, 21 insertions(+)
diff --git a/app/ui.js b/app/ui.js
-index 6b4442f..11fad2d 100644
+index 5ebb134..60f4c00 100644
--- a/app/ui.js
+++ b/app/ui.js
-@@ -1055,6 +1055,7 @@ const UI = {
+@@ -1074,6 +1074,7 @@ const UI = {
UI.rfb.addEventListener("clipboard", UI.clipboardReceive);
UI.rfb.addEventListener("bell", UI.bell);
UI.rfb.addEventListener("desktopname", UI.updateDesktopName);
UI.rfb.clipViewport = UI.getSetting('view_clip');
UI.rfb.scaleViewport = UI.getSetting('resize') === 'scale';
UI.rfb.resizeSession = UI.getSetting('resize') === 'remote';
-@@ -1666,6 +1667,16 @@ const UI = {
+@@ -1733,6 +1734,16 @@ const UI = {
document.getElementById('pve_commands_button').classList.remove("noVNC_selected");
},
* /PVE
* ==============
diff --git a/core/rfb.js b/core/rfb.js
-index ea3bf58..90ca28b 100644
+index 6afd7c6..2f662ce 100644
--- a/core/rfb.js
+++ b/core/rfb.js
-@@ -2499,6 +2499,16 @@ export default class RFB extends EventTargetMixin {
+@@ -2881,6 +2881,16 @@ export default class RFB extends EventTargetMixin {
this._updateClip();
this._updateScale();
+ this.dispatchEvent(event);
+
this._updateContinuousUpdates();
- }
+ // Keep this size until browser client size changes
1 file changed, 11 insertions(+)
diff --git a/app/ui.js b/app/ui.js
-index 11fad2d..b40d1f8 100644
+index 60f4c00..235b049 100644
--- a/app/ui.js
+++ b/app/ui.js
-@@ -1240,6 +1240,13 @@ const UI = {
+@@ -1292,6 +1292,13 @@ const UI = {
} else if (document.msExitFullscreen) {
document.msExitFullscreen();
}
} else {
if (document.documentElement.requestFullscreen) {
document.documentElement.requestFullscreen();
-@@ -1250,7 +1257,11 @@ const UI = {
+@@ -1302,7 +1309,11 @@ const UI = {
} else if (document.body.msRequestFullscreen) {
document.body.msRequestFullscreen();
}
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
app/styles/pve.css | 42 ++++++++++++++++++++++++++++++++++++++++++
- vnc.html | 3 ++-
- 2 files changed, 44 insertions(+), 1 deletion(-)
+ vnc.html | 5 +++--
+ 2 files changed, 45 insertions(+), 2 deletions(-)
create mode 100644 app/styles/pve.css
diff --git a/app/styles/pve.css b/app/styles/pve.css
+ background: #5BA8DF;
+}
diff --git a/vnc.html b/vnc.html
-index 7ce9ba7..61d0fdd 100644
+index e8a982f..b54fe41 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -48,7 +48,8 @@
- <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-152x152.png">
+@@ -36,8 +36,9 @@
+ <link rel="apple-touch-icon" sizes="180x180" type="image/png" href="app/images/icons/novnc-ios-180.png">
<!-- Stylesheets -->
- <link rel="stylesheet" href="app/styles/base.css">
+- <link rel="stylesheet" href="app/styles/input.css">
+ <link rel="stylesheet" href="app/styles/base.css" />
++ <link rel="stylesheet" href="app/styles/input.css" />
+ <link rel="stylesheet" href="/novnc/app/styles/pve.css" />
<!-- Images that will later appear via CSS -->
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
- vnc.html | 32 +++-----------------------------
- 1 file changed, 3 insertions(+), 29 deletions(-)
+ vnc.html | 22 ++++------------------
+ 1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/vnc.html b/vnc.html
-index 61d0fdd..216b33f 100644
+index b54fe41..5c5549d 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -17,36 +17,10 @@
+@@ -15,26 +15,12 @@
+ -->
+ <title>noVNC</title>
- <meta charset="utf-8">
+- <link rel="icon" type="image/x-icon" href="app/images/icons/novnc.ico">
++ <meta charset="utf-8">
-- <!-- Icons (see app/images/icons/Makefile for what the sizes are for) -->
-- <link rel="icon" sizes="16x16" type="image/png" href="app/images/icons/novnc-16x16.png">
-- <link rel="icon" sizes="24x24" type="image/png" href="app/images/icons/novnc-24x24.png">
-- <link rel="icon" sizes="32x32" type="image/png" href="app/images/icons/novnc-32x32.png">
-- <link rel="icon" sizes="48x48" type="image/png" href="app/images/icons/novnc-48x48.png">
-- <link rel="icon" sizes="60x60" type="image/png" href="app/images/icons/novnc-60x60.png">
-- <link rel="icon" sizes="64x64" type="image/png" href="app/images/icons/novnc-64x64.png">
-- <link rel="icon" sizes="72x72" type="image/png" href="app/images/icons/novnc-72x72.png">
-- <link rel="icon" sizes="76x76" type="image/png" href="app/images/icons/novnc-76x76.png">
-- <link rel="icon" sizes="96x96" type="image/png" href="app/images/icons/novnc-96x96.png">
-- <link rel="icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-120x120.png">
-- <link rel="icon" sizes="144x144" type="image/png" href="app/images/icons/novnc-144x144.png">
-- <link rel="icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-152x152.png">
-- <link rel="icon" sizes="192x192" type="image/png" href="app/images/icons/novnc-192x192.png">
-- <!-- Firefox currently mishandles SVG, see #1419039
-- <link rel="icon" sizes="any" type="image/svg+xml" href="app/images/icons/novnc-icon.svg">
-- -->
-- <!-- Repeated last so that legacy handling will pick this -->
-- <link rel="icon" sizes="16x16" type="image/png" href="app/images/icons/novnc-16x16.png">
--
<!-- Apple iOS Safari settings -->
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
-- <!-- Home Screen Icons (favourites and bookmarks use the normal icons) -->
-- <link rel="apple-touch-icon" sizes="60x60" type="image/png" href="app/images/icons/novnc-60x60.png">
-- <link rel="apple-touch-icon" sizes="76x76" type="image/png" href="app/images/icons/novnc-76x76.png">
-- <link rel="apple-touch-icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-120x120.png">
-- <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-152x152.png">
+-
+- <!-- @2x -->
+- <link rel="apple-touch-icon" sizes="40x40" type="image/png" href="app/images/icons/novnc-ios-40.png">
+- <link rel="apple-touch-icon" sizes="58x58" type="image/png" href="app/images/icons/novnc-ios-58.png">
+- <link rel="apple-touch-icon" sizes="80x80" type="image/png" href="app/images/icons/novnc-ios-80.png">
+- <link rel="apple-touch-icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-ios-120.png">
+- <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/novnc-ios-152.png">
+- <link rel="apple-touch-icon" sizes="167x167" type="image/png" href="app/images/icons/novnc-ios-167.png">
+- <!-- @3x -->
+- <link rel="apple-touch-icon" sizes="60x60" type="image/png" href="app/images/icons/novnc-ios-60.png">
+- <link rel="apple-touch-icon" sizes="87x87" type="image/png" href="app/images/icons/novnc-ios-87.png">
+- <link rel="apple-touch-icon" sizes="120x120" type="image/png" href="app/images/icons/novnc-ios-120.png">
+- <link rel="apple-touch-icon" sizes="180x180" type="image/png" href="app/images/icons/novnc-ios-180.png">
-
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- Stylesheets -->
<link rel="stylesheet" href="app/styles/base.css" />
- <link rel="stylesheet" href="/novnc/app/styles/pve.css" />
+ <link rel="stylesheet" href="app/styles/input.css" />
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
app/ui.js | 4 ++--
- vnc.html | 52 ++++++++++++++++++++++++++--------------------------
- 2 files changed, 28 insertions(+), 28 deletions(-)
+ vnc.html | 54 +++++++++++++++++++++++++++---------------------------
+ 2 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/app/ui.js b/app/ui.js
-index b40d1f8..f7b7dc4 100644
+index 235b049..1d52a5a 100644
--- a/app/ui.js
+++ b/app/ui.js
-@@ -64,7 +64,7 @@ const UI = {
- // Translate the DOM
- l10n.translateDOM();
+@@ -73,7 +73,7 @@ const UI = {
+ }
+ // Try to fetch version number
- fetch('./package.json')
+ fetch('/novnc/package.json')
.then((response) => {
if (!response.ok) {
throw Error("" + response.status + " " + response.statusText);
-@@ -1768,7 +1768,7 @@ l10n.setup(LINGUAS);
+@@ -1835,7 +1835,7 @@ l10n.setup(LINGUAS);
if (l10n.language === "en" || l10n.dictionary !== undefined) {
UI.prime();
} else {
if (!response.ok) {
throw Error("" + response.status + " " + response.statusText);
diff --git a/vnc.html b/vnc.html
-index 216b33f..8ca4ea4 100644
+index 5c5549d..f081aee 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -22,16 +22,16 @@
+@@ -22,17 +22,17 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- Stylesheets -->
- <link rel="stylesheet" href="app/styles/base.css" />
+- <link rel="stylesheet" href="app/styles/input.css" />
+ <link rel="stylesheet" href="/novnc/app/styles/base.css" />
++ <link rel="stylesheet" href="/novnc/app/styles/input.css" />
<link rel="stylesheet" href="/novnc/app/styles/pve.css" />
<!-- Images that will later appear via CSS -->
+ <link rel="preload" as="image" href="/novnc/app/images/error.svg">
+ <link rel="preload" as="image" href="/novnc/app/images/warning.svg">
-- <script src="app/error-handler.js"></script>
+- <script type="module" crossorigin="anonymous" src="app/error-handler.js"></script>
- <script type="module" crossorigin="anonymous" src="app/ui.js"></script>
-+ <script src="/novnc/app/error-handler.js"></script>
++ <script type="module" crossorigin="anonymous" src="/novnc/app/error-handler.js"></script>
+ <script type="module" crossorigin="anonymous" src="/novnc/app/ui.js"></script>
</head>
<body>
-@@ -55,51 +55,51 @@
- <h1 class="noVNC_logo" translate="no"><span>no</span><br>VNC</h1>
+@@ -58,51 +58,51 @@
+ <hr>
<!-- Drag/Pan the viewport -->
- <input type="image" alt="Drag" src="app/images/drag.svg"
</div>
<input type="button" id="noVNC_shutdown_button" value="Shutdown">
<input type="button" id="noVNC_reboot_button" value="Reboot">
-@@ -108,13 +108,13 @@
+@@ -111,13 +111,13 @@
</div>
<!-- Clipboard -->
- <img alt="" src="app/images/clipboard.svg"> Clipboard
+ <img alt="" src="/novnc/app/images/clipboard.svg"> Clipboard
</div>
- <textarea id="noVNC_clipboard_text" rows=5></textarea>
- <br>
-@@ -124,19 +124,19 @@
+ <p class="noVNC_subheading">
+ Edit clipboard content in the textarea below.
+@@ -127,18 +127,18 @@
</div>
<!-- Toggle fullscreen -->
-- <input type="image" alt="Fullscreen" src="app/images/fullscreen.svg"
+- <input type="image" alt="Full Screen" src="app/images/fullscreen.svg"
+ <input type="image" alt="Fullscreen" src="/novnc/app/images/fullscreen.svg"
id="noVNC_fullscreen_button" class="noVNC_button noVNC_hidden"
- title="Fullscreen">
+ title="Full Screen">
<!-- Settings -->
- <input type="image" alt="Settings" src="app/images/settings.svg"
title="Settings">
<div class="noVNC_vcenter">
<div id="noVNC_settings" class="noVNC_panel">
+ <div class="noVNC_heading">
+- <img alt="" src="app/images/settings.svg"> Settings
++ <img alt="" src="/novnc/app/images/settings.svg"> Settings
+ </div>
<ul>
- <li class="noVNC_heading">
-- <img alt="" src="app/images/settings.svg"> Settings
-+ <img alt="" src="/novnc/app/images/settings.svg"> Settings
- </li>
<li style="display:none;">
- <label><input id="noVNC_setting_shared" type="checkbox"> Shared Mode</label>
-@@ -227,7 +227,7 @@
+@@ -230,7 +230,7 @@
</div>
<!-- Connection Controls -->
id="noVNC_disconnect_button" class="noVNC_button"
title="Disconnect">
-@@ -246,7 +246,7 @@
- <div id="noVNC_connect_dlg">
- <div class="noVNC_logo" translate="no"><span>no</span>VNC</div>
- <div id="noVNC_connect_button"><div>
-- <img alt="" src="app/images/connect.svg"> Connect
-+ <img alt="" src="/novnc/app/images/connect.svg"> Connect
- </div></div>
+@@ -253,7 +253,7 @@
+ <p class="noVNC_logo" translate="no"><span>no</span>VNC</p>
+ <div>
+ <button id="noVNC_connect_button">
+- <img alt="" src="app/images/connect.svg"> Connect
++ <img alt="" src="/novnc/app/images/connect.svg"> Connect
+ </button>
+ </div>
</div>
- </div>
-@@ -290,8 +290,8 @@
+@@ -323,8 +323,8 @@
</div>
<audio id="noVNC_bell">
1 file changed, 21 insertions(+)
diff --git a/vnc.html b/vnc.html
-index 8ca4ea4..01f71e1 100644
+index f081aee..9281009 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -226,6 +226,27 @@
+@@ -229,6 +229,27 @@
</div>
</div>
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/vnc.html b/vnc.html
-index 01f71e1..dc4cc23 100644
+index 9281009..4ce107a 100644
--- a/vnc.html
+++ b/vnc.html
@@ -13,7 +13,7 @@
<meta charset="utf-8">
-@@ -31,6 +31,12 @@
+@@ -32,6 +32,12 @@
<link rel="preload" as="image" href="/novnc/app/images/warning.svg">
- <script src="/novnc/app/error-handler.js"></script>
+ <script type="module" crossorigin="anonymous" src="/novnc/app/error-handler.js"></script>
+ <script type="text/javascript">
+ if (typeof(PVE) === 'undefined') PVE = {};
+ PVE.UserName = '[% username %]';
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/app/styles/base.css b/app/styles/base.css
-index fd78b79..db52eaa 100644
+index 06e736a..a3eb872 100644
--- a/app/styles/base.css
+++ b/app/styles/base.css
-@@ -339,7 +339,7 @@ select:active {
+@@ -222,7 +222,7 @@ html {
position: fixed;
z-index: 10;
/* Edge misrenders animations wihthout this */
transform: translateX(0);
-@@ -356,7 +356,7 @@ select:active {
+@@ -239,7 +239,7 @@ html {
position: relative;
left: -100%;
background-color: rgb(110, 132, 163);
border-radius: 0 10px 10px 0;
-@@ -374,7 +374,7 @@ select:active {
+@@ -260,7 +260,7 @@ html {
height: 100%;
width: 30px;
left: -30px;
}
#noVNC_control_bar.noVNC_open::before {
box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
-@@ -408,7 +408,7 @@ select:active {
+@@ -294,7 +294,7 @@ html {
}
#noVNC_control_bar_handle:after {
content: "";
background: url("../images/handle.svg");
position: absolute;
top: 22px; /* (50px-6px)/2 */
-@@ -530,7 +530,7 @@ select:active {
+@@ -430,7 +430,7 @@ html {
.noVNC_panel {
transform: translateX(25px);
- transition: 0.5s ease-in-out;
+ transition: 0.25s ease-in-out;
- max-height: 100vh; /* Chrome is buggy with 100% */
- overflow-x: hidden;
-@@ -717,7 +717,7 @@ select:active {
+ box-sizing: border-box; /* so max-width don't have to care about padding */
+ max-width: calc(100vw - 75px - 25px); /* minus left and right margins */
+@@ -649,7 +649,7 @@ html {
cursor: pointer;
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vnc.html b/vnc.html
-index dc4cc23..21b3844 100644
+index 4ce107a..eed474f 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -37,7 +37,7 @@
+@@ -38,7 +38,7 @@
PVE.CSRFPreventionToken = '[% token %]';
INCLUDE_URI='/novnc/include';
</script>
4 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/app/ui.js b/app/ui.js
-index f7b7dc4..37a0279 100644
+index 1d52a5a..02004c3 100644
--- a/app/ui.js
+++ b/app/ui.js
-@@ -172,6 +172,7 @@ const UI = {
+@@ -180,6 +180,7 @@ const UI = {
UI.initSetting('quality', 6);
UI.initSetting('compression', 2);
UI.initSetting('autoresize', true);
UI.initSetting('shared', true);
UI.initSetting('view_only', false);
UI.initSetting('show_dot', false);
-@@ -362,6 +363,8 @@ const UI = {
+@@ -372,6 +373,8 @@ const UI = {
UI.addSettingChangeHandler('view_only', UI.updateViewOnly);
UI.addSettingChangeHandler('show_dot');
UI.addSettingChangeHandler('show_dot', UI.updateShowDotCursor);
UI.addSettingChangeHandler('host');
UI.addSettingChangeHandler('port');
UI.addSettingChangeHandler('path');
-@@ -1057,6 +1060,7 @@ const UI = {
+@@ -1076,6 +1079,7 @@ const UI = {
UI.rfb.addEventListener("desktopname", UI.updateDesktopName);
UI.rfb.addEventListener("fbresize", UI.updateSessionSize);
UI.rfb.clipViewport = UI.getSetting('view_clip');
UI.rfb.scaleViewport = UI.getSetting('resize') === 'scale';
UI.rfb.resizeSession = UI.getSetting('resize') === 'remote';
UI.rfb.qualityLevel = parseInt(UI.getSetting('quality'));
-@@ -1693,6 +1697,12 @@ const UI = {
+@@ -1760,6 +1764,12 @@ const UI = {
* ==============
* MISC
* ------v------*/
if (!UI.rfb) return;
UI.rfb.viewOnly = UI.getSetting('view_only');
diff --git a/core/rfb.js b/core/rfb.js
-index 90ca28b..ec75610 100644
+index 2f662ce..2dc0638 100644
--- a/core/rfb.js
+++ b/core/rfb.js
-@@ -256,6 +256,7 @@ export default class RFB extends EventTargetMixin {
- this._clipViewport = false;
+@@ -290,6 +290,7 @@ export default class RFB extends EventTargetMixin {
+ this._clippingViewport = false;
this._scaleViewport = false;
this._resizeSession = false;
+ this._localCursor = false;
this._showDotCursor = false;
if (options.showDotCursor !== undefined) {
-@@ -316,6 +317,15 @@ export default class RFB extends EventTargetMixin {
+@@ -360,6 +361,15 @@ export default class RFB extends EventTargetMixin {
}
}
set showDotCursor(show) {
this._showDotCursor = show;
diff --git a/core/util/cursor.js b/core/util/cursor.js
-index 12bcced..ce7340e 100644
+index 3000cf0..0d9651f 100644
--- a/core/util/cursor.js
+++ b/core/util/cursor.js
@@ -12,6 +12,8 @@ export default class Cursor {
this._canvas = document.createElement('canvas');
if (useFallback) {
-@@ -100,7 +102,7 @@ export default class Cursor {
+@@ -104,7 +106,7 @@ export default class Cursor {
}
clear() {
this._canvas.width = 0;
this._canvas.height = 0;
this._position.x = this._position.x + this._hotSpot.x;
-@@ -130,6 +132,11 @@ export default class Cursor {
+@@ -134,6 +136,11 @@ export default class Cursor {
this._updateVisibility(target);
}
_handleMouseOver(event) {
// This event could be because we're entering the target, or
// moving around amongst its sub elements. Let the move handler
-@@ -182,6 +189,11 @@ export default class Cursor {
+@@ -186,6 +193,11 @@ export default class Cursor {
}
}
_showCursor() {
if (this._canvas.style.visibility === 'hidden') {
this._canvas.style.visibility = '';
-@@ -240,4 +252,5 @@ export default class Cursor {
+@@ -244,4 +256,5 @@ export default class Cursor {
return document.captureElement &&
document.documentElement.contains(document.captureElement);
}
+
}
diff --git a/vnc.html b/vnc.html
-index 21b3844..3e63087 100644
+index eed474f..b80f3c5 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -154,6 +154,9 @@
+@@ -157,6 +157,9 @@
<li>
<label><input id="noVNC_setting_view_clip" type="checkbox"> Clip to Window</label>
</li>
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/rfb.js b/core/rfb.js
-index ec75610..96617b9 100644
+index 2dc0638..39fd869 100644
--- a/core/rfb.js
+++ b/core/rfb.js
-@@ -91,7 +91,8 @@ export default class RFB extends EventTargetMixin {
+@@ -117,7 +117,8 @@ export default class RFB extends EventTargetMixin {
this._rfbCredentials = options.credentials || {};
this._shared = 'shared' in options ? !!options.shared : true;
this._repeaterID = options.repeaterID || '';
// Internal state
this._rfbConnectionState = '';
diff --git a/docs/API.md b/docs/API.md
-index aa5aea7..623d685 100644
+index eb3ec33..6616048 100644
--- a/docs/API.md
+++ b/docs/API.md
-@@ -195,8 +195,7 @@ connection to a specified VNC server.
+@@ -229,8 +229,7 @@ new RFB(target, urlOrChannel, options);
encountered.
`wsProtocols`
- in the WebSocket connection. Empty by default.
+ - Protocols to use in the WebSocket connection, the default is: ['binary']
- #### connect
+ #### bell
});
},
diff --git a/app/styles/pve.css b/app/styles/pve.css
-index eaeb5cb..18126b0 100644
+index eaeb5cb..6376593 100644
--- a/app/styles/pve.css
+++ b/app/styles/pve.css
@@ -40,3 +40,7 @@
}
+
+.noVNC_button.pve_hidden {
-+ display: none;
++ display: none !important;
+}
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
- app/error-handler.js | 17 +++++++++++++++--
- 1 file changed, 15 insertions(+), 2 deletions(-)
+ app/error-handler.js | 18 ++++++++++++++++--
+ 1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/app/error-handler.js b/app/error-handler.js
-index f956c22..20233b2 100644
+index 67b6372..b842909 100644
--- a/app/error-handler.js
+++ b/app/error-handler.js
-@@ -15,6 +15,18 @@
+@@ -6,6 +6,19 @@
+ * See README.md for usage and integration instructions.
+ */
- (function _scope() {
- "use strict";
-+ function hideError() {
-+ const msg = document.getElementById('noVNC_fallback_errormsg');
++function hideError() {
++ const msg = document.getElementById('noVNC_fallback_errormsg');
+
-+ // close it
-+ document.getElementById('noVNC_fallback_error')
-+ .classList.remove("noVNC_open");
++ // close it
++ document.getElementById('noVNC_fallback_error')
++ .classList.remove("noVNC_open");
+
-+ // remove all children
-+ while (msg.firstChild) {
-+ msg.removeChild(msg.firstChild);
-+ }
++ // remove all children
++ while (msg.firstChild) {
++ msg.removeChild(msg.firstChild);
+ }
++}
++
+ // Fallback for all uncought errors
+ function handleError(event, err) {
+ try {
+@@ -48,8 +61,9 @@ function handleError(event, err) {
+ msg.appendChild(div);
+ }
- // Fallback for all uncought errors
- function handleError(event, err) {
-@@ -58,8 +70,9 @@
- msg.appendChild(div);
- }
+- document.getElementById('noVNC_fallback_error')
+- .classList.add("noVNC_open");
++ const node = document.getElementById('noVNC_fallback_error');
++ node.classList.add("noVNC_open");
++ node.onclick = hideError;
-- document.getElementById('noVNC_fallback_error')
-- .classList.add("noVNC_open");
-+ const node = document.getElementById('noVNC_fallback_error');
-+ node.classList.add("noVNC_open");
-+ node.onclick = hideError;
- } catch (exc) {
- document.write("noVNC encountered an error.");
- }
+ } catch (exc) {
+ document.write("noVNC encountered an error.");
var me = this;
try {
diff --git a/app/styles/pve.css b/app/styles/pve.css
-index 18126b0..e0ca61f 100644
+index 6376593..1a0caad 100644
--- a/app/styles/pve.css
+++ b/app/styles/pve.css
@@ -44,3 +44,61 @@
.noVNC_button.pve_hidden {
- display: none;
+ display: none !important;
}
+
+/* start button */
+ padding: 0 5px 2px 0;
+}
diff --git a/vnc.html b/vnc.html
-index 3e63087..f0488b1 100644
+index b80f3c5..ca69f03 100644
--- a/vnc.html
+++ b/vnc.html
-@@ -281,6 +281,15 @@
- </div>
+@@ -313,6 +313,15 @@
+ </form></div>
</div>
+ <div class="noVNC_center">
+++ /dev/null
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Pierre Ossman <ossman@cendio.se>
-Date: Mon, 22 Nov 2021 13:53:05 +0100
-Subject: [PATCH] Ignore ResizeObserver errors
-
-It seems that Firefox has a bug where these are fired incorrectly when
-we are in an <iframe>. The events also contain no useful details, so we
-can't really do anything useful with them anyway.
-
-Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
----
- app/error-handler.js | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/app/error-handler.js b/app/error-handler.js
-index 81a6cba..f956c22 100644
---- a/app/error-handler.js
-+++ b/app/error-handler.js
-@@ -21,6 +21,12 @@
- try {
- const msg = document.getElementById('noVNC_fallback_errormsg');
-
-+ // Work around Firefox bug:
-+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1685038
-+ if (event.message === "ResizeObserver loop completed with undelivered notifications.") {
-+ return false;
-+ }
-+
- // Only show the initial error
- if (msg.hasChildNodes()) {
- return false;
-extra/0001-Ignore-ResizeObserver-errors.patch
0001-add-PVE-specific-JS-code.patch
0002-add-custom-fbresize-event-on-rfb.patch
0003-change-scaling-when-toggling-fullscreen.patch
-Subproject commit 463c39e4af98ec4106b87bbea17e1605aa4c6180
+Subproject commit 90455eef0692d2e35276fd31286114d0955016b0