]> git.proxmox.com Git - mirror_novnc.git/log
mirror_novnc.git
6 years agoUpdate the noVNC translation part
Zhou Chaolin [Mon, 23 Apr 2018 18:29:51 +0000 (02:29 +0800)]
Update the noVNC translation part

fix the specification in zh_CN.po

6 years agoMerge pull request #1048 from ghostplant/master
Samuel Mannehed [Mon, 9 Apr 2018 07:26:52 +0000 (09:26 +0200)]
Merge pull request #1048 from ghostplant/master

Add translation in zh_CN

6 years agoAdd translation in zh_CN
CUI Wei [Sat, 7 Apr 2018 10:16:00 +0000 (06:16 -0400)]
Add translation in zh_CN

Signed-off-by: CUI Wei <ghostplant@qq.com>
6 years agoClarify which Chinese translation we have
Pierre Ossman [Tue, 3 Apr 2018 12:51:12 +0000 (14:51 +0200)]
Clarify which Chinese translation we have

Chinese has several writing systems so we need to be clear which one
our translation covers. The one we currently have is for Traditional
Chinese so make sure it uses the matching language tag.

6 years agoOnly show error stack if it is not empty
Pierre Ossman [Wed, 21 Mar 2018 14:33:14 +0000 (15:33 +0100)]
Only show error stack if it is not empty

Parsing errors will not have a stack, and we don't want an empty
box in those cases.

6 years agoMove VERSION to top-level
Samuel Mannehed [Thu, 15 Mar 2018 13:33:09 +0000 (14:33 +0100)]
Move VERSION to top-level

6 years agoRemove docs/release.txt
Samuel Mannehed [Thu, 15 Mar 2018 13:28:08 +0000 (14:28 +0100)]
Remove docs/release.txt

Instructions has been moved to the wiki:

https://github.com/novnc/noVNC/wiki/Development:-Making-a-release

6 years agoFix docs/VERSION
Samuel Mannehed [Thu, 15 Mar 2018 08:28:18 +0000 (09:28 +0100)]
Fix docs/VERSION

6 years agoMerge branches 'ffalt' and 'altgr' of https://github.com/CendioOssman/noVNC
Pierre Ossman [Tue, 13 Mar 2018 15:03:01 +0000 (16:03 +0100)]
Merge branches 'ffalt' and 'altgr' of https://github.com/CendioOssman/noVNC

6 years agoWork around broken Alt keyup in Firefox
Pierre Ossman [Fri, 9 Mar 2018 15:51:23 +0000 (16:51 +0100)]
Work around broken Alt keyup in Firefox

Firefox no longer sends keyup events properly for the Alt keys. Try
to sniff out the state of the Alt key by monitoring other events that
include its state.

6 years agoGet localStorage tests running on more browsers
Pierre Ossman [Fri, 9 Mar 2018 11:15:21 +0000 (12:15 +0100)]
Get localStorage tests running on more browsers

6 years agoBetter detection of AltGr on Windows
Pierre Ossman [Fri, 9 Mar 2018 11:14:23 +0000 (12:14 +0100)]
Better detection of AltGr on Windows

Try to properly detect the fake CtrlL+AltR sequence Windows sends
when pressing AltGr. This allows us to send more accurate key
events over to the server.

6 years agoHandle _keyDownList in _sendKeyEvent()
Pierre Ossman [Fri, 9 Mar 2018 11:13:21 +0000 (12:13 +0100)]
Handle _keyDownList in _sendKeyEvent()

This makes sure it never gets out of sync with what we've actually
sent.

6 years agoOnly disable animation when element is displayed
Samuel Mannehed [Thu, 8 Mar 2018 15:52:53 +0000 (16:52 +0100)]
Only disable animation when element is displayed

The transitionend event will not fire when display=none. This can
prevent the initial animation for hiding the controlbar in some cases.

6 years agoMerge pull request #989 from PeterDaveHelloKitchen/update-travis-ci
Samuel Mannehed [Tue, 6 Mar 2018 15:22:27 +0000 (16:22 +0100)]
Merge pull request #989 from PeterDaveHelloKitchen/update-travis-ci

Update Travis CI configuration

6 years agoMerge branch 'userequire' of https://github.com/CendioOssman/noVNC
Pierre Ossman [Wed, 28 Feb 2018 12:34:28 +0000 (13:34 +0100)]
Merge branch 'userequire' of https://github.com/CendioOssman/noVNC

6 years agoOnly use converted modules as legacy fallback for app
Pierre Ossman [Mon, 11 Dec 2017 15:35:40 +0000 (16:35 +0100)]
Only use converted modules as legacy fallback for app

Several of the major browsers now natively support modules, so we
only need the converted modules to handle older browsers. Make sure
it's only used when necessary.

6 years agoMerge branch 'settings' of https://github.com/andrwwbstr/noVNC
Pierre Ossman [Wed, 28 Feb 2018 11:57:48 +0000 (12:57 +0100)]
Merge branch 'settings' of https://github.com/andrwwbstr/noVNC

6 years agoSeparate Tight PNG in stats output
Pierre Ossman [Tue, 27 Feb 2018 09:52:02 +0000 (10:52 +0100)]
Separate Tight PNG in stats output

6 years agoEnforce Tight PNG restrictions
Pierre Ossman [Tue, 27 Feb 2018 09:50:13 +0000 (10:50 +0100)]
Enforce Tight PNG restrictions

Tight PNG rects cannot use the basic compression variants, and PNG
cannot be used in a standard Tight rect.

This is a partial revert of 3e8b26a based on better understanding
of the encoding.

6 years agoadd encoding support for TightPNG
Leslie Qi Wang [Fri, 23 Feb 2018 18:36:15 +0000 (10:36 -0800)]
add encoding support for TightPNG

6 years agonoVNC 1.0.0 v1.0.0
Pierre Ossman [Thu, 22 Feb 2018 13:10:10 +0000 (14:10 +0100)]
noVNC 1.0.0

6 years agoMove writeSetting from updateSetting to initSetting
Andrew Webster [Thu, 1 Feb 2018 16:46:38 +0000 (11:46 -0500)]
Move writeSetting from updateSetting to initSetting

initSetting was the only place that supplied a 'value' to
updateSetting.  So move it to clean up updateSetting.

6 years agoUse localstorage only to initialize settings map
Andrew Webster [Thu, 25 Jan 2018 20:23:08 +0000 (15:23 -0500)]
Use localstorage only to initialize settings map

This only reads from localstorage in order to initialize the settings
map.  After initializaton, reads will return the value from the map.

When writing a value, the settings map and the local storage
are updated, unless the setting is a default value or derived from
the query string.

This has a few advantages:
 1. Saved settings will not be overridden by settings specified in
the query string.  This means a setting could be temporarily changed
using the query string, but once removed from the query string, the
setting would return back to what the user selected.
 2. Default values will not be saved.  If a user has always used
the default value for a setting, then they can move to a new version
with different defaults without clearing localstorage.
 3. Changes made to localstorage in a session running in a different
window will not affect the settings in the current window (until
the page is refreshed).

Regarding eraseSetting:

It is possible that another tab could change the value, leading
to an unexpected value change in the tab that deletes.  However,
this function is currently unused, so this will be evaluted if
and when it used.

6 years agoAdd Spanish and Turkish JSON files
Pierre Ossman [Wed, 7 Feb 2018 08:33:13 +0000 (09:33 +0100)]
Add Spanish and Turkish JSON files

6 years agoDon't crash on translation errors
Pierre Ossman [Wed, 7 Feb 2018 08:23:45 +0000 (09:23 +0100)]
Don't crash on translation errors

A non-translated interface is better than no interface at all.

6 years agonoVNC 1.0.0 beta
Pierre Ossman [Fri, 2 Feb 2018 13:05:51 +0000 (14:05 +0100)]
noVNC 1.0.0 beta

6 years agoRemove as3crypto name from README.md
Pierre Ossman [Fri, 2 Feb 2018 13:04:12 +0000 (14:04 +0100)]
Remove as3crypto name from README.md

We stopped shipping that many years ago.

6 years agoMerge pull request #1009 from juanjoDiaz/move_browser_checks
Solly Ross [Thu, 1 Feb 2018 15:33:28 +0000 (10:33 -0500)]
Merge pull request #1009 from juanjoDiaz/move_browser_checks

Move browser checks to browser.js

6 years agoAdd Turkish translation
Ömer ÇAKMAK [Fri, 5 Jan 2018 16:07:00 +0000 (19:07 +0300)]
Add Turkish translation

6 years agoMerge pull request #1007 from juanjoDiaz/remove_jshints_comments
Solly Ross [Wed, 31 Jan 2018 15:58:20 +0000 (10:58 -0500)]
Merge pull request #1007 from juanjoDiaz/remove_jshints_comments

Remove jshint comments

6 years agoRemove jshint comments
Juanjo Diaz [Tue, 30 Jan 2018 16:07:57 +0000 (08:07 -0800)]
Remove jshint comments

6 years agoUpdate translation template file
Pierre Ossman [Wed, 31 Jan 2018 15:29:52 +0000 (16:29 +0100)]
Update translation template file

6 years agoAdd Spanish translation
Juanjo Diaz [Wed, 31 Jan 2018 03:09:46 +0000 (19:09 -0800)]
Add Spanish translation

6 years agoMerge pull request #1008 from juanjoDiaz/remove_unnecesary_base64_dependency
Solly Ross [Tue, 30 Jan 2018 18:41:28 +0000 (13:41 -0500)]
Merge pull request #1008 from juanjoDiaz/remove_unnecesary_base64_dependency

Remove unnecessary base64 dependency

6 years agoMerge pull request #1011 from juanjoDiaz/remove_console_statements
Solly Ross [Tue, 30 Jan 2018 18:26:48 +0000 (13:26 -0500)]
Merge pull request #1011 from juanjoDiaz/remove_console_statements

Remove console statements

6 years agoRemove console statements
Juanjo Diaz [Tue, 30 Jan 2018 16:53:38 +0000 (08:53 -0800)]
Remove console statements

6 years agoRemove unnecessary Log dependency in events.js
Juanjo Diaz [Tue, 30 Jan 2018 16:38:46 +0000 (08:38 -0800)]
Remove unnecessary Log dependency in events.js

6 years agoMove browser checks to browser.js
Juanjo Diaz [Tue, 30 Jan 2018 16:35:47 +0000 (08:35 -0800)]
Move browser checks to browser.js

6 years agoRemove unnecessary base64 dependency
Juanjo Diaz [Tue, 30 Jan 2018 16:19:39 +0000 (08:19 -0800)]
Remove unnecessary base64 dependency

6 years agoBetter cleanup in vnc_playback.html
Pierre Ossman [Fri, 26 Jan 2018 10:07:58 +0000 (11:07 +0100)]
Better cleanup in vnc_playback.html

Makes sure the cleanup is also properly exercised as part of the
testing.

6 years agoUpdate vnc_playback.html to follow current API
Pierre Ossman [Fri, 26 Jan 2018 10:07:14 +0000 (11:07 +0100)]
Update vnc_playback.html to follow current API

We had tried to update this along the way, but a bunch of things
were overlooked. Should be fully functional again now.

6 years agoRemove old test pages
Pierre Ossman [Thu, 25 Jan 2018 15:14:02 +0000 (16:14 +0100)]
Remove old test pages

These are not maintained or used anymore, so just remove them to
avoid confusion.

6 years agoDrop UI.rfb reference on all disconnects
Pierre Ossman [Thu, 25 Jan 2018 14:32:22 +0000 (15:32 +0100)]
Drop UI.rfb reference on all disconnects

We can be disconnected because of server reasons, not just because
someone clicked the disconnect button. Make sure we clean up the
reference and get a proper state in those cases as well.

6 years agoTemporarily disable SVG favicon
Pierre Ossman [Thu, 25 Jan 2018 14:19:12 +0000 (15:19 +0100)]
Temporarily disable SVG favicon

Firefox currently has a bug where it prefers the SVG icon over a
more exact size. This results in a poorly rendered, downscaled icon.
So disable the SVG icon until this has been fixed.

Firefox bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=1419039

6 years agoApply translations on input type submit
Samuel Mannehed [Wed, 24 Jan 2018 12:00:48 +0000 (13:00 +0100)]
Apply translations on input type submit

Commit 3729976 only updated xgettext.html which generates the .pot file.
This commit also makes sure that the actual translations are applied to
the interface.

Fixes #997

6 years agoShow/hide mouse button selector in updateViewOnly
Samuel Mannehed [Fri, 12 Jan 2018 00:38:22 +0000 (01:38 +0100)]
Show/hide mouse button selector in updateViewOnly

Before this commit, the mouse button selector was hidden when the user
clicked it in view only..

6 years agoUpdate interface on view only toggle
Samuel Mannehed [Fri, 12 Jan 2018 00:12:22 +0000 (01:12 +0100)]
Update interface on view only toggle

Instead of waiting for updateVisualState() to be called in order for the
interface to update, we can call it directly in updateViewOnly(). This
is a better placement logically as well. Another upside of this is that
we can call updateVisualState() earlier on connect, that allows for the
"connecting"-throbber to be shown quicker.

6 years agoMerge pull request #996 from PeterDaveHelloKitchen/zh-tw-translation
Samuel Mannehed [Thu, 11 Jan 2018 22:51:39 +0000 (23:51 +0100)]
Merge pull request #996 from PeterDaveHelloKitchen/zh-tw-translation

Add Chinese (Traditional) translation

6 years agoProcess input type submit for translations
Samuel Mannehed [Thu, 11 Jan 2018 00:10:59 +0000 (01:10 +0100)]
Process input type submit for translations

Fixes #997

6 years agoMerge pull request #991 from PeterDaveHelloKitchen/README.md-Table-of-Contents
Solly Ross [Wed, 10 Jan 2018 18:27:32 +0000 (13:27 -0500)]
Merge pull request #991 from PeterDaveHelloKitchen/README.md-Table-of-Contents

Add README.md "Table of Contents" for readability

6 years agoMerge pull request #998 from novnc/bug/ie11-tests-slice
Solly Ross [Wed, 10 Jan 2018 17:48:16 +0000 (12:48 -0500)]
Merge pull request #998 from novnc/bug/ie11-tests-slice

Fix slice usage in display tests on IE11

6 years agoFix slice usage in display tests on IE11
Solly Ross [Wed, 10 Jan 2018 16:08:21 +0000 (11:08 -0500)]
Fix slice usage in display tests on IE11

IE11 doesn't support the `slice` method on ArrayBufferViews, so
we have to use the old `Array.prototype.slice.call` trick in the
tests instead.

6 years agoAdd Chinese (Traditional) translation
Peter Dave Hello [Tue, 9 Jan 2018 16:50:36 +0000 (00:50 +0800)]
Add Chinese (Traditional) translation

6 years agoAdd README.md "Table of Contents" for readability
Peter Dave Hello [Tue, 9 Jan 2018 02:52:59 +0000 (10:52 +0800)]
Add README.md "Table of Contents" for readability

6 years agoUse node.js 6 instead 6.1 to have the latest v6.x
Peter Dave Hello [Tue, 9 Jan 2018 02:42:43 +0000 (10:42 +0800)]
Use node.js 6 instead 6.1 to have the latest v6.x

6 years agoDon't include icons Makefile when packaging
Pierre Ossman [Sat, 9 Dec 2017 13:14:23 +0000 (14:14 +0100)]
Don't include icons Makefile when packaging

6 years agoRemove intermediate files when bundling
Pierre Ossman [Sat, 9 Dec 2017 13:14:04 +0000 (14:14 +0100)]
Remove intermediate files when bundling

6 years agoConvert use_require.js to use promises
Pierre Ossman [Sat, 9 Dec 2017 12:46:21 +0000 (13:46 +0100)]
Convert use_require.js to use promises

We had some race conditions between the callbacks that could cause
failures. Order everything properly using promises.

6 years agoFix view_only setting with autoconnect (#985)
Deni42 [Fri, 5 Jan 2018 11:05:17 +0000 (12:05 +0100)]
Fix view_only setting with autoconnect (#985)

updateVisualState() and updateViewOnly() requires an initiated UI.rfb reference, the calls in connect() was made too early.

6 years agoAdd test for 16x16 tiles
Pierre Ossman [Thu, 14 Dec 2017 11:59:25 +0000 (12:59 +0100)]
Add test for 16x16 tiles

We have a special cache and therefore special code paths that need
to be tested when rendering 16x16 tiles.

6 years agoSimpler reporting when display output size mismatches
Pierre Ossman [Thu, 14 Dec 2017 11:58:57 +0000 (12:58 +0100)]
Simpler reporting when display output size mismatches

6 years agoMerge branch 'master' of https://github.com/josiah2009/noVNC
Pierre Ossman [Thu, 14 Dec 2017 11:50:38 +0000 (12:50 +0100)]
Merge branch 'master' of https://github.com/josiah2009/noVNC

6 years agoOnly connect if we don't have an rfb object
Samuel Mannehed [Thu, 14 Dec 2017 11:16:45 +0000 (12:16 +0100)]
Only connect if we don't have an rfb object

Each connection creates a new RFB object. Fixes #978.

6 years agoThrow away the reference to RFB on disconnect
Samuel Mannehed [Thu, 14 Dec 2017 11:15:56 +0000 (12:15 +0100)]
Throw away the reference to RFB on disconnect

6 years agoFix disconnect crash when screen doesn't exist
Samuel Mannehed [Tue, 12 Dec 2017 17:25:20 +0000 (18:25 +0100)]
Fix disconnect crash when screen doesn't exist

The function removeChild throws an exception when the element specified
doesn't exist. This can happen when opening the websocket throws an
exception during connect. Fixes issue #979

6 years agoMake error more specific at connection failure
Samuel Mannehed [Tue, 12 Dec 2017 15:14:43 +0000 (16:14 +0100)]
Make error more specific at connection failure

The UI does after all have enough information to determine if the
disconnection event was received before or after we were connected. If
we were never connected at all, we should adapt the error message to
reflect this.

6 years agoMerge branch 'docs' of https://github.com/CendioOssman/noVNC
Pierre Ossman [Tue, 12 Dec 2017 11:41:30 +0000 (12:41 +0100)]
Merge branch 'docs' of https://github.com/CendioOssman/noVNC

6 years agoAdd documentation for integrating noVNC
Pierre Ossman [Fri, 8 Dec 2017 15:25:41 +0000 (16:25 +0100)]
Add documentation for integrating noVNC

6 years agoPassword prompt now comes after connect
Pierre Ossman [Fri, 8 Dec 2017 15:25:14 +0000 (16:25 +0100)]
Password prompt now comes after connect

6 years agoDon't mention websockify like it's included
Pierre Ossman [Fri, 8 Dec 2017 15:24:35 +0000 (16:24 +0100)]
Don't mention websockify like it's included

We split it off to its own thing some time ago, so let's refer to
it that way.

6 years agoMerge branch 'resize' of https://github.com/CendioOssman/noVNC
Pierre Ossman [Mon, 11 Dec 2017 15:48:54 +0000 (16:48 +0100)]
Merge branch 'resize' of https://github.com/CendioOssman/noVNC

6 years agoMake browser requirements more vague
Pierre Ossman [Fri, 8 Dec 2017 15:23:56 +0000 (16:23 +0100)]
Make browser requirements more vague

We have trouble keeping track of things, so state something closer
to reality.

6 years agoUpdate licensing information
Pierre Ossman [Fri, 8 Dec 2017 15:14:38 +0000 (16:14 +0100)]
Update licensing information

The first page now points to the more complete licensing document,
and some no longer used licenses have been removed.

6 years agoUpdate feature list
Pierre Ossman [Fri, 8 Dec 2017 15:14:05 +0000 (16:14 +0100)]
Update feature list

It wasn't reflecting the current state of things correctly.

6 years agoImprove references to contributing to noVNC
Pierre Ossman [Fri, 8 Dec 2017 15:12:43 +0000 (16:12 +0100)]
Improve references to contributing to noVNC

6 years agoAvoid linking to individual wiki pages
Pierre Ossman [Fri, 8 Dec 2017 15:12:19 +0000 (16:12 +0100)]
Avoid linking to individual wiki pages

It gets crowded and the wiki might have changed since this document
was updated. Keep a general link to the wiki instead.

6 years agoDirect questions to the forum rather than the tracker
Pierre Ossman [Fri, 8 Dec 2017 15:07:51 +0000 (16:07 +0100)]
Direct questions to the forum rather than the tracker

6 years agoClarify that noVNC is both an app and a lib
Pierre Ossman [Fri, 8 Dec 2017 15:06:50 +0000 (16:06 +0100)]
Clarify that noVNC is both an app and a lib

6 years agoRemove contributing guidelines
Pierre Ossman [Fri, 8 Dec 2017 13:45:32 +0000 (14:45 +0100)]
Remove contributing guidelines

We already have better guidelines in the wiki, and it is better
kept relevant there than included with releases.

6 years agoMerge branch 'german' of https://github.com/flumm/noVNC
Pierre Ossman [Fri, 8 Dec 2017 09:34:45 +0000 (10:34 +0100)]
Merge branch 'german' of https://github.com/flumm/noVNC

6 years agoAdd scale ability to vnc_lite.html
Pierre Ossman [Fri, 24 Nov 2017 14:39:26 +0000 (15:39 +0100)]
Add scale ability to vnc_lite.html

6 years agoMove resize handling in to RFB object
Pierre Ossman [Fri, 24 Nov 2017 14:25:23 +0000 (15:25 +0100)]
Move resize handling in to RFB object

Makes the API simpler and makes it easier for other frontends to
get this functionality.

6 years agoDon't send pointer event on end of drag
Pierre Ossman [Thu, 30 Nov 2017 15:11:23 +0000 (16:11 +0100)]
Don't send pointer event on end of drag

We should only send an event to the server if we didn't actually
end up dragging the viewport.

6 years agoForced cleanup of RFB objects in tests
Pierre Ossman [Wed, 29 Nov 2017 15:37:35 +0000 (16:37 +0100)]
Forced cleanup of RFB objects in tests

We need to make sure RFB objects are properly disposed or they
might have event listeners and other stuff hanging around that can
influence subsequent tests.

6 years agoInitalize cached 16x16 tile.
Josiah White [Thu, 30 Nov 2017 08:17:02 +0000 (03:17 -0500)]
Initalize cached 16x16 tile.

6 years agoRemove noisy websock debug logging
Pierre Ossman [Fri, 24 Nov 2017 12:10:35 +0000 (13:10 +0100)]
Remove noisy websock debug logging

It generates too many log lines that it drowns out everything else.

6 years agoupdate german translations
Dominik Csapak [Fri, 24 Nov 2017 07:26:37 +0000 (08:26 +0100)]
update german translations

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
6 years agoMerge branch 'master' of https://github.com/mariuszjamro/noVNC
Pierre Ossman [Thu, 23 Nov 2017 14:22:50 +0000 (15:22 +0100)]
Merge branch 'master' of https://github.com/mariuszjamro/noVNC

6 years agoMerge branch 'greek' of https://github.com/kosmasgiannis/noVNC
Pierre Ossman [Thu, 23 Nov 2017 14:22:26 +0000 (15:22 +0100)]
Merge branch 'greek' of https://github.com/kosmasgiannis/noVNC

6 years agoUpdate polish translations to match recent code changes
Mariusz Jamro [Tue, 21 Nov 2017 18:56:43 +0000 (19:56 +0100)]
Update polish translations to match recent code changes

6 years agoDon't log WebSocket close by default
Pierre Ossman [Mon, 20 Nov 2017 14:21:59 +0000 (15:21 +0100)]
Don't log WebSocket close by default

This is an expected event so it shouldn't be logged by default.

6 years agoGreek translations revised
Giannis Kosmas [Fri, 17 Nov 2017 19:51:41 +0000 (21:51 +0200)]
Greek translations revised

6 years agoUpdate browser requirements
Samuel Mannehed [Fri, 17 Nov 2017 18:24:26 +0000 (19:24 +0100)]
Update browser requirements

6 years agoMerge pull request #950 from samhed/disconnectapi
Samuel Mannehed [Fri, 17 Nov 2017 10:01:11 +0000 (11:01 +0100)]
Merge pull request #950 from samhed/disconnectapi

Abstract information from RFB to the UI

6 years agoMove localization.js to app
Samuel Mannehed [Mon, 13 Nov 2017 11:12:41 +0000 (12:12 +0100)]
Move localization.js to app

Since it is no longer used in core. Also splits localization tests into
a separate file.

6 years agoMove UI.cancelReconnect() to related functions
Samuel Mannehed [Sat, 11 Nov 2017 01:31:19 +0000 (02:31 +0100)]
Move UI.cancelReconnect() to related functions

6 years agoDont overwrite more severe visible statuses
Samuel Mannehed [Sat, 11 Nov 2017 00:59:13 +0000 (01:59 +0100)]
Dont overwrite more severe visible statuses

And only show the first error. This means that if UI.showStatus() is
called for a new error while one error is already showing, the new
error will not be shown. However, if a warning was showing and a new
error comes up, the warning will be overwritten.

6 years agoAbstract RFB errors to avoid sending strings
Samuel Mannehed [Sat, 11 Nov 2017 00:48:47 +0000 (01:48 +0100)]
Abstract RFB errors to avoid sending strings

The API allowed strings to be passed from the RFB module to the
application using the disconnect reason. This caused problems since
the application didn't have control over translations for these
strings.

Most of the information being passed using this string was very
technical and not helpful to the end user. One exception to this was
the security result information regarding for example authentication
failures. The protocol allows the VNC server to pass a string
directly to the user in the security result.

So the disconnect reason is replaced by a boolean saying if the
disconnection was clean or not. And for the security result information
from the server, a new event has been added.

6 years agoReplace updatestate event with connect
Samuel Mannehed [Fri, 10 Nov 2017 11:52:39 +0000 (12:52 +0100)]
Replace updatestate event with connect

Instead of exposing all the internal connection states, the RFB module
will now only send events on connect and on disconnect. This makes it
simpler for the application and gets rid of the double events that were
being sent on disconnect (previously updatestate and disconnect).