Commit Graph

954 Commits

Author SHA1 Message Date
samhed 3daa86cbae Update vnc_auto after the screen namechange
Commit 553864e858 changed the name of
noVNC_screen to noVNC_container, vnc_auto.html was not updated
accordingly. Fixes #621
2016-06-08 16:02:37 +02:00
samhed 5fd3f88e50 Merge branch 'ui-cleanup' of https://github.com/kanaka/noVNC 2016-06-03 10:46:05 +02:00
Samuel ae11605141 Split the setDesktopSize function (#618)
In order to follow the surrounding coding-standards, the
setDesktopSize client message is split from the public function which
now is called requestDesktopSize().
2016-06-02 22:37:52 +02:00
Samuel Mannehed a1dbbcc1a7 Consistent closing tags for void elements 2016-05-27 16:14:25 +02:00
Samuel Mannehed 3f2c25a60f Use a consistent naming convention for elements
* Element names we use "_" as word-delimiter, not "-"
* Element names use less camel-case
* Element names end with the type
* Element names always start with noVNC_
2016-05-27 16:14:25 +02:00
Samuel Mannehed 682fd02be6 Change the names of settings-elements
This change was made in order to make it easier to distinguish
settings-elements from other elements. One example of the problem
that was solved is the two elements "noVNC_clip" and
"noVNC_clipboard" where the first is the setting for clipping mode.
That element was now renamed to "noVNC_setting_clip".
2016-05-27 16:12:32 +02:00
samhed a20a898765 Timeouts should always use anonymous functions
While you CAN pass functions in strings, it is not the correct way
of doing it. The browsers are just being nice.
2016-05-27 16:12:31 +02:00
samhed 4d26f58e0d Change name of clipboard functions
There were a high risk of confusion between clipboard functions and
clipping functions.
2016-05-27 16:11:47 +02:00
samhed 95dd60011c Group together related functions and add dividers
Dividers between the different parts of the UI has been added in
order to easier get an overview.
2016-05-12 16:56:50 +02:00
samhed afcf031a68 Send the xvp keys from anonymous functions 2016-05-12 16:56:50 +02:00
samhed fdf21468d3 Renamed and moved keyboard and mouse functions 2016-05-12 16:56:50 +02:00
samhed 9e45354efc Renamed and moved updateXvpButton 2016-05-12 16:56:50 +02:00
samhed ab81ddf5d4 Move the connect and disconnect functions 2016-05-12 16:56:50 +02:00
samhed e00698fef8 Clarify comments and variable names for viewDrag 2016-05-12 16:56:50 +02:00
samhed cd611a5326 Renamed showExtraKeys to toggleExtraKeys 2016-05-12 16:56:50 +02:00
samhed 4e471b5b55 Moved and split the popupStatus function
Now if popupStatus is called twice it will refresh the duration of
the popup. If you want to wait 1.5 seconds and close the popup you
can click the popup itself.
2016-05-12 16:56:50 +02:00
samhed 45c70c9e23 Moved and changed order of the setting-functions 2016-05-12 16:56:50 +02:00
samhed 0bd2cbacaa Remove whitespace from function definitions 2016-05-12 16:56:50 +02:00
samhed 29475d7728 Moved UpdateState and UpdateVisualState 2016-05-12 16:56:49 +02:00
samhed 777cb7a0c5 Cleanup for the resize related functions
Renamed functions, added clarifying comments and moved the resize
related functions closer to the other viewport functions.
2016-05-12 16:56:49 +02:00
samhed 553864e858 Switch names between the container and the screen
The noVNC_container now contains the logo and the screen. While the
noVNC_screen in turn contains the canvas.
2016-05-12 16:56:49 +02:00
samhed f52105bc88 Add fallback value for devicePixelRatio
In IE 10 for example, devicePixelRatio doesn't exist which caused the
code to fail by setting the thresholds to zero.
2016-05-12 16:43:19 +02:00
Samuel Mannehed 057cfc7cb4 Add missing parenthesis (#600) 2016-04-30 04:26:30 +02:00
Samuel Mannehed 12ae8b3d50 Respect the threshold in the viewdrag test (#600) 2016-04-30 04:08:34 +02:00
Samuel Mannehed 3120c9b5ec Merge branch 'SirCmpwn-fix-send-on-disconnect'
Updated patch to use the readyState constant even in the tests.
2016-04-30 02:34:20 +02:00
Drew DeVault cf0623fffa Fix failing test
It only makes sense to send data on a websocket if the readyState is
equal to 1.
2016-04-30 02:28:45 +02:00
Drew DeVault f6a29ddeeb Fix occasional error with sending while readyState !== 1
Under certain conditions, noVNC would attempt to flush the web socket
while it was disconnected, before the disconnected state was picked up.
This casues noVNC to crash ungracefully and the parent window is not
notified - leading to no chance at recovery without a page refresh.
2016-04-30 02:26:17 +02:00
samhed 32df3fdbe1 Add a threshold for viewport dragging (#600) 2016-04-28 17:41:48 +02:00
Jonathan Bennett 27e77d468f Adds tap-to-click in viewport drag mode (#600) 2016-04-28 13:46:40 +02:00
samhed f620259bc5 Force clipping mode in Safari on all platforms 2016-04-25 16:38:23 +02:00
samhed 529c64e103 Re-arrange global UI variables 2016-04-25 16:35:49 +02:00
Solly Ross 8b0a0f6637 Merge pull request #602 from oneru/typo-fix
Adds missed line from PR 597
2016-04-13 15:02:48 -04:00
Jonathan Bennett 3c9558444c Adds missed line from PR 597 2016-04-13 12:53:37 -05:00
Solly Ross bf0ce0ba3c Merge pull request #597 from oneru/master
Handle missing leading slash in elem.pathname
2016-04-12 17:32:43 -04:00
Jonathan Bennett c8294760b1 Handle missing leading slash in elem.pathname
IE11 with compat mode turned off has been observed displaying this behavior.  This commit checks for and corrects this broken behavior.

Fixes #591
2016-04-12 11:00:28 -05:00
Solly Ross b403cb92fb Merge pull request #582 from kanaka/bug/render-queue-corruption
Make sure to copy arrays when using render queue
2016-02-24 16:52:55 -05:00
Solly Ross 7bc383e8b6 Make sure to copy arrays when using render queue
This commit ensures that input arrays are copied to new storage when
they are pushed onto the render queue.  This ensures that they are
not overwritten before they are eventually used.

Fixes #571
2016-02-24 16:29:34 -05:00
Solly Ross 670dbddb54 Merge pull request #568 from kanaka/refactor/remove-refs-to-jsunzip
Cleanup/fixup unused code

Remove jsunzip, remove unused vars, fix vnc_perf.html
2016-01-06 16:01:50 -05:00
Solly Ross 317042f8db Merge branch 'feature/token-in-url'
Injects token into the path element if it's passed to
the noVNC page.

Closes #537
Fixes #536
2016-01-06 15:57:04 -05:00
Miguel Xavier Penha Neto c55f05f619 Pass token into the path variable
If a token is already present in the path, the new variable
is ignored.  In order to properly manipulate the path,
a new method, `WebUtil.injectParamIfMissing` was introduced.

Fixes #536

[@directxman12: fix up path manipulation logic]
2016-01-06 15:56:28 -05:00
Solly Ross 28646d978f Merge pull request #547 from pigshell/hashargs
Add hash fragment as an optional method to supply config variables.

Closes #544
2016-01-06 14:22:24 -05:00
Solly Ross 4ee55e0126 Fixed vnc_perf.html
This commit updates vnc_perf.html so that it works with the current
version of noVNC.  It also introduces a utility to convert noVNC session
recordings recorded in base64-mode to binary-mode recordings, since noVNC
no longer supports base64-mode.

Fixes #479.
2016-01-06 13:32:05 -05:00
Solly Ross 464944844f Remove unused variables in the TIGHT server init
This commit removes some unused variables in the TIGHT server init
section of the server init handler, replacing them with documenting
comments and calls to rQskipBytes.

Fixes #440.
2016-01-06 11:18:47 -05:00
Solly Ross 0252c7f766 Remove remaining references to jsunzip.js
This commit removes remaining references to jsunzip.js,
which is no longer actually used in noVNC.

Closes #436.
2016-01-06 11:10:26 -05:00
Solly Ross 7e4475fa92 Merge pull request #565 from kanaka/bug/dynamic-rq-resize
Resize Receive Queue to Fit Incoming Messages
2016-01-05 14:28:01 -05:00
Solly Ross 40037b6a29 On-Demand Dynamic Receive Queue Resizing
This commit causes the receive queue to dynamically
resize to fit incoming messages.

Fixes #557
2015-12-22 16:05:33 -05:00
Solly Ross c8f14d175b Disable copyWithin Use in Websock.js
the `copyWithin` function of typed arrays has performance issues
in some versions of Chromium, and doesn't doesn't have enough
of a performance impact to justify leaving it enabled.
2015-12-22 13:51:30 -05:00
Joel Martin b2a813dc73 Merge pull request #555 from maditnerd/patch-1
Small typo in launch.sh
2015-11-23 22:32:31 -05:00
Sarrailh Rémi 54e835eeac Small typo in launch.sh 2015-11-23 13:08:05 +01:00
Ganesh Varadarajan 494b407a0a Add hash fragment as an optional method to supply config variables.
Any config variable like host, port, password, token may be
specified either in the query string (like now), or in the URL hash
fragment. In case a given variable is present in both, the value in the
fragment takes precedence. Supplying variables in the fragment avoids
leaking them to the web server hosting the noVNC viewer HTML.
2015-10-23 18:54:08 +05:30