Compare commits

..

No commits in common. "master" and "v1.5.0" have entirely different histories.

120 changed files with 2571 additions and 4675 deletions

View File

@ -7,7 +7,7 @@ about: Create a report to help us improve
**Describe the bug**
A clear and concise description of what the bug is.
**To reproduce**
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'

View File

@ -1,4 +1,4 @@
noVNC is Copyright (C) 2022 The noVNC authors
noVNC is Copyright (C) 2022 The noVNC Authors
(./AUTHORS)
The noVNC core library files are licensed under the MPL 2.0 (Mozilla

View File

@ -1,4 +1,4 @@
## noVNC: HTML VNC client library and application
## noVNC: HTML VNC Client Library and Application
[![Test Status](https://github.com/novnc/noVNC/workflows/Test/badge.svg)](https://github.com/novnc/noVNC/actions?query=workflow%3ATest)
[![Lint Status](https://github.com/novnc/noVNC/workflows/Lint/badge.svg)](https://github.com/novnc/noVNC/actions?query=workflow%3ALint)
@ -14,19 +14,19 @@ Many companies, projects and products have integrated noVNC including
[OpenNebula](http://opennebula.org/),
[LibVNCServer](http://libvncserver.sourceforge.net), and
[ThinLinc](https://cendio.com/thinlinc). See
[the Projects and companies wiki page](https://github.com/novnc/noVNC/wiki/Projects-and-companies-using-noVNC)
[the Projects and Companies wiki page](https://github.com/novnc/noVNC/wiki/Projects-and-companies-using-noVNC)
for a more complete list with additional info and links.
### Table of contents
### Table of Contents
- [News/help/contact](#newshelpcontact)
- [Features](#features)
- [Screenshots](#screenshots)
- [Browser requirements](#browser-requirements)
- [Server requirements](#server-requirements)
- [Quick start](#quick-start)
- [Installation from snap package](#installation-from-snap-package)
- [Integration and deployment](#integration-and-deployment)
- [Browser Requirements](#browser-requirements)
- [Server Requirements](#server-requirements)
- [Quick Start](#quick-start)
- [Installation from Snap Package](#installation-from-snap-package)
- [Integration and Deployment](#integration-and-deployment)
- [Authors/Contributors](#authorscontributors)
### News/help/contact
@ -66,9 +66,8 @@ profits such as:
RSA-AES, Tight, VeNCrypt Plain, XVP, Apple's Diffie-Hellman,
UltraVNC's MSLogonII
* Supported VNC encodings: raw, copyrect, rre, hextile, tight, tightPNG,
ZRLE, JPEG, Zlib, H.264
ZRLE, JPEG
* Supports scaling, clipping and resizing the desktop
* Supports back & forward mouse buttons
* Local cursor rendering
* Clipboard copy/paste with full Unicode support
* Translations
@ -87,16 +86,16 @@ See more screenshots
[here](http://novnc.com/screenshots.html).
### Browser requirements
### Browser Requirements
noVNC uses many modern web technologies so a formal requirement list is
not available. However these are the minimum versions we are currently
aware of:
* Chrome 89, Firefox 89, Safari 15, Opera 75, Edge 89
* Chrome 64, Firefox 79, Safari 13.4, Opera 51, Edge 79
### Server requirements
### Server Requirements
noVNC follows the standard VNC protocol, but unlike other VNC clients it does
require WebSockets support. Many servers include support (e.g.
@ -108,7 +107,7 @@ use a WebSockets to TCP socket proxy. noVNC has a sister project
proxy.
### Quick start
### Quick Start
* Use the `novnc_proxy` script to automatically download and start websockify, which
includes a mini-webserver and the WebSockets proxy. The `--vnc` option is
@ -125,25 +124,25 @@ proxy.
script. Hit the Connect button, enter a password if the VNC server has one
configured, and enjoy!
### Installation from snap package
Running the command below will install the latest release of noVNC from snap:
### Installation from Snap Package
Running the command below will install the latest release of noVNC from Snap:
`sudo snap install novnc`
#### Running noVNC from snap directly
#### Running noVNC from Snap Directly
You can run the snap package installed novnc directly with, for example:
You can run the Snap-package installed novnc directly with, for example:
`novnc --listen 6081 --vnc localhost:5901 # /snap/bin/novnc if /snap/bin is not in your PATH`
If you want to use certificate files, due to standard snap confinement restrictions you need to have them in the /home/\<user\>/snap/novnc/current/ directory. If your username is jsmith an example command would be:
If you want to use certificate files, due to standard Snap confinement restrictions you need to have them in the /home/\<user\>/snap/novnc/current/ directory. If your username is jsmith an example command would be:
`novnc --listen 8443 --cert ~jsmith/snap/novnc/current/self.crt --key ~jsmith/snap/novnc/current/self.key --vnc ubuntu.example.com:5901`
#### Running noVNC from snap as a service (daemon)
The snap package also has the capability to run a 'novnc' service which can be
#### Running noVNC from Snap as a Service (Daemon)
The Snap package also has the capability to run a 'novnc' service which can be
configured to listen on multiple ports connecting to multiple VNC servers
(effectively a service running multiple instances of novnc).
(effectively a service runing multiple instances of novnc).
Instructions (with example values):
List current services (out-of-box this will be blank):
@ -173,7 +172,7 @@ services.n6082.listen 6082
services.n6082.vnc localhost:5902
```
Disable a service (note that because of a limitation in snap it's currently not
Disable a service (note that because of a limitation in Snap it's currently not
possible to unset config variables, setting them to blank values is the way
to disable a service):
@ -190,7 +189,7 @@ services.n6082.listen
services.n6082.vnc
```
### Integration and deployment
### Integration and Deployment
Please see our other documents for how to integrate noVNC in your own software,
or deploying the noVNC application in production environments:
@ -213,8 +212,8 @@ that list and you think you should be, feel free to send a PR to fix that.
* [Solly Ross](https://github.com/DirectXMan12) (Red Hat / OpenStack)
* Notable contributions:
* UI and icons : Pierre Ossman, Chris Gordon
* Original logo : Michael Sersen
* UI and Icons : Pierre Ossman, Chris Gordon
* Original Logo : Michael Sersen
* tight encoding : Michael Tinglof (Mercuri.ca)
* RealVNC RSA AES authentication : USTC Vlab Team

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -14,7 +14,7 @@
"Password is required": "Je vyžadováno heslo",
"noVNC encountered an error:": "noVNC narazilo na chybu:",
"Hide/Show the control bar": "Skrýt/zobrazit ovládací panel",
"Move/Drag viewport": "Přesunout/přetáhnout výřez",
"Move/Drag Viewport": "Přesunout/přetáhnout výřez",
"viewport drag": "přesun výřezu",
"Active Mouse Button": "Aktivní tlačítka myši",
"No mousebutton": "Žádné",
@ -22,9 +22,9 @@
"Middle mousebutton": "Prostřední tlačítko myši",
"Right mousebutton": "Pravé tlačítko myši",
"Keyboard": "Klávesnice",
"Show keyboard": "Zobrazit klávesnici",
"Show Keyboard": "Zobrazit klávesnici",
"Extra keys": "Extra klávesy",
"Show extra keys": "Zobrazit extra klávesy",
"Show Extra Keys": "Zobrazit extra klávesy",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Přepnout Ctrl",
"Alt": "Alt",
@ -45,13 +45,13 @@
"Clear": "Vymazat",
"Fullscreen": "Celá obrazovka",
"Settings": "Nastavení",
"Shared mode": "Sdílený režim",
"View only": "Pouze prohlížení",
"Clip to window": "Přizpůsobit oknu",
"Scaling mode:": "Přizpůsobení velikosti",
"Shared Mode": "Sdílený režim",
"View Only": "Pouze prohlížení",
"Clip to Window": "Přizpůsobit oknu",
"Scaling Mode:": "Přizpůsobení velikosti",
"None": "Žádné",
"Local scaling": "Místní",
"Remote resizing": "Vzdálené",
"Local Scaling": "Místní",
"Remote Resizing": "Vzdálené",
"Advanced": "Pokročilé",
"Repeater ID:": "ID opakovače",
"WebSocket": "WebSocket",
@ -59,9 +59,9 @@
"Host:": "Hostitel:",
"Port:": "Port:",
"Path:": "Cesta",
"Automatic reconnect": "Automatická obnova připojení",
"Reconnect delay (ms):": "Zpoždění připojení (ms)",
"Show dot when no cursor": "Tečka místo chybějícího kurzoru myši",
"Automatic Reconnect": "Automatická obnova připojení",
"Reconnect Delay (ms):": "Zpoždění připojení (ms)",
"Show Dot when No Cursor": "Tečka místo chybějícího kurzoru myši",
"Logging:": "Logování:",
"Disconnect": "Odpojit",
"Connect": "Připojit",

View File

@ -13,7 +13,7 @@
"Password is required": "Passwort ist erforderlich",
"noVNC encountered an error:": "Ein Fehler ist aufgetreten:",
"Hide/Show the control bar": "Kontrollleiste verstecken/anzeigen",
"Move/Drag viewport": "Ansichtsfenster verschieben/ziehen",
"Move/Drag Viewport": "Ansichtsfenster verschieben/ziehen",
"viewport drag": "Ansichtsfenster ziehen",
"Active Mouse Button": "Aktive Maustaste",
"No mousebutton": "Keine Maustaste",
@ -21,9 +21,9 @@
"Middle mousebutton": "Mittlere Maustaste",
"Right mousebutton": "Rechte Maustaste",
"Keyboard": "Tastatur",
"Show keyboard": "Tastatur anzeigen",
"Show Keyboard": "Tastatur anzeigen",
"Extra keys": "Zusatztasten",
"Show extra keys": "Zusatztasten anzeigen",
"Show Extra Keys": "Zusatztasten anzeigen",
"Ctrl": "Strg",
"Toggle Ctrl": "Strg umschalten",
"Alt": "Alt",
@ -44,13 +44,13 @@
"Clear": "Löschen",
"Fullscreen": "Vollbild",
"Settings": "Einstellungen",
"Shared mode": "Geteilter Modus",
"View only": "Nur betrachten",
"Clip to window": "Auf Fenster begrenzen",
"Scaling mode:": "Skalierungsmodus:",
"Shared Mode": "Geteilter Modus",
"View Only": "Nur betrachten",
"Clip to Window": "Auf Fenster begrenzen",
"Scaling Mode:": "Skalierungsmodus:",
"None": "Keiner",
"Local scaling": "Lokales skalieren",
"Remote resizing": "Serverseitiges skalieren",
"Local Scaling": "Lokales skalieren",
"Remote Resizing": "Serverseitiges skalieren",
"Advanced": "Erweitert",
"Repeater ID:": "Repeater ID:",
"WebSocket": "WebSocket",
@ -58,17 +58,12 @@
"Host:": "Server:",
"Port:": "Port:",
"Path:": "Pfad:",
"Automatic reconnect": "Automatisch wiederverbinden",
"Reconnect delay (ms):": "Wiederverbindungsverzögerung (ms):",
"Automatic Reconnect": "Automatisch wiederverbinden",
"Reconnect Delay (ms):": "Wiederverbindungsverzögerung (ms):",
"Logging:": "Protokollierung:",
"Disconnect": "Verbindung trennen",
"Connect": "Verbinden",
"Password:": "Passwort:",
"Cancel": "Abbrechen",
"Canvas not supported.": "Canvas nicht unterstützt.",
"Disconnect timeout": "Zeitüberschreitung beim Trennen",
"Local Downscaling": "Lokales herunterskalieren",
"Local Cursor": "Lokaler Mauszeiger",
"Forcing clipping mode since scrollbars aren't supported by IE in fullscreen": "'Clipping-Modus' aktiviert, Scrollbalken in 'IE-Vollbildmodus' werden nicht unterstützt",
"True Color": "True Color"
"Canvas not supported.": "Canvas nicht unterstützt."
}

View File

@ -41,7 +41,6 @@
"Reset": "Επαναφορά",
"Clipboard": "Πρόχειρο",
"Edit clipboard content in the textarea below.": "Επεξεργαστείτε το περιεχόμενο του πρόχειρου στην περιοχή κειμένου παρακάτω.",
"Full Screen": "Πλήρης Οθόνη",
"Settings": "Ρυθμίσεις",
"Shared Mode": "Κοινόχρηστη Λειτουργία",
"View Only": "Μόνο Θέαση",
@ -76,25 +75,5 @@
"Username:": "Κωδικός Χρήστη:",
"Password:": "Κωδικός Πρόσβασης:",
"Send Credentials": "Αποστολή Διαπιστευτηρίων",
"Cancel": "Ακύρωση",
"Password is required": "Απαιτείται ο κωδικός πρόσβασης",
"viewport drag": "σύρσιμο θεατού πεδίου",
"Active Mouse Button": "Ενεργό Πλήκτρο Ποντικιού",
"No mousebutton": "Χωρίς Πλήκτρο Ποντικιού",
"Left mousebutton": "Αριστερό Πλήκτρο Ποντικιού",
"Middle mousebutton": "Μεσαίο Πλήκτρο Ποντικιού",
"Right mousebutton": "Δεξί Πλήκτρο Ποντικιού",
"Clear": "Καθάρισμα",
"Canvas not supported.": "Δεν υποστηρίζεται το στοιχείο Canvas",
"Disconnect timeout": "Παρέλευση χρονικού ορίου αποσύνδεσης",
"Local Downscaling": "Τοπική Συρρίκνωση",
"Local Cursor": "Τοπικός Δρομέας",
"Forcing clipping mode since scrollbars aren't supported by IE in fullscreen": "Εφαρμογή λειτουργίας αποκοπής αφού δεν υποστηρίζονται οι λωρίδες κύλισης σε πλήρη οθόνη στον IE",
"True Color": "Πραγματικά Χρώματα",
"Style:": "Στυλ:",
"default": "προεπιλεγμένο",
"Apply": "Εφαρμογή",
"Connection": "Σύνδεση",
"Token:": "Διακριτικό:",
"Send Password": "Αποστολή Κωδικού Πρόσβασης"
"Cancel": "Ακύρωση"
}

View File

@ -10,7 +10,7 @@
"Disconnect timeout": "Tiempo de desconexión agotado",
"noVNC encountered an error:": "noVNC ha encontrado un error:",
"Hide/Show the control bar": "Ocultar/Mostrar la barra de control",
"Move/Drag viewport": "Mover/Arrastrar la ventana",
"Move/Drag Viewport": "Mover/Arrastrar la ventana",
"viewport drag": "Arrastrar la ventana",
"Active Mouse Button": "Botón activo del ratón",
"No mousebutton": "Ningún botón del ratón",
@ -18,7 +18,7 @@
"Middle mousebutton": "Botón central del ratón",
"Right mousebutton": "Botón derecho del ratón",
"Keyboard": "Teclado",
"Show keyboard": "Mostrar teclado",
"Show Keyboard": "Mostrar teclado",
"Extra keys": "Teclas adicionales",
"Show Extra Keys": "Mostrar Teclas Adicionales",
"Ctrl": "Ctrl",
@ -43,13 +43,13 @@
"Settings": "Configuraciones",
"Encrypt": "Encriptar",
"Shared Mode": "Modo Compartido",
"View only": "Solo visualización",
"Clip to window": "Recortar al tamaño de la ventana",
"Scaling mode:": "Modo de escalado:",
"View Only": "Solo visualización",
"Clip to Window": "Recortar al tamaño de la ventana",
"Scaling Mode:": "Modo de escalado:",
"None": "Ninguno",
"Local Scaling": "Escalado Local",
"Local Downscaling": "Reducción de escala local",
"Remote resizing": "Cambio de tamaño remoto",
"Remote Resizing": "Cambio de tamaño remoto",
"Advanced": "Avanzado",
"Local Cursor": "Cursor Local",
"Repeater ID:": "ID del Repetidor:",
@ -57,8 +57,8 @@
"Host:": "Host:",
"Port:": "Puerto:",
"Path:": "Ruta:",
"Automatic reconnect": "Reconexión automática",
"Reconnect delay (ms):": "Retraso en la reconexión (ms):",
"Automatic Reconnect": "Reconexión automática",
"Reconnect Delay (ms):": "Retraso en la reconexión (ms):",
"Logging:": "Registrando:",
"Disconnect": "Desconectar",
"Connect": "Conectar",

View File

@ -1,10 +1,9 @@
{
"Running without HTTPS is not recommended, crashes or other issues are likely.": "Lancer sans HTTPS n'est pas recommandé, crashs ou autres problèmes en vue.",
"Connecting...": "En cours de connexion...",
"Disconnecting...": "Déconnexion en cours...",
"Reconnecting...": "Reconnexion en cours...",
"Internal error": "Erreur interne",
"Failed to connect to server: ": "Échec de connexion au serveur ",
"Must set host": "Doit définir l'hôte",
"Connected (encrypted) to ": "Connecté (chiffré) à ",
"Connected (unencrypted) to ": "Connecté (non chiffré) à ",
"Something went wrong, connection is closed": "Quelque chose s'est mal passé, la connexion a été fermée",
@ -16,19 +15,19 @@
"noVNC encountered an error:": "noVNC a rencontré une erreur :",
"Hide/Show the control bar": "Masquer/Afficher la barre de contrôle",
"Drag": "Faire glisser",
"Move/Drag viewport": "Déplacer la fenêtre de visualisation",
"Move/Drag Viewport": "Déplacer/faire glisser le Viewport",
"Keyboard": "Clavier",
"Show keyboard": "Afficher le clavier",
"Show Keyboard": "Afficher le clavier",
"Extra keys": "Touches supplémentaires",
"Show extra keys": "Afficher les touches supplémentaires",
"Show Extra Keys": "Afficher les touches supplémentaires",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Basculer Ctrl",
"Alt": "Alt",
"Toggle Alt": "Basculer Alt",
"Toggle Windows": "Basculer Windows",
"Windows": "Fenêtre",
"Send Tab": "Envoyer Tab",
"Tab": "Tabulation",
"Windows": "Windows",
"Send Tab": "Envoyer l'onglet",
"Tab": "l'onglet",
"Esc": "Esc",
"Send Escape": "Envoyer Escape",
"Ctrl+Alt+Del": "Ctrl+Alt+Del",
@ -40,16 +39,16 @@
"Reboot": "Redémarrer",
"Reset": "Réinitialiser",
"Clipboard": "Presse-papiers",
"Edit clipboard content in the textarea below.": "Editer le contenu du presse-papier dans la zone ci-dessous.",
"Full screen": "Plein écran",
"Clear": "Effacer",
"Fullscreen": "Plein écran",
"Settings": "Paramètres",
"Shared mode": "Mode partagé",
"View only": "Afficher uniquement",
"Clip to window": "Ajuster à la fenêtre",
"Scaling mode:": "Mode mise à l'échelle :",
"Shared Mode": "Mode partagé",
"View Only": "Afficher uniquement",
"Clip to Window": "Clip à fenêtre",
"Scaling Mode:": "Mode mise à l'échelle :",
"None": "Aucun",
"Local scaling": "Mise à l'échelle locale",
"Remote resizing": "Redimensionnement à distance",
"Local Scaling": "Mise à l'échelle locale",
"Remote Resizing": "Redimensionnement à distance",
"Advanced": "Avancé",
"Quality:": "Qualité :",
"Compression level:": "Niveau de compression :",
@ -59,24 +58,15 @@
"Host:": "Hôte :",
"Port:": "Port :",
"Path:": "Chemin :",
"Automatic reconnect": "Reconnecter automatiquement",
"Reconnect delay (ms):": "Délai de reconnexion (ms) :",
"Show dot when no cursor": "Afficher le point lorsqu'il n'y a pas de curseur",
"Automatic Reconnect": "Reconnecter automatiquemen",
"Reconnect Delay (ms):": "Délai de reconnexion (ms) :",
"Show Dot when No Cursor": "Afficher le point lorsqu'il n'y a pas de curseur",
"Logging:": "Se connecter :",
"Version:": "Version :",
"Disconnect": "Déconnecter",
"Connect": "Connecter",
"Server identity": "Identité du serveur",
"The server has provided the following identifying information:": "Le serveur a fourni l'identification suivante :",
"Fingerprint:": "Empreinte digitale :",
"Please verify that the information is correct and press \"Approve\". Otherwise press \"Reject\".": "SVP, verifiez que l'information est correcte et pressez \"Accepter\". Sinon pressez \"Refuser\".",
"Approve": "Accepter",
"Reject": "Refuser",
"Credentials": "Envoyer les identifiants",
"Username:": "Nom d'utilisateur :",
"Password:": "Mot de passe :",
"Send credentials": "Envoyer les identifiants",
"Cancel": "Annuler",
"Must set host": "Doit définir l'hôte",
"Clear": "Effacer"
"Send Credentials": "Envoyer les identifiants",
"Cancel": "Annuler"
}

View File

@ -15,7 +15,7 @@
"noVNC encountered an error:": "noVNC ha riscontrato un errore:",
"Hide/Show the control bar": "Nascondi/Mostra la barra di controllo",
"Keyboard": "Tastiera",
"Show keyboard": "Mostra tastiera",
"Show Keyboard": "Mostra tastiera",
"Extra keys": "Tasti Aggiuntivi",
"Show Extra Keys": "Mostra Tasti Aggiuntivi",
"Ctrl": "Ctrl",
@ -40,9 +40,9 @@
"Clear": "Pulisci",
"Fullscreen": "Schermo intero",
"Settings": "Impostazioni",
"Shared mode": "Modalità condivisa",
"Shared Mode": "Modalità condivisa",
"View Only": "Sola Visualizzazione",
"Scaling mode:": "Modalità di ridimensionamento:",
"Scaling Mode:": "Modalità di ridimensionamento:",
"None": "Nessuna",
"Local Scaling": "Ridimensionamento Locale",
"Remote Resizing": "Ridimensionamento Remoto",

View File

@ -1,14 +1,13 @@
{
"Running without HTTPS is not recommended, crashes or other issues are likely.": "HTTPS接続なしで実行することは推奨されません。クラッシュしたりその他の問題が発生したりする可能性があります。",
"HTTPS is required for full functionality": "すべての機能を使用するにはHTTPS接続が必要です",
"Connecting...": "接続しています...",
"Disconnecting...": "切断しています...",
"Reconnecting...": "再接続しています...",
"Internal error": "内部エラー",
"Must set host": "ホストを設定する必要があります",
"Failed to connect to server: ": "サーバーへの接続に失敗しました: ",
"Connected (encrypted) to ": "接続しました (暗号化済み): ",
"Connected (unencrypted) to ": "接続しました (暗号化されていません): ",
"Something went wrong, connection is closed": "問題が発生したため、接続が閉じられました",
"Something went wrong, connection is closed": "何らかの問題で、接続が閉じられました",
"Failed to connect to server": "サーバーへの接続に失敗しました",
"Disconnected": "切断しました",
"New connection has been rejected with reason: ": "新規接続は次の理由で拒否されました: ",
@ -17,11 +16,11 @@
"noVNC encountered an error:": "noVNC でエラーが発生しました:",
"Hide/Show the control bar": "コントロールバーを隠す/表示する",
"Drag": "ドラッグ",
"Move/Drag viewport": "ビューポートを移動/ドラッグ",
"Move/Drag Viewport": "ビューポートを移動/ドラッグ",
"Keyboard": "キーボード",
"Show keyboard": "キーボードを表示",
"Show Keyboard": "キーボードを表示",
"Extra keys": "追加キー",
"Show extra keys": "追加キーを表示",
"Show Extra Keys": "追加キーを表示",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Ctrl キーをトグル",
"Alt": "Alt",
@ -42,15 +41,15 @@
"Reset": "リセット",
"Clipboard": "クリップボード",
"Edit clipboard content in the textarea below.": "以下の入力欄からクリップボードの内容を編集できます。",
"Full screen": "全画面表示",
"Full Screen": "全画面表示",
"Settings": "設定",
"Shared mode": "共有モード",
"View only": "表示専用",
"Clip to window": "ウィンドウにクリップ",
"Scaling mode:": "スケーリングモード:",
"Shared Mode": "共有モード",
"View Only": "表示専用",
"Clip to Window": "ウィンドウにクリップ",
"Scaling Mode:": "スケーリングモード:",
"None": "なし",
"Local scaling": "ローカルでスケーリング",
"Remote resizing": "リモートでリサイズ",
"Local Scaling": "ローカルスケーリング",
"Remote Resizing": "リモートでリサイズ",
"Advanced": "高度",
"Quality:": "品質:",
"Compression level:": "圧縮レベル:",
@ -60,9 +59,9 @@
"Host:": "ホスト:",
"Port:": "ポート:",
"Path:": "パス:",
"Automatic reconnect": "自動再接続",
"Reconnect delay (ms):": "再接続する遅延 (ミリ秒):",
"Show dot when no cursor": "カーソルがないときにドットを表示する",
"Automatic Reconnect": "自動再接続",
"Reconnect Delay (ms):": "再接続する遅延 (ミリ秒):",
"Show Dot when No Cursor": "カーソルがないときにドットを表示する",
"Logging:": "ロギング:",
"Version:": "バージョン:",
"Disconnect": "切断",
@ -76,6 +75,6 @@
"Credentials": "資格情報",
"Username:": "ユーザー名:",
"Password:": "パスワード:",
"Send credentials": "資格情報を送信",
"Send Credentials": "資格情報を送信",
"Cancel": "キャンセル"
}

View File

@ -14,7 +14,7 @@
"Password is required": "비밀번호가 필요합니다.",
"noVNC encountered an error:": "noVNC에 오류가 발생했습니다:",
"Hide/Show the control bar": "컨트롤 바 숨기기/보이기",
"Move/Drag viewport": "움직이기/드래그 뷰포트",
"Move/Drag Viewport": "움직이기/드래그 뷰포트",
"viewport drag": "뷰포트 드래그",
"Active Mouse Button": "마우스 버튼 활성화",
"No mousebutton": "마우스 버튼 없음",
@ -22,9 +22,9 @@
"Middle mousebutton": "중간 마우스 버튼",
"Right mousebutton": "오른쪽 마우스 버튼",
"Keyboard": "키보드",
"Show keyboard": "키보드 보이기",
"Show Keyboard": "키보드 보이기",
"Extra keys": "기타 키들",
"Show extra keys": "기타 키들 보이기",
"Show Extra Keys": "기타 키들 보이기",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Ctrl 켜기/끄기",
"Alt": "Alt",
@ -45,13 +45,13 @@
"Clear": "지우기",
"Fullscreen": "전체화면",
"Settings": "설정",
"Shared mode": "공유 모드",
"View only": "보기 전용",
"Clip to window": "창에 클립",
"Scaling mode:": "스케일링 모드:",
"Shared Mode": "공유 모드",
"View Only": "보기 전용",
"Clip to Window": "창에 클립",
"Scaling Mode:": "스케일링 모드:",
"None": "없음",
"Local scaling": "로컬 스케일링",
"Remote resizing": "원격 크기 조절",
"Local Scaling": "로컬 스케일링",
"Remote Resizing": "원격 크기 조절",
"Advanced": "고급",
"Repeater ID:": "중계 ID",
"WebSocket": "웹소켓",
@ -59,8 +59,8 @@
"Host:": "호스트:",
"Port:": "포트:",
"Path:": "위치:",
"Automatic reconnect": "자동 재연결",
"Reconnect delay (ms):": "재연결 지연 시간 (ms)",
"Automatic Reconnect": "자동 재연결",
"Reconnect Delay (ms):": "재연결 지연 시간 (ms)",
"Logging:": "로깅",
"Disconnect": "연결 해제",
"Connect": "연결",

View File

@ -1,32 +1,36 @@
{
"Running without HTTPS is not recommended, crashes or other issues are likely.": "Het is niet aan te raden om zonder HTTPS te werken, crashes of andere problemen zijn dan waarschijnlijk.",
"Connecting...": "Aan het verbinden…",
"Disconnecting...": "Bezig om verbinding te verbreken...",
"Connecting...": "Verbinden...",
"Disconnecting...": "Verbinding verbreken...",
"Reconnecting...": "Opnieuw verbinding maken...",
"Internal error": "Interne fout",
"Failed to connect to server: ": "Verbinding maken met server is mislukt",
"Must set host": "Host moeten worden ingesteld",
"Connected (encrypted) to ": "Verbonden (versleuteld) met ",
"Connected (unencrypted) to ": "Verbonden (onversleuteld) met ",
"Something went wrong, connection is closed": "Er iets fout gelopen, verbinding werd verbroken",
"Failed to connect to server": "Verbinding maken met server is mislukt",
"Disconnected": "Verbinding verbroken",
"New connection has been rejected with reason: ": "Nieuwe verbinding is geweigerd met de volgende reden: ",
"New connection has been rejected with reason: ": "Nieuwe verbinding is geweigerd omwille van de volgende reden: ",
"New connection has been rejected": "Nieuwe verbinding is geweigerd",
"Credentials are required": "Inloggegevens zijn nodig",
"Password is required": "Wachtwoord is vereist",
"noVNC encountered an error:": "noVNC heeft een fout bemerkt:",
"Hide/Show the control bar": "Verberg/Toon de bedieningsbalk",
"Drag": "Sleep",
"Move/Drag viewport": "Verplaats/Versleep Kijkvenster",
"Move/Drag Viewport": "Verplaats/Versleep Kijkvenster",
"viewport drag": "kijkvenster slepen",
"Active Mouse Button": "Actieve Muisknop",
"No mousebutton": "Geen muisknop",
"Left mousebutton": "Linker muisknop",
"Middle mousebutton": "Middelste muisknop",
"Right mousebutton": "Rechter muisknop",
"Keyboard": "Toetsenbord",
"Show keyboard": "Toon Toetsenbord",
"Show Keyboard": "Toon Toetsenbord",
"Extra keys": "Extra toetsen",
"Show extra keys": "Toon Extra Toetsen",
"Show Extra Keys": "Toon Extra Toetsen",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Ctrl omschakelen",
"Alt": "Alt",
"Toggle Alt": "Alt omschakelen",
"Toggle Windows": "Vensters omschakelen",
"Windows": "Vensters",
"Toggle Windows": "Windows omschakelen",
"Windows": "Windows",
"Send Tab": "Tab Sturen",
"Tab": "Tab",
"Esc": "Esc",
@ -40,56 +44,30 @@
"Reboot": "Herstarten",
"Reset": "Resetten",
"Clipboard": "Klembord",
"Edit clipboard content in the textarea below.": "Edit de inhoud van het klembord in het tekstveld hieronder",
"Full screen": "Volledig Scherm",
"Clear": "Wissen",
"Fullscreen": "Volledig Scherm",
"Settings": "Instellingen",
"Shared mode": "Gedeelde Modus",
"View only": "Alleen Kijken",
"Clip to window": "Randen buiten venster afsnijden",
"Scaling mode:": "Schaalmodus:",
"Shared Mode": "Gedeelde Modus",
"View Only": "Alleen Kijken",
"Clip to Window": "Randen buiten venster afsnijden",
"Scaling Mode:": "Schaalmodus:",
"None": "Geen",
"Local scaling": "Lokaal Schalen",
"Remote resizing": "Op Afstand Formaat Wijzigen",
"Local Scaling": "Lokaal Schalen",
"Remote Resizing": "Op Afstand Formaat Wijzigen",
"Advanced": "Geavanceerd",
"Quality:": "Kwaliteit:",
"Compression level:": "Compressieniveau:",
"Repeater ID:": "Repeater ID:",
"WebSocket": "WebSocket",
"Encrypt": "Versleutelen",
"Host:": "Host:",
"Port:": "Poort:",
"Path:": "Pad:",
"Automatic reconnect": "Automatisch Opnieuw Verbinden",
"Reconnect delay (ms):": "Vertraging voor Opnieuw Verbinden (ms):",
"Show dot when no cursor": "Geef stip weer indien geen cursor",
"Automatic Reconnect": "Automatisch Opnieuw Verbinden",
"Reconnect Delay (ms):": "Vertraging voor Opnieuw Verbinden (ms):",
"Show Dot when No Cursor": "Geef stip weer indien geen cursor",
"Logging:": "Logmeldingen:",
"Version:": "Versie:",
"Disconnect": "Verbinding verbreken",
"Connect": "Verbinden",
"Server identity": "Serveridentiteit",
"The server has provided the following identifying information:": "De server geeft de volgende identificerende informatie:",
"Fingerprint:": "Vingerafdruk:",
"Please verify that the information is correct and press \"Approve\". Otherwise press \"Reject\".": "Verifieer dat de informatie is correct en druk “OK”. Druk anders op “Afwijzen”.",
"Approve": "OK",
"Reject": "Afwijzen",
"Credentials": "Inloggegevens",
"Username:": "Gebruikersnaam:",
"Password:": "Wachtwoord:",
"Send credentials": "Stuur inloggegevens",
"Cancel": "Annuleren",
"Must set host": "Host moeten worden ingesteld",
"Password is required": "Wachtwoord is vereist",
"viewport drag": "kijkvenster slepen",
"Active Mouse Button": "Actieve Muisknop",
"No mousebutton": "Geen muisknop",
"Left mousebutton": "Linker muisknop",
"Middle mousebutton": "Middelste muisknop",
"Right mousebutton": "Rechter muisknop",
"Clear": "Wissen",
"Send Password": "Verzend Wachtwoord:",
"Disconnect timeout": "Timeout tijdens verbreken van verbinding",
"Local Downscaling": "Lokaal Neerschalen",
"Local Cursor": "Lokale Cursor",
"Canvas not supported.": "Canvas wordt niet ondersteund.",
"Forcing clipping mode since scrollbars aren't supported by IE in fullscreen": "''Clipping mode' ingeschakeld, omdat schuifbalken in volledige-scherm-modus in IE niet worden ondersteund"
"Cancel": "Annuleren"
}

View File

@ -21,9 +21,9 @@
"Middle mousebutton": "Środkowy przycisk myszy",
"Right mousebutton": "Prawy przycisk myszy",
"Keyboard": "Klawiatura",
"Show keyboard": "Pokaż klawiaturę",
"Show Keyboard": "Pokaż klawiaturę",
"Extra keys": "Przyciski dodatkowe",
"Show extra keys": "Pokaż przyciski dodatkowe",
"Show Extra Keys": "Pokaż przyciski dodatkowe",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Przełącz Ctrl",
"Alt": "Alt",
@ -49,8 +49,8 @@
"Clip to Window": "Przytnij do Okna",
"Scaling Mode:": "Tryb Skalowania:",
"None": "Brak",
"Local scaling": "Skalowanie lokalne",
"Remote resizing": "Skalowanie zdalne",
"Local Scaling": "Skalowanie lokalne",
"Remote Resizing": "Skalowanie zdalne",
"Advanced": "Zaawansowane",
"Repeater ID:": "ID Repeatera:",
"WebSocket": "WebSocket",
@ -58,23 +58,12 @@
"Host:": "Host:",
"Port:": "Port:",
"Path:": "Ścieżka:",
"Automatic reconnect": "Automatycznie wznawiaj połączenie",
"Reconnect delay (ms):": "Opóźnienie wznawiania (ms):",
"Automatic Reconnect": "Automatycznie wznawiaj połączenie",
"Reconnect Delay (ms):": "Opóźnienie wznawiania (ms):",
"Logging:": "Poziom logowania:",
"Disconnect": "Rozłącz",
"Connect": "Połącz",
"Password:": "Hasło:",
"Cancel": "Anuluj",
"Canvas not supported.": "Element Canvas nie jest wspierany.",
"Disconnect timeout": "Timeout rozłączenia",
"Local Downscaling": "Downscaling lokalny",
"Local Cursor": "Lokalny kursor",
"Forcing clipping mode since scrollbars aren't supported by IE in fullscreen": "Wymuszam clipping mode ponieważ paski przewijania nie są wspierane przez IE w trybie pełnoekranowym",
"True Color": "True Color",
"Style:": "Styl:",
"default": "domyślny",
"Apply": "Zapisz",
"Connection": "Połączenie",
"Token:": "Token:",
"Send Password": "Wyślij Hasło"
"Canvas not supported.": "Element Canvas nie jest wspierany."
}

View File

@ -15,11 +15,11 @@
"noVNC encountered an error:": "O noVNC encontrou um erro:",
"Hide/Show the control bar": "Esconder/mostrar a barra de controles",
"Drag": "Arrastar",
"Move/Drag viewport": "Mover/arrastar a janela",
"Move/Drag Viewport": "Mover/arrastar a janela",
"Keyboard": "Teclado",
"Show keyboard": "Mostrar teclado",
"Show Keyboard": "Mostrar teclado",
"Extra keys": "Teclas adicionais",
"Show extra keys": "Mostar teclas adicionais",
"Show Extra Keys": "Mostar teclas adicionais",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Pressionar/soltar Ctrl",
"Alt": "Alt",
@ -42,13 +42,13 @@
"Clear": "Limpar",
"Fullscreen": "Tela cheia",
"Settings": "Configurações",
"Shared mode": "Modo compartilhado",
"View only": "Apenas visualizar",
"Clip to window": "Recortar à janela",
"Scaling mode:": "Modo de dimensionamento:",
"Shared Mode": "Modo compartilhado",
"View Only": "Apenas visualizar",
"Clip to Window": "Recortar à janela",
"Scaling Mode:": "Modo de dimensionamento:",
"None": "Nenhum",
"Local scaling": "Local",
"Remote resizing": "Remoto",
"Local Scaling": "Local",
"Remote Resizing": "Remoto",
"Advanced": "Avançado",
"Quality:": "Qualidade:",
"Compression level:": "Nível de compressão:",
@ -58,15 +58,15 @@
"Host:": "Host:",
"Port:": "Porta:",
"Path:": "Caminho:",
"Automatic reconnect": "Reconexão automática",
"Reconnect delay (ms):": "Atraso da reconexão (ms)",
"Show dot when no cursor": "Mostrar ponto quando não há cursor",
"Automatic Reconnect": "Reconexão automática",
"Reconnect Delay (ms):": "Atraso da reconexão (ms)",
"Show Dot when No Cursor": "Mostrar ponto quando não há cursor",
"Logging:": "Registros:",
"Version:": "Versão:",
"Disconnect": "Desconectar",
"Connect": "Conectar",
"Username:": "Nome de usuário:",
"Password:": "Senha:",
"Send credentials": "Enviar credenciais",
"Send Credentials": "Enviar credenciais",
"Cancel": "Cancelar"
}

View File

@ -15,16 +15,16 @@
"noVNC encountered an error:": "Ошибка noVNC: ",
"Hide/Show the control bar": "Скрыть/Показать контрольную панель",
"Drag": "Переместить",
"Move/Drag viewport": "Переместить окно",
"Move/Drag Viewport": "Переместить окно",
"Keyboard": "Клавиатура",
"Show keyboard": "Показать клавиатуру",
"Show Keyboard": "Показать клавиатуру",
"Extra keys": "Дополнительные Кнопки",
"Show Extra Keys": "Показать Дополнительные Кнопки",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Зажать Ctrl",
"Toggle Ctrl": "Переключение нажатия Ctrl",
"Alt": "Alt",
"Toggle Alt": "Зажать Alt",
"Toggle Windows": "Зажать Windows",
"Toggle Alt": "Переключение нажатия Alt",
"Toggle Windows": "Переключение вкладок",
"Windows": "Вкладка",
"Send Tab": "Передать нажатие Tab",
"Tab": "Tab",
@ -42,13 +42,13 @@
"Clear": "Очистить",
"Fullscreen": "Во весь экран",
"Settings": "Настройки",
"Shared mode": "Общий режим",
"Shared Mode": "Общий режим",
"View Only": "Только Просмотр",
"Clip to window": "В окно",
"Scaling mode:": "Масштаб:",
"Clip to Window": "В окно",
"Scaling Mode:": "Масштаб:",
"None": "Нет",
"Local scaling": "Локальный масштаб",
"Remote resizing": "Удаленная перенастройка размера",
"Local Scaling": "Локльный масштаб",
"Remote Resizing": "Удаленная перенастройка размера",
"Advanced": "Дополнительно",
"Quality:": "Качество",
"Compression level:": "Уровень Сжатия",
@ -58,9 +58,9 @@
"Host:": "Сервер:",
"Port:": "Порт:",
"Path:": "Путь:",
"Automatic reconnect": "Автоматическое переподключение",
"Reconnect delay (ms):": "Задержка переподключения (мс):",
"Show dot when no cursor": "Показать точку вместо курсора",
"Automatic Reconnect": "Автоматическое переподключение",
"Reconnect Delay (ms):": "Задержка переподключения (мс):",
"Show Dot when No Cursor": "Показать точку вместо курсора",
"Logging:": "Лог:",
"Version:": "Версия",
"Disconnect": "Отключение",

View File

@ -4,6 +4,7 @@
"Disconnecting...": "Kopplar ner...",
"Reconnecting...": "Återansluter...",
"Internal error": "Internt fel",
"Must set host": "Du måste specifiera en värd",
"Failed to connect to server: ": "Misslyckades att ansluta till servern: ",
"Connected (encrypted) to ": "Ansluten (krypterat) till ",
"Connected (unencrypted) to ": "Ansluten (okrypterat) till ",
@ -16,11 +17,11 @@
"noVNC encountered an error:": "noVNC stötte på ett problem:",
"Hide/Show the control bar": "Göm/Visa kontrollbaren",
"Drag": "Dra",
"Move/Drag viewport": "Flytta/Dra vyn",
"Move/Drag Viewport": "Flytta/Dra Vyn",
"Keyboard": "Tangentbord",
"Show keyboard": "Visa tangentbord",
"Show Keyboard": "Visa Tangentbord",
"Extra keys": "Extraknappar",
"Show extra keys": "Visa extraknappar",
"Show Extra Keys": "Visa Extraknappar",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Växla Ctrl",
"Alt": "Alt",
@ -41,15 +42,15 @@
"Reset": "Återställ",
"Clipboard": "Urklipp",
"Edit clipboard content in the textarea below.": "Redigera urklippets innehåll i fältet nedan.",
"Full screen": "Fullskärm",
"Full Screen": "Fullskärm",
"Settings": "Inställningar",
"Shared mode": "Delat läge",
"View only": "Endast visning",
"Clip to window": "Begränsa till fönster",
"Scaling mode:": "Skalningsläge:",
"Shared Mode": "Delat Läge",
"View Only": "Endast Visning",
"Clip to Window": "Begränsa till Fönster",
"Scaling Mode:": "Skalningsläge:",
"None": "Ingen",
"Local scaling": "Lokal skalning",
"Remote resizing": "Ändra storlek",
"Local Scaling": "Lokal Skalning",
"Remote Resizing": "Ändra Storlek",
"Advanced": "Avancerat",
"Quality:": "Kvalitet:",
"Compression level:": "Kompressionsnivå:",
@ -59,9 +60,9 @@
"Host:": "Värd:",
"Port:": "Port:",
"Path:": "Sökväg:",
"Automatic reconnect": "Automatisk återanslutning",
"Reconnect delay (ms):": "Fördröjning (ms):",
"Show dot when no cursor": "Visa prick när ingen muspekare finns",
"Automatic Reconnect": "Automatisk Återanslutning",
"Reconnect Delay (ms):": "Fördröjning (ms):",
"Show Dot when No Cursor": "Visa prick när ingen muspekare finns",
"Logging:": "Loggning:",
"Version:": "Version:",
"Disconnect": "Koppla från",
@ -75,9 +76,6 @@
"Credentials": "Användaruppgifter",
"Username:": "Användarnamn:",
"Password:": "Lösenord:",
"Send credentials": "Skicka användaruppgifter",
"Cancel": "Avbryt",
"Must set host": "Du måste specifiera en värd",
"HTTPS is required for full functionality": "HTTPS krävs för full funktionalitet",
"Clear": "Rensa"
"Send Credentials": "Skicka Användaruppgifter",
"Cancel": "Avbryt"
}

View File

@ -23,7 +23,7 @@
"Keyboard": "Klavye",
"Show Keyboard": "Klavye Düzenini Göster",
"Extra keys": "Ekstra tuşlar",
"Show extra keys": "Ekstra tuşları göster",
"Show Extra Keys": "Ekstra tuşları göster",
"Ctrl": "Ctrl",
"Toggle Ctrl": "Ctrl Değiştir ",
"Alt": "Alt",

View File

@ -1,33 +1,31 @@
{
"Running without HTTPS is not recommended, crashes or other issues are likely.": "不建议在没有 HTTPS 的情况下运行,可能会出现崩溃或出现其他问题。",
"Connecting...": "连接中...",
"Disconnecting...": "正在断开连接...",
"Reconnecting...": "重新连接中...",
"Internal error": "内部错误",
"Must set host": "必须设置主机",
"Failed to connect to server: ": "无法连接到服务器:",
"Connected (encrypted) to ": "已连接(已加密)到",
"Connected (unencrypted) to ": "已连接(未加密)到",
"Something went wrong, connection is closed": "出了点问题,连接已关闭",
"Failed to connect to server": "无法连接到服务器",
"Disconnecting...": "正在断开连接...",
"Disconnected": "已断开连接",
"New connection has been rejected with reason: ": "新连接被拒绝,原因如下:",
"New connection has been rejected": "新连接已被拒绝",
"Credentials are required": "需要凭证",
"Must set host": "必须设置主机",
"Reconnecting...": "重新连接中...",
"Password is required": "请提供密码",
"Disconnect timeout": "超时断开",
"noVNC encountered an error:": "noVNC 遇到一个错误:",
"Hide/Show the control bar": "显示/隐藏控制栏",
"Drag": "拖动",
"Move/Drag viewport": "移动/拖动窗口",
"Move/Drag Viewport": "移动/拖动窗口",
"viewport drag": "窗口拖动",
"Active Mouse Button": "启动鼠标按键",
"No mousebutton": "禁用鼠标按键",
"Left mousebutton": "鼠标左键",
"Middle mousebutton": "鼠标中键",
"Right mousebutton": "鼠标右键",
"Keyboard": "键盘",
"Show keyboard": "显示键盘",
"Show Keyboard": "显示键盘",
"Extra keys": "额外按键",
"Show extra keys": "显示额外按键",
"Show Extra Keys": "显示额外按键",
"Ctrl": "Ctrl",
"Toggle Ctrl": "切换 Ctrl",
"Edit clipboard content in the textarea below.": "在下面的文本区域中编辑剪贴板内容。",
"Alt": "Alt",
"Toggle Alt": "切换 Alt",
"Toggle Windows": "切换窗口",
"Windows": "窗口",
"Send Tab": "发送 Tab 键",
"Tab": "Tab",
"Esc": "Esc",
@ -41,53 +39,31 @@
"Reboot": "重启",
"Reset": "重置",
"Clipboard": "剪贴板",
"Edit clipboard content in the textarea below.": "在下面的文本区域中编辑剪贴板内容。",
"Full screen": "全屏",
"Clear": "清除",
"Fullscreen": "全屏",
"Settings": "设置",
"Shared mode": "分享模式",
"View only": "仅查看",
"Clip to window": "限制/裁切窗口大小",
"Scaling mode:": "缩放模式:",
"Encrypt": "加密",
"Shared Mode": "分享模式",
"View Only": "仅查看",
"Clip to Window": "限制/裁切窗口大小",
"Scaling Mode:": "缩放模式:",
"None": "无",
"Local scaling": "本地缩放",
"Remote resizing": "远程调整大小",
"Local Scaling": "本地缩放",
"Local Downscaling": "降低本地尺寸",
"Remote Resizing": "远程调整大小",
"Advanced": "高级",
"Quality:": "品质:",
"Compression level:": "压缩级别:",
"Local Cursor": "本地光标",
"Repeater ID:": "中继站 ID",
"WebSocket": "WebSocket",
"Encrypt": "加密",
"Host:": "主机:",
"Port:": "端口:",
"Path:": "路径:",
"Automatic reconnect": "自动重新连接",
"Reconnect delay (ms):": "重新连接间隔 (ms)",
"Show dot when no cursor": "无光标时显示点",
"Automatic Reconnect": "自动重新连接",
"Reconnect Delay (ms):": "重新连接间隔 (ms)",
"Logging:": "日志级别:",
"Version:": "版本:",
"Disconnect": "断开连接",
"Connect": "连接",
"Server identity": "服务器身份",
"The server has provided the following identifying information:": "服务器提供了以下识别信息:",
"Fingerprint:": "指纹:",
"Please verify that the information is correct and press \"Approve\". Otherwise press \"Reject\".": "请核实信息是否正确,并按 “同意”,否则按 “拒绝”。",
"Approve": "同意",
"Reject": "拒绝",
"Credentials": "凭证",
"Username:": "用户名:",
"Password:": "密码:",
"Send credentials": "发送凭证",
"Cancel": "取消",
"Password is required": "请提供密码",
"Disconnect timeout": "超时断开",
"viewport drag": "窗口拖动",
"Active Mouse Button": "启动鼠标按键",
"No mousebutton": "禁用鼠标按键",
"Left mousebutton": "鼠标左键",
"Middle mousebutton": "鼠标中键",
"Right mousebutton": "鼠标右键",
"Clear": "清除",
"Local Downscaling": "降低本地尺寸",
"Local Cursor": "本地光标",
"Canvas not supported.": "不支持 Canvas。"
}

View File

@ -14,7 +14,7 @@
"Password is required": "請提供密碼",
"noVNC encountered an error:": "noVNC 遇到一個錯誤:",
"Hide/Show the control bar": "顯示/隱藏控制列",
"Move/Drag viewport": "拖放顯示範圍",
"Move/Drag Viewport": "拖放顯示範圍",
"viewport drag": "顯示範圍拖放",
"Active Mouse Button": "啟用滑鼠按鍵",
"No mousebutton": "無滑鼠按鍵",
@ -22,9 +22,9 @@
"Middle mousebutton": "滑鼠中鍵",
"Right mousebutton": "滑鼠右鍵",
"Keyboard": "鍵盤",
"Show keyboard": "顯示鍵盤",
"Show Keyboard": "顯示鍵盤",
"Extra keys": "額外按鍵",
"Show extra keys": "顯示額外按鍵",
"Show Extra Keys": "顯示額外按鍵",
"Ctrl": "Ctrl",
"Toggle Ctrl": "切換 Ctrl",
"Alt": "Alt",
@ -45,13 +45,13 @@
"Clear": "清除",
"Fullscreen": "全螢幕",
"Settings": "設定",
"Shared mode": "分享模式",
"View only": "僅檢視",
"Clip to window": "限制/裁切視窗大小",
"Scaling mode:": "縮放模式:",
"Shared Mode": "分享模式",
"View Only": "僅檢視",
"Clip to Window": "限制/裁切視窗大小",
"Scaling Mode:": "縮放模式:",
"None": "無",
"Local scaling": "本機縮放",
"Remote resizing": "遠端調整大小",
"Local Scaling": "本機縮放",
"Remote Resizing": "遠端調整大小",
"Advanced": "進階",
"Repeater ID:": "中繼站 ID",
"WebSocket": "WebSocket",
@ -59,8 +59,8 @@
"Host:": "主機:",
"Port:": "連接埠:",
"Path:": "路徑:",
"Automatic reconnect": "自動重新連線",
"Reconnect delay (ms):": "重新連線間隔 (ms)",
"Automatic Reconnect": "自動重新連線",
"Reconnect Delay (ms):": "重新連線間隔 (ms)",
"Logging:": "日誌級別:",
"Disconnect": "中斷連線",
"Connect": "連線",

View File

@ -1,13 +1,13 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
*/
/*
* Localization utilities
* Localization Utilities
*/
export class Localizer {

File diff suppressed because it is too large Load Diff

View File

@ -1,30 +0,0 @@
/*
* noVNC general CSS constant variables
* Copyright (C) 2025 The noVNC authors
* noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
* This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
*/
/* ---------- COLORS ----------- */
:root {
--novnc-grey: rgb(128, 128, 128);
--novnc-lightgrey: rgb(192, 192, 192);
--novnc-darkgrey: rgb(92, 92, 92);
/* Transparent to make button colors adapt to the background */
--novnc-buttongrey: rgba(192, 192, 192, 0.5);
--novnc-blue: rgb(110, 132, 163);
--novnc-lightblue: rgb(74, 144, 217);
--novnc-darkblue: rgb(83, 99, 122);
--novnc-green: rgb(0, 128, 0);
--novnc-yellow: rgb(255, 255, 0);
}
/* ------ MISC PROPERTIES ------ */
:root {
--input-xpadding: 1em;
}

View File

@ -1,170 +1,32 @@
/*
* noVNC general input element CSS
* Copyright (C) 2025 The noVNC authors
* Copyright (C) 2022 The noVNC Authors
* noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
* This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
*/
/* ------- SHARED BETWEEN INPUT ELEMENTS -------- */
/*
* Common for all inputs
*/
input, input::file-selector-button, button, select, textarea {
/* Respect standard font settings */
font: inherit;
input,
textarea,
button,
select,
input::file-selector-button {
padding: 0.5em var(--input-xpadding);
border-radius: 6px;
appearance: none;
text-overflow: ellipsis;
/* Disable default rendering */
appearance: none;
background: none;
/* Respect standard font settings */
font: inherit;
line-height: 1.6;
}
input:disabled,
textarea:disabled,
button:disabled,
select:disabled,
label[disabled] {
opacity: 0.4;
padding: 5px;
border: 1px solid rgb(192, 192, 192);
border-radius: 5px;
color: black;
--bg-gradient: linear-gradient(to top, rgb(255, 255, 255) 80%, rgb(240, 240, 240));
background-image: var(--bg-gradient);
}
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible::file-selector-button {
outline: 2px solid var(--novnc-lightblue);
outline-offset: 1px;
}
/* ------- TEXT INPUT -------- */
input:not([type]),
input[type=date],
input[type=datetime-local],
input[type=email],
input[type=month],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=time],
input[type=url],
input[type=week],
textarea {
border: 1px solid var(--novnc-lightgrey);
/* Account for borders on text inputs, buttons dont have borders */
padding: calc(0.5em - 1px) var(--input-xpadding);
}
input:not([type]):focus-visible,
input[type=date]:focus-visible,
input[type=datetime-local]:focus-visible,
input[type=email]:focus-visible,
input[type=month]:focus-visible,
input[type=number]:focus-visible,
input[type=password]:focus-visible,
input[type=search]:focus-visible,
input[type=tel]:focus-visible,
input[type=text]:focus-visible,
input[type=time]:focus-visible,
input[type=url]:focus-visible,
input[type=week]:focus-visible,
textarea:focus-visible {
outline-offset: -1px;
}
textarea {
margin: unset; /* Remove Firefox's built in margin */
/* Prevent layout from shifting when scrollbars show */
scrollbar-gutter: stable;
/* Make textareas show at minimum one line. This does not work when
using box-sizing border-box, in which case, vertical padding and
border width needs to be taken into account. */
min-height: 1lh;
vertical-align: baseline; /* Firefox gives "text-bottom" by default */
}
/* ------- NUMBER PICKERS ------- */
/* We can't style the number spinner buttons:
https://github.com/w3c/csswg-drafts/issues/8777 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
/* Get rid of increase/decrease buttons in WebKit */
appearance: none;
}
input[type=number] {
/* Get rid of increase/decrease buttons in Firefox */
appearance: textfield;
}
/* ------- BUTTON ACTIVATIONS -------- */
/* A color overlay that depends on the activation level. The level can then be
set for different states on an element, for example hover and click on a
<button>. */
input, button, select, option,
input::file-selector-button,
.button-activations {
--button-activation-level: 0;
/* Note that CSS variables aren't functions, beware when inheriting */
--button-activation-alpha: calc(0.08 * var(--button-activation-level));
/* FIXME: We want the image() function instead of the linear-gradient()
function below. But it's not supported in the browsers yet. */
--button-activation-overlay:
linear-gradient(rgba(0, 0, 0, var(--button-activation-alpha))
100%, transparent);
--button-activation-overlay-light:
linear-gradient(rgba(255, 255, 255, calc(0.23 * var(--button-activation-level)))
100%, transparent);
}
.button-activations {
background-image: var(--button-activation-overlay);
/* Disable Chrome's touch tap highlight to avoid conflicts with overlay */
-webkit-tap-highlight-color: transparent;
}
/* When we want the light overlay on activations instead.
This is best used on elements with darker backgrounds. */
.button-activations.light-overlay {
background-image: var(--button-activation-overlay-light);
/* Can't use the normal blend mode since that gives washed out colors. */
/* FIXME: For elements with these activation overlays we'd like only
the luminosity to change. The proprty "background-blend-mode" set
to "luminosity" sounds good, but it doesn't work as intended,
see: https://bugzilla.mozilla.org/show_bug.cgi?id=1806417 */
background-blend-mode: overlay;
}
input:hover, button:hover, select:hover, option:hover,
input::file-selector-button:hover,
.button-activations:hover {
--button-activation-level: 1;
}
/* Unfortunately we have to disable the :hover effect on touch devices,
otherwise the style lingers after tapping the button. */
@media (any-pointer: coarse) {
input:hover, button:hover, select:hover, option:hover,
input::file-selector-button:hover,
.button-activations:hover {
--button-activation-level: 0;
}
}
input:active, button:active, select:active, option:active,
input::file-selector-button:active,
.button-activations:active {
--button-activation-level: 2;
}
input:disabled, button:disabled, select:disabled, select:disabled option,
input:disabled::file-selector-button,
.button-activations:disabled {
--button-activation-level: 0;
}
/* ------- BUTTONS -------- */
/*
* Buttons
*/
input[type=button],
input[type=color],
input[type=image],
@ -173,15 +35,226 @@ input[type=submit],
input::file-selector-button,
button,
select {
min-width: 8em;
border: none;
color: black;
font-weight: bold;
background-color: var(--novnc-buttongrey);
background-image: var(--button-activation-overlay);
cursor: pointer;
/* Disable Chrome's touch tap highlight */
-webkit-tap-highlight-color: transparent;
border-bottom-width: 2px;
/* This avoids it jumping around when :active */
vertical-align: middle;
margin-top: 0;
padding-left: 20px;
padding-right: 20px;
/* Disable Chrome's touch tap highlight */
-webkit-tap-highlight-color: transparent;
}
/*
* Select dropdowns
*/
select {
--select-arrow: url('data:image/svg+xml;utf8, \
<svg width="8" height="6" version="1.1" viewBox="0 0 8 6" \
xmlns="http://www.w3.org/2000/svg"> \
<path d="m6.5 1.5 -2.5 3 -2.5 -3 5 0" stroke-width="3" \
stroke="rgb(31,31,31)" fill="none" \
stroke-linecap="round" stroke-linejoin="round" /> \
</svg>');
background-image: var(--select-arrow), var(--bg-gradient);
background-position: calc(100% - 7px), left top;
background-repeat: no-repeat;
padding-right: calc(2*7px + 8px);
padding-left: 7px;
}
/* FIXME: :active isn't set when the <select> is opened in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1805406 */
select:active {
/* Rotated arrow */
background-image: url('data:image/svg+xml;utf8, \
<svg width="8" height="6" version="1.1" viewBox="0 0 8 6" \
xmlns="http://www.w3.org/2000/svg" transform="rotate(180)" > \
<path d="m6.5 1.5 -2.5 3 -2.5 -3 5 0" stroke-width="3" \
stroke="rgb(31,31,31)" fill="none" \
stroke-linecap="round" stroke-linejoin="round" /> \
</svg>'), var(--bg-gradient);
}
option {
color: black;
background: white;
}
/*
* Checkboxes
*/
input[type=checkbox] {
display: inline-flex;
justify-content: center;
align-items: center;
background-color: white;
background-image: unset;
border: 1px solid dimgrey;
border-radius: 3px;
width: 13px;
height: 13px;
padding: 0;
margin-right: 6px;
vertical-align: bottom;
transition: 0.2s background-color linear;
}
input[type=checkbox]:checked {
background-color: rgb(110, 132, 163);
border-color: rgb(110, 132, 163);
}
input[type=checkbox]:checked::after {
content: "";
display: block; /* width & height doesn't work on inline elements */
width: 3px;
height: 7px;
border: 1px solid white;
border-width: 0 2px 2px 0;
transform: rotate(40deg) translateY(-1px);
}
/*
* Radiobuttons
*/
input[type=radio] {
border-radius: 50%;
border: 1px solid dimgrey;
width: 12px;
height: 12px;
padding: 0;
margin-right: 6px;
transition: 0.2s border linear;
}
input[type=radio]:checked {
border: 6px solid rgb(110, 132, 163);
}
/*
* Range sliders
*/
input[type=range] {
border: unset;
border-radius: 3px;
height: 20px;
padding: 0;
background: transparent;
}
/* -webkit-slider.. & -moz-range.. cant be in selector lists:
https://bugs.chromium.org/p/chromium/issues/detail?id=1154623 */
input[type=range]::-webkit-slider-runnable-track {
background-color: rgb(110, 132, 163);
height: 6px;
border-radius: 3px;
}
input[type=range]::-moz-range-track {
background-color: rgb(110, 132, 163);
height: 6px;
border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
appearance: none;
width: 18px;
height: 20px;
border-radius: 5px;
background-color: white;
border: 1px solid dimgray;
margin-top: -7px;
}
input[type=range]::-moz-range-thumb {
appearance: none;
width: 18px;
height: 20px;
border-radius: 5px;
background-color: white;
border: 1px solid dimgray;
margin-top: -7px;
}
/*
* File choosers
*/
input[type=file] {
background-image: none;
border: none;
}
input::file-selector-button {
margin-right: 6px;
}
/*
* Hover
*/
input[type=button]:hover,
input[type=color]:hover,
input[type=image]:hover,
input[type=reset]:hover,
input[type=submit]:hover,
input::file-selector-button:hover,
button:hover {
background-image: linear-gradient(to top, rgb(255, 255, 255), rgb(250, 250, 250));
}
select:hover {
background-image: var(--select-arrow),
linear-gradient(to top, rgb(255, 255, 255), rgb(250, 250, 250));
background-position: calc(100% - 7px), left top;
background-repeat: no-repeat;
}
@media (any-pointer: coarse) {
/* We don't want a hover style after touch input */
input[type=button]:hover,
input[type=color]:hover,
input[type=image]:hover,
input[type=reset]:hover,
input[type=submit]:hover,
input::file-selector-button:hover,
button:hover {
background-image: var(--bg-gradient);
}
select:hover {
background-image: var(--select-arrow), var(--bg-gradient);
}
}
/*
* Active (clicked)
*/
input[type=button]:active,
input[type=color]:active,
input[type=image]:active,
input[type=reset]:active,
input[type=submit]:active,
input::file-selector-button:active,
button:active,
select:active {
border-bottom-width: 1px;
margin-top: 1px;
}
/*
* Focus (tab)
*/
input:focus-visible,
input:focus-visible::file-selector-button,
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 2px solid rgb(74, 144, 217);
outline-offset: 1px;
}
input[type=file]:focus-visible {
outline: none; /* We outline the button instead of the entire element */
}
/*
* Disabled
*/
input:disabled,
input:disabled::file-selector-button,
button:disabled,
select:disabled,
textarea:disabled {
opacity: 0.4;
}
input[type=button]:disabled,
input[type=color]:disabled,
@ -191,438 +264,18 @@ input[type=submit]:disabled,
input:disabled::file-selector-button,
button:disabled,
select:disabled {
/* See Firefox bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1798304 */
cursor: default;
background-image: var(--bg-gradient);
border-bottom-width: 2px;
margin-top: 0;
}
input[type=button],
input[type=color],
input[type=reset],
input[type=submit] {
/* Workaround for text-overflow bugs in Firefox and Chromium:
https://bugzilla.mozilla.org/show_bug.cgi?id=1800077
https://bugs.chromium.org/p/chromium/issues/detail?id=1383144 */
overflow: clip;
}
/* ------- COLOR PICKERS ------- */
input[type=color] {
min-width: unset;
box-sizing: content-box;
width: 1.4em;
height: 1.4em;
}
input[type=color]::-webkit-color-swatch-wrapper {
padding: 0;
}
/* -webkit-color-swatch & -moz-color-swatch cant be in a selector list:
https://bugs.chromium.org/p/chromium/issues/detail?id=1154623 */
input[type=color]::-webkit-color-swatch {
border: none;
border-radius: 6px;
}
input[type=color]::-moz-color-swatch {
border: none;
border-radius: 6px;
}
/* -- SHARED BETWEEN CHECKBOXES, RADIOBUTTONS AND THE TOGGLE CLASS -- */
input[type=radio],
input[type=checkbox] {
display: inline-flex;
justify-content: center;
align-items: center;
background-color: var(--novnc-buttongrey);
background-image: var(--button-activation-overlay);
/* Disable Chrome's touch tap highlight to avoid conflicts with overlay */
-webkit-tap-highlight-color: transparent;
width: 16px;
--checkradio-height: 16px;
height: var(--checkradio-height);
padding: 0;
margin: 0 6px 0 0;
/* Don't have transitions for outline in order to be consistent
with other elements */
transition: all 0.2s, outline-color 0s, outline-offset 0s;
/* A transparent outline in order to work around a graphical clipping issue
in WebKit. See bug: https://bugs.webkit.org/show_bug.cgi?id=256003 */
outline: 1px solid transparent;
position: relative; /* Since ::before & ::after are absolute positioned */
/* We want to align with the middle of capital letters, this requires
a workaround. The default behavior is to align the bottom of the element
on top of the text baseline, this is too far up.
We want to push the element down half the difference in height between
it and a capital X. In our font, the height of a capital "X" is 0.698em.
*/
vertical-align: calc(0px - (var(--checkradio-height) - 0.698em) / 2);
/* FIXME: Could write 1cap instead of 0.698em, but it's only supported in
Firefox as of 2023 */
/* FIXME: We probably want to use round() here, see bug 8148 */
}
input[type=radio]:focus-visible,
input[type=checkbox]:focus-visible {
outline-color: var(--novnc-lightblue);
}
input[type=checkbox]::before,
input[type=checkbox]:not(.toggle)::after,
input[type=radio]::before,
input[type=radio]::after {
content: "";
display: block; /* width & height doesn't work on inline elements */
transition: inherit;
/* Let's prevent the pseudo-elements from taking up layout space so that
the ::before and ::after pseudo-elements can be in the same place. This
is also required for vertical-align: baseline to work like we want it to
on radio/checkboxes. If the pseudo-elements take up layout space, the
baseline of text inside them will be used instead. */
position: absolute;
}
input[type=checkbox]:not(.toggle)::after,
input[type=radio]::after {
width: 10px;
height: 2px;
background-color: transparent;
border-radius: 2px;
}
/* ------- CHECKBOXES ------- */
input[type=checkbox]:not(.toggle) {
border-radius: 4px;
}
input[type=checkbox]:not(.toggle):checked,
input[type=checkbox]:not(.toggle):indeterminate {
background-color: var(--novnc-blue);
background-image: var(--button-activation-overlay-light);
background-blend-mode: overlay;
}
input[type=checkbox]:not(.toggle)::before {
width: 25%;
height: 55%;
border-style: solid;
border-color: transparent;
border-width: 0 2px 2px 0;
border-radius: 1px;
transform: translateY(-1px) rotate(35deg);
}
input[type=checkbox]:not(.toggle):checked::before {
border-color: white;
}
input[type=checkbox]:not(.toggle):indeterminate::after {
background-color: white;
}
/* ------- RADIO BUTTONS ------- */
input[type=radio] {
border-radius: 50%;
border: 1px solid transparent; /* To ensure a smooth transition */
}
input[type=radio]:checked {
border: 4px solid var(--novnc-blue);
background-color: white;
/* button-activation-overlay should be removed from the radio
element to not interfere with button-activation-overlay-light
that is set on the ::before element. */
background-image: none;
}
input[type=radio]::before {
width: inherit;
height: inherit;
border-radius: inherit;
/* We can achieve the highlight overlay effect on border colors by
setting button-activation-overlay-light on an element that stays
on top (z-axis) of the element with a border. */
background-image: var(--button-activation-overlay-light);
mix-blend-mode: overlay;
opacity: 0;
}
input[type=radio]:checked::before {
opacity: 1;
}
input[type=radio]:indeterminate::after {
background-color: black;
}
/* ------- TOGGLE SWITCHES ------- */
/* These are meant to be used instead of checkboxes in some cases. If all of
the following critera are true you should use a toggle switch:
* The choice is a simple ON/OFF or ENABLE/DISABLE
* The choice doesn't give the feeling of "I agree" or "I confirm"
* There are not multiple related & grouped options
*/
input[type=checkbox].toggle {
display: inline-block;
--checkradio-height: 18px; /* Height value used in calc, see above */
width: 31px;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
border-radius: 9px;
}
input[type=checkbox].toggle:disabled {
cursor: default;
}
input[type=checkbox].toggle:indeterminate {
background-color: var(--novnc-buttongrey);
background-image: var(--button-activation-overlay);
}
input[type=checkbox].toggle:checked {
background-color: var(--novnc-blue);
background-image: var(--button-activation-overlay-light);
background-blend-mode: overlay;
}
input[type=checkbox].toggle::before {
--circle-diameter: 10px;
--circle-offset: 4px;
width: var(--circle-diameter);
height: var(--circle-diameter);
top: var(--circle-offset);
left: var(--circle-offset);
background: white;
border-radius: 6px;
}
input[type=checkbox].toggle:checked::before {
left: calc(100% - var(--circle-offset) - var(--circle-diameter));
}
input[type=checkbox].toggle:indeterminate::before {
left: calc(50% - var(--circle-diameter) / 2);
}
/* ------- RANGE SLIDERS ------- */
input[type=range] {
border: unset;
border-radius: 8px;
height: 15px;
padding: 0;
background: transparent;
/* Needed to get properly rounded corners on -moz-range-progress
when the thumb is all the way to the right. Without overflow
hidden, the pointy edges of the progress track shows to the
right of the thumb. */
overflow: hidden;
}
@supports selector(::-webkit-slider-thumb) {
input[type=range] {
/* Needs a fixed width to match clip-path */
width: 125px;
/* overflow: hidden is not ideal for hiding the left part of the box
shadow of -webkit-slider-thumb since it doesn't match the smaller
border-radius of the progress track. The below clip-path has two
circular sides to make the ends of the track have correctly rounded
corners. The clip path shape looks something like this:
+-------------------------------+
/---| |---\
| |
\---| |---/
+-------------------------------+
The larger middle part of the clip path is made to have room for the
thumb. By using margins on the track, we prevent the thumb from
touching the ends of the track.
*/
clip-path: path(' \
M 4.5 3 \
L 4.5 0 \
L 120.5 0 \
L 120.5 3 \
A 1 1 0 0 1 120.5 12 \
L 120.5 15 \
L 4.5 15 \
L 4.5 12 \
A 1 1 0 0 1 4.5 3 \
');
}
}
input[type=range]:hover {
cursor: grab;
}
input[type=range]:active {
cursor: grabbing;
}
input[type=range]:disabled {
cursor: default;
}
input[type=range]:focus-visible {
clip-path: none; /* Otherwise it hides the outline */
}
/* -webkit-slider.. & -moz-range.. cant be in selector lists:
https://bugs.chromium.org/p/chromium/issues/detail?id=1154623 */
input[type=range]::-webkit-slider-runnable-track {
background-color: var(--novnc-buttongrey);
height: 7px;
border-radius: 4px;
margin: 0 3px;
}
input[type=range]::-moz-range-track {
background-color: var(--novnc-buttongrey);
height: 7px;
border-radius: 4px;
}
input[type=range]::-moz-range-progress {
background-color: var(--novnc-blue);
height: 9px;
/* Needs rounded corners only on the left side. Otherwise the rounding of
the progress track starts before the thumb, when the thumb is close to
the left edge. */
border-radius: 5px 0 0 5px;
}
input[type=range]::-webkit-slider-thumb {
appearance: none;
width: 15px;
height: 15px;
border-radius: 50%;
background-color: white;
background-image: var(--button-activation-overlay);
/* Disable Chrome's touch tap highlight to avoid conflicts with overlay */
-webkit-tap-highlight-color: transparent;
border: 3px solid var(--novnc-blue);
margin-top: -4px; /* (track height / 2) - (thumb height /2) */
/* Since there is no way to style the left part of the range track in
webkit, we add a large shadow (1000px wide) to the left of the thumb and
then crop it with a clip-path shaped like this:
___
+-------------------/ \
| progress |Thumb|
+-------------------\ ___ /
The large left part of the shadow is clipped by another clip-path on on
the main range input element. */
/* FIXME: We can remove the box shadow workaround when this is standardized:
https://github.com/w3c/csswg-drafts/issues/4410 */
box-shadow: calc(-100vw - 8px) 0 0 100vw var(--novnc-blue);
clip-path: path(' \
M -1000 3 \
L 3 3 \
L 15 7.5 \
A 1 1 0 0 1 0 7.5 \
A 1 1 0 0 1 15 7.5 \
L 3 12 \
L -1000 12 Z \
');
}
input[type=range]::-moz-range-thumb {
appearance: none;
width: 15px;
height: 15px;
border-radius: 50%;
box-sizing: border-box;
background-color: white;
background-image: var(--button-activation-overlay);
border: 3px solid var(--novnc-blue);
margin-top: -7px;
}
/* ------- FILE CHOOSERS ------- */
input[type=file] {
background-image: none;
border: none;
}
input::file-selector-button {
margin-right: 6px;
}
input[type=file]:focus-visible {
outline: none; /* We outline the button instead of the entire element */
}
/* ------- SELECT BUTTONS ------- */
select {
--select-arrow: url('data:image/svg+xml;utf8, \
<svg width="11" height="6" version="1.1" viewBox="0 0 11 6" \
xmlns="http://www.w3.org/2000/svg"> \
<path d="m10.5.5-5 5-5-5" fill="none" \
stroke="black" stroke-width="1.5" \
stroke-linecap="round" stroke-linejoin="round"/> \
</svg>');
/* FIXME: A bug in Firefox, requires a workaround for the background:
https://bugzilla.mozilla.org/show_bug.cgi?id=1810958 */
/* The dropdown list will show the select element's background above and
below the options in Firefox. We want the entire dropdown to be white. */
background-color: white;
/* However, we don't want the select element to actually show a white
background, so let's place a gradient above it with the color we want. */
--grey-background: linear-gradient(var(--novnc-buttongrey) 100%,
transparent);
background-image:
var(--select-arrow),
var(--button-activation-overlay),
var(--grey-background);
background-position: calc(100% - var(--input-xpadding)), left top, left top;
background-repeat: no-repeat;
padding-right: calc(2*var(--input-xpadding) + 11px);
overflow: auto;
}
/* FIXME: :active isn't set when the <select> is opened in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1805406 */
select:active {
/* Rotated arrow */
background-image: url('data:image/svg+xml;utf8, \
<svg width="11" height="6" version="1.1" viewBox="0 0 11 6" \
xmlns="http://www.w3.org/2000/svg" transform="rotate(180)"> \
<path d="m10.5.5-5 5-5-5" fill="none" \
stroke="black" stroke-width="1.5" \
stroke-linecap="round" stroke-linejoin="round"/> \
</svg>'),
var(--button-activation-overlay),
var(--grey-background);
input[type=file]:disabled {
background-image: none;
}
select:disabled {
background-image:
var(--select-arrow),
var(--grey-background);
background-image: var(--select-arrow), var(--bg-gradient);
}
/* Note that styling for <option> doesn't work in all browsers
since its often drawn directly by the OS. We are generally very
limited in what we can change here. */
option {
/* Prevent Chrome from inheriting background-color from the <select> */
background-color: white;
color: black;
font-weight: normal;
background-image: var(--button-activation-overlay);
}
option:checked {
background-color: var(--novnc-lightgrey);
}
/* Change the look when the <select> isn't used as a dropdown. When "size"
or "multiple" are set, these elements behaves more like lists. */
select[size]:not([size="1"]), select[multiple] {
background-color: white;
background-image: unset; /* Don't show the arrow and other gradients */
border: 1px solid var(--novnc-lightgrey);
padding: 0;
font-weight: normal; /* Without this, options get bold font in WebKit. */
/* As an exception to the "list"-look, multi-selects in Chrome on Android,
and Safari on iOS, are unfortunately designed to be shown as a single
line. We can mitigate this inconsistency by at least fixing the height
here. By setting a min-height that matches other input elements, it
doesn't look too much out of place:
(1px border * 2) + (6.5px padding * 2) + 24px line-height = 39px */
min-height: 39px;
}
select[size]:not([size="1"]):focus-visible,
select[multiple]:focus-visible {
/* Text input style focus-visible highlight */
outline-offset: -1px;
}
select[size]:not([size="1"]) option, select[multiple] option {
overflow: hidden;
text-overflow: ellipsis;
padding: 4px var(--input-xpadding);
input[type=image]:disabled {
/* See Firefox bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1798304 */
cursor: default;
}

170
app/ui.js
View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
@ -20,12 +20,8 @@ import * as WebUtil from "./webutil.js";
const PAGE_TITLE = "noVNC";
const LINGUAS = ["cs", "de", "el", "es", "fr", "it", "ja", "ko", "nl", "pl", "pt_BR", "ru", "sv", "tr", "zh_CN", "zh_TW"];
const UI = {
customSettings: {},
connected: false,
desktopName: "",
@ -46,31 +42,20 @@ const UI = {
reconnectCallback: null,
reconnectPassword: null,
async start(options={}) {
UI.customSettings = options.settings || {};
if (UI.customSettings.defaults === undefined) {
UI.customSettings.defaults = {};
}
if (UI.customSettings.mandatory === undefined) {
UI.customSettings.mandatory = {};
}
prime() {
return WebUtil.initSettings().then(() => {
if (document.readyState === "interactive" || document.readyState === "complete") {
return UI.start();
}
// Set up translations
try {
await l10n.setup(LINGUAS, "app/locale/");
} catch (err) {
Log.Error("Failed to load translations: " + err);
}
// Initialize setting storage
await WebUtil.initSettings();
// Wait for the page to load
if (document.readyState !== "interactive" && document.readyState !== "complete") {
await new Promise((resolve, reject) => {
document.addEventListener('DOMContentLoaded', resolve);
return new Promise((resolve, reject) => {
document.addEventListener('DOMContentLoaded', () => UI.start().then(resolve).catch(reject));
});
}
});
},
// Render default UI and initialize settings menu
start() {
UI.initSettings();
@ -85,20 +70,22 @@ const UI = {
}
// Try to fetch version number
try {
let response = await fetch('./package.json');
if (!response.ok) {
throw Error("" + response.status + " " + response.statusText);
}
let packageInfo = await response.json();
Array.from(document.getElementsByClassName('noVNC_version')).forEach(el => el.innerText = packageInfo.version);
} catch (err) {
Log.Error("Couldn't fetch package.json: " + err);
Array.from(document.getElementsByClassName('noVNC_version_wrapper'))
.concat(Array.from(document.getElementsByClassName('noVNC_version_separator')))
.forEach(el => el.style.display = 'none');
}
fetch('./package.json')
.then((response) => {
if (!response.ok) {
throw Error("" + response.status + " " + response.statusText);
}
return response.json();
})
.then((packageInfo) => {
Array.from(document.getElementsByClassName('noVNC_version')).forEach(el => el.innerText = packageInfo.version);
})
.catch((err) => {
Log.Error("Couldn't fetch package.json: " + err);
Array.from(document.getElementsByClassName('noVNC_version_wrapper'))
.concat(Array.from(document.getElementsByClassName('noVNC_version_separator')))
.forEach(el => el.style.display = 'none');
});
// Adapt the interface for touch screen devices
if (isTouchDevice) {
@ -133,7 +120,7 @@ const UI = {
document.documentElement.classList.remove("noVNC_loading");
let autoconnect = UI.getSetting('autoconnect');
let autoconnect = WebUtil.getConfigVar('autoconnect', false);
if (autoconnect === 'true' || autoconnect == '1') {
autoconnect = true;
UI.connect();
@ -142,6 +129,8 @@ const UI = {
// Show the connect panel on first load unless autoconnecting
UI.openConnectPanel();
}
return Promise.resolve(UI.rfb);
},
initFullscreen() {
@ -169,26 +158,34 @@ const UI = {
UI.initSetting('logging', 'warn');
UI.updateLogging();
UI.setupSettingLabels();
// if port == 80 (or 443) then it won't be present and should be
// set manually
let port = window.location.port;
if (!port) {
if (window.location.protocol.substring(0, 5) == 'https') {
port = 443;
} else if (window.location.protocol.substring(0, 4) == 'http') {
port = 80;
}
}
/* Populate the controls if defaults are provided in the URL */
UI.initSetting('host', '');
UI.initSetting('port', 0);
UI.initSetting('host', window.location.hostname);
UI.initSetting('port', port);
UI.initSetting('encrypt', (window.location.protocol === "https:"));
UI.initSetting('password');
UI.initSetting('autoconnect', false);
UI.initSetting('view_clip', false);
UI.initSetting('resize', 'off');
UI.initSetting('quality', 6);
UI.initSetting('compression', 2);
UI.initSetting('shared', true);
UI.initSetting('bell', 'on');
UI.initSetting('view_only', false);
UI.initSetting('show_dot', false);
UI.initSetting('path', 'websockify');
UI.initSetting('repeaterID', '');
UI.initSetting('reconnect', false);
UI.initSetting('reconnect_delay', 5000);
UI.setupSettingLabels();
},
// Adds a link to the label elements on the corresponding input elements
setupSettingLabels() {
@ -750,10 +747,6 @@ const UI = {
// Initial page load read/initialization of settings
initSetting(name, defVal) {
// Has the user overridden the default value?
if (name in UI.customSettings.defaults) {
defVal = UI.customSettings.defaults[name];
}
// Check Query string followed by cookie
let val = WebUtil.getConfigVar(name);
if (val === null) {
@ -761,11 +754,6 @@ const UI = {
}
WebUtil.setSetting(name, val);
UI.updateSetting(name);
// Has the user forced a value?
if (name in UI.customSettings.mandatory) {
val = UI.customSettings.mandatory[name];
UI.forceSetting(name, val);
}
return val;
},
@ -784,12 +772,9 @@ const UI = {
let value = UI.getSetting(name);
const ctrl = document.getElementById('noVNC_setting_' + name);
if (ctrl === null) {
return;
}
if (ctrl.type === 'checkbox') {
ctrl.checked = value;
} else if (typeof ctrl.options !== 'undefined') {
for (let i = 0; i < ctrl.options.length; i += 1) {
if (ctrl.options[i].value === value) {
@ -822,8 +807,7 @@ const UI = {
getSetting(name) {
const ctrl = document.getElementById('noVNC_setting_' + name);
let val = WebUtil.readSetting(name);
if (typeof val !== 'undefined' && val !== null &&
ctrl !== null && ctrl.type === 'checkbox') {
if (typeof val !== 'undefined' && val !== null && ctrl.type === 'checkbox') {
if (val.toString().toLowerCase() in {'0': 1, 'no': 1, 'false': 1}) {
val = false;
} else {
@ -838,22 +822,14 @@ const UI = {
// disable the labels that belong to disabled input elements.
disableSetting(name) {
const ctrl = document.getElementById('noVNC_setting_' + name);
if (ctrl !== null) {
ctrl.disabled = true;
if (ctrl.label !== undefined) {
ctrl.label.classList.add('noVNC_disabled');
}
}
ctrl.disabled = true;
ctrl.label.classList.add('noVNC_disabled');
},
enableSetting(name) {
const ctrl = document.getElementById('noVNC_setting_' + name);
if (ctrl !== null) {
ctrl.disabled = false;
if (ctrl.label !== undefined) {
ctrl.label.classList.remove('noVNC_disabled');
}
}
ctrl.disabled = false;
ctrl.label.classList.remove('noVNC_disabled');
},
/* ------^-------
@ -1035,7 +1011,7 @@ const UI = {
const path = UI.getSetting('path');
if (typeof password === 'undefined') {
password = UI.getSetting('password');
password = WebUtil.getConfigVar('password');
UI.reconnectPassword = password;
}
@ -1045,36 +1021,28 @@ const UI = {
UI.hideStatus();
if (!host) {
Log.Error("Can't connect when host is: " + host);
UI.showStatus(_("Must set host"), 'error');
return;
}
UI.closeConnectPanel();
UI.updateVisualState('connecting');
let url;
if (host) {
url = new URL("https://" + host);
url = UI.getSetting('encrypt') ? 'wss' : 'ws';
url.protocol = UI.getSetting('encrypt') ? 'wss:' : 'ws:';
if (port) {
url.port = port;
}
// "./" is needed to force URL() to interpret the path-variable as
// a path and not as an URL. This is relevant if for example path
// starts with more than one "/", in which case it would be
// interpreted as a host name instead.
url = new URL("./" + path, url);
} else {
// Current (May 2024) browsers support relative WebSocket
// URLs natively, but we need to support older browsers for
// some time.
url = new URL(path, location.href);
url.protocol = (window.location.protocol === "https:") ? 'wss:' : 'ws:';
url += '://' + host;
if (port) {
url += ':' + port;
}
url += '/' + path;
try {
UI.rfb = new RFB(document.getElementById('noVNC_container'),
url.href,
UI.rfb = new RFB(document.getElementById('noVNC_container'), url,
{ shared: UI.getSetting('shared'),
repeaterID: UI.getSetting('repeaterID'),
credentials: { password: password } });
@ -1770,7 +1738,7 @@ const UI = {
},
bell(e) {
if (UI.getSetting('bell') === 'on') {
if (WebUtil.getConfigVar('bell', 'on') === 'on') {
const promise = document.getElementById('noVNC_bell').play();
// The standards disagree on the return value here
if (promise) {
@ -1801,4 +1769,10 @@ const UI = {
*/
};
// Set up translations
const LINGUAS = ["cs", "de", "el", "es", "fr", "it", "ja", "ko", "nl", "pl", "pt_BR", "ru", "sv", "tr", "zh_CN", "zh_TW"];
l10n.setup(LINGUAS, "app/locale/")
.catch(err => Log.Error("Failed to load translations: " + err))
.then(UI.prime);
export default UI;

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
@ -27,7 +27,7 @@ export function initLogging(level) {
// the url can be requested in the following way:
// https://www.example.com#myqueryparam=myvalue&password=secretvalue
//
// Even mixing public and non public parameters will work:
// Even Mixing public and non public parameters will work:
// https://www.example.com?nonsecretparam=example.com#password=secretvalue
export function getQueryVar(name, defVal) {
"use strict";

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2021 The noVNC authors
* Copyright (C) 2021 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,321 +0,0 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2024 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
*
*/
import * as Log from '../util/logging.js';
export class H264Parser {
constructor(data) {
this._data = data;
this._index = 0;
this.profileIdc = null;
this.constraintSet = null;
this.levelIdc = null;
}
_getStartSequenceLen(index) {
let data = this._data;
if (data[index + 0] == 0 && data[index + 1] == 0 && data[index + 2] == 0 && data[index + 3] == 1) {
return 4;
}
if (data[index + 0] == 0 && data[index + 1] == 0 && data[index + 2] == 1) {
return 3;
}
return 0;
}
_indexOfNextNalUnit(index) {
let data = this._data;
for (let i = index; i < data.length; ++i) {
if (this._getStartSequenceLen(i) != 0) {
return i;
}
}
return -1;
}
_parseSps(index) {
this.profileIdc = this._data[index];
this.constraintSet = this._data[index + 1];
this.levelIdc = this._data[index + 2];
}
_parseNalUnit(index) {
const firstByte = this._data[index];
if (firstByte & 0x80) {
throw new Error('H264 parsing sanity check failed, forbidden zero bit is set');
}
const unitType = firstByte & 0x1f;
switch (unitType) {
case 1: // coded slice, non-idr
return { slice: true };
case 5: // coded slice, idr
return { slice: true, key: true };
case 6: // sei
return {};
case 7: // sps
this._parseSps(index + 1);
return {};
case 8: // pps
return {};
default:
Log.Warn("Unhandled unit type: ", unitType);
break;
}
return {};
}
parse() {
const startIndex = this._index;
let isKey = false;
while (this._index < this._data.length) {
const startSequenceLen = this._getStartSequenceLen(this._index);
if (startSequenceLen == 0) {
throw new Error('Invalid start sequence in bit stream');
}
const { slice, key } = this._parseNalUnit(this._index + startSequenceLen);
let nextIndex = this._indexOfNextNalUnit(this._index + startSequenceLen);
if (nextIndex == -1) {
this._index = this._data.length;
} else {
this._index = nextIndex;
}
if (key) {
isKey = true;
}
if (slice) {
break;
}
}
if (startIndex === this._index) {
return null;
}
return {
frame: this._data.subarray(startIndex, this._index),
key: isKey,
};
}
}
export class H264Context {
constructor(width, height) {
this.lastUsed = 0;
this._width = width;
this._height = height;
this._profileIdc = null;
this._constraintSet = null;
this._levelIdc = null;
this._decoder = null;
this._pendingFrames = [];
}
_handleFrame(frame) {
let pending = this._pendingFrames.shift();
if (pending === undefined) {
throw new Error("Pending frame queue empty when receiving frame from decoder");
}
if (pending.timestamp != frame.timestamp) {
throw new Error("Video frame timestamp mismatch. Expected " +
frame.timestamp + " but but got " + pending.timestamp);
}
pending.frame = frame;
pending.ready = true;
pending.resolve();
if (!pending.keep) {
frame.close();
}
}
_handleError(e) {
throw new Error("Failed to decode frame: " + e.message);
}
_configureDecoder(profileIdc, constraintSet, levelIdc) {
if (this._decoder === null || this._decoder.state === 'closed') {
this._decoder = new VideoDecoder({
output: frame => this._handleFrame(frame),
error: e => this._handleError(e),
});
}
const codec = 'avc1.' +
profileIdc.toString(16).padStart(2, '0') +
constraintSet.toString(16).padStart(2, '0') +
levelIdc.toString(16).padStart(2, '0');
this._decoder.configure({
codec: codec,
codedWidth: this._width,
codedHeight: this._height,
optimizeForLatency: true,
});
}
_preparePendingFrame(timestamp) {
let pending = {
timestamp: timestamp,
promise: null,
resolve: null,
frame: null,
ready: false,
keep: false,
};
pending.promise = new Promise((resolve) => {
pending.resolve = resolve;
});
this._pendingFrames.push(pending);
return pending;
}
decode(payload) {
let parser = new H264Parser(payload);
let result = null;
// Ideally, this timestamp should come from the server, but we'll just
// approximate it instead.
let timestamp = Math.round(window.performance.now() * 1e3);
while (true) {
let encodedFrame = parser.parse();
if (encodedFrame === null) {
break;
}
if (parser.profileIdc !== null) {
self._profileIdc = parser.profileIdc;
self._constraintSet = parser.constraintSet;
self._levelIdc = parser.levelIdc;
}
if (this._decoder === null || this._decoder.state !== 'configured') {
if (!encodedFrame.key) {
Log.Warn("Missing key frame. Can't decode until one arrives");
continue;
}
if (self._profileIdc === null) {
Log.Warn('Cannot config decoder. Have not received SPS and PPS yet.');
continue;
}
this._configureDecoder(self._profileIdc, self._constraintSet,
self._levelIdc);
}
result = this._preparePendingFrame(timestamp);
const chunk = new EncodedVideoChunk({
timestamp: timestamp,
type: encodedFrame.key ? 'key' : 'delta',
data: encodedFrame.frame,
});
try {
this._decoder.decode(chunk);
} catch (e) {
Log.Warn("Failed to decode:", e);
}
}
// We only keep last frame of each payload
if (result !== null) {
result.keep = true;
}
return result;
}
}
export default class H264Decoder {
constructor() {
this._tick = 0;
this._contexts = {};
}
_contextId(x, y, width, height) {
return [x, y, width, height].join(',');
}
_findOldestContextId() {
let oldestTick = Number.MAX_VALUE;
let oldestKey = undefined;
for (const [key, value] of Object.entries(this._contexts)) {
if (value.lastUsed < oldestTick) {
oldestTick = value.lastUsed;
oldestKey = key;
}
}
return oldestKey;
}
_createContext(x, y, width, height) {
const maxContexts = 64;
if (Object.keys(this._contexts).length >= maxContexts) {
let oldestContextId = this._findOldestContextId();
delete this._contexts[oldestContextId];
}
let context = new H264Context(width, height);
this._contexts[this._contextId(x, y, width, height)] = context;
return context;
}
_getContext(x, y, width, height) {
let context = this._contexts[this._contextId(x, y, width, height)];
return context !== undefined ? context : this._createContext(x, y, width, height);
}
_resetContext(x, y, width, height) {
delete this._contexts[this._contextId(x, y, width, height)];
}
_resetAllContexts() {
this._contexts = {};
}
decodeRect(x, y, width, height, sock, display, depth) {
const resetContextFlag = 1;
const resetAllContextsFlag = 2;
if (sock.rQwait("h264 header", 8)) {
return false;
}
const length = sock.rQshift32();
const flags = sock.rQshift32();
if (sock.rQwait("h264 payload", length, 8)) {
return false;
}
if (flags & resetAllContextsFlag) {
this._resetAllContexts();
} else if (flags & resetContextFlag) {
this._resetContext(x, y, width, height);
}
let context = this._getContext(x, y, width, height);
context.lastUsed = this._tick++;
if (length !== 0) {
let payload = sock.rQshiftBytes(length, false);
let frame = context.decode(payload);
if (frame !== null) {
display.videoFrame(x, y, width, height, frame);
}
}
return true;
}
}

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* (c) 2012 Michael Tinglof, Joe Balaz, Les Piech (Mercuri.ca)
* Licensed under MPL 2.0 (see LICENSE.txt)
*

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,51 +0,0 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2024 The noVNC authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
*
*/
import Inflator from "../inflator.js";
export default class ZlibDecoder {
constructor() {
this._zlib = new Inflator();
this._length = 0;
}
decodeRect(x, y, width, height, sock, display, depth) {
if ((width === 0) || (height === 0)) {
return true;
}
if (this._length === 0) {
if (sock.rQwait("ZLIB", 4)) {
return false;
}
this._length = sock.rQshift32();
}
if (sock.rQwait("ZLIB", this._length)) {
return false;
}
let data = new Uint8Array(sock.rQshiftBytes(this._length, false));
this._length = 0;
this._zlib.setInput(data);
data = this._zlib.inflate(width * height * 4);
this._zlib.setInput(null);
// Max sure the image is fully opaque
for (let i = 0; i < width * height; i++) {
data[i * 4 + 3] = 255;
}
display.blitImage(x, y, width, height, data, 0);
return true;
}
}

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2021 The noVNC authors
* Copyright (C) 2021 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC authors
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
@ -380,17 +380,6 @@ export default class Display {
});
}
videoFrame(x, y, width, height, frame) {
this._renderQPush({
'type': 'frame',
'frame': frame,
'x': x,
'y': y,
'width': width,
'height': height
});
}
blitImage(x, y, width, height, arr, offset, fromQueue) {
if (this._renderQ.length !== 0 && !fromQueue) {
// NB(directxman12): it's technically more performant here to use preallocated arrays,
@ -417,16 +406,9 @@ export default class Display {
}
}
drawImage(img, ...args) {
this._drawCtx.drawImage(img, ...args);
if (args.length <= 4) {
const [x, y] = args;
this._damage(x, y, img.width, img.height);
} else {
const [,, sw, sh, dx, dy] = args;
this._damage(dx, dy, sw, sh);
}
drawImage(img, x, y) {
this._drawCtx.drawImage(img, x, y);
this._damage(x, y, img.width, img.height);
}
autoscale(containerWidth, containerHeight) {
@ -529,35 +511,6 @@ export default class Display {
ready = false;
}
break;
case 'frame':
if (a.frame.ready) {
// The encoded frame may be larger than the rect due to
// limitations of the encoder, so we need to crop the
// frame.
let frame = a.frame.frame;
if (frame.codedWidth < a.width || frame.codedHeight < a.height) {
Log.Warn("Decoded video frame does not cover its full rectangle area. Expecting at least " +
a.width + "x" + a.height + " but got " +
frame.codedWidth + "x" + frame.codedHeight);
}
const sx = 0;
const sy = 0;
const sw = a.width;
const sh = a.height;
const dx = a.x;
const dy = a.y;
const dw = sw;
const dh = sh;
this.drawImage(frame, sx, sy, sw, sh, dx, dy, dw, dh);
frame.close();
} else {
let display = this;
a.frame.promise.then(() => {
display._scanRenderQ();
});
ready = false;
}
break;
}
if (ready) {

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
@ -11,12 +11,10 @@ export const encodings = {
encodingCopyRect: 1,
encodingRRE: 2,
encodingHextile: 5,
encodingZlib: 6,
encodingTight: 7,
encodingZRLE: 16,
encodingTightPNG: -260,
encodingJPEG: 21,
encodingH264: 50,
pseudoEncodingQualityLevel9: -23,
pseudoEncodingQualityLevel0: -32,
@ -30,7 +28,6 @@ export const encodings = {
pseudoEncodingXvp: -309,
pseudoEncodingFence: -312,
pseudoEncodingContinuousUpdates: -313,
pseudoEncodingExtendedMouseButtons: -316,
pseudoEncodingCompressLevel9: -247,
pseudoEncodingCompressLevel0: -256,
pseudoEncodingVMwareCursor: 0x574d5664,
@ -43,12 +40,10 @@ export function encodingName(num) {
case encodings.encodingCopyRect: return "CopyRect";
case encodings.encodingRRE: return "RRE";
case encodings.encodingHextile: return "Hextile";
case encodings.encodingZlib: return "Zlib";
case encodings.encodingTight: return "Tight";
case encodings.encodingZRLE: return "ZRLE";
case encodings.encodingTightPNG: return "TightPNG";
case encodings.encodingJPEG: return "JPEG";
case encodings.encodingH264: return "H.264";
default: return "[unknown encoding " + num + "]";
}
}

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC authors
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)
*/

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)
*/

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC authors
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)
*/
@ -203,7 +203,7 @@ export default class Keyboard {
if ((code === "ControlLeft") && browser.isWindows() &&
!("ControlLeft" in this._keyDownList)) {
this._altGrArmed = true;
this._altGrTimeout = setTimeout(this._interruptAltGrSequence.bind(this), 100);
this._altGrTimeout = setTimeout(this._handleAltGrTimeout.bind(this), 100);
this._altGrCtrlTime = e.timeStamp;
return;
}
@ -218,7 +218,11 @@ export default class Keyboard {
// We can't get a release in the middle of an AltGr sequence, so
// abort that detection
this._interruptAltGrSequence();
if (this._altGrArmed) {
this._altGrArmed = false;
clearTimeout(this._altGrTimeout);
this._sendKeyEvent(KeyTable.XK_Control_L, "ControlLeft", true);
}
// See comment in _handleKeyDown()
if ((browser.isMac() || browser.isIOS()) && (code === 'CapsLock')) {
@ -245,20 +249,14 @@ export default class Keyboard {
}
}
_interruptAltGrSequence() {
if (this._altGrArmed) {
this._altGrArmed = false;
clearTimeout(this._altGrTimeout);
this._sendKeyEvent(KeyTable.XK_Control_L, "ControlLeft", true);
}
_handleAltGrTimeout() {
this._altGrArmed = false;
clearTimeout(this._altGrTimeout);
this._sendKeyEvent(KeyTable.XK_Control_L, "ControlLeft", true);
}
_allKeysUp() {
Log.Debug(">> Keyboard.allKeysUp");
// Prevent control key being processed after losing focus.
this._interruptAltGrSequence();
for (let code in this._keyDownList) {
this._sendKeyEvent(this._keyDownList[code], code, false);
}

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)
*/

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC authors
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
@ -10,7 +10,7 @@
import { toUnsigned32bit, toSigned32bit } from './util/int.js';
import * as Log from './util/logging.js';
import { encodeUTF8, decodeUTF8 } from './util/strings.js';
import { dragThreshold, supportsWebCodecsH264Decode } from './util/browser.js';
import { dragThreshold } from './util/browser.js';
import { clientToElement } from './util/element.js';
import { setCapture } from './util/events.js';
import EventTargetMixin from './util/eventtarget.js';
@ -31,12 +31,10 @@ import RawDecoder from "./decoders/raw.js";
import CopyRectDecoder from "./decoders/copyrect.js";
import RREDecoder from "./decoders/rre.js";
import HextileDecoder from "./decoders/hextile.js";
import ZlibDecoder from './decoders/zlib.js';
import TightDecoder from "./decoders/tight.js";
import TightPNGDecoder from "./decoders/tightpng.js";
import ZRLEDecoder from "./decoders/zrle.js";
import JPEGDecoder from "./decoders/jpeg.js";
import H264Decoder from "./decoders/h264.js";
// How many seconds to wait for a disconnect to finish
const DISCONNECT_TIMEOUT = 3;
@ -149,13 +147,9 @@ export default class RFB extends EventTargetMixin {
this._supportsSetDesktopSize = false;
this._screenID = 0;
this._screenFlags = 0;
this._pendingRemoteResize = false;
this._lastResize = 0;
this._qemuExtKeyEventSupported = false;
this._extendedPointerEventSupported = false;
this._clipboardText = null;
this._clipboardServerCapabilitiesActions = {};
this._clipboardServerCapabilitiesFormats = {};
@ -250,12 +244,10 @@ export default class RFB extends EventTargetMixin {
this._decoders[encodings.encodingCopyRect] = new CopyRectDecoder();
this._decoders[encodings.encodingRRE] = new RREDecoder();
this._decoders[encodings.encodingHextile] = new HextileDecoder();
this._decoders[encodings.encodingZlib] = new ZlibDecoder();
this._decoders[encodings.encodingTight] = new TightDecoder();
this._decoders[encodings.encodingTightPNG] = new TightPNGDecoder();
this._decoders[encodings.encodingZRLE] = new ZRLEDecoder();
this._decoders[encodings.encodingJPEG] = new JPEGDecoder();
this._decoders[encodings.encodingH264] = new H264Decoder();
// NB: nothing that needs explicit teardown should be done
// before this point, since this can throw an exception
@ -724,7 +716,6 @@ export default class RFB extends EventTargetMixin {
currentHeight == this._expectedClientHeight;
}
// Handle browser window resizes
_handleResize() {
// Don't change anything if the client size is already as expected
if (this._clientHasExpectedSize()) {
@ -735,12 +726,17 @@ export default class RFB extends EventTargetMixin {
window.requestAnimationFrame(() => {
this._updateClip();
this._updateScale();
this._saveExpectedClientSize();
});
// Request changing the resolution of the remote display to
// the size of the local browser viewport.
this._requestRemoteResize();
if (this._resizeSession) {
// Request changing the resolution of the remote display to
// the size of the local browser viewport.
// In order to not send multiple requests before the browser-resize
// is finished we wait 0.5 seconds before sending the request.
clearTimeout(this._resizeTimeout);
this._resizeTimeout = setTimeout(this._requestRemoteResize.bind(this), 500);
}
}
// Update state of clipping in Display object, and make sure the
@ -790,39 +786,16 @@ export default class RFB extends EventTargetMixin {
// Requests a change of remote desktop size. This message is an extension
// and may only be sent if we have received an ExtendedDesktopSize message
_requestRemoteResize() {
if (!this._resizeSession) {
return;
}
if (this._viewOnly) {
return;
}
if (!this._supportsSetDesktopSize) {
return;
}
// Rate limit to one pending resize at a time
if (this._pendingRemoteResize) {
return;
}
// And no more than once every 100ms
if ((Date.now() - this._lastResize) < 100) {
clearTimeout(this._resizeTimeout);
this._resizeTimeout = setTimeout(this._requestRemoteResize.bind(this),
100 - (Date.now() - this._lastResize));
return;
}
clearTimeout(this._resizeTimeout);
this._resizeTimeout = null;
if (!this._resizeSession || this._viewOnly ||
!this._supportsSetDesktopSize) {
return;
}
const size = this._screenSize();
// Do we actually change anything?
if (size.w === this._fbWidth && size.h === this._fbHeight) {
return;
}
this._pendingRemoteResize = true;
this._lastResize = Date.now();
RFB.messages.setDesktopSize(this._sock,
Math.floor(size.w), Math.floor(size.h),
this._screenID, this._screenFlags);
@ -1054,36 +1027,6 @@ export default class RFB extends EventTargetMixin {
this.sendKey(keysym, code, down);
}
static _convertButtonMask(buttons) {
/* The bits in MouseEvent.buttons property correspond
* to the following mouse buttons:
* 0: Left
* 1: Right
* 2: Middle
* 3: Back
* 4: Forward
*
* These bits needs to be converted to what they are defined as
* in the RFB protocol.
*/
const buttonMaskMap = {
0: 1 << 0, // Left
1: 1 << 2, // Right
2: 1 << 1, // Middle
3: 1 << 7, // Back
4: 1 << 8, // Forward
};
let bmask = 0;
for (let i = 0; i < 5; i++) {
if (buttons & (1 << i)) {
bmask |= buttonMaskMap[i];
}
}
return bmask;
}
_handleMouse(ev) {
/*
* We don't check connection status or viewOnly here as the
@ -1113,75 +1056,80 @@ export default class RFB extends EventTargetMixin {
let pos = clientToElement(ev.clientX, ev.clientY,
this._canvas);
let bmask = RFB._convertButtonMask(ev.buttons);
let down = ev.type == 'mousedown';
switch (ev.type) {
case 'mousedown':
setCapture(this._canvas);
this._handleMouseButton(pos.x, pos.y,
true, 1 << ev.button);
break;
case 'mouseup':
if (this.dragViewport) {
if (down && !this._viewportDragging) {
this._viewportDragging = true;
this._viewportDragPos = {'x': pos.x, 'y': pos.y};
this._viewportHasMoved = false;
this._flushMouseMoveTimer(pos.x, pos.y);
// Skip sending mouse events, instead save the current
// mouse mask so we can send it later.
this._mouseButtonMask = bmask;
break;
} else {
this._viewportDragging = false;
// If we actually performed a drag then we are done
// here and should not send any mouse events
if (this._viewportHasMoved) {
this._mouseButtonMask = bmask;
break;
}
// Otherwise we treat this as a mouse click event.
// Send the previously saved button mask, followed
// by the current button mask at the end of this
// function.
this._sendMouse(pos.x, pos.y, this._mouseButtonMask);
}
}
if (down) {
setCapture(this._canvas);
}
this._handleMouseButton(pos.x, pos.y, bmask);
this._handleMouseButton(pos.x, pos.y,
false, 1 << ev.button);
break;
case 'mousemove':
if (this._viewportDragging) {
const deltaX = this._viewportDragPos.x - pos.x;
const deltaY = this._viewportDragPos.y - pos.y;
if (this._viewportHasMoved || (Math.abs(deltaX) > dragThreshold ||
Math.abs(deltaY) > dragThreshold)) {
this._viewportHasMoved = true;
this._viewportDragPos = {'x': pos.x, 'y': pos.y};
this._display.viewportChangePos(deltaX, deltaY);
}
// Skip sending mouse events
break;
}
this._handleMouseMove(pos.x, pos.y);
break;
}
}
_handleMouseButton(x, y, bmask) {
// Flush waiting move event first
this._flushMouseMoveTimer(x, y);
_handleMouseButton(x, y, down, bmask) {
if (this.dragViewport) {
if (down && !this._viewportDragging) {
this._viewportDragging = true;
this._viewportDragPos = {'x': x, 'y': y};
this._viewportHasMoved = false;
// Skip sending mouse events
return;
} else {
this._viewportDragging = false;
// If we actually performed a drag then we are done
// here and should not send any mouse events
if (this._viewportHasMoved) {
return;
}
// Otherwise we treat this as a mouse click event.
// Send the button down event here, as the button up
// event is sent at the end of this function.
this._sendMouse(x, y, bmask);
}
}
// Flush waiting move event first
if (this._mouseMoveTimer !== null) {
clearTimeout(this._mouseMoveTimer);
this._mouseMoveTimer = null;
this._sendMouse(x, y, this._mouseButtonMask);
}
if (down) {
this._mouseButtonMask |= bmask;
} else {
this._mouseButtonMask &= ~bmask;
}
this._mouseButtonMask = bmask;
this._sendMouse(x, y, this._mouseButtonMask);
}
_handleMouseMove(x, y) {
if (this._viewportDragging) {
const deltaX = this._viewportDragPos.x - x;
const deltaY = this._viewportDragPos.y - y;
if (this._viewportHasMoved || (Math.abs(deltaX) > dragThreshold ||
Math.abs(deltaY) > dragThreshold)) {
this._viewportHasMoved = true;
this._viewportDragPos = {'x': x, 'y': y};
this._display.viewportChangePos(deltaX, deltaY);
}
// Skip sending mouse events
return;
}
this._mousePos = { 'x': x, 'y': y };
// Limit many mouse move events to one every MOUSE_MOVE_DELAY ms
@ -1211,20 +1159,8 @@ export default class RFB extends EventTargetMixin {
if (this._rfbConnectionState !== 'connected') { return; }
if (this._viewOnly) { return; } // View only, skip mouse events
// Highest bit in mask is never sent to the server
if (mask & 0x8000) {
throw new Error("Illegal mouse button mask (mask: " + mask + ")");
}
let extendedMouseButtons = mask & 0x7f80;
if (this._extendedPointerEventSupported && extendedMouseButtons) {
RFB.messages.extendedPointerEvent(this._sock, this._display.absX(x),
this._display.absY(y), mask);
} else {
RFB.messages.pointerEvent(this._sock, this._display.absX(x),
this._display.absY(y), mask);
}
RFB.messages.pointerEvent(this._sock, this._display.absX(x),
this._display.absY(y), mask);
}
_handleWheel(ev) {
@ -1237,7 +1173,6 @@ export default class RFB extends EventTargetMixin {
let pos = clientToElement(ev.clientX, ev.clientY,
this._canvas);
let bmask = RFB._convertButtonMask(ev.buttons);
let dX = ev.deltaX;
let dY = ev.deltaY;
@ -1257,27 +1192,26 @@ export default class RFB extends EventTargetMixin {
this._accumulatedWheelDeltaX += dX;
this._accumulatedWheelDeltaY += dY;
// Generate a mouse wheel step event when the accumulated delta
// for one of the axes is large enough.
if (Math.abs(this._accumulatedWheelDeltaX) >= WHEEL_STEP) {
if (this._accumulatedWheelDeltaX < 0) {
this._handleMouseButton(pos.x, pos.y, bmask | 1 << 5);
this._handleMouseButton(pos.x, pos.y, bmask);
this._handleMouseButton(pos.x, pos.y, true, 1 << 5);
this._handleMouseButton(pos.x, pos.y, false, 1 << 5);
} else if (this._accumulatedWheelDeltaX > 0) {
this._handleMouseButton(pos.x, pos.y, bmask | 1 << 6);
this._handleMouseButton(pos.x, pos.y, bmask);
this._handleMouseButton(pos.x, pos.y, true, 1 << 6);
this._handleMouseButton(pos.x, pos.y, false, 1 << 6);
}
this._accumulatedWheelDeltaX = 0;
}
if (Math.abs(this._accumulatedWheelDeltaY) >= WHEEL_STEP) {
if (this._accumulatedWheelDeltaY < 0) {
this._handleMouseButton(pos.x, pos.y, bmask | 1 << 3);
this._handleMouseButton(pos.x, pos.y, bmask);
this._handleMouseButton(pos.x, pos.y, true, 1 << 3);
this._handleMouseButton(pos.x, pos.y, false, 1 << 3);
} else if (this._accumulatedWheelDeltaY > 0) {
this._handleMouseButton(pos.x, pos.y, bmask | 1 << 4);
this._handleMouseButton(pos.x, pos.y, bmask);
this._handleMouseButton(pos.x, pos.y, true, 1 << 4);
this._handleMouseButton(pos.x, pos.y, false, 1 << 4);
}
this._accumulatedWheelDeltaY = 0;
@ -1316,8 +1250,8 @@ export default class RFB extends EventTargetMixin {
this._gestureLastTapTime = Date.now();
this._fakeMouseMove(this._gestureFirstDoubleTapEv, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, bmask);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._handleMouseButton(pos.x, pos.y, true, bmask);
this._handleMouseButton(pos.x, pos.y, false, bmask);
}
_handleGesture(ev) {
@ -1338,27 +1272,14 @@ export default class RFB extends EventTargetMixin {
this._handleTapEvent(ev, 0x2);
break;
case 'drag':
if (this.dragViewport) {
this._viewportHasMoved = false;
this._viewportDragging = true;
this._viewportDragPos = {'x': pos.x, 'y': pos.y};
} else {
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, 0x1);
}
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, true, 0x1);
break;
case 'longpress':
if (this.dragViewport) {
// If dragViewport is true, we need to wait to see
// if we have dragged outside the threshold before
// sending any events to the server.
this._viewportHasMoved = false;
this._viewportDragPos = {'x': pos.x, 'y': pos.y};
} else {
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, 0x4);
}
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, true, 0x4);
break;
case 'twodrag':
this._gestureLastMagnitudeX = ev.detail.magnitudeX;
this._gestureLastMagnitudeY = ev.detail.magnitudeY;
@ -1380,21 +1301,7 @@ export default class RFB extends EventTargetMixin {
break;
case 'drag':
case 'longpress':
if (this.dragViewport) {
this._viewportDragging = true;
const deltaX = this._viewportDragPos.x - pos.x;
const deltaY = this._viewportDragPos.y - pos.y;
if (this._viewportHasMoved || (Math.abs(deltaX) > dragThreshold ||
Math.abs(deltaY) > dragThreshold)) {
this._viewportHasMoved = true;
this._viewportDragPos = {'x': pos.x, 'y': pos.y};
this._display.viewportChangePos(deltaX, deltaY);
}
} else {
this._fakeMouseMove(ev, pos.x, pos.y);
}
this._fakeMouseMove(ev, pos.x, pos.y);
break;
case 'twodrag':
// Always scroll in the same position.
@ -1402,23 +1309,23 @@ export default class RFB extends EventTargetMixin {
// every update.
this._fakeMouseMove(ev, pos.x, pos.y);
while ((ev.detail.magnitudeY - this._gestureLastMagnitudeY) > GESTURE_SCRLSENS) {
this._handleMouseButton(pos.x, pos.y, 0x8);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._handleMouseButton(pos.x, pos.y, true, 0x8);
this._handleMouseButton(pos.x, pos.y, false, 0x8);
this._gestureLastMagnitudeY += GESTURE_SCRLSENS;
}
while ((ev.detail.magnitudeY - this._gestureLastMagnitudeY) < -GESTURE_SCRLSENS) {
this._handleMouseButton(pos.x, pos.y, 0x10);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._handleMouseButton(pos.x, pos.y, true, 0x10);
this._handleMouseButton(pos.x, pos.y, false, 0x10);
this._gestureLastMagnitudeY -= GESTURE_SCRLSENS;
}
while ((ev.detail.magnitudeX - this._gestureLastMagnitudeX) > GESTURE_SCRLSENS) {
this._handleMouseButton(pos.x, pos.y, 0x20);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._handleMouseButton(pos.x, pos.y, true, 0x20);
this._handleMouseButton(pos.x, pos.y, false, 0x20);
this._gestureLastMagnitudeX += GESTURE_SCRLSENS;
}
while ((ev.detail.magnitudeX - this._gestureLastMagnitudeX) < -GESTURE_SCRLSENS) {
this._handleMouseButton(pos.x, pos.y, 0x40);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._handleMouseButton(pos.x, pos.y, true, 0x40);
this._handleMouseButton(pos.x, pos.y, false, 0x40);
this._gestureLastMagnitudeX -= GESTURE_SCRLSENS;
}
break;
@ -1431,13 +1338,13 @@ export default class RFB extends EventTargetMixin {
if (Math.abs(magnitude - this._gestureLastMagnitudeX) > GESTURE_ZOOMSENS) {
this._handleKeyEvent(KeyTable.XK_Control_L, "ControlLeft", true);
while ((magnitude - this._gestureLastMagnitudeX) > GESTURE_ZOOMSENS) {
this._handleMouseButton(pos.x, pos.y, 0x8);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._handleMouseButton(pos.x, pos.y, true, 0x8);
this._handleMouseButton(pos.x, pos.y, false, 0x8);
this._gestureLastMagnitudeX += GESTURE_ZOOMSENS;
}
while ((magnitude - this._gestureLastMagnitudeX) < -GESTURE_ZOOMSENS) {
this._handleMouseButton(pos.x, pos.y, 0x10);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._handleMouseButton(pos.x, pos.y, true, 0x10);
this._handleMouseButton(pos.x, pos.y, false, 0x10);
this._gestureLastMagnitudeX -= GESTURE_ZOOMSENS;
}
}
@ -1455,47 +1362,19 @@ export default class RFB extends EventTargetMixin {
case 'twodrag':
break;
case 'drag':
if (this.dragViewport) {
this._viewportDragging = false;
} else {
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, 0x0);
}
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, false, 0x1);
break;
case 'longpress':
if (this._viewportHasMoved) {
// We don't want to send any events if we have moved
// our viewport
break;
}
if (this.dragViewport && !this._viewportHasMoved) {
this._fakeMouseMove(ev, pos.x, pos.y);
// If dragViewport is true, we need to wait to see
// if we have dragged outside the threshold before
// sending any events to the server.
this._handleMouseButton(pos.x, pos.y, 0x4);
this._handleMouseButton(pos.x, pos.y, 0x0);
this._viewportDragging = false;
} else {
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, 0x0);
}
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, false, 0x4);
break;
}
break;
}
}
_flushMouseMoveTimer(x, y) {
if (this._mouseMoveTimer !== null) {
clearTimeout(this._mouseMoveTimer);
this._mouseMoveTimer = null;
this._sendMouse(x, y, this._mouseButtonMask);
}
}
// Message handlers
// Message Handlers
_negotiateProtocolVersion() {
if (this._sock.rQwait("version", 12)) {
@ -2236,16 +2115,12 @@ export default class RFB extends EventTargetMixin {
encs.push(encodings.encodingCopyRect);
// Only supported with full depth support
if (this._fbDepth == 24) {
if (supportsWebCodecsH264Decode) {
encs.push(encodings.encodingH264);
}
encs.push(encodings.encodingTight);
encs.push(encodings.encodingTightPNG);
encs.push(encodings.encodingZRLE);
encs.push(encodings.encodingJPEG);
encs.push(encodings.encodingHextile);
encs.push(encodings.encodingRRE);
encs.push(encodings.encodingZlib);
}
encs.push(encodings.encodingRaw);
@ -2263,7 +2138,6 @@ export default class RFB extends EventTargetMixin {
encs.push(encodings.pseudoEncodingContinuousUpdates);
encs.push(encodings.pseudoEncodingDesktopName);
encs.push(encodings.pseudoEncodingExtendedClipboard);
encs.push(encodings.pseudoEncodingExtendedMouseButtons);
if (this._fbDepth == 24) {
encs.push(encodings.pseudoEncodingVMwareCursor);
@ -2545,7 +2419,7 @@ export default class RFB extends EventTargetMixin {
switch (xvpMsg) {
case 0: // XVP_FAIL
Log.Error("XVP operation failed");
Log.Error("XVP Operation Failed");
break;
case 1: // XVP_INIT
this._rfbXvpVer = xvpVer;
@ -2693,10 +2567,6 @@ export default class RFB extends EventTargetMixin {
case encodings.pseudoEncodingExtendedDesktopSize:
return this._handleExtendedDesktopSize();
case encodings.pseudoEncodingExtendedMouseButtons:
this._extendedPointerEventSupported = true;
return true;
case encodings.pseudoEncodingQEMULedEvent:
return this._handleLedEvent();
@ -2878,7 +2748,7 @@ export default class RFB extends EventTargetMixin {
}
_handleLedEvent() {
if (this._sock.rQwait("LED status", 1)) {
if (this._sock.rQwait("LED Status", 1)) {
return false;
}
@ -2932,10 +2802,6 @@ export default class RFB extends EventTargetMixin {
* 2 - another client requested the resize
*/
if (this._FBU.x === 1) {
this._pendingRemoteResize = false;
}
// We need to handle errors when we requested the resize.
if (this._FBU.x === 1 && this._FBU.y !== 0) {
let msg = "";
@ -2968,12 +2834,6 @@ export default class RFB extends EventTargetMixin {
this._requestRemoteResize();
}
if (this._FBU.x === 1 && this._FBU.y === 0) {
// We might have resized again whilst waiting for the
// previous request, so check if we are in sync
this._requestRemoteResize();
}
return true;
}
@ -3003,7 +2863,6 @@ export default class RFB extends EventTargetMixin {
this._fbWidth, this._fbHeight);
}
// Handle resize-messages from the server
_resize(width, height) {
this._fbWidth = width;
this._fbHeight = height;
@ -3116,10 +2975,6 @@ RFB.messages = {
pointerEvent(sock, x, y, mask) {
sock.sQpush8(5); // msg-type
// Marker bit must be set to 0, otherwise the server might
// confuse the marker bit with the highest bit in a normal
// PointerEvent message.
mask = mask & 0x7f;
sock.sQpush8(mask);
sock.sQpush16(x);
@ -3128,27 +2983,6 @@ RFB.messages = {
sock.flush();
},
extendedPointerEvent(sock, x, y, mask) {
sock.sQpush8(5); // msg-type
let higherBits = (mask >> 7) & 0xff;
// Bits 2-7 are reserved
if (higherBits & 0xfc) {
throw new Error("Invalid mouse button mask: " + mask);
}
let lowerBits = mask & 0x7f;
lowerBits |= 0x80; // Set marker bit to 1
sock.sQpush8(lowerBits);
sock.sQpush16(x);
sock.sQpush16(y);
sock.sQpush8(higherBits);
sock.flush();
},
// Used to build Notify and Request data.
_buildExtendedClipboardFlags(actions, formats) {
let data = new Uint8Array(4);

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.
@ -9,11 +9,10 @@
*/
import * as Log from './logging.js';
import Base64 from '../base64.js';
// Touch detection
export let isTouchDevice = ('ontouchstart' in document.documentElement) ||
// required for Chrome debugger
// requried for Chrome debugger
(document.ontouchstart !== undefined) ||
// required for MS Surface
(navigator.maxTouchPoints > 0) ||
@ -71,86 +70,6 @@ try {
}
export const hasScrollbarGutter = _hasScrollbarGutter;
export let supportsWebCodecsH264Decode = false;
async function _checkWebCodecsH264DecodeSupport() {
if (!('VideoDecoder' in window)) {
return false;
}
// We'll need to make do with some placeholders here
const config = {
codec: 'avc1.42401f',
codedWidth: 1920,
codedHeight: 1080,
optimizeForLatency: true,
};
let support = await VideoDecoder.isConfigSupported(config);
if (!support.supported) {
return false;
}
// Firefox incorrectly reports supports for H.264 under some
// circumstances, so we need to actually test a real frame
// https://bugzilla.mozilla.org/show_bug.cgi?id=1932392
const data = new Uint8Array(Base64.decode(
'AAAAAWdCwBTZnpuAgICgAAADACAAAAZB4oVNAAAAAWjJYyyAAAABBgX//4Hc' +
'Rem95tlIt5Ys2CDZI+7veDI2NCAtIGNvcmUgMTY0IHIzMTA4IDMxZTE5Zjkg' +
'LSBILjI2NC9NUEVHLTQgQVZDIGNvZGVjIC0gQ29weWxlZnQgMjAwMy0yMDIz' +
'IC0gaHR0cDovL3d3dy52aWRlb2xhbi5vcmcveDI2NC5odG1sIC0gb3B0aW9u' +
'czogY2FiYWM9MCByZWY9NSBkZWJsb2NrPTE6MDowIGFuYWx5c2U9MHgxOjB4' +
'MTExIG1lPWhleCBzdWJtZT04IHBzeT0xIHBzeV9yZD0xLjAwOjAuMDAgbWl4' +
'ZWRfcmVmPTEgbWVfcmFuZ2U9MTYgY2hyb21hX21lPTEgdHJlbGxpcz0yIDh4' +
'OGRjdD0wIGNxbT0wIGRlYWR6b25lPTIxLDExIGZhc3RfcHNraXA9MSBjaHJv' +
'bWFfcXBfb2Zmc2V0PS0yIHRocmVhZHM9MSBsb29rYWhlYWRfdGhyZWFkcz0x' +
'IHNsaWNlZF90aHJlYWRzPTAgbnI9MCBkZWNpbWF0ZT0xIGludGVybGFjZWQ9' +
'MCBibHVyYXlfY29tcGF0PTAgY29uc3RyYWluZWRfaW50cmE9MCBiZnJhbWVz' +
'PTAgd2VpZ2h0cD0wIGtleWludD1pbmZpbml0ZSBrZXlpbnRfbWluPTI1IHNj' +
'ZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NTAgcmM9' +
'YWJyIG1idHJlZT0xIGJpdHJhdGU9NDAwIHJhdGV0b2w9MS4wIHFjb21wPTAu' +
'NjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCBpcF9yYXRpbz0xLjQwIGFx' +
'PTE6MS4wMACAAAABZYiEBrxmKAAPVccAAS044AA5DRJMnkycJk4TPw=='));
let gotframe = false;
let error = null;
let decoder = new VideoDecoder({
output: (frame) => { gotframe = true; },
error: (e) => { error = e; },
});
let chunk = new EncodedVideoChunk({
timestamp: 0,
type: 'key',
data: data,
});
decoder.configure(config);
decoder.decode(chunk);
try {
await decoder.flush();
} catch (e) {
// Firefox incorrectly throws an exception here
// https://bugzilla.mozilla.org/show_bug.cgi?id=1932566
error = e;
}
// Firefox fails to deliver the error on Windows, so we need to
// check if we got a frame instead
// https://bugzilla.mozilla.org/show_bug.cgi?id=1932579
if (!gotframe) {
return false;
}
if (error !== null) {
return false;
}
return true;
}
supportsWebCodecsH264Decode = await _checkWebCodecsH264DecodeSupport();
/*
* The functions for detection of platforms and browsers below are exported
* but the use of these should be minimized as much as possible.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 or any later version (see LICENSE.txt)
*/

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC authors
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2020 The noVNC authors
* Copyright (C) 2020 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* See README.md for usage and integration instructions.

View File

@ -1,6 +1,6 @@
/*
* Websock: high-performance buffering wrapper
* Copyright (C) 2019 The noVNC authors
* Copyright (C) 2019 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*
* Websock is similar to the standard WebSocket / RTCDataChannel object
@ -70,7 +70,7 @@ export default class Websock {
};
}
// Getters and setters
// Getters and Setters
get readyState() {
let subState;
@ -94,7 +94,7 @@ export default class Websock {
return "unknown";
}
// Receive queue
// Receive Queue
rQpeek8() {
return this._rQ[this._rQi];
}
@ -173,7 +173,7 @@ export default class Websock {
return false;
}
// Send queue
// Send Queue
sQpush8(num) {
this._sQensureSpace(1);
@ -208,7 +208,7 @@ export default class Websock {
chunkSize = bytes.length - offset;
}
this._sQ.set(bytes.subarray(offset, offset + chunkSize), this._sQlen);
this._sQ.set(bytes.subarray(offset, chunkSize), this._sQlen);
this._sQlen += chunkSize;
offset += chunkSize;
}
@ -227,7 +227,7 @@ export default class Websock {
}
}
// Event handlers
// Event Handlers
off(evt) {
this._eventHandlers[evt] = () => {};
}
@ -325,7 +325,7 @@ export default class Websock {
if (this._rQbufferSize > MAX_RQ_GROW_SIZE) {
this._rQbufferSize = MAX_RQ_GROW_SIZE;
if (this._rQbufferSize - (this._rQlen - this._rQi) < minFit) {
throw new Error("Receive queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit");
throw new Error("Receive Queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit");
}
}

View File

@ -1 +0,0 @@
{}

View File

@ -1,4 +1,4 @@
# 1. Internal modules
# 1. Internal Modules
The noVNC client is composed of several internal modules that handle
rendering, input, networking, etc. Each of the modules is designed to
@ -9,7 +9,7 @@ stable, and this documentation is not maintained as well as the
official external API.
## 1.1 Module list
## 1.1 Module List
* __Keyboard__ (core/input/keyboard.js): Keyboard input event handler with
non-US keyboard support. Translates keyDown and keyUp events to X11
@ -32,9 +32,9 @@ callback event name, and the callback function.
## 2. Modules
## 2.1 Keyboard module
## 2.1 Keyboard Module
### 2.1.1 Configuration attributes
### 2.1.1 Configuration Attributes
None
@ -52,9 +52,9 @@ None
| onkeypress | (keysym, code, down) | Handler for key press/release
## 2.2 Display module
## 2.2 Display Module
### 2.2.1 Configuration attributes
### 2.2.1 Configuration Attributes
| name | type | mode | default | description
| ------------ | ----- | ---- | ------- | ------------

View File

@ -1,4 +1,4 @@
# Embedding and deploying noVNC application
# Embedding and Deploying noVNC Application
This document describes how to embed and deploy the noVNC application, which
includes settings and a full user interface. If you are looking for
@ -71,8 +71,8 @@ query string. Currently the following options are available:
* `logging` - The console log level. Can be one of `error`, `warn`, `info` or
`debug`.
## HTTP serving considerations
### Browser cache issue
## HTTP Serving Considerations
### Browser Cache Issue
If you serve noVNC files using a web server that provides an ETag header, and
include any options in the query string, a nasty browser cache issue can bite
@ -84,7 +84,7 @@ to always revalidate cached files using conditional requests. The correct
semantics are achieved via the (confusingly named) `Cache-Control: no-cache`
header that needs to be provided in the web server responses.
### Example server configurations
### Example Server Configurations
Apache:

View File

@ -16,7 +16,7 @@ noVNC includes a small example application called `vnc_lite.html`. This does
not make use of all the features of noVNC, but is a good start to see how to
do things.
## Conversion of modules
## Conversion of Modules
noVNC is written using ECMAScript 6 modules. This is not supported by older
versions of Node.js. To use noVNC with those older versions of Node.js the

View File

@ -30,7 +30,7 @@ provides a cut-and-paste URL to go to.
active connections
.SH AUTHOR
The noVNC authors
The noVNC Authors
https://github.com/novnc/noVNC
.SH SEE ALSO

View File

@ -5,11 +5,11 @@ export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
ecmaVersion: 2020,
sourceType: "module",
globals: {
...globals.browser,
...globals.es2022,
...globals.es2020,
}
},
ignores: ["**/xtscancodes.js"],
@ -79,7 +79,7 @@ export default [
...globals.node,
...globals.mocha,
sinon: false,
expect: false,
chai: false,
}
},
rules: {

View File

@ -27,22 +27,15 @@ module.exports = (config) => {
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha'],
frameworks: ['mocha', 'sinon-chai'],
// list of files / patterns to load in the browser
// list of files / patterns to load in the browser (loaded in order)
files: [
// node modules
{ pattern: 'node_modules/chai/**', included: false },
{ pattern: 'node_modules/sinon/**', included: false },
{ pattern: 'node_modules/sinon-chai/**', included: false },
// modules to test
{ pattern: 'app/localization.js', included: false, type: 'module' },
{ pattern: 'app/webutil.js', included: false, type: 'module' },
{ pattern: 'core/**/*.js', included: false, type: 'module' },
{ pattern: 'vendor/pako/**/*.js', included: false, type: 'module' },
// tests
{ pattern: 'tests/test.*.js', type: 'module' },
// test support files
{ pattern: 'tests/fake.*.js', included: false, type: 'module' },
{ pattern: 'tests/assertions.js', type: 'module' },
],

View File

@ -1 +0,0 @@
{}

View File

@ -1,6 +1,6 @@
{
"name": "@novnc/novnc",
"version": "1.6.0",
"version": "1.5.0",
"description": "An HTML5 VNC client",
"browser": "lib/rfb",
"directories": {
@ -55,8 +55,10 @@
"karma-mocha-reporter": "latest",
"karma-safari-launcher": "latest",
"karma-script-launcher": "latest",
"karma-sinon-chai": "latest",
"mocha": "latest",
"pofile": "latest",
"node-getopt": "latest",
"po2json": "latest",
"sinon": "latest",
"sinon-chai": "latest"
},

View File

@ -19,7 +19,7 @@ update-js: $(JSONFILES)
update-pot:
xgettext --output=noVNC.js.pot \
--copyright-holder="The noVNC authors" \
--copyright-holder="The noVNC Authors" \
--package-name="noVNC" \
--package-version="$(VERSION)" \
--msgid-bugs-address="novnc@googlegroups.com" \

View File

@ -1,5 +1,5 @@
# Czech translations for noVNC package.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Petr <petr@kle.cz>, 2018.
#
@ -78,7 +78,7 @@ msgid "Hide/Show the control bar"
msgstr "Skrýt/zobrazit ovládací panel"
#: ../vnc.html:101
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr "Přesunout/přetáhnout výřez"
#: ../vnc.html:101
@ -110,7 +110,7 @@ msgid "Keyboard"
msgstr "Klávesnice"
#: ../vnc.html:119
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "Zobrazit klávesnici"
#: ../vnc.html:126
@ -118,7 +118,7 @@ msgid "Extra keys"
msgstr "Extra klávesy"
#: ../vnc.html:126
msgid "Show extra keys"
msgid "Show Extra Keys"
msgstr "Zobrazit extra klávesy"
#: ../vnc.html:131
@ -202,19 +202,19 @@ msgid "Settings"
msgstr "Nastavení"
#: ../vnc.html:197
msgid "Shared mode"
msgid "Shared Mode"
msgstr "Sdílený režim"
#: ../vnc.html:200
msgid "View only"
msgid "View Only"
msgstr "Pouze prohlížení"
#: ../vnc.html:204
msgid "Clip to window"
msgid "Clip to Window"
msgstr "Přizpůsobit oknu"
#: ../vnc.html:207
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "Přizpůsobení velikosti"
#: ../vnc.html:209
@ -222,11 +222,11 @@ msgid "None"
msgstr "Žádné"
#: ../vnc.html:210
msgid "Local scaling"
msgid "Local Scaling"
msgstr "Místní"
#: ../vnc.html:211
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "Vzdálené"
#: ../vnc.html:216
@ -258,15 +258,15 @@ msgid "Path:"
msgstr "Cesta"
#: ../vnc.html:244
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "Automatická obnova připojení"
#: ../vnc.html:247
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "Zpoždění připojení (ms)"
#: ../vnc.html:252
msgid "Show dot when no cursor"
msgid "Show Dot when No Cursor"
msgstr "Tečka místo chybějícího kurzoru myši"
#: ../vnc.html:257

View File

@ -1,6 +1,6 @@
# German translations for noVNC package
# German translation for noVNC.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Loek Janssen <loekjanssen@gmail.com>, 2016.
#
@ -76,7 +76,7 @@ msgid "Hide/Show the control bar"
msgstr "Kontrollleiste verstecken/anzeigen"
#: ../vnc.html:106
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr "Ansichtsfenster verschieben/ziehen"
#: ../vnc.html:106
@ -108,7 +108,7 @@ msgid "Keyboard"
msgstr "Tastatur"
#: ../vnc.html:124
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "Tastatur anzeigen"
#: ../vnc.html:131
@ -116,7 +116,7 @@ msgid "Extra keys"
msgstr "Zusatztasten"
#: ../vnc.html:131
msgid "Show extra keys"
msgid "Show Extra Keys"
msgstr "Zusatztasten anzeigen"
#: ../vnc.html:136
@ -200,19 +200,19 @@ msgid "Settings"
msgstr "Einstellungen"
#: ../vnc.html:202
msgid "Shared mode"
msgid "Shared Mode"
msgstr "Geteilter Modus"
#: ../vnc.html:205
msgid "View only"
msgid "View Only"
msgstr "Nur betrachten"
#: ../vnc.html:209
msgid "Clip to window"
msgid "Clip to Window"
msgstr "Auf Fenster begrenzen"
#: ../vnc.html:212
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "Skalierungsmodus:"
#: ../vnc.html:214
@ -220,11 +220,11 @@ msgid "None"
msgstr "Keiner"
#: ../vnc.html:215
msgid "Local scaling"
msgid "Local Scaling"
msgstr "Lokales skalieren"
#: ../vnc.html:216
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "Serverseitiges skalieren"
#: ../vnc.html:221
@ -256,11 +256,11 @@ msgid "Path:"
msgstr "Pfad:"
#: ../vnc.html:249
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "Automatisch wiederverbinden"
#: ../vnc.html:252
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "Wiederverbindungsverzögerung (ms):"
#: ../vnc.html:258

View File

@ -1,5 +1,5 @@
# Greek translations for noVNC package.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Giannis Kosmas <kosmasgiannis@gmail.com>, 2016.
#

View File

@ -1,6 +1,6 @@
# Spanish translations for noVNC package
# Traducciones al español para el paquete noVNC.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Juanjo Diaz <juanjo.diazmo@gmail.com>, 2018.
# Adrian Scillato <ascillato@gmail.com>, 2021.
@ -64,7 +64,7 @@ msgid "Hide/Show the control bar"
msgstr "Ocultar/Mostrar la barra de control"
#: ../vnc.html:106
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr "Mover/Arrastrar la ventana"
#: ../vnc.html:106
@ -96,7 +96,7 @@ msgid "Keyboard"
msgstr "Teclado"
#: ../vnc.html:124
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "Mostrar teclado"
#: ../vnc.html:131
@ -196,15 +196,15 @@ msgid "Shared Mode"
msgstr "Modo Compartido"
#: ../vnc.html:205
msgid "View only"
msgid "View Only"
msgstr "Solo visualización"
#: ../vnc.html:209
msgid "Clip to window"
msgid "Clip to Window"
msgstr "Recortar al tamaño de la ventana"
#: ../vnc.html:212
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "Modo de escalado:"
#: ../vnc.html:214
@ -220,7 +220,7 @@ msgid "Local Downscaling"
msgstr "Reducción de escala local"
#: ../vnc.html:217
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "Cambio de tamaño remoto"
#: ../vnc.html:222
@ -252,11 +252,11 @@ msgid "Path:"
msgstr "Ruta:"
#: ../vnc.html:254
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "Reconexión automática"
#: ../vnc.html:257
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "Retraso en la reconexión (ms):"
#: ../vnc.html:263

243
po/fr.po
View File

@ -1,345 +1,300 @@
# French translations for noVNC package
# Traductions françaises du paquet noVNC.
# Copyright (C) 2021 The noVNC authors
# Copyright (C) 2021 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Jose <jose.matsuda@canada.ca>, 2021.
# Lowxorx <lowxorx@lahan.fr>, 2022.
#
msgid ""
msgstr ""
"Project-Id-Version: noVNC 1.6.0\n"
"Project-Id-Version: noVNC 1.2.0\n"
"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
"POT-Creation-Date: 2025-02-14 10:14+0100\n"
"PO-Revision-Date: 2025-02-17 10:04+0100\n"
"Last-Translator: Martine & Philippe <martineke.breizh@gmail.com>\n"
"POT-Creation-Date: 2020-07-03 16:11+0200\n"
"PO-Revision-Date: 2022-04-25 23:40+0200\n"
"Last-Translator: Lowxorx <lowxorx@lahan.fr>\n"
"Language-Team: French\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.5\n"
#: ../app/ui.js:84
msgid ""
"Running without HTTPS is not recommended, crashes or other issues are likely."
msgstr ""
"Lancer sans HTTPS n'est pas recommandé, crashs ou autres problèmes en vue."
#: ../app/ui.js:413
#: ../app/ui.js:394
msgid "Connecting..."
msgstr "En cours de connexion..."
#: ../app/ui.js:420
#: ../app/ui.js:401
msgid "Disconnecting..."
msgstr "Déconnexion en cours..."
#: ../app/ui.js:426
#: ../app/ui.js:407
msgid "Reconnecting..."
msgstr "Reconnexion en cours..."
#: ../app/ui.js:431
#: ../app/ui.js:412
msgid "Internal error"
msgstr "Erreur interne"
#: ../app/ui.js:1079
msgid "Failed to connect to server: "
msgstr "Échec de connexion au serveur "
#: ../app/ui.js:1008
msgid "Must set host"
msgstr "Doit définir l'hôte"
#: ../app/ui.js:1145
#: ../app/ui.js:1090
msgid "Connected (encrypted) to "
msgstr "Connecté (chiffré) à "
#: ../app/ui.js:1147
#: ../app/ui.js:1092
msgid "Connected (unencrypted) to "
msgstr "Connecté (non chiffré) à "
#: ../app/ui.js:1170
#: ../app/ui.js:1115
msgid "Something went wrong, connection is closed"
msgstr "Quelque chose s'est mal passé, la connexion a été fermée"
#: ../app/ui.js:1173
#: ../app/ui.js:1118
msgid "Failed to connect to server"
msgstr "Échec de connexion au serveur"
#: ../app/ui.js:1185
#: ../app/ui.js:1128
msgid "Disconnected"
msgstr "Déconnecté"
#: ../app/ui.js:1200
#: ../app/ui.js:1143
msgid "New connection has been rejected with reason: "
msgstr "Une nouvelle connexion a été rejetée avec motif : "
#: ../app/ui.js:1203
#: ../app/ui.js:1146
msgid "New connection has been rejected"
msgstr "Une nouvelle connexion a été rejetée"
#: ../app/ui.js:1269
#: ../app/ui.js:1181
msgid "Credentials are required"
msgstr "Les identifiants sont requis"
#: ../vnc.html:106
#: ../vnc.html:74
msgid "noVNC encountered an error:"
msgstr "noVNC a rencontré une erreur :"
#: ../vnc.html:116
#: ../vnc.html:84
msgid "Hide/Show the control bar"
msgstr "Masquer/Afficher la barre de contrôle"
#: ../vnc.html:125
#: ../vnc.html:91
msgid "Drag"
msgstr "Faire glisser"
#: ../vnc.html:125
msgid "Move/Drag viewport"
msgstr "Déplacer la fenêtre de visualisation"
#: ../vnc.html:91
msgid "Move/Drag Viewport"
msgstr "Déplacer/faire glisser le Viewport"
#: ../vnc.html:131
#: ../vnc.html:97
msgid "Keyboard"
msgstr "Clavier"
#: ../vnc.html:131
msgid "Show keyboard"
#: ../vnc.html:97
msgid "Show Keyboard"
msgstr "Afficher le clavier"
#: ../vnc.html:136
#: ../vnc.html:102
msgid "Extra keys"
msgstr "Touches supplémentaires"
#: ../vnc.html:136
msgid "Show extra keys"
#: ../vnc.html:102
msgid "Show Extra Keys"
msgstr "Afficher les touches supplémentaires"
#: ../vnc.html:141
#: ../vnc.html:107
msgid "Ctrl"
msgstr "Ctrl"
#: ../vnc.html:141
#: ../vnc.html:107
msgid "Toggle Ctrl"
msgstr "Basculer Ctrl"
#: ../vnc.html:144
#: ../vnc.html:110
msgid "Alt"
msgstr "Alt"
#: ../vnc.html:144
#: ../vnc.html:110
msgid "Toggle Alt"
msgstr "Basculer Alt"
#: ../vnc.html:147
#: ../vnc.html:113
msgid "Toggle Windows"
msgstr "Basculer Windows"
#: ../vnc.html:147
#: ../vnc.html:113
msgid "Windows"
msgstr "Fenêtre"
msgstr "Windows"
#: ../vnc.html:150
#: ../vnc.html:116
msgid "Send Tab"
msgstr "Envoyer Tab"
msgstr "Envoyer l'onglet"
#: ../vnc.html:150
#: ../vnc.html:116
msgid "Tab"
msgstr "Tabulation"
msgstr "l'onglet"
#: ../vnc.html:153
#: ../vnc.html:119
msgid "Esc"
msgstr "Esc"
#: ../vnc.html:153
#: ../vnc.html:119
msgid "Send Escape"
msgstr "Envoyer Escape"
#: ../vnc.html:156
#: ../vnc.html:122
msgid "Ctrl+Alt+Del"
msgstr "Ctrl+Alt+Del"
#: ../vnc.html:156
#: ../vnc.html:122
msgid "Send Ctrl-Alt-Del"
msgstr "Envoyer Ctrl-Alt-Del"
#: ../vnc.html:163
#: ../vnc.html:129
msgid "Shutdown/Reboot"
msgstr "Arrêter/Redémarrer"
#: ../vnc.html:163
#: ../vnc.html:129
msgid "Shutdown/Reboot..."
msgstr "Arrêter/Redémarrer..."
#: ../vnc.html:169
#: ../vnc.html:135
msgid "Power"
msgstr "Alimentation"
#: ../vnc.html:171
#: ../vnc.html:137
msgid "Shutdown"
msgstr "Arrêter"
#: ../vnc.html:172
#: ../vnc.html:138
msgid "Reboot"
msgstr "Redémarrer"
#: ../vnc.html:173
#: ../vnc.html:139
msgid "Reset"
msgstr "Réinitialiser"
#: ../vnc.html:178 ../vnc.html:184
#: ../vnc.html:144 ../vnc.html:150
msgid "Clipboard"
msgstr "Presse-papiers"
#: ../vnc.html:186
msgid "Edit clipboard content in the textarea below."
msgstr "Editer le contenu du presse-papier dans la zone ci-dessous."
#: ../vnc.html:154
msgid "Clear"
msgstr "Effacer"
#: ../vnc.html:194
msgid "Full screen"
#: ../vnc.html:160
msgid "Fullscreen"
msgstr "Plein écran"
#: ../vnc.html:199 ../vnc.html:205
#: ../vnc.html:165 ../vnc.html:172
msgid "Settings"
msgstr "Paramètres"
#: ../vnc.html:211
msgid "Shared mode"
#: ../vnc.html:175
msgid "Shared Mode"
msgstr "Mode partagé"
#: ../vnc.html:218
msgid "View only"
#: ../vnc.html:178
msgid "View Only"
msgstr "Afficher uniquement"
#: ../vnc.html:226
msgid "Clip to window"
msgstr "Ajuster à la fenêtre"
#: ../vnc.html:182
msgid "Clip to Window"
msgstr "Clip à fenêtre"
#: ../vnc.html:231
msgid "Scaling mode:"
#: ../vnc.html:185
msgid "Scaling Mode:"
msgstr "Mode mise à l'échelle :"
#: ../vnc.html:233
#: ../vnc.html:187
msgid "None"
msgstr "Aucun"
#: ../vnc.html:234
msgid "Local scaling"
#: ../vnc.html:188
msgid "Local Scaling"
msgstr "Mise à l'échelle locale"
#: ../vnc.html:235
msgid "Remote resizing"
#: ../vnc.html:189
msgid "Remote Resizing"
msgstr "Redimensionnement à distance"
#: ../vnc.html:240
#: ../vnc.html:194
msgid "Advanced"
msgstr "Avancé"
#: ../vnc.html:243
#: ../vnc.html:197
msgid "Quality:"
msgstr "Qualité :"
#: ../vnc.html:247
#: ../vnc.html:201
msgid "Compression level:"
msgstr "Niveau de compression :"
#: ../vnc.html:252
#: ../vnc.html:206
msgid "Repeater ID:"
msgstr "ID Répéteur :"
#: ../vnc.html:256
#: ../vnc.html:210
msgid "WebSocket"
msgstr "WebSocket"
#: ../vnc.html:261
#: ../vnc.html:213
msgid "Encrypt"
msgstr "Chiffrer"
#: ../vnc.html:266
#: ../vnc.html:216
msgid "Host:"
msgstr "Hôte :"
#: ../vnc.html:270
#: ../vnc.html:220
msgid "Port:"
msgstr "Port :"
#: ../vnc.html:274
#: ../vnc.html:224
msgid "Path:"
msgstr "Chemin :"
#: ../vnc.html:283
msgid "Automatic reconnect"
msgstr "Reconnecter automatiquement"
#: ../vnc.html:231
msgid "Automatic Reconnect"
msgstr "Reconnecter automatiquemen"
#: ../vnc.html:288
msgid "Reconnect delay (ms):"
#: ../vnc.html:234
msgid "Reconnect Delay (ms):"
msgstr "Délai de reconnexion (ms) :"
#: ../vnc.html:295
msgid "Show dot when no cursor"
#: ../vnc.html:239
msgid "Show Dot when No Cursor"
msgstr "Afficher le point lorsqu'il n'y a pas de curseur"
#: ../vnc.html:302
#: ../vnc.html:244
msgid "Logging:"
msgstr "Se connecter :"
#: ../vnc.html:311
#: ../vnc.html:253
msgid "Version:"
msgstr "Version :"
#: ../vnc.html:319
#: ../vnc.html:261
msgid "Disconnect"
msgstr "Déconnecter"
#: ../vnc.html:342
#: ../vnc.html:280
msgid "Connect"
msgstr "Connecter"
#: ../vnc.html:351
msgid "Server identity"
msgstr "Identité du serveur"
#: ../vnc.html:354
msgid "The server has provided the following identifying information:"
msgstr "Le serveur a fourni l'identification suivante :"
#: ../vnc.html:357
msgid "Fingerprint:"
msgstr "Empreinte digitale :"
#: ../vnc.html:361
msgid ""
"Please verify that the information is correct and press \"Approve\". "
"Otherwise press \"Reject\"."
msgstr ""
"SVP, verifiez que l'information est correcte et pressez \"Accepter\". Sinon "
"pressez \"Refuser\"."
#: ../vnc.html:366
msgid "Approve"
msgstr "Accepter"
#: ../vnc.html:367
msgid "Reject"
msgstr "Refuser"
#: ../vnc.html:375
msgid "Credentials"
msgstr "Envoyer les identifiants"
#: ../vnc.html:379
#: ../vnc.html:290
msgid "Username:"
msgstr "Nom d'utilisateur :"
#: ../vnc.html:383
#: ../vnc.html:294
msgid "Password:"
msgstr "Mot de passe :"
#: ../vnc.html:387
msgid "Send credentials"
#: ../vnc.html:298
msgid "Send Credentials"
msgstr "Envoyer les identifiants"
#: ../vnc.html:396
#: ../vnc.html:308
msgid "Cancel"
msgstr "Annuler"
#~ msgid "Must set host"
#~ msgstr "Doit définir l'hôte"
#~ msgid "Clear"
#~ msgstr "Effacer"

View File

@ -1,6 +1,6 @@
# Italian translations for noVNC
# Traduzione italiana di noVNC
# Copyright (C) 2022 The noVNC authors
# Copyright (C) 2022 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Fabio Fantoni <fabio.fantoni@m2r.biz>, 2022.
#
@ -84,7 +84,7 @@ msgid "Drag"
msgstr ""
#: ../vnc.html:78
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr ""
#: ../vnc.html:84
@ -92,7 +92,7 @@ msgid "Keyboard"
msgstr "Tastiera"
#: ../vnc.html:84
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "Mostra tastiera"
#: ../vnc.html:89
@ -192,7 +192,7 @@ msgid "Settings"
msgstr "Impostazioni"
#: ../vnc.html:162
msgid "Shared mode"
msgid "Shared Mode"
msgstr "Modalità condivisa"
#: ../vnc.html:165
@ -200,11 +200,11 @@ msgid "View Only"
msgstr "Sola Visualizzazione"
#: ../vnc.html:169
msgid "Clip to window"
msgid "Clip to Window"
msgstr ""
#: ../vnc.html:172
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "Modalità di ridimensionamento:"
#: ../vnc.html:174

227
po/ja.po
View File

@ -1,15 +1,15 @@
# Japanese translations for noVNC package
# noVNC パッケージに対する日訳
# Copyright (C) 2019-2024 The noVNC authors
# Copyright (C) 2019 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# nnn1590 <nnn1590@nnn1590.org>, 2019-2024.
# nnn1590 <nnn1590@nnn1590.org>, 2019-2020.
#
msgid ""
msgstr ""
"Project-Id-Version: noVNC 1.5.0\n"
"Project-Id-Version: noVNC 1.1.0\n"
"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
"POT-Creation-Date: 2024-06-03 14:10+0200\n"
"PO-Revision-Date: 2024-12-14 15:22+0900\n"
"POT-Creation-Date: 2022-12-27 15:24+0100\n"
"PO-Revision-Date: 2023-03-21 12:42+0900\n"
"Last-Translator: nnn1590 <nnn1590@nnn1590.org>\n"
"Language-Team: Japanese\n"
"Language: ja\n"
@ -20,11 +20,8 @@ msgstr ""
"X-Generator: Poedit 2.3\n"
#: ../app/ui.js:69
msgid ""
"Running without HTTPS is not recommended, crashes or other issues are likely."
msgstr ""
"HTTPS接続なしで実行することは推奨されません。クラッシュしたりその他の問題が発"
"生したりする可能性があります。"
msgid "HTTPS is required for full functionality"
msgstr "すべての機能を使用するにはHTTPS接続が必要です"
#: ../app/ui.js:410
msgid "Connecting..."
@ -46,297 +43,321 @@ msgstr "内部エラー"
msgid "Must set host"
msgstr "ホストを設定する必要があります"
#: ../app/ui.js:1052
msgid "Failed to connect to server: "
msgstr "サーバーへの接続に失敗しました: "
#: ../app/ui.js:1118
#: ../app/ui.js:1110
msgid "Connected (encrypted) to "
msgstr "接続しました (暗号化済み): "
#: ../app/ui.js:1120
#: ../app/ui.js:1112
msgid "Connected (unencrypted) to "
msgstr "接続しました (暗号化されていません): "
#: ../app/ui.js:1143
#: ../app/ui.js:1135
msgid "Something went wrong, connection is closed"
msgstr "問題が発生したため、接続が閉じられました"
msgstr "何らかの問題で、接続が閉じられました"
#: ../app/ui.js:1146
#: ../app/ui.js:1138
msgid "Failed to connect to server"
msgstr "サーバーへの接続に失敗しました"
#: ../app/ui.js:1158
#: ../app/ui.js:1150
msgid "Disconnected"
msgstr "切断しました"
#: ../app/ui.js:1173
#: ../app/ui.js:1165
msgid "New connection has been rejected with reason: "
msgstr "新規接続は次の理由で拒否されました: "
#: ../app/ui.js:1176
#: ../app/ui.js:1168
msgid "New connection has been rejected"
msgstr "新規接続は拒否されました"
#: ../app/ui.js:1242
#: ../app/ui.js:1234
msgid "Credentials are required"
msgstr "資格情報が必要です"
#: ../vnc.html:55
#: ../vnc.html:57
msgid "noVNC encountered an error:"
msgstr "noVNC でエラーが発生しました:"
#: ../vnc.html:65
#: ../vnc.html:67
msgid "Hide/Show the control bar"
msgstr "コントロールバーを隠す/表示する"
#: ../vnc.html:74
#: ../vnc.html:76
msgid "Drag"
msgstr "ドラッグ"
#: ../vnc.html:74
msgid "Move/Drag viewport"
#: ../vnc.html:76
msgid "Move/Drag Viewport"
msgstr "ビューポートを移動/ドラッグ"
#: ../vnc.html:80
#: ../vnc.html:82
msgid "Keyboard"
msgstr "キーボード"
#: ../vnc.html:80
msgid "Show keyboard"
#: ../vnc.html:82
msgid "Show Keyboard"
msgstr "キーボードを表示"
#: ../vnc.html:85
#: ../vnc.html:87
msgid "Extra keys"
msgstr "追加キー"
#: ../vnc.html:85
msgid "Show extra keys"
#: ../vnc.html:87
msgid "Show Extra Keys"
msgstr "追加キーを表示"
#: ../vnc.html:90
#: ../vnc.html:92
msgid "Ctrl"
msgstr "Ctrl"
#: ../vnc.html:90
#: ../vnc.html:92
msgid "Toggle Ctrl"
msgstr "Ctrl キーをトグル"
#: ../vnc.html:93
#: ../vnc.html:95
msgid "Alt"
msgstr "Alt"
#: ../vnc.html:93
#: ../vnc.html:95
msgid "Toggle Alt"
msgstr "Alt キーをトグル"
#: ../vnc.html:96
#: ../vnc.html:98
msgid "Toggle Windows"
msgstr "Windows キーをトグル"
#: ../vnc.html:96
#: ../vnc.html:98
msgid "Windows"
msgstr "Windows"
#: ../vnc.html:99
#: ../vnc.html:101
msgid "Send Tab"
msgstr "Tab キーを送信"
#: ../vnc.html:99
#: ../vnc.html:101
msgid "Tab"
msgstr "Tab"
#: ../vnc.html:102
#: ../vnc.html:104
msgid "Esc"
msgstr "Esc"
#: ../vnc.html:102
#: ../vnc.html:104
msgid "Send Escape"
msgstr "Escape キーを送信"
#: ../vnc.html:105
#: ../vnc.html:107
msgid "Ctrl+Alt+Del"
msgstr "Ctrl+Alt+Del"
#: ../vnc.html:105
#: ../vnc.html:107
msgid "Send Ctrl-Alt-Del"
msgstr "Ctrl-Alt-Del を送信"
#: ../vnc.html:112
#: ../vnc.html:114
msgid "Shutdown/Reboot"
msgstr "シャットダウン/再起動"
#: ../vnc.html:112
#: ../vnc.html:114
msgid "Shutdown/Reboot..."
msgstr "シャットダウン/再起動..."
#: ../vnc.html:118
#: ../vnc.html:120
msgid "Power"
msgstr "電源"
#: ../vnc.html:120
#: ../vnc.html:122
msgid "Shutdown"
msgstr "シャットダウン"
#: ../vnc.html:121
#: ../vnc.html:123
msgid "Reboot"
msgstr "再起動"
#: ../vnc.html:122
#: ../vnc.html:124
msgid "Reset"
msgstr "リセット"
#: ../vnc.html:127 ../vnc.html:133
#: ../vnc.html:129 ../vnc.html:135
msgid "Clipboard"
msgstr "クリップボード"
#: ../vnc.html:135
#: ../vnc.html:137
msgid "Edit clipboard content in the textarea below."
msgstr "以下の入力欄からクリップボードの内容を編集できます。"
#: ../vnc.html:143
msgid "Full screen"
#: ../vnc.html:145
msgid "Full Screen"
msgstr "全画面表示"
#: ../vnc.html:148 ../vnc.html:154
#: ../vnc.html:150 ../vnc.html:156
msgid "Settings"
msgstr "設定"
#: ../vnc.html:158
msgid "Shared mode"
#: ../vnc.html:160
msgid "Shared Mode"
msgstr "共有モード"
#: ../vnc.html:161
msgid "View only"
#: ../vnc.html:163
msgid "View Only"
msgstr "表示専用"
#: ../vnc.html:165
msgid "Clip to window"
#: ../vnc.html:167
msgid "Clip to Window"
msgstr "ウィンドウにクリップ"
#: ../vnc.html:168
msgid "Scaling mode:"
#: ../vnc.html:170
msgid "Scaling Mode:"
msgstr "スケーリングモード:"
#: ../vnc.html:170
#: ../vnc.html:172
msgid "None"
msgstr "なし"
#: ../vnc.html:171
msgid "Local scaling"
msgstr "ローカルスケーリング"
#: ../vnc.html:173
msgid "Local Scaling"
msgstr "ローカルスケーリング"
#: ../vnc.html:172
msgid "Remote resizing"
#: ../vnc.html:174
msgid "Remote Resizing"
msgstr "リモートでリサイズ"
#: ../vnc.html:177
#: ../vnc.html:179
msgid "Advanced"
msgstr "高度"
#: ../vnc.html:180
#: ../vnc.html:182
msgid "Quality:"
msgstr "品質:"
#: ../vnc.html:184
#: ../vnc.html:186
msgid "Compression level:"
msgstr "圧縮レベル:"
#: ../vnc.html:189
#: ../vnc.html:191
msgid "Repeater ID:"
msgstr "リピーター ID:"
#: ../vnc.html:193
#: ../vnc.html:195
msgid "WebSocket"
msgstr "WebSocket"
#: ../vnc.html:196
#: ../vnc.html:198
msgid "Encrypt"
msgstr "暗号化"
#: ../vnc.html:199
#: ../vnc.html:201
msgid "Host:"
msgstr "ホスト:"
#: ../vnc.html:203
#: ../vnc.html:205
msgid "Port:"
msgstr "ポート:"
#: ../vnc.html:207
#: ../vnc.html:209
msgid "Path:"
msgstr "パス:"
#: ../vnc.html:214
msgid "Automatic reconnect"
#: ../vnc.html:216
msgid "Automatic Reconnect"
msgstr "自動再接続"
#: ../vnc.html:217
msgid "Reconnect delay (ms):"
#: ../vnc.html:219
msgid "Reconnect Delay (ms):"
msgstr "再接続する遅延 (ミリ秒):"
#: ../vnc.html:222
msgid "Show dot when no cursor"
#: ../vnc.html:224
msgid "Show Dot when No Cursor"
msgstr "カーソルがないときにドットを表示する"
#: ../vnc.html:227
#: ../vnc.html:229
msgid "Logging:"
msgstr "ロギング:"
#: ../vnc.html:236
#: ../vnc.html:238
msgid "Version:"
msgstr "バージョン:"
#: ../vnc.html:244
#: ../vnc.html:246
msgid "Disconnect"
msgstr "切断"
#: ../vnc.html:267
#: ../vnc.html:269
msgid "Connect"
msgstr "接続"
#: ../vnc.html:276
#: ../vnc.html:278
msgid "Server identity"
msgstr "サーバーの識別情報"
#: ../vnc.html:279
#: ../vnc.html:281
msgid "The server has provided the following identifying information:"
msgstr "サーバーは以下の識別情報を提供しています:"
#: ../vnc.html:283
#: ../vnc.html:285
msgid "Fingerprint:"
msgstr "フィンガープリント:"
#: ../vnc.html:286
#: ../vnc.html:288
msgid ""
"Please verify that the information is correct and press \"Approve\". "
"Otherwise press \"Reject\"."
msgstr ""
"この情報が正しい場合は「承認」を、そうでない場合は「拒否」を押してください。"
"この情報が正しい場合は「承認」を、そうでない場合は「拒否」を押してく"
"ださい。"
#: ../vnc.html:291
#: ../vnc.html:293
msgid "Approve"
msgstr "承認"
#: ../vnc.html:292
#: ../vnc.html:294
msgid "Reject"
msgstr "拒否"
#: ../vnc.html:300
#: ../vnc.html:302
msgid "Credentials"
msgstr "資格情報"
#: ../vnc.html:304
#: ../vnc.html:306
msgid "Username:"
msgstr "ユーザー名:"
#: ../vnc.html:308
#: ../vnc.html:310
msgid "Password:"
msgstr "パスワード:"
#: ../vnc.html:312
msgid "Send credentials"
#: ../vnc.html:314
msgid "Send Credentials"
msgstr "資格情報を送信"
#: ../vnc.html:321
#: ../vnc.html:323
msgid "Cancel"
msgstr "キャンセル"
#~ msgid "Clear"
#~ msgstr "クリア"
#~ msgid "Password is required"
#~ msgstr "パスワードが必要です"
#~ msgid "viewport drag"
#~ msgstr "ビューポートをドラッグ"
#~ msgid "Active Mouse Button"
#~ msgstr "アクティブなマウスボタン"
#~ msgid "No mousebutton"
#~ msgstr "マウスボタンなし"
#~ msgid "Left mousebutton"
#~ msgstr "左マウスボタン"
#~ msgid "Middle mousebutton"
#~ msgstr "中マウスボタン"
#~ msgid "Right mousebutton"
#~ msgstr "右マウスボタン"
#~ msgid "Send Password"
#~ msgstr "パスワードを送信"

View File

@ -1,5 +1,5 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Baw Appie <pp121324@gmail.com>, 2018.
#
@ -78,7 +78,7 @@ msgid "Hide/Show the control bar"
msgstr "컨트롤 바 숨기기/보이기"
#: ../vnc.html:108
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr "움직이기/드래그 뷰포트"
#: ../vnc.html:108
@ -110,7 +110,7 @@ msgid "Keyboard"
msgstr "키보드"
#: ../vnc.html:126
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "키보드 보이기"
#: ../vnc.html:133
@ -118,7 +118,7 @@ msgid "Extra keys"
msgstr "기타 키들"
#: ../vnc.html:133
msgid "Show extra keys"
msgid "Show Extra Keys"
msgstr "기타 키들 보이기"
#: ../vnc.html:138
@ -202,19 +202,19 @@ msgid "Settings"
msgstr "설정"
#: ../vnc.html:204
msgid "Shared mode"
msgid "Shared Mode"
msgstr "공유 모드"
#: ../vnc.html:207
msgid "View only"
msgid "View Only"
msgstr "보기 전용"
#: ../vnc.html:211
msgid "Clip to window"
msgid "Clip to Window"
msgstr "창에 클립"
#: ../vnc.html:214
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "스케일링 모드:"
#: ../vnc.html:216
@ -222,11 +222,11 @@ msgid "None"
msgstr "없음"
#: ../vnc.html:217
msgid "Local scaling"
msgid "Local Scaling"
msgstr "로컬 스케일링"
#: ../vnc.html:218
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "원격 크기 조절"
#: ../vnc.html:223
@ -258,11 +258,11 @@ msgid "Path:"
msgstr "위치:"
#: ../vnc.html:251
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "자동 재연결"
#: ../vnc.html:254
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "재연결 지연 시간 (ms)"
#: ../vnc.html:260

318
po/nl.po
View File

@ -1,385 +1,307 @@
# Dutch translations for noVNC package
# Nederlandse vertalingen voor het pakket noVNC.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Loek Janssen <loekjanssen@gmail.com>, 2016.
#
msgid ""
msgstr ""
"Project-Id-Version: noVNC 1.6.0\n"
"Project-Id-Version: noVNC 1.1.0\n"
"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
"POT-Creation-Date: 2025-02-14 10:14+0100\n"
"PO-Revision-Date: 2025-03-03 18:20+0100\n"
"Last-Translator: Harold Horsman <haroldhorsman@gmail.com>\n"
"POT-Creation-Date: 2019-04-09 11:06+0100\n"
"PO-Revision-Date: 2019-04-09 17:17+0100\n"
"Last-Translator: Arend Lapere <arend.lapere@gmail.com>\n"
"Language-Team: none\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.5\n"
#: ../app/ui.js:84
msgid ""
"Running without HTTPS is not recommended, crashes or other issues are likely."
msgstr ""
"Het is niet aan te raden om zonder HTTPS te werken, crashes of andere "
"problemen zijn dan waarschijnlijk."
#: ../app/ui.js:413
#: ../app/ui.js:383
msgid "Connecting..."
msgstr "Aan het verbinden…"
msgstr "Verbinden..."
#: ../app/ui.js:420
#: ../app/ui.js:390
msgid "Disconnecting..."
msgstr "Bezig om verbinding te verbreken..."
msgstr "Verbinding verbreken..."
#: ../app/ui.js:426
#: ../app/ui.js:396
msgid "Reconnecting..."
msgstr "Opnieuw verbinding maken..."
#: ../app/ui.js:431
#: ../app/ui.js:401
msgid "Internal error"
msgstr "Interne fout"
#: ../app/ui.js:1079
#, fuzzy
msgid "Failed to connect to server: "
msgstr "Verbinding maken met server is mislukt"
#: ../app/ui.js:991
msgid "Must set host"
msgstr "Host moeten worden ingesteld"
#: ../app/ui.js:1145
#: ../app/ui.js:1073
msgid "Connected (encrypted) to "
msgstr "Verbonden (versleuteld) met "
#: ../app/ui.js:1147
#: ../app/ui.js:1075
msgid "Connected (unencrypted) to "
msgstr "Verbonden (onversleuteld) met "
#: ../app/ui.js:1170
#: ../app/ui.js:1098
msgid "Something went wrong, connection is closed"
msgstr "Er iets fout gelopen, verbinding werd verbroken"
#: ../app/ui.js:1173
#: ../app/ui.js:1101
msgid "Failed to connect to server"
msgstr "Verbinding maken met server is mislukt"
#: ../app/ui.js:1185
#: ../app/ui.js:1111
msgid "Disconnected"
msgstr "Verbinding verbroken"
#: ../app/ui.js:1200
#: ../app/ui.js:1124
msgid "New connection has been rejected with reason: "
msgstr "Nieuwe verbinding is geweigerd met de volgende reden: "
msgstr "Nieuwe verbinding is geweigerd omwille van de volgende reden: "
#: ../app/ui.js:1203
#: ../app/ui.js:1127
msgid "New connection has been rejected"
msgstr "Nieuwe verbinding is geweigerd"
#: ../app/ui.js:1269
msgid "Credentials are required"
msgstr "Inloggegevens zijn nodig"
#: ../app/ui.js:1147
msgid "Password is required"
msgstr "Wachtwoord is vereist"
#: ../vnc.html:106
#: ../vnc.html:80
msgid "noVNC encountered an error:"
msgstr "noVNC heeft een fout bemerkt:"
#: ../vnc.html:116
#: ../vnc.html:90
msgid "Hide/Show the control bar"
msgstr "Verberg/Toon de bedieningsbalk"
#: ../vnc.html:125
msgid "Drag"
msgstr "Sleep"
#: ../vnc.html:125
#, fuzzy
msgid "Move/Drag viewport"
#: ../vnc.html:97
msgid "Move/Drag Viewport"
msgstr "Verplaats/Versleep Kijkvenster"
#: ../vnc.html:131
#: ../vnc.html:97
msgid "viewport drag"
msgstr "kijkvenster slepen"
#: ../vnc.html:103 ../vnc.html:106 ../vnc.html:109 ../vnc.html:112
msgid "Active Mouse Button"
msgstr "Actieve Muisknop"
#: ../vnc.html:103
msgid "No mousebutton"
msgstr "Geen muisknop"
#: ../vnc.html:106
msgid "Left mousebutton"
msgstr "Linker muisknop"
#: ../vnc.html:109
msgid "Middle mousebutton"
msgstr "Middelste muisknop"
#: ../vnc.html:112
msgid "Right mousebutton"
msgstr "Rechter muisknop"
#: ../vnc.html:115
msgid "Keyboard"
msgstr "Toetsenbord"
#: ../vnc.html:131
#, fuzzy
msgid "Show keyboard"
#: ../vnc.html:115
msgid "Show Keyboard"
msgstr "Toon Toetsenbord"
#: ../vnc.html:136
#: ../vnc.html:121
msgid "Extra keys"
msgstr "Extra toetsen"
#: ../vnc.html:136
#, fuzzy
msgid "Show extra keys"
#: ../vnc.html:121
msgid "Show Extra Keys"
msgstr "Toon Extra Toetsen"
#: ../vnc.html:141
#: ../vnc.html:126
msgid "Ctrl"
msgstr "Ctrl"
#: ../vnc.html:141
#: ../vnc.html:126
msgid "Toggle Ctrl"
msgstr "Ctrl omschakelen"
#: ../vnc.html:144
#: ../vnc.html:129
msgid "Alt"
msgstr "Alt"
#: ../vnc.html:144
#: ../vnc.html:129
msgid "Toggle Alt"
msgstr "Alt omschakelen"
#: ../vnc.html:147
#: ../vnc.html:132
msgid "Toggle Windows"
msgstr "Vensters omschakelen"
msgstr "Windows omschakelen"
#: ../vnc.html:147
#: ../vnc.html:132
msgid "Windows"
msgstr "Vensters"
msgstr "Windows"
#: ../vnc.html:150
#: ../vnc.html:135
msgid "Send Tab"
msgstr "Tab Sturen"
#: ../vnc.html:150
#: ../vnc.html:135
msgid "Tab"
msgstr "Tab"
#: ../vnc.html:153
#: ../vnc.html:138
msgid "Esc"
msgstr "Esc"
#: ../vnc.html:153
#: ../vnc.html:138
msgid "Send Escape"
msgstr "Escape Sturen"
#: ../vnc.html:156
#: ../vnc.html:141
msgid "Ctrl+Alt+Del"
msgstr "Ctrl-Alt-Del"
#: ../vnc.html:156
#: ../vnc.html:141
msgid "Send Ctrl-Alt-Del"
msgstr "Ctrl-Alt-Del Sturen"
#: ../vnc.html:163
#: ../vnc.html:149
msgid "Shutdown/Reboot"
msgstr "Uitschakelen/Herstarten"
#: ../vnc.html:163
#: ../vnc.html:149
msgid "Shutdown/Reboot..."
msgstr "Uitschakelen/Herstarten..."
#: ../vnc.html:169
#: ../vnc.html:155
msgid "Power"
msgstr "Systeem"
#: ../vnc.html:171
#: ../vnc.html:157
msgid "Shutdown"
msgstr "Uitschakelen"
#: ../vnc.html:172
#: ../vnc.html:158
msgid "Reboot"
msgstr "Herstarten"
#: ../vnc.html:173
#: ../vnc.html:159
msgid "Reset"
msgstr "Resetten"
#: ../vnc.html:178 ../vnc.html:184
#: ../vnc.html:164 ../vnc.html:170
msgid "Clipboard"
msgstr "Klembord"
#: ../vnc.html:186
msgid "Edit clipboard content in the textarea below."
msgstr "Edit de inhoud van het klembord in het tekstveld hieronder"
#: ../vnc.html:174
msgid "Clear"
msgstr "Wissen"
#: ../vnc.html:194
#, fuzzy
msgid "Full screen"
#: ../vnc.html:180
msgid "Fullscreen"
msgstr "Volledig Scherm"
#: ../vnc.html:199 ../vnc.html:205
#: ../vnc.html:185 ../vnc.html:192
msgid "Settings"
msgstr "Instellingen"
#: ../vnc.html:211
#, fuzzy
msgid "Shared mode"
#: ../vnc.html:195
msgid "Shared Mode"
msgstr "Gedeelde Modus"
#: ../vnc.html:218
#, fuzzy
msgid "View only"
#: ../vnc.html:198
msgid "View Only"
msgstr "Alleen Kijken"
#: ../vnc.html:226
msgid "Clip to window"
#: ../vnc.html:202
msgid "Clip to Window"
msgstr "Randen buiten venster afsnijden"
#: ../vnc.html:231
msgid "Scaling mode:"
#: ../vnc.html:205
msgid "Scaling Mode:"
msgstr "Schaalmodus:"
#: ../vnc.html:233
#: ../vnc.html:207
msgid "None"
msgstr "Geen"
#: ../vnc.html:234
#, fuzzy
msgid "Local scaling"
#: ../vnc.html:208
msgid "Local Scaling"
msgstr "Lokaal Schalen"
#: ../vnc.html:235
#, fuzzy
msgid "Remote resizing"
#: ../vnc.html:209
msgid "Remote Resizing"
msgstr "Op Afstand Formaat Wijzigen"
#: ../vnc.html:240
#: ../vnc.html:214
msgid "Advanced"
msgstr "Geavanceerd"
#: ../vnc.html:243
msgid "Quality:"
msgstr "Kwaliteit:"
#: ../vnc.html:247
msgid "Compression level:"
msgstr "Compressieniveau:"
#: ../vnc.html:252
#: ../vnc.html:217
msgid "Repeater ID:"
msgstr "Repeater ID:"
#: ../vnc.html:256
#: ../vnc.html:221
msgid "WebSocket"
msgstr "WebSocket"
#: ../vnc.html:261
#: ../vnc.html:224
msgid "Encrypt"
msgstr "Versleutelen"
#: ../vnc.html:266
#: ../vnc.html:227
msgid "Host:"
msgstr "Host:"
#: ../vnc.html:270
#: ../vnc.html:231
msgid "Port:"
msgstr "Poort:"
#: ../vnc.html:274
#: ../vnc.html:235
msgid "Path:"
msgstr "Pad:"
#: ../vnc.html:283
#, fuzzy
msgid "Automatic reconnect"
#: ../vnc.html:242
msgid "Automatic Reconnect"
msgstr "Automatisch Opnieuw Verbinden"
#: ../vnc.html:288
#, fuzzy
msgid "Reconnect delay (ms):"
#: ../vnc.html:245
msgid "Reconnect Delay (ms):"
msgstr "Vertraging voor Opnieuw Verbinden (ms):"
#: ../vnc.html:295
msgid "Show dot when no cursor"
#: ../vnc.html:250
msgid "Show Dot when No Cursor"
msgstr "Geef stip weer indien geen cursor"
#: ../vnc.html:302
#: ../vnc.html:255
msgid "Logging:"
msgstr "Logmeldingen:"
#: ../vnc.html:311
msgid "Version:"
msgstr "Versie:"
#: ../vnc.html:319
#: ../vnc.html:267
msgid "Disconnect"
msgstr "Verbinding verbreken"
#: ../vnc.html:342
#: ../vnc.html:286
msgid "Connect"
msgstr "Verbinden"
#: ../vnc.html:351
msgid "Server identity"
msgstr "Serveridentiteit"
#: ../vnc.html:354
msgid "The server has provided the following identifying information:"
msgstr "De server geeft de volgende identificerende informatie:"
#: ../vnc.html:357
msgid "Fingerprint:"
msgstr "Vingerafdruk:"
#: ../vnc.html:361
msgid ""
"Please verify that the information is correct and press \"Approve\". "
"Otherwise press \"Reject\"."
msgstr ""
"Verifieer dat de informatie is correct en druk “OK”. Druk anders op "
"“Afwijzen”."
#: ../vnc.html:366
msgid "Approve"
msgstr "OK"
#: ../vnc.html:367
msgid "Reject"
msgstr "Afwijzen"
#: ../vnc.html:375
msgid "Credentials"
msgstr "Inloggegevens"
#: ../vnc.html:379
msgid "Username:"
msgstr "Gebruikersnaam:"
#: ../vnc.html:383
#: ../vnc.html:296
msgid "Password:"
msgstr "Wachtwoord:"
# Translated by Harold Horsman
#: ../vnc.html:387
msgid "Send credentials"
msgstr "Stuur inloggegevens"
#: ../vnc.html:300
msgid "Send Password"
msgstr "Verzend Wachtwoord:"
#: ../vnc.html:396
#: ../vnc.html:310
msgid "Cancel"
msgstr "Annuleren"
#~ msgid "Must set host"
#~ msgstr "Host moeten worden ingesteld"
#~ msgid "Password is required"
#~ msgstr "Wachtwoord is vereist"
#~ msgid "viewport drag"
#~ msgstr "kijkvenster slepen"
#~ msgid "Active Mouse Button"
#~ msgstr "Actieve Muisknop"
#~ msgid "No mousebutton"
#~ msgstr "Geen muisknop"
#~ msgid "Left mousebutton"
#~ msgstr "Linker muisknop"
#~ msgid "Middle mousebutton"
#~ msgstr "Middelste muisknop"
#~ msgid "Right mousebutton"
#~ msgstr "Rechter muisknop"
#~ msgid "Clear"
#~ msgstr "Wissen"
#~ msgid "Send Password"
#~ msgstr "Verzend Wachtwoord:"
#~ msgid "Disconnect timeout"
#~ msgstr "Timeout tijdens verbreken van verbinding"

View File

@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR The noVNC authors
# Copyright (C) YEAR The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: noVNC 1.6.0\n"
"Project-Id-Version: noVNC 1.5.0\n"
"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
"POT-Creation-Date: 2025-02-14 10:14+0100\n"
"POT-Creation-Date: 2024-06-03 14:10+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,317 +17,321 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../app/ui.js:84
#: ../app/ui.js:69
msgid ""
"Running without HTTPS is not recommended, crashes or other issues are likely."
msgstr ""
#: ../app/ui.js:413
#: ../app/ui.js:410
msgid "Connecting..."
msgstr ""
#: ../app/ui.js:420
#: ../app/ui.js:417
msgid "Disconnecting..."
msgstr ""
#: ../app/ui.js:426
#: ../app/ui.js:423
msgid "Reconnecting..."
msgstr ""
#: ../app/ui.js:431
#: ../app/ui.js:428
msgid "Internal error"
msgstr ""
#: ../app/ui.js:1079
#: ../app/ui.js:1026
msgid "Must set host"
msgstr ""
#: ../app/ui.js:1052
msgid "Failed to connect to server: "
msgstr ""
#: ../app/ui.js:1145
#: ../app/ui.js:1118
msgid "Connected (encrypted) to "
msgstr ""
#: ../app/ui.js:1147
#: ../app/ui.js:1120
msgid "Connected (unencrypted) to "
msgstr ""
#: ../app/ui.js:1170
#: ../app/ui.js:1143
msgid "Something went wrong, connection is closed"
msgstr ""
#: ../app/ui.js:1173
#: ../app/ui.js:1146
msgid "Failed to connect to server"
msgstr ""
#: ../app/ui.js:1185
#: ../app/ui.js:1158
msgid "Disconnected"
msgstr ""
#: ../app/ui.js:1200
#: ../app/ui.js:1173
msgid "New connection has been rejected with reason: "
msgstr ""
#: ../app/ui.js:1203
#: ../app/ui.js:1176
msgid "New connection has been rejected"
msgstr ""
#: ../app/ui.js:1269
#: ../app/ui.js:1242
msgid "Credentials are required"
msgstr ""
#: ../vnc.html:106
#: ../vnc.html:55
msgid "noVNC encountered an error:"
msgstr ""
#: ../vnc.html:116
#: ../vnc.html:65
msgid "Hide/Show the control bar"
msgstr ""
#: ../vnc.html:125
#: ../vnc.html:74
msgid "Drag"
msgstr ""
#: ../vnc.html:125
msgid "Move/Drag viewport"
#: ../vnc.html:74
msgid "Move/Drag Viewport"
msgstr ""
#: ../vnc.html:131
#: ../vnc.html:80
msgid "Keyboard"
msgstr ""
#: ../vnc.html:131
msgid "Show keyboard"
#: ../vnc.html:80
msgid "Show Keyboard"
msgstr ""
#: ../vnc.html:136
#: ../vnc.html:85
msgid "Extra keys"
msgstr ""
#: ../vnc.html:136
msgid "Show extra keys"
#: ../vnc.html:85
msgid "Show Extra Keys"
msgstr ""
#: ../vnc.html:141
#: ../vnc.html:90
msgid "Ctrl"
msgstr ""
#: ../vnc.html:141
#: ../vnc.html:90
msgid "Toggle Ctrl"
msgstr ""
#: ../vnc.html:144
#: ../vnc.html:93
msgid "Alt"
msgstr ""
#: ../vnc.html:144
#: ../vnc.html:93
msgid "Toggle Alt"
msgstr ""
#: ../vnc.html:147
#: ../vnc.html:96
msgid "Toggle Windows"
msgstr ""
#: ../vnc.html:147
#: ../vnc.html:96
msgid "Windows"
msgstr ""
#: ../vnc.html:150
#: ../vnc.html:99
msgid "Send Tab"
msgstr ""
#: ../vnc.html:150
#: ../vnc.html:99
msgid "Tab"
msgstr ""
#: ../vnc.html:153
#: ../vnc.html:102
msgid "Esc"
msgstr ""
#: ../vnc.html:153
#: ../vnc.html:102
msgid "Send Escape"
msgstr ""
#: ../vnc.html:156
#: ../vnc.html:105
msgid "Ctrl+Alt+Del"
msgstr ""
#: ../vnc.html:156
#: ../vnc.html:105
msgid "Send Ctrl-Alt-Del"
msgstr ""
#: ../vnc.html:163
#: ../vnc.html:112
msgid "Shutdown/Reboot"
msgstr ""
#: ../vnc.html:163
#: ../vnc.html:112
msgid "Shutdown/Reboot..."
msgstr ""
#: ../vnc.html:169
#: ../vnc.html:118
msgid "Power"
msgstr ""
#: ../vnc.html:171
#: ../vnc.html:120
msgid "Shutdown"
msgstr ""
#: ../vnc.html:172
#: ../vnc.html:121
msgid "Reboot"
msgstr ""
#: ../vnc.html:173
#: ../vnc.html:122
msgid "Reset"
msgstr ""
#: ../vnc.html:178 ../vnc.html:184
#: ../vnc.html:127 ../vnc.html:133
msgid "Clipboard"
msgstr ""
#: ../vnc.html:186
#: ../vnc.html:135
msgid "Edit clipboard content in the textarea below."
msgstr ""
#: ../vnc.html:194
msgid "Full screen"
#: ../vnc.html:143
msgid "Full Screen"
msgstr ""
#: ../vnc.html:199 ../vnc.html:205
#: ../vnc.html:148 ../vnc.html:154
msgid "Settings"
msgstr ""
#: ../vnc.html:211
msgid "Shared mode"
#: ../vnc.html:158
msgid "Shared Mode"
msgstr ""
#: ../vnc.html:218
msgid "View only"
#: ../vnc.html:161
msgid "View Only"
msgstr ""
#: ../vnc.html:226
msgid "Clip to window"
#: ../vnc.html:165
msgid "Clip to Window"
msgstr ""
#: ../vnc.html:231
msgid "Scaling mode:"
#: ../vnc.html:168
msgid "Scaling Mode:"
msgstr ""
#: ../vnc.html:233
#: ../vnc.html:170
msgid "None"
msgstr ""
#: ../vnc.html:234
msgid "Local scaling"
#: ../vnc.html:171
msgid "Local Scaling"
msgstr ""
#: ../vnc.html:235
msgid "Remote resizing"
#: ../vnc.html:172
msgid "Remote Resizing"
msgstr ""
#: ../vnc.html:240
#: ../vnc.html:177
msgid "Advanced"
msgstr ""
#: ../vnc.html:243
#: ../vnc.html:180
msgid "Quality:"
msgstr ""
#: ../vnc.html:247
#: ../vnc.html:184
msgid "Compression level:"
msgstr ""
#: ../vnc.html:252
#: ../vnc.html:189
msgid "Repeater ID:"
msgstr ""
#: ../vnc.html:256
#: ../vnc.html:193
msgid "WebSocket"
msgstr ""
#: ../vnc.html:261
#: ../vnc.html:196
msgid "Encrypt"
msgstr ""
#: ../vnc.html:266
#: ../vnc.html:199
msgid "Host:"
msgstr ""
#: ../vnc.html:270
#: ../vnc.html:203
msgid "Port:"
msgstr ""
#: ../vnc.html:274
#: ../vnc.html:207
msgid "Path:"
msgstr ""
#: ../vnc.html:283
msgid "Automatic reconnect"
#: ../vnc.html:214
msgid "Automatic Reconnect"
msgstr ""
#: ../vnc.html:288
msgid "Reconnect delay (ms):"
#: ../vnc.html:217
msgid "Reconnect Delay (ms):"
msgstr ""
#: ../vnc.html:295
msgid "Show dot when no cursor"
#: ../vnc.html:222
msgid "Show Dot when No Cursor"
msgstr ""
#: ../vnc.html:302
#: ../vnc.html:227
msgid "Logging:"
msgstr ""
#: ../vnc.html:311
#: ../vnc.html:236
msgid "Version:"
msgstr ""
#: ../vnc.html:319
#: ../vnc.html:244
msgid "Disconnect"
msgstr ""
#: ../vnc.html:342
#: ../vnc.html:267
msgid "Connect"
msgstr ""
#: ../vnc.html:351
#: ../vnc.html:276
msgid "Server identity"
msgstr ""
#: ../vnc.html:354
#: ../vnc.html:279
msgid "The server has provided the following identifying information:"
msgstr ""
#: ../vnc.html:357
#: ../vnc.html:283
msgid "Fingerprint:"
msgstr ""
#: ../vnc.html:361
#: ../vnc.html:286
msgid ""
"Please verify that the information is correct and press \"Approve\". "
"Otherwise press \"Reject\"."
msgstr ""
#: ../vnc.html:366
#: ../vnc.html:291
msgid "Approve"
msgstr ""
#: ../vnc.html:367
#: ../vnc.html:292
msgid "Reject"
msgstr ""
#: ../vnc.html:375
#: ../vnc.html:300
msgid "Credentials"
msgstr ""
#: ../vnc.html:379
#: ../vnc.html:304
msgid "Username:"
msgstr ""
#: ../vnc.html:383
#: ../vnc.html:308
msgid "Password:"
msgstr ""
#: ../vnc.html:387
msgid "Send credentials"
#: ../vnc.html:312
msgid "Send Credentials"
msgstr ""
#: ../vnc.html:396
#: ../vnc.html:321
msgid "Cancel"
msgstr ""

View File

@ -1,5 +1,5 @@
# Polish translations for noVNC package.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Mariusz Jamro <mariusz.jamro@gmail.com>, 2017.
#
@ -108,7 +108,7 @@ msgid "Keyboard"
msgstr "Klawiatura"
#: ../vnc.html:124
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "Pokaż klawiaturę"
#: ../vnc.html:131
@ -116,7 +116,7 @@ msgid "Extra keys"
msgstr "Przyciski dodatkowe"
#: ../vnc.html:131
msgid "Show extra keys"
msgid "Show Extra Keys"
msgstr "Pokaż przyciski dodatkowe"
#: ../vnc.html:136
@ -220,11 +220,11 @@ msgid "None"
msgstr "Brak"
#: ../vnc.html:215
msgid "Local scaling"
msgid "Local Scaling"
msgstr "Skalowanie lokalne"
#: ../vnc.html:216
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "Skalowanie zdalne"
#: ../vnc.html:221
@ -256,11 +256,11 @@ msgid "Path:"
msgstr "Ścieżka:"
#: ../vnc.html:249
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "Automatycznie wznawiaj połączenie"
#: ../vnc.html:252
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "Opóźnienie wznawiania (ms):"
#: ../vnc.html:258

View File

@ -1,7 +1,7 @@
#!/usr/bin/env node
/*
* ps2js: gettext .po to noVNC .js converter
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -17,24 +17,29 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
const { program } = require('commander');
const getopt = require('node-getopt');
const fs = require('fs');
const pofile = require("pofile");
const po2json = require("po2json");
program
.argument('<input>')
.argument('<output>')
.parse(process.argv);
const opt = getopt.create([
['h', 'help', 'display this help'],
]).bindHelp().parseSystem();
let data = fs.readFileSync(program.args[0], "utf8");
let po = pofile.parse(data);
if (opt.argv.length != 2) {
console.error("Incorrect number of arguments given");
process.exit(1);
}
const bodyPart = po.items
.filter(item => item.msgid !== "")
.filter(item => item.msgstr[0] !== "")
.map(item => " " + JSON.stringify(item.msgid) + ": " + JSON.stringify(item.msgstr[0]))
.join(",\n");
const data = po2json.parseFileSync(opt.argv[0]);
const bodyPart = Object.keys(data)
.filter(msgid => msgid !== "")
.filter(msgid => data[msgid][1] !== "")
.map((msgid) => {
const msgstr = data[msgid][1];
return " " + JSON.stringify(msgid) + ": " + JSON.stringify(msgstr);
}).join(",\n");
const output = "{\n" + bodyPart + "\n}";
fs.writeFileSync(program.args[1], output);
fs.writeFileSync(opt.argv[1], output);

View File

@ -1,5 +1,5 @@
# Portuguese translations for noVNC package.
# Copyright (C) 2021 The noVNC authors
# Copyright (C) 2021 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# <liddack@outlook.com>, 2021.
#
@ -83,7 +83,7 @@ msgid "Drag"
msgstr "Arrastar"
#: ../vnc.html:78
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr "Mover/arrastar a janela"
#: ../vnc.html:84
@ -91,7 +91,7 @@ msgid "Keyboard"
msgstr "Teclado"
#: ../vnc.html:84
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "Mostrar teclado"
#: ../vnc.html:89
@ -99,7 +99,7 @@ msgid "Extra keys"
msgstr "Teclas adicionais"
#: ../vnc.html:89
msgid "Show extra keys"
msgid "Show Extra Keys"
msgstr "Mostar teclas adicionais"
#: ../vnc.html:94
@ -191,19 +191,19 @@ msgid "Settings"
msgstr "Configurações"
#: ../vnc.html:162
msgid "Shared mode"
msgid "Shared Mode"
msgstr "Modo compartilhado"
#: ../vnc.html:165
msgid "View only"
msgid "View Only"
msgstr "Apenas visualizar"
#: ../vnc.html:169
msgid "Clip to window"
msgid "Clip to Window"
msgstr "Recortar à janela"
#: ../vnc.html:172
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "Modo de dimensionamento:"
#: ../vnc.html:174
@ -211,11 +211,11 @@ msgid "None"
msgstr "Nenhum"
#: ../vnc.html:175
msgid "Local scaling"
msgid "Local Scaling"
msgstr "Local"
#: ../vnc.html:176
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "Remoto"
#: ../vnc.html:181
@ -255,15 +255,15 @@ msgid "Path:"
msgstr "Caminho:"
#: ../vnc.html:218
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "Reconexão automática"
#: ../vnc.html:221
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "Atraso da reconexão (ms)"
#: ../vnc.html:226
msgid "Show dot when no cursor"
msgid "Show Dot when No Cursor"
msgstr "Mostrar ponto quando não há cursor"
#: ../vnc.html:231
@ -291,7 +291,7 @@ msgid "Password:"
msgstr "Senha:"
#: ../vnc.html:285
msgid "Send credentials"
msgid "Send Credentials"
msgstr "Enviar credenciais"
#: ../vnc.html:295

View File

@ -6,11 +6,11 @@
#
msgid ""
msgstr ""
"Project-Id-Version: noVNC 1.5.0\n"
"Project-Id-Version: noVNC 1.3.0\n"
"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
"POT-Creation-Date: 2021-08-27 16:03+0200\n"
"PO-Revision-Date: 2024-02-11 03:58+0300\n"
"Last-Translator: Dim5x <dim5x@yahoo.com>\n"
"PO-Revision-Date: 2021-09-09 10:29+0400\n"
"Last-Translator: Nia Remez <nia.remez@cendio.com>\n"
"Language-Team: Russian\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
@ -86,7 +86,7 @@ msgid "Drag"
msgstr "Переместить"
#: ../vnc.html:78
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr "Переместить окно"
#: ../vnc.html:84
@ -94,7 +94,7 @@ msgid "Keyboard"
msgstr "Клавиатура"
#: ../vnc.html:84
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "Показать клавиатуру"
#: ../vnc.html:89
@ -111,7 +111,7 @@ msgstr "Ctrl"
#: ../vnc.html:94
msgid "Toggle Ctrl"
msgstr "Зажать Ctrl"
msgstr "Переключение нажатия Ctrl"
#: ../vnc.html:97
msgid "Alt"
@ -119,11 +119,11 @@ msgstr "Alt"
#: ../vnc.html:97
msgid "Toggle Alt"
msgstr "Зажать Alt"
msgstr "Переключение нажатия Alt"
#: ../vnc.html:100
msgid "Toggle Windows"
msgstr "Зажать Windows"
msgstr "Переключение вкладок"
#: ../vnc.html:100
msgid "Windows"
@ -194,7 +194,7 @@ msgid "Settings"
msgstr "Настройки"
#: ../vnc.html:162
msgid "Shared mode"
msgid "Shared Mode"
msgstr "Общий режим"
#: ../vnc.html:165
@ -202,11 +202,11 @@ msgid "View Only"
msgstr "Только Просмотр"
#: ../vnc.html:169
msgid "Clip to window"
msgid "Clip to Window"
msgstr "В окно"
#: ../vnc.html:172
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "Масштаб:"
#: ../vnc.html:174
@ -214,11 +214,11 @@ msgid "None"
msgstr "Нет"
#: ../vnc.html:175
msgid "Local scaling"
msgstr "Локальный масштаб"
msgid "Local Scaling"
msgstr "Локльный масштаб"
#: ../vnc.html:176
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "Удаленная перенастройка размера"
#: ../vnc.html:181
@ -258,15 +258,15 @@ msgid "Path:"
msgstr "Путь:"
#: ../vnc.html:218
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "Автоматическое переподключение"
#: ../vnc.html:221
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "Задержка переподключения (мс):"
#: ../vnc.html:226
msgid "Show dot when no cursor"
msgid "Show Dot when No Cursor"
msgstr "Показать точку вместо курсора"
#: ../vnc.html:231

223
po/sv.po
View File

@ -1,308 +1,312 @@
# Swedish translations for noVNC package
# Svenska översättningar för paketet noVNC.
# Copyright (C) 2025 The noVNC authors
# Copyright (C) 2020 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Samuel Mannehed <samuel@cendio.se>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: noVNC 1.6.0\n"
"Project-Id-Version: noVNC 1.3.0\n"
"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
"POT-Creation-Date: 2025-02-14 10:14+0100\n"
"PO-Revision-Date: 2025-02-14 10:29+0100\n"
"Last-Translator: Alexander Zeijlon <aleze@cendio.com>\n"
"POT-Creation-Date: 2024-06-03 14:10+0200\n"
"PO-Revision-Date: 2024-06-18 13:52+0200\n"
"Last-Translator: Pierre Ossman <ossman@cendio.se>\n"
"Language-Team: none\n"
"Language: sv\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.5\n"
"X-Generator: Poedit 3.4.4\n"
#: ../app/ui.js:84
#: ../app/ui.js:69
msgid ""
"Running without HTTPS is not recommended, crashes or other issues are likely."
msgstr ""
"Det är ej rekommenderat att köra utan HTTPS, krascher och andra problem är "
"troliga."
#: ../app/ui.js:413
#: ../app/ui.js:410
msgid "Connecting..."
msgstr "Ansluter..."
#: ../app/ui.js:420
#: ../app/ui.js:417
msgid "Disconnecting..."
msgstr "Kopplar ner..."
#: ../app/ui.js:426
#: ../app/ui.js:423
msgid "Reconnecting..."
msgstr "Återansluter..."
#: ../app/ui.js:431
#: ../app/ui.js:428
msgid "Internal error"
msgstr "Internt fel"
#: ../app/ui.js:1079
#: ../app/ui.js:1026
msgid "Must set host"
msgstr "Du måste specifiera en värd"
#: ../app/ui.js:1052
msgid "Failed to connect to server: "
msgstr "Misslyckades att ansluta till servern: "
#: ../app/ui.js:1145
#: ../app/ui.js:1118
msgid "Connected (encrypted) to "
msgstr "Ansluten (krypterat) till "
#: ../app/ui.js:1147
#: ../app/ui.js:1120
msgid "Connected (unencrypted) to "
msgstr "Ansluten (okrypterat) till "
#: ../app/ui.js:1170
#: ../app/ui.js:1143
msgid "Something went wrong, connection is closed"
msgstr "Något gick fel, anslutningen avslutades"
#: ../app/ui.js:1173
#: ../app/ui.js:1146
msgid "Failed to connect to server"
msgstr "Misslyckades att ansluta till servern"
#: ../app/ui.js:1185
#: ../app/ui.js:1158
msgid "Disconnected"
msgstr "Frånkopplad"
#: ../app/ui.js:1200
#: ../app/ui.js:1173
msgid "New connection has been rejected with reason: "
msgstr "Ny anslutning har blivit nekad med följande skäl: "
#: ../app/ui.js:1203
#: ../app/ui.js:1176
msgid "New connection has been rejected"
msgstr "Ny anslutning har blivit nekad"
#: ../app/ui.js:1269
#: ../app/ui.js:1242
msgid "Credentials are required"
msgstr "Användaruppgifter krävs"
#: ../vnc.html:106
#: ../vnc.html:55
msgid "noVNC encountered an error:"
msgstr "noVNC stötte på ett problem:"
#: ../vnc.html:116
#: ../vnc.html:65
msgid "Hide/Show the control bar"
msgstr "Göm/Visa kontrollbaren"
#: ../vnc.html:125
#: ../vnc.html:74
msgid "Drag"
msgstr "Dra"
#: ../vnc.html:125
msgid "Move/Drag viewport"
msgstr "Flytta/Dra vyn"
#: ../vnc.html:74
msgid "Move/Drag Viewport"
msgstr "Flytta/Dra Vyn"
#: ../vnc.html:131
#: ../vnc.html:80
msgid "Keyboard"
msgstr "Tangentbord"
#: ../vnc.html:131
msgid "Show keyboard"
msgstr "Visa tangentbord"
#: ../vnc.html:80
msgid "Show Keyboard"
msgstr "Visa Tangentbord"
#: ../vnc.html:136
#: ../vnc.html:85
msgid "Extra keys"
msgstr "Extraknappar"
#: ../vnc.html:136
msgid "Show extra keys"
msgstr "Visa extraknappar"
#: ../vnc.html:85
msgid "Show Extra Keys"
msgstr "Visa Extraknappar"
#: ../vnc.html:141
#: ../vnc.html:90
msgid "Ctrl"
msgstr "Ctrl"
#: ../vnc.html:141
#: ../vnc.html:90
msgid "Toggle Ctrl"
msgstr "Växla Ctrl"
#: ../vnc.html:144
#: ../vnc.html:93
msgid "Alt"
msgstr "Alt"
#: ../vnc.html:144
#: ../vnc.html:93
msgid "Toggle Alt"
msgstr "Växla Alt"
#: ../vnc.html:147
#: ../vnc.html:96
msgid "Toggle Windows"
msgstr "Växla Windows"
#: ../vnc.html:147
#: ../vnc.html:96
msgid "Windows"
msgstr "Windows"
#: ../vnc.html:150
#: ../vnc.html:99
msgid "Send Tab"
msgstr "Skicka Tab"
#: ../vnc.html:150
#: ../vnc.html:99
msgid "Tab"
msgstr "Tab"
#: ../vnc.html:153
#: ../vnc.html:102
msgid "Esc"
msgstr "Esc"
#: ../vnc.html:153
#: ../vnc.html:102
msgid "Send Escape"
msgstr "Skicka Escape"
#: ../vnc.html:156
#: ../vnc.html:105
msgid "Ctrl+Alt+Del"
msgstr "Ctrl+Alt+Del"
#: ../vnc.html:156
#: ../vnc.html:105
msgid "Send Ctrl-Alt-Del"
msgstr "Skicka Ctrl-Alt-Del"
#: ../vnc.html:163
#: ../vnc.html:112
msgid "Shutdown/Reboot"
msgstr "Stäng av/Boota om"
#: ../vnc.html:163
#: ../vnc.html:112
msgid "Shutdown/Reboot..."
msgstr "Stäng av/Boota om..."
#: ../vnc.html:169
#: ../vnc.html:118
msgid "Power"
msgstr "Ström"
#: ../vnc.html:171
#: ../vnc.html:120
msgid "Shutdown"
msgstr "Stäng av"
#: ../vnc.html:172
#: ../vnc.html:121
msgid "Reboot"
msgstr "Boota om"
#: ../vnc.html:173
#: ../vnc.html:122
msgid "Reset"
msgstr "Återställ"
#: ../vnc.html:178 ../vnc.html:184
#: ../vnc.html:127 ../vnc.html:133
msgid "Clipboard"
msgstr "Urklipp"
#: ../vnc.html:186
#: ../vnc.html:135
msgid "Edit clipboard content in the textarea below."
msgstr "Redigera urklippets innehåll i fältet nedan."
#: ../vnc.html:194
msgid "Full screen"
#: ../vnc.html:143
msgid "Full Screen"
msgstr "Fullskärm"
#: ../vnc.html:199 ../vnc.html:205
#: ../vnc.html:148 ../vnc.html:154
msgid "Settings"
msgstr "Inställningar"
#: ../vnc.html:211
msgid "Shared mode"
msgstr "Delat läge"
#: ../vnc.html:158
msgid "Shared Mode"
msgstr "Delat Läge"
#: ../vnc.html:218
msgid "View only"
msgstr "Endast visning"
#: ../vnc.html:161
msgid "View Only"
msgstr "Endast Visning"
#: ../vnc.html:226
msgid "Clip to window"
msgstr "Begränsa till fönster"
#: ../vnc.html:165
msgid "Clip to Window"
msgstr "Begränsa till Fönster"
#: ../vnc.html:231
msgid "Scaling mode:"
#: ../vnc.html:168
msgid "Scaling Mode:"
msgstr "Skalningsläge:"
#: ../vnc.html:233
#: ../vnc.html:170
msgid "None"
msgstr "Ingen"
#: ../vnc.html:234
msgid "Local scaling"
msgstr "Lokal skalning"
#: ../vnc.html:171
msgid "Local Scaling"
msgstr "Lokal Skalning"
#: ../vnc.html:235
msgid "Remote resizing"
msgstr "Ändra storlek"
#: ../vnc.html:172
msgid "Remote Resizing"
msgstr "Ändra Storlek"
#: ../vnc.html:240
#: ../vnc.html:177
msgid "Advanced"
msgstr "Avancerat"
#: ../vnc.html:243
#: ../vnc.html:180
msgid "Quality:"
msgstr "Kvalitet:"
#: ../vnc.html:247
#: ../vnc.html:184
msgid "Compression level:"
msgstr "Kompressionsnivå:"
#: ../vnc.html:252
#: ../vnc.html:189
msgid "Repeater ID:"
msgstr "Repeater-ID:"
#: ../vnc.html:256
#: ../vnc.html:193
msgid "WebSocket"
msgstr "WebSocket"
#: ../vnc.html:261
#: ../vnc.html:196
msgid "Encrypt"
msgstr "Kryptera"
#: ../vnc.html:266
#: ../vnc.html:199
msgid "Host:"
msgstr "Värd:"
#: ../vnc.html:270
#: ../vnc.html:203
msgid "Port:"
msgstr "Port:"
#: ../vnc.html:274
#: ../vnc.html:207
msgid "Path:"
msgstr "Sökväg:"
#: ../vnc.html:283
msgid "Automatic reconnect"
msgstr "Automatisk återanslutning"
#: ../vnc.html:214
msgid "Automatic Reconnect"
msgstr "Automatisk Återanslutning"
#: ../vnc.html:288
msgid "Reconnect delay (ms):"
#: ../vnc.html:217
msgid "Reconnect Delay (ms):"
msgstr "Fördröjning (ms):"
#: ../vnc.html:295
msgid "Show dot when no cursor"
#: ../vnc.html:222
msgid "Show Dot when No Cursor"
msgstr "Visa prick när ingen muspekare finns"
#: ../vnc.html:302
#: ../vnc.html:227
msgid "Logging:"
msgstr "Loggning:"
#: ../vnc.html:311
#: ../vnc.html:236
msgid "Version:"
msgstr "Version:"
#: ../vnc.html:319
#: ../vnc.html:244
msgid "Disconnect"
msgstr "Koppla från"
#: ../vnc.html:342
#: ../vnc.html:267
msgid "Connect"
msgstr "Anslut"
#: ../vnc.html:351
#: ../vnc.html:276
msgid "Server identity"
msgstr "Server-identitet"
#: ../vnc.html:354
#: ../vnc.html:279
msgid "The server has provided the following identifying information:"
msgstr "Servern har gett följande identifierande information:"
#: ../vnc.html:357
#: ../vnc.html:283
msgid "Fingerprint:"
msgstr "Fingeravtryck:"
#: ../vnc.html:361
#: ../vnc.html:286
msgid ""
"Please verify that the information is correct and press \"Approve\". "
"Otherwise press \"Reject\"."
@ -310,37 +314,34 @@ msgstr ""
"Kontrollera att informationen är korrekt och tryck sedan \"Godkänn\". Tryck "
"annars \"Neka\"."
#: ../vnc.html:366
#: ../vnc.html:291
msgid "Approve"
msgstr "Godkänn"
#: ../vnc.html:367
#: ../vnc.html:292
msgid "Reject"
msgstr "Neka"
#: ../vnc.html:375
#: ../vnc.html:300
msgid "Credentials"
msgstr "Användaruppgifter"
#: ../vnc.html:379
#: ../vnc.html:304
msgid "Username:"
msgstr "Användarnamn:"
#: ../vnc.html:383
#: ../vnc.html:308
msgid "Password:"
msgstr "Lösenord:"
#: ../vnc.html:387
msgid "Send credentials"
msgstr "Skicka användaruppgifter"
#: ../vnc.html:312
msgid "Send Credentials"
msgstr "Skicka Användaruppgifter"
#: ../vnc.html:396
#: ../vnc.html:321
msgid "Cancel"
msgstr "Avbryt"
#~ msgid "Must set host"
#~ msgstr "Du måste specifiera en värd"
#~ msgid "HTTPS is required for full functionality"
#~ msgstr "HTTPS krävs för full funktionalitet"

View File

@ -1,6 +1,6 @@
# Turkish translations for noVNC package
# Turkish translation for noVNC.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Ömer ÇAKMAK <farukomercakmak@gmail.com>, 2018.
#
@ -116,7 +116,7 @@ msgid "Extra keys"
msgstr "Ekstra tuşlar"
#: ../vnc.html:131
msgid "Show extra keys"
msgid "Show Extra Keys"
msgstr "Ekstra tuşları göster"
#: ../vnc.html:136

View File

@ -1,18 +1,18 @@
#!/usr/bin/env node
/*
* xgettext-html: HTML gettext parser
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*/
const { program } = require('commander');
const getopt = require('node-getopt');
const jsdom = require("jsdom");
const fs = require("fs");
program
.argument('<INPUT...>')
.requiredOption('-o, --output <FILE>', 'write output to specified file')
.parse(process.argv);
const opt = getopt.create([
['o', 'output=FILE', 'write output to specified file'],
['h', 'help', 'display this help'],
]).bindHelp().parseSystem();
const strings = {};
@ -87,8 +87,8 @@ function process(elem, locator, enabled) {
}
}
for (let i = 0; i < program.args.length; i++) {
const fn = program.args[i];
for (let i = 0; i < opt.argv.length; i++) {
const fn = opt.argv[i];
const file = fs.readFileSync(fn, "utf8");
const dom = new jsdom.JSDOM(file, { includeNodeLocations: true });
const body = dom.window.document.body;
@ -116,4 +116,4 @@ for (let str in strings) {
output += "\n";
}
fs.writeFileSync(program.opts().output, output);
fs.writeFileSync(opt.options.output, output);

View File

@ -1,5 +1,5 @@
# Simplified Chinese translations for noVNC package.
# Copyright (C) 2020 The noVNC authors
# Copyright (C) 2020 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Peter Dave Hello <hsu@peterdavehello.org>, 2018.
#
@ -7,367 +7,278 @@ msgid ""
msgstr ""
"Project-Id-Version: noVNC 1.1.0\n"
"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
"POT-Creation-Date: 2024-06-03 14:10+0200\n"
"PO-Revision-Date: 2024-11-23 15:29+0800\n"
"Last-Translator: wxtewx <wxtewx@qq.com>\n"
"Language-Team: \n"
"POT-Creation-Date: 2018-01-10 00:53+0800\n"
"PO-Revision-Date: 2020-01-02 13:19+0800\n"
"Last-Translator: CUI Wei <ghostplant@qq.com>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.5\n"
#: ../app/ui.js:69
msgid ""
"Running without HTTPS is not recommended, crashes or other issues are likely."
msgstr "不建议在没有 HTTPS 的情况下运行,可能会出现崩溃或出现其他问题。"
#: ../app/ui.js:410
#: ../app/ui.js:430
msgid "Connecting..."
msgstr "连接中..."
#: ../app/ui.js:417
msgid "Disconnecting..."
msgstr "正在断开连接..."
#: ../app/ui.js:423
msgid "Reconnecting..."
msgstr "重新连接中..."
#: ../app/ui.js:428
msgid "Internal error"
msgstr "内部错误"
#: ../app/ui.js:1026
msgid "Must set host"
msgstr "必须设置主机"
#: ../app/ui.js:1052
msgid "Failed to connect to server: "
msgstr "无法连接到服务器:"
#: ../app/ui.js:1118
#: ../app/ui.js:438
msgid "Connected (encrypted) to "
msgstr "已连接(已加密)到"
#: ../app/ui.js:1120
#: ../app/ui.js:440
msgid "Connected (unencrypted) to "
msgstr "已连接(未加密)到"
#: ../app/ui.js:1143
msgid "Something went wrong, connection is closed"
msgstr "出了点问题,连接已关闭"
#: ../app/ui.js:446
msgid "Disconnecting..."
msgstr "正在断开连接..."
#: ../app/ui.js:1146
msgid "Failed to connect to server"
msgstr "无法连接到服务器"
#: ../app/ui.js:1158
#: ../app/ui.js:450
msgid "Disconnected"
msgstr "已断开连接"
#: ../app/ui.js:1173
msgid "New connection has been rejected with reason: "
msgstr "新连接被拒绝,原因如下:"
#: ../app/ui.js:1052 ../core/rfb.js:248
msgid "Must set host"
msgstr "必须设置主机"
#: ../app/ui.js:1176
msgid "New connection has been rejected"
msgstr "新连接已被拒绝"
#: ../app/ui.js:1101
msgid "Reconnecting..."
msgstr "重新连接中..."
#: ../app/ui.js:1242
msgid "Credentials are required"
msgstr "需要凭证"
#: ../app/ui.js:1140
msgid "Password is required"
msgstr "请提供密码"
#: ../vnc.html:55
#: ../core/rfb.js:548
msgid "Disconnect timeout"
msgstr "超时断开"
#: ../vnc.html:89
msgid "noVNC encountered an error:"
msgstr "noVNC 遇到一个错误:"
#: ../vnc.html:65
#: ../vnc.html:99
msgid "Hide/Show the control bar"
msgstr "显示/隐藏控制栏"
#: ../vnc.html:74
msgid "Drag"
msgstr "拖动"
#: ../vnc.html:74
msgid "Move/Drag viewport"
#: ../vnc.html:106
msgid "Move/Drag Viewport"
msgstr "移动/拖动窗口"
#: ../vnc.html:80
#: ../vnc.html:106
msgid "viewport drag"
msgstr "窗口拖动"
#: ../vnc.html:112 ../vnc.html:115 ../vnc.html:118 ../vnc.html:121
msgid "Active Mouse Button"
msgstr "启动鼠标按键"
#: ../vnc.html:112
msgid "No mousebutton"
msgstr "禁用鼠标按键"
#: ../vnc.html:115
msgid "Left mousebutton"
msgstr "鼠标左键"
#: ../vnc.html:118
msgid "Middle mousebutton"
msgstr "鼠标中键"
#: ../vnc.html:121
msgid "Right mousebutton"
msgstr "鼠标右键"
#: ../vnc.html:124
msgid "Keyboard"
msgstr "键盘"
#: ../vnc.html:80
msgid "Show keyboard"
#: ../vnc.html:124
msgid "Show Keyboard"
msgstr "显示键盘"
#: ../vnc.html:85
#: ../vnc.html:131
msgid "Extra keys"
msgstr "额外按键"
#: ../vnc.html:85
msgid "Show extra keys"
#: ../vnc.html:131
msgid "Show Extra Keys"
msgstr "显示额外按键"
#: ../vnc.html:90
#: ../vnc.html:136
msgid "Ctrl"
msgstr "Ctrl"
#: ../vnc.html:90
#: ../vnc.html:136
msgid "Toggle Ctrl"
msgstr "切换 Ctrl"
#: ../vnc.html:93
msgid "Alt"
msgstr "Alt"
#: ../vnc.html:93
msgid "Toggle Alt"
msgstr "切换 Alt"
#: ../vnc.html:96
msgid "Toggle Windows"
msgstr "切换窗口"
#: ../vnc.html:96
msgid "Windows"
msgstr "窗口"
#: ../vnc.html:99
msgid "Send Tab"
msgstr "发送 Tab 键"
#: ../vnc.html:99
msgid "Tab"
msgstr "Tab"
#: ../vnc.html:102
msgid "Esc"
msgstr "Esc"
#: ../vnc.html:102
msgid "Send Escape"
msgstr "发送 Escape 键"
#: ../vnc.html:105
msgid "Ctrl+Alt+Del"
msgstr "Ctrl+Alt+Del"
#: ../vnc.html:105
msgid "Send Ctrl-Alt-Del"
msgstr "发送 Ctrl+Alt+Del 键"
#: ../vnc.html:112
msgid "Shutdown/Reboot"
msgstr "关机/重启"
#: ../vnc.html:112
msgid "Shutdown/Reboot..."
msgstr "关机/重启..."
#: ../vnc.html:118
msgid "Power"
msgstr "电源"
#: ../vnc.html:120
msgid "Shutdown"
msgstr "关机"
#: ../vnc.html:121
msgid "Reboot"
msgstr "重启"
#: ../vnc.html:122
msgid "Reset"
msgstr "重置"
#: ../vnc.html:127 ../vnc.html:133
msgid "Clipboard"
msgstr "剪贴板"
#: ../vnc.html:135
#: ../vnc.html:136
msgid "Edit clipboard content in the textarea below."
msgstr "在下面的文本区域中编辑剪贴板内容。"
#: ../vnc.html:143
msgid "Full screen"
#: ../vnc.html:139
msgid "Alt"
msgstr "Alt"
#: ../vnc.html:139
msgid "Toggle Alt"
msgstr "切换 Alt"
#: ../vnc.html:142
msgid "Send Tab"
msgstr "发送 Tab 键"
#: ../vnc.html:142
msgid "Tab"
msgstr "Tab"
#: ../vnc.html:145
msgid "Esc"
msgstr "Esc"
#: ../vnc.html:145
msgid "Send Escape"
msgstr "发送 Escape 键"
#: ../vnc.html:148
msgid "Ctrl+Alt+Del"
msgstr "Ctrl+Alt+Del"
#: ../vnc.html:148
msgid "Send Ctrl-Alt-Del"
msgstr "发送 Ctrl+Alt+Del 键"
#: ../vnc.html:156
msgid "Shutdown/Reboot"
msgstr "关机/重启"
#: ../vnc.html:156
msgid "Shutdown/Reboot..."
msgstr "关机/重启..."
#: ../vnc.html:162
msgid "Power"
msgstr "电源"
#: ../vnc.html:164
msgid "Shutdown"
msgstr "关机"
#: ../vnc.html:165
msgid "Reboot"
msgstr "重启"
#: ../vnc.html:166
msgid "Reset"
msgstr "重置"
#: ../vnc.html:171 ../vnc.html:177
msgid "Clipboard"
msgstr "剪贴板"
#: ../vnc.html:181
msgid "Clear"
msgstr "清除"
#: ../vnc.html:187
msgid "Fullscreen"
msgstr "全屏"
#: ../vnc.html:148 ../vnc.html:154
#: ../vnc.html:192 ../vnc.html:199
msgid "Settings"
msgstr "设置"
#: ../vnc.html:158
msgid "Shared mode"
msgstr "分享模式"
#: ../vnc.html:161
msgid "View only"
msgstr "仅查看"
#: ../vnc.html:165
msgid "Clip to window"
msgstr "限制/裁切窗口大小"
#: ../vnc.html:168
msgid "Scaling mode:"
msgstr "缩放模式:"
#: ../vnc.html:170
msgid "None"
msgstr "无"
#: ../vnc.html:171
msgid "Local scaling"
msgstr "本地缩放"
#: ../vnc.html:172
msgid "Remote resizing"
msgstr "远程调整大小"
#: ../vnc.html:177
msgid "Advanced"
msgstr "高级"
#: ../vnc.html:180
msgid "Quality:"
msgstr "品质:"
#: ../vnc.html:184
msgid "Compression level:"
msgstr "压缩级别:"
#: ../vnc.html:189
msgid "Repeater ID:"
msgstr "中继站 ID"
#: ../vnc.html:193
msgid "WebSocket"
msgstr "WebSocket"
#: ../vnc.html:196
#: ../vnc.html:200
msgid "Encrypt"
msgstr "加密"
#: ../vnc.html:199
#: ../vnc.html:202
msgid "Shared Mode"
msgstr "分享模式"
#: ../vnc.html:205
msgid "View Only"
msgstr "仅查看"
#: ../vnc.html:209
msgid "Clip to Window"
msgstr "限制/裁切窗口大小"
#: ../vnc.html:212
msgid "Scaling Mode:"
msgstr "缩放模式:"
#: ../vnc.html:214
msgid "None"
msgstr "无"
#: ../vnc.html:215
msgid "Local Scaling"
msgstr "本地缩放"
#: ../vnc.html:216
msgid "Local Downscaling"
msgstr "降低本地尺寸"
#: ../vnc.html:217
msgid "Remote Resizing"
msgstr "远程调整大小"
#: ../vnc.html:222
msgid "Advanced"
msgstr "高级"
#: ../vnc.html:225
msgid "Local Cursor"
msgstr "本地光标"
#: ../vnc.html:229
msgid "Repeater ID:"
msgstr "中继站 ID"
#: ../vnc.html:233
msgid "WebSocket"
msgstr "WebSocket"
#: ../vnc.html:239
msgid "Host:"
msgstr "主机:"
#: ../vnc.html:203
#: ../vnc.html:243
msgid "Port:"
msgstr "端口:"
#: ../vnc.html:207
#: ../vnc.html:247
msgid "Path:"
msgstr "路径:"
#: ../vnc.html:214
msgid "Automatic reconnect"
#: ../vnc.html:254
msgid "Automatic Reconnect"
msgstr "自动重新连接"
#: ../vnc.html:217
msgid "Reconnect delay (ms):"
#: ../vnc.html:257
msgid "Reconnect Delay (ms):"
msgstr "重新连接间隔 (ms)"
#: ../vnc.html:222
msgid "Show dot when no cursor"
msgstr "无光标时显示点"
#: ../vnc.html:227
#: ../vnc.html:263
msgid "Logging:"
msgstr "日志级别:"
#: ../vnc.html:236
msgid "Version:"
msgstr "版本:"
#: ../vnc.html:244
#: ../vnc.html:275
msgid "Disconnect"
msgstr "断开连接"
#: ../vnc.html:267
#: ../vnc.html:294
msgid "Connect"
msgstr "连接"
#: ../vnc.html:276
msgid "Server identity"
msgstr "服务器身份"
#: ../vnc.html:279
msgid "The server has provided the following identifying information:"
msgstr "服务器提供了以下识别信息:"
#: ../vnc.html:283
msgid "Fingerprint:"
msgstr "指纹:"
#: ../vnc.html:286
msgid ""
"Please verify that the information is correct and press \"Approve\". "
"Otherwise press \"Reject\"."
msgstr "请核实信息是否正确,并按 “同意”,否则按 “拒绝”。"
#: ../vnc.html:291
msgid "Approve"
msgstr "同意"
#: ../vnc.html:292
msgid "Reject"
msgstr "拒绝"
#: ../vnc.html:300
msgid "Credentials"
msgstr "凭证"
#: ../vnc.html:304
msgid "Username:"
msgstr "用户名:"
#: ../vnc.html:308
msgid "Password:"
msgstr "密码:"
#: ../vnc.html:312
msgid "Send credentials"
msgstr "发送凭证"
#: ../vnc.html:321
#: ../vnc.html:318
msgid "Cancel"
msgstr "取消"
#~ msgid "Password is required"
#~ msgstr "请提供密码"
#~ msgid "Disconnect timeout"
#~ msgstr "超时断开"
#~ msgid "viewport drag"
#~ msgstr "窗口拖动"
#~ msgid "Active Mouse Button"
#~ msgstr "启动鼠标按键"
#~ msgid "No mousebutton"
#~ msgstr "禁用鼠标按键"
#~ msgid "Left mousebutton"
#~ msgstr "鼠标左键"
#~ msgid "Middle mousebutton"
#~ msgstr "鼠标中键"
#~ msgid "Right mousebutton"
#~ msgstr "鼠标右键"
#~ msgid "Clear"
#~ msgstr "清除"
#~ msgid "Local Downscaling"
#~ msgstr "降低本地尺寸"
#~ msgid "Local Cursor"
#~ msgstr "本地光标"
#~ msgid "Canvas not supported."
#~ msgstr "不支持 Canvas。"
#: ../vnc.html:334
msgid "Canvas not supported."
msgstr "不支持 Canvas。"

View File

@ -1,5 +1,5 @@
# Traditional Chinese translations for noVNC package.
# Copyright (C) 2018 The noVNC authors
# Copyright (C) 2018 The noVNC Authors
# This file is distributed under the same license as the noVNC package.
# Peter Dave Hello <hsu@peterdavehello.org>, 2018.
#
@ -77,7 +77,7 @@ msgid "Hide/Show the control bar"
msgstr "顯示/隱藏控制列"
#: ../vnc.html:106
msgid "Move/Drag viewport"
msgid "Move/Drag Viewport"
msgstr "拖放顯示範圍"
#: ../vnc.html:106
@ -109,7 +109,7 @@ msgid "Keyboard"
msgstr "鍵盤"
#: ../vnc.html:124
msgid "Show keyboard"
msgid "Show Keyboard"
msgstr "顯示鍵盤"
#: ../vnc.html:131
@ -117,7 +117,7 @@ msgid "Extra keys"
msgstr "額外按鍵"
#: ../vnc.html:131
msgid "Show extra keys"
msgid "Show Extra Keys"
msgstr "顯示額外按鍵"
#: ../vnc.html:136
@ -201,19 +201,19 @@ msgid "Settings"
msgstr "設定"
#: ../vnc.html:202
msgid "Shared mode"
msgid "Shared Mode"
msgstr "分享模式"
#: ../vnc.html:205
msgid "View only"
msgid "View Only"
msgstr "僅檢視"
#: ../vnc.html:209
msgid "Clip to window"
msgid "Clip to Window"
msgstr "限制/裁切視窗大小"
#: ../vnc.html:212
msgid "Scaling mode:"
msgid "Scaling Mode:"
msgstr "縮放模式:"
#: ../vnc.html:214
@ -221,11 +221,11 @@ msgid "None"
msgstr "無"
#: ../vnc.html:215
msgid "Local scaling"
msgid "Local Scaling"
msgstr "本機縮放"
#: ../vnc.html:216
msgid "Remote resizing"
msgid "Remote Resizing"
msgstr "遠端調整大小"
#: ../vnc.html:221
@ -257,11 +257,11 @@ msgid "Path:"
msgstr "路徑:"
#: ../vnc.html:249
msgid "Automatic reconnect"
msgid "Automatic Reconnect"
msgstr "自動重新連線"
#: ../vnc.html:252
msgid "Reconnect delay (ms):"
msgid "Reconnect Delay (ms):"
msgstr "重新連線間隔 (ms)"
#: ../vnc.html:258

View File

@ -11,7 +11,7 @@
# "vnc": "localhost:5902"
#}
#}
snapctl get services | jq -c '.[]' | while read service; do # for each service the user specified..
snapctl get services | jq -c '.[]' | while read service; do # for each service the user sepcified..
# get the important data for the service (listen port, VNC host:port)
listen_port="$(echo $service | jq --raw-output '.listen')"
vnc_host_port="$(echo $service | jq --raw-output '.vnc')" # --raw-output removes any quotation marks from the output

View File

@ -42,7 +42,7 @@ parts:
- jq
websockify:
source: https://github.com/novnc/websockify/archive/v0.13.0.tar.gz
source: https://github.com/novnc/websockify/archive/v0.12.0.tar.gz
plugin: python
stage-packages:
- python3-numpy

View File

@ -1,12 +1,3 @@
import * as chai from '../node_modules/chai/chai.js';
import sinon from '../node_modules/sinon/pkg/sinon-esm.js';
import sinonChai from '../node_modules/sinon-chai/lib/sinon-chai.js';
window.expect = chai.expect;
window.sinon = sinon;
chai.use(sinonChai);
// noVNC specific assertions
chai.use(function (_chai, utils) {
function _equal(a, b) {

View File

@ -37,15 +37,6 @@ export default class FakeWebSocket {
} else {
data = new Uint8Array(data);
}
if (this.bufferedAmount + data.length > this._sendQueue.length) {
let newlen = this._sendQueue.length;
while (this.bufferedAmount + data.length > newlen) {
newlen *= 2;
}
let newbuf = new Uint8Array(newlen);
newbuf.set(this._sendQueue);
this._sendQueue = newbuf;
}
this._sendQueue.set(data, this.bufferedAmount);
this.bufferedAmount += data.length;
}

View File

@ -1,6 +1,6 @@
/*
* noVNC: HTML5 VNC client
* Copyright (C) 2018 The noVNC authors
* Copyright (C) 2018 The noVNC Authors
* Licensed under MPL 2.0 (see LICENSE.txt)
*/

View File

@ -1,6 +1,8 @@
const expect = chai.expect;
import Base64 from '../core/base64.js';
describe('Base64 tools', function () {
describe('Base64 Tools', function () {
"use strict";
const BIN_ARR = new Array(256);

View File

@ -1,3 +1,5 @@
const expect = chai.expect;
import { isMac, isWindows, isIOS, isAndroid, isChromeOS,
isSafari, isFirefox, isChrome, isChromium, isOpera, isEdge,
isGecko, isWebKit, isBlink } from '../core/util/browser.js';

View File

@ -1,3 +1,5 @@
const expect = chai.expect;
import Websock from '../core/websock.js';
import Display from '../core/display.js';
@ -29,7 +31,7 @@ function testDecodeRect(decoder, x, y, width, height, data, display, depth) {
return done;
}
describe('CopyRect decoder', function () {
describe('CopyRect Decoder', function () {
let decoder;
let display;

View File

@ -1,3 +1,5 @@
const expect = chai.expect;
import { inflateInit, inflate } from "../vendor/pako/lib/zlib/inflate.js";
import ZStream from "../vendor/pako/lib/zlib/zstream.js";
import Deflator from "../core/deflator.js";

View File

@ -1,7 +1,9 @@
const expect = chai.expect;
import Base64 from '../core/base64.js';
import Display from '../core/display.js';
describe('Display/Canvas helper', function () {
describe('Display/Canvas Helper', function () {
const checkedData = new Uint8ClampedArray([
0x00, 0x00, 0xff, 255, 0x00, 0x00, 0xff, 255, 0x00, 0xff, 0x00, 255, 0x00, 0xff, 0x00, 255,
0x00, 0x00, 0xff, 255, 0x00, 0x00, 0xff, 255, 0x00, 0xff, 0x00, 255, 0x00, 0xff, 0x00, 255,

View File

@ -1,3 +1,5 @@
const expect = chai.expect;
import EventTargetMixin from '../core/util/eventtarget.js';
import GestureHandler from '../core/input/gesturehandler.js';

View File

@ -1,241 +0,0 @@
import Websock from '../core/websock.js';
import Display from '../core/display.js';
import { H264Parser } from '../core/decoders/h264.js';
import H264Decoder from '../core/decoders/h264.js';
import Base64 from '../core/base64.js';
import { supportsWebCodecsH264Decode } from '../core/util/browser.js';
import FakeWebSocket from './fake.websocket.js';
/* This is a 3 frame 16x16 video where the first frame is solid red, the second
* is solid green and the third is solid blue.
*
* The colour space is BT.709. It is encoded into the stream.
*/
const redGreenBlue16x16Video = new Uint8Array(Base64.decode(
'AAAAAWdCwBTZnpuAgICgAAADACAAAAZB4oVNAAAAAWjJYyyAAAABBgX//4HcRem95tlIt5Ys' +
'2CDZI+7veDI2NCAtIGNvcmUgMTY0IHIzMTA4IDMxZTE5ZjkgLSBILjI2NC9NUEVHLTQgQVZD' +
'IGNvZGVjIC0gQ29weWxlZnQgMjAwMy0yMDIzIC0gaHR0cDovL3d3dy52aWRlb2xhbi5vcmcv' +
'eDI2NC5odG1sIC0gb3B0aW9uczogY2FiYWM9MCByZWY9NSBkZWJsb2NrPTE6MDowIGFuYWx5' +
'c2U9MHgxOjB4MTExIG1lPWhleCBzdWJtZT04IHBzeT0xIHBzeV9yZD0xLjAwOjAuMDAgbWl4' +
'ZWRfcmVmPTEgbWVfcmFuZ2U9MTYgY2hyb21hX21lPTEgdHJlbGxpcz0yIDh4OGRjdD0wIGNx' +
'bT0wIGRlYWR6b25lPTIxLDExIGZhc3RfcHNraXA9MSBjaHJvbWFfcXBfb2Zmc2V0PS0yIHRo' +
'cmVhZHM9MSBsb29rYWhlYWRfdGhyZWFkcz0xIHNsaWNlZF90aHJlYWRzPTAgbnI9MCBkZWNp' +
'bWF0ZT0xIGludGVybGFjZWQ9MCBibHVyYXlfY29tcGF0PTAgY29uc3RyYWluZWRfaW50cmE9' +
'MCBiZnJhbWVzPTAgd2VpZ2h0cD0wIGtleWludD1pbmZpbml0ZSBrZXlpbnRfbWluPTI1IHNj' +
'ZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NTAgcmM9YWJyIG1idHJl' +
'ZT0xIGJpdHJhdGU9NDAwIHJhdGV0b2w9MS4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02' +
'OSBxcHN0ZXA9NCBpcF9yYXRpbz0xLjQwIGFxPTE6MS4wMACAAAABZYiEBrxmKAAPVccAAS04' +
'4AA5DRJMnkycJk4TPwAAAAFBiIga8RigADVVHAAGaGOAANtuAAAAAUGIkBr///wRRQABVf8c' +
'AAcho4AAiD4='));
function createSolidColorFrameBuffer(color, width, height) {
const r = (color >> 24) & 0xff;
const g = (color >> 16) & 0xff;
const b = (color >> 8) & 0xff;
const a = (color >> 0) & 0xff;
const size = width * height * 4;
let array = new Uint8ClampedArray(size);
for (let i = 0; i < size / 4; ++i) {
array[i * 4 + 0] = r;
array[i * 4 + 1] = g;
array[i * 4 + 2] = b;
array[i * 4 + 3] = a;
}
return array;
}
function makeMessageHeader(length, resetContext, resetAllContexts) {
let flags = 0;
if (resetContext) {
flags |= 1;
}
if (resetAllContexts) {
flags |= 2;
}
let header = new Uint8Array(8);
let i = 0;
let appendU32 = (v) => {
header[i++] = (v >> 24) & 0xff;
header[i++] = (v >> 16) & 0xff;
header[i++] = (v >> 8) & 0xff;
header[i++] = v & 0xff;
};
appendU32(length);
appendU32(flags);
return header;
}
function wrapRectData(data, resetContext, resetAllContexts) {
let header = makeMessageHeader(data.length, resetContext, resetAllContexts);
return Array.from(header).concat(Array.from(data));
}
function testDecodeRect(decoder, x, y, width, height, data, display, depth) {
let sock;
let done = false;
sock = new Websock;
sock.open("ws://example.com");
sock.on('message', () => {
done = decoder.decodeRect(x, y, width, height, sock, display, depth);
});
// Empty messages are filtered at multiple layers, so we need to
// do a direct call
if (data.length === 0) {
done = decoder.decodeRect(x, y, width, height, sock, display, depth);
} else {
sock._websocket._receiveData(new Uint8Array(data));
}
display.flip();
return done;
}
function almost(a, b) {
let diff = Math.abs(a - b);
return diff < 5;
}
describe('H.264 parser', function () {
it('should parse constrained baseline video', function () {
let parser = new H264Parser(redGreenBlue16x16Video);
let frame = parser.parse();
expect(frame).to.have.property('key', true);
expect(parser).to.have.property('profileIdc', 66);
expect(parser).to.have.property('constraintSet', 192);
expect(parser).to.have.property('levelIdc', 20);
frame = parser.parse();
expect(frame).to.have.property('key', false);
frame = parser.parse();
expect(frame).to.have.property('key', false);
frame = parser.parse();
expect(frame).to.be.null;
});
});
describe('H.264 decoder unit test', function () {
let decoder;
beforeEach(function () {
if (!supportsWebCodecsH264Decode) {
this.skip();
return;
}
decoder = new H264Decoder();
});
it('creates and resets context', function () {
let context = decoder._getContext(1, 2, 3, 4);
expect(context._width).to.equal(3);
expect(context._height).to.equal(4);
expect(decoder._contexts).to.not.be.empty;
decoder._resetContext(1, 2, 3, 4);
expect(decoder._contexts).to.be.empty;
});
it('resets all contexts', function () {
decoder._getContext(0, 0, 1, 1);
decoder._getContext(2, 2, 1, 1);
expect(decoder._contexts).to.not.be.empty;
decoder._resetAllContexts();
expect(decoder._contexts).to.be.empty;
});
it('caches contexts', function () {
let c1 = decoder._getContext(1, 2, 3, 4);
c1.lastUsed = 1;
let c2 = decoder._getContext(1, 2, 3, 4);
c2.lastUsed = 2;
expect(Object.keys(decoder._contexts).length).to.equal(1);
expect(c1.lastUsed).to.equal(c2.lastUsed);
});
it('deletes oldest context', function () {
for (let i = 0; i < 65; ++i) {
let context = decoder._getContext(i, 0, 1, 1);
context.lastUsed = i;
}
expect(decoder._findOldestContextId()).to.equal('1,0,1,1');
expect(decoder._contexts[decoder._contextId(0, 0, 1, 1)]).to.be.undefined;
expect(decoder._contexts[decoder._contextId(1, 0, 1, 1)]).to.not.be.null;
expect(decoder._contexts[decoder._contextId(63, 0, 1, 1)]).to.not.be.null;
expect(decoder._contexts[decoder._contextId(64, 0, 1, 1)]).to.not.be.null;
});
});
describe('H.264 decoder functional test', function () {
let decoder;
let display;
before(FakeWebSocket.replace);
after(FakeWebSocket.restore);
beforeEach(function () {
if (!supportsWebCodecsH264Decode) {
this.skip();
return;
}
decoder = new H264Decoder();
display = new Display(document.createElement('canvas'));
display.resize(16, 16);
});
it('should handle H.264 rect', async function () {
let data = wrapRectData(redGreenBlue16x16Video, false, false);
let done = testDecodeRect(decoder, 0, 0, 16, 16, data, display, 24);
expect(done).to.be.true;
await display.flush();
let targetData = createSolidColorFrameBuffer(0x0000ffff, 16, 16);
expect(display).to.have.displayed(targetData, almost);
});
it('should handle specific context reset', async function () {
let data = wrapRectData(redGreenBlue16x16Video, false, false);
let done = testDecodeRect(decoder, 0, 0, 16, 16, data, display, 24);
expect(done).to.be.true;
await display.flush();
let targetData = createSolidColorFrameBuffer(0x0000ffff, 16, 16);
expect(display).to.have.displayed(targetData, almost);
data = wrapRectData([], true, false);
done = testDecodeRect(decoder, 0, 0, 16, 16, data, display, 24);
expect(done).to.be.true;
await display.flush();
expect(decoder._contexts[decoder._contextId(0, 0, 16, 16)]._decoder).to.be.null;
});
it('should handle global context reset', async function () {
let data = wrapRectData(redGreenBlue16x16Video, false, false);
let done = testDecodeRect(decoder, 0, 0, 16, 16, data, display, 24);
expect(done).to.be.true;
await display.flush();
let targetData = createSolidColorFrameBuffer(0x0000ffff, 16, 16);
expect(display).to.have.displayed(targetData, almost);
data = wrapRectData([], false, true);
done = testDecodeRect(decoder, 0, 0, 16, 16, data, display, 24);
expect(done).to.be.true;
await display.flush();
expect(decoder._contexts[decoder._contextId(0, 0, 16, 16)]._decoder).to.be.null;
});
});

View File

@ -1,3 +1,5 @@
const expect = chai.expect;
import keysyms from '../core/input/keysymdef.js';
import * as KeyboardUtil from "../core/input/util.js";

View File

@ -1,3 +1,5 @@
const expect = chai.expect;
import Websock from '../core/websock.js';
import Display from '../core/display.js';
@ -36,7 +38,7 @@ function push32(arr, num) {
num & 0xFF);
}
describe('Hextile decoder', function () {
describe('Hextile Decoder', function () {
let decoder;
let display;

View File

@ -1,3 +1,5 @@
const expect = chai.expect;
import { deflateInit, deflate, Z_FULL_FLUSH } from "../vendor/pako/lib/zlib/deflate.js";
import ZStream from "../vendor/pako/lib/zlib/zstream.js";
import Inflator from "../core/inflator.js";

Some files were not shown because too many files have changed in this diff Show More