Commit Graph

1604 Commits

Author SHA1 Message Date
Pierre Ossman
8aad8f269c Merge branch 'settings' of https://github.com/andrwwbstr/noVNC 2018-02-28 12:57:48 +01:00
Pierre Ossman
e1802cac7f Separate Tight PNG in stats output 2018-02-27 10:52:02 +01:00
Pierre Ossman
5bdcf5d31c 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.
2018-02-27 10:50:13 +01:00
Leslie Qi Wang
2c813a33fe add encoding support for TightPNG 2018-02-23 10:38:17 -08:00
Pierre Ossman
e91a095ad6 noVNC 1.0.0 v1.0.0 2018-02-22 14:10:10 +01:00
Andrew Webster
8ad8f15cf6 Move writeSetting from updateSetting to initSetting
initSetting was the only place that supplied a 'value' to
updateSetting.  So move it to clean up updateSetting.
2018-02-13 10:22:36 -05:00
Andrew Webster
e0750f9b2c 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.
2018-02-13 10:22:21 -05:00
Pierre Ossman
37b4d13db8 Add Spanish and Turkish JSON files 2018-02-07 09:33:13 +01:00
Pierre Ossman
7c332ad930 Don't crash on translation errors
A non-translated interface is better than no interface at all.
2018-02-07 09:23:45 +01:00
Pierre Ossman
e8b2ab65e5 noVNC 1.0.0 beta v1.0.0-beta 2018-02-02 14:06:06 +01:00
Pierre Ossman
993a552b2d Remove as3crypto name from README.md
We stopped shipping that many years ago.
2018-02-02 14:04:12 +01:00
Solly Ross
a4d51bd220 Merge pull request #1009 from juanjoDiaz/move_browser_checks
Move browser checks to browser.js
2018-02-01 10:33:28 -05:00
Ömer ÇAKMAK
690d07baba Add Turkish translation 2018-02-01 16:28:39 +01:00
Solly Ross
096fcc4fa3 Merge pull request #1007 from juanjoDiaz/remove_jshints_comments
Remove jshint comments
2018-01-31 10:58:20 -05:00
Juanjo Diaz
9e1bd410aa Remove jshint comments 2018-01-31 07:38:29 -08:00
Pierre Ossman
90b5597cf0 Update translation template file 2018-01-31 16:29:52 +01:00
Juanjo Diaz
7b73dbd4dd Add Spanish translation 2018-01-30 19:17:55 -08:00
Solly Ross
ca0644b252 Merge pull request #1008 from juanjoDiaz/remove_unnecesary_base64_dependency
Remove unnecessary base64 dependency
2018-01-30 13:41:28 -05:00
Solly Ross
be8580558c Merge pull request #1011 from juanjoDiaz/remove_console_statements
Remove console statements
2018-01-30 13:26:48 -05:00
Juanjo Diaz
a003535941 Remove console statements 2018-01-30 08:53:38 -08:00
Juanjo Diaz
24c99fbfd7 Remove unnecessary Log dependency in events.js 2018-01-30 08:38:46 -08:00
Juanjo Diaz
59ef29163e Move browser checks to browser.js 2018-01-30 08:35:47 -08:00
Juanjo Diaz
9dc0f4095b Remove unnecessary base64 dependency 2018-01-30 08:19:39 -08:00
Pierre Ossman
609a3fac74 Better cleanup in vnc_playback.html
Makes sure the cleanup is also properly exercised as part of the
testing.
2018-01-26 11:07:58 +01:00
Pierre Ossman
a92c33174e 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.
2018-01-26 11:07:14 +01:00
Pierre Ossman
2a4e84ac20 Remove old test pages
These are not maintained or used anymore, so just remove them to
avoid confusion.
2018-01-25 16:14:02 +01:00
Pierre Ossman
d1aeb43551 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.
2018-01-25 15:32:22 +01:00
Pierre Ossman
42463da166 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
2018-01-25 15:19:12 +01:00
Samuel Mannehed
86b9c473d1 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
2018-01-24 13:00:48 +01:00
Samuel Mannehed
61f93180c8 Show/hide mouse button selector in updateViewOnly
Before this commit, the mouse button selector was hidden when the user
clicked it in view only..
2018-01-12 01:45:26 +01:00
Samuel Mannehed
f3763a010c 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.
2018-01-12 01:45:15 +01:00
Samuel Mannehed
b3c0d570bb Merge pull request #996 from PeterDaveHelloKitchen/zh-tw-translation
Add Chinese (Traditional) translation
2018-01-11 23:51:39 +01:00
Samuel Mannehed
3729976a28 Process input type submit for translations
Fixes #997
2018-01-11 01:10:59 +01:00
Solly Ross
ce6d388c6e Merge pull request #991 from PeterDaveHelloKitchen/README.md-Table-of-Contents
Add README.md "Table of Contents" for readability
2018-01-10 13:27:32 -05:00
Solly Ross
ef8805cfa2 Merge pull request #998 from novnc/bug/ie11-tests-slice
Fix slice usage in display tests on IE11
2018-01-10 12:48:16 -05:00
Solly Ross
af4deba893 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.
2018-01-10 11:08:21 -05:00
Peter Dave Hello
03d829f170 Add Chinese (Traditional) translation 2018-01-10 00:59:27 +08:00
Peter Dave Hello
eba7f0648f Add README.md "Table of Contents" for readability 2018-01-09 21:52:21 +08:00
Deni42
37c609359a Fix view_only setting with autoconnect (#985)
updateVisualState() and updateViewOnly() requires an initiated UI.rfb reference, the calls in connect() was made too early.
2018-01-05 12:05:17 +01:00
Pierre Ossman
1f9d0cb12f Add test for 16x16 tiles
We have a special cache and therefore special code paths that need
to be tested when rendering 16x16 tiles.
2017-12-14 12:59:25 +01:00
Pierre Ossman
0880353ba9 Simpler reporting when display output size mismatches 2017-12-14 12:58:57 +01:00
Pierre Ossman
72abf78487 Merge branch 'master' of https://github.com/josiah2009/noVNC 2017-12-14 12:50:38 +01:00
Samuel Mannehed
a4822c3a86 Only connect if we don't have an rfb object
Each connection creates a new RFB object. Fixes #978.
2017-12-14 12:16:45 +01:00
Samuel Mannehed
75e1161434 Throw away the reference to RFB on disconnect 2017-12-14 12:15:56 +01:00
Samuel Mannehed
b245ec7038 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
2017-12-12 18:25:20 +01:00
Samuel Mannehed
7f1049c0ee 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.
2017-12-12 16:14:43 +01:00
Pierre Ossman
edb3ea4f88 Merge branch 'docs' of https://github.com/CendioOssman/noVNC 2017-12-12 12:41:30 +01:00
Pierre Ossman
91e811f7af Add documentation for integrating noVNC 2017-12-12 08:12:20 +01:00
Pierre Ossman
84f1f7c847 Password prompt now comes after connect 2017-12-12 08:12:20 +01:00
Pierre Ossman
62bfc48759 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.
2017-12-12 08:12:20 +01:00