summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [release] v1.0.0-testing.2v1.0.0-testing.2infra/publishSolly Ross2017-10-042-2/+2
| | | | | | v1.0.0-testing.2 is the "make sure all of our autopublishing works properly" release. Assuming everything goes well, it should shortly be followed by v1.0.0 proper.
* [infra] Publish to NPM via TravisSolly Ross2017-10-043-3/+3382
| | | | | This commit sets up Travis to publish to NPM on tags, to the @novnc/novnc repository.
* [infra] updated packaging configSolly Ross2017-10-043-19/+35
| | | | | | | | | This updates the .npmignore file to ignore some new files that were recently added, and to keep the `core` directory, so that noVNC can be used as an ES6 module from NPM. This also updates package.json to clean when generating lib files in the `prepare` phase (which has replaced the `prepublish` phase).
* [infra] fix vendor import paths on built filesSolly Ross2017-10-031-6/+6
| | | | | | | | | | | | | | | | A previous commit started (quasi-correctly) rewriting vendor import paths on built files. The gist of it was correct, but it incorrectly rewrote paths in vendor itself. The babel plugin in use operated on canonical absolute paths. This mean that it saw no difference between the import `../vendor/pako/lib/utils/foo` and `../utils/foo`, where the later was actually in the `vendor/pako/lib/bar` directory. This rewrote imports in files in the vendor directory itself. However, since those files were *already* in the correct relative location, the new import was incorrect by a degree of `..`. Now, we only rewrite vendor paths on things in the `core` directory.
* [infra] option to clean on use_require.jsSolly Ross2017-10-031-0/+9
| | | | | | | This adds an option to `utils/use_require.js` which cleans the lib and build directories before regenerating them. This will enable us to make sure we always have a fresh copy of the lib dir before publishing.
* Merge pull request #907 from DirectXMan12/tests/fix-travisSolly Ross2017-10-031-3/+2
|\ | | | | [infra] Fix Travis Sauce Auth
| * [infra] Fix Travis Sauce AuthSolly Ross2017-10-031-3/+2
|/ | | | | Travis-Sauce authentication somehow broke along the way. This PR fixes that by resetting the credentials.
* Merge branch 'fixes/polyfill' of https://github.com/qmfrederik/noVNCPierre Ossman2017-09-291-1/+14
|\
| * Only load ES6 module loader polyfill if neededFrederik Carlier2017-09-291-1/+14
| | | | | | | | Safari and Chrome now have native support for modules, so we need to make sure we only load our polyfill when actually needed.
* | Merge branch 'optional-port' of https://github.com/bkylerussell/noVNCPierre Ossman2017-09-292-12/+15
|\ \ | |/ |/|
| * rfb: Allow port to be optionally appended to URIKyle Russell2016-11-242-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | Supports server configurations that might prefer wss:// connections on the default port, then proxies them through the web server to the VNC server. This proxy configuration is helpful on servers using self-signed certificates. Accessing the https://host/vnc_auto.html page and adding an exception for that host is sufficient to also satisfy the wss://host/ request, unlike requests to wss://host:port/ which may require an extra certificate exception.
* | Restore logging properly after log testsSamuel Mannehed2017-09-281-5/+6
| | | | | | | | | | Our logging module keeps its own copy so we need to call init_logging in the test cleanup to update things.
* | Setup chai extensions centrallySamuel Mannehed2017-09-286-13/+7
| | | | | | | | | | They have global effects so make that clear by doing the setup in a single place.
* | Upgrade and fix sinon.jsSamuel Mannehed2017-09-288-5149/+12730
| | | | | | | | | | | | Converted version downloaded from sinonjs.org. Fixed version that doesn't register itself on the global object. This forces all modules to do a proper import.
* | Merge pull request #896 from novnc/combinemousewheelSamuel Mannehed2017-09-277-230/+622
|\ \ | | | | | | Combine small mouse wheel events
| * | Remove unused importscombinemousewheelSamuel Mannehed2017-09-171-2/+0
| | |
| * | Combine small mouse wheel eventsSamuel Mannehed2017-09-172-23/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The VNC protocol can't handle different deltas or speeds for a mouse wheel event. When using a device that sends a lot of small mouse wheel events, instead of fewer larger steps, the effect was that mouse wheel scrolling was way to sensitive. This patch looks at the delta of wheel events and doesn't send events until the combined delta has passed a threshold. Single events that doesn't pass the threshold get sent after a timeout in order to not loose any events. Fixes #577.
| * | Split devices.js into keyboard.js and mouse.jsSamuel Mannehed2017-09-176-228/+241
| | |
| * | Add tests for mouse moduleSamuel Mannehed2017-09-171-0/+226
|/ /
* | Rename setting_clip to setting_view_clipSamuel Mannehed2017-09-072-14/+14
| | | | | | | | | | Clarifies the purpose of the setting in order to avoid mix ups with clipboard related things.
* | Remove unused variableSamuel Mannehed2017-09-071-1/+0
| | | | | | | | The use of this variable was removed in b18ef8162ea5fd0a72f4aa910f7fc9236a8f81f1
* | Include optional log message on errorsPierre Ossman2017-09-051-1/+1
| |
* | Handle new style recordingsPierre Ossman2017-09-051-1/+3
| | | | | | | | | | Newer recordings are always binary and don't include the encoding specifier.
* | Adjust scaling when session size changesPierre Ossman2017-08-161-4/+24
| | | | | | | | | | Session size changes can be initiated from the server, and not just from the client. Make sure we update the scaling when this happens.
* | fix typscript error - the only one. (#837)shaneharris2017-08-051-1/+0
| | | | | | | | | | | | * fix typscript error TypeScript error: novnc/core/rfb.js(1012,17): Error TS7027: Unreachable code detected. * Update rfb.js
* | Make sure the control bar hint is centeredSamuel Mannehed2017-07-261-2/+3
| | | | | | | | | | | | | | Fixed positioned flex boxes are not positioned correctly in Safari. Add the normal top 50% translate -50% method. Fixes issue #848.
* | IE compatibility fix for babel workersPierre Ossman2017-07-213-3/+17
| | | | | | | | IE doesn't support document.currentScript, so we need to have a fallback.
* | Only send QEMU Extended Key Event if we have a scan codePierre Ossman2017-07-072-9/+10
| | | | | | | | | | | | Servers will assume that a scan code is present if this message type is used, so fall back to the standard key event message if we don't know the scan code.
* | Ignore compositing keyPierre Ossman2017-07-072-1/+12
| | | | | | | | | | | | keyCode 229 is commonly used with virtual keyboards when the system cannot map things to a specific key. As such we should treat it as 'Unidentified'.
* | Merge branch 'qemufix' of https://github.com/CendioOssman/noVNCPierre Ossman2017-07-064-156/+324
|\ \
| * | try/catch guard for QEMU keyboard testPierre Ossman2017-07-061-3/+7
| | | | | | | | | | | | | | | Safari on older iOS doesn't support creating KeyboardEvent objects, so put a guard in to avoid crashes.
| * | Fallback for missing keypress eventsPierre Ossman2017-07-062-0/+81
| | | | | | | | | | | | | | | | | | IE and Edge have some corner cases (e.g. Ctrl+key) where we get insufficient information in the keydown event, and we never get a keypress event. Try to make a guess of the key in those cases.
| * | Track keys using keyIdentifierPierre Ossman2017-07-062-7/+52
| | | | | | | | | | | | This is necessary on older iOS where code isn't provided.
| * | Limit use of keypress fallbackPierre Ossman2017-06-021-1/+9
| | | | | | | | | | | | | | | It was preventing key events for dead keys, so try to reduce it to only cases where we must use it.
| * | Allow key events without symbolsPierre Ossman2017-06-021-0/+6
| | | | | | | | | | | | They can still be useful if the server makes use of the keycode instead.
| * | Get XT scan code mappings from the keycodemapdb projectPierre Ossman2017-05-311-145/+169
| | | | | | | | | | | | | | | This way we can work together with other projects that need this kind of mapping.
* | | Adjust import of vendor/ modules in NPM packagePierre Ossman2017-07-042-0/+8
| | | | | | | | | | | | | | | We move the files in core/ up one directory level so we need to adjust the imports from vendor libraries.
* | | Properly use babel optsPierre Ossman2017-07-041-1/+1
| | | | | | | | | | | | | | | We prepared an options object for babel, but didn't include it properly in the final call to babel.
* | | Don't include unmodified vendor directory in NPM packagePierre Ossman2017-07-041-0/+1
| | | | | | | | | | | | It contains ES6 modules, so it won't be useful as-is on NPM.
* | | Handle iOS special keysPierre Ossman2017-06-212-0/+10
| | |
* | | Fake key release for iOS hardware keyboardsPierre Ossman2017-06-212-3/+82
| | | | | | | | | | | | | | | | | | | | | | | | iOS sends decent key down events, but junk key up events when a hardware keyboard is used. This confuses the key tracking as a corresponding release is then never detected. To work around this we'll treat the hardware keyboard like the virtual ones and send the key release right away.
* | | Scroll error stack tracePierre Ossman2017-06-151-1/+3
| | | | | | | | | | | | | | | Make sure we get the stack trace without distortions by wrapping, or cropping because it flows out of the screen.
* | | Merge branch 'ios9' of https://github.com/CendioOssman/noVNCPierre Ossman2017-06-0812-34/+34
|\ \ \
| * | | Avoid use of 'let' and 'const'Pierre Ossman2017-06-0212-22/+22
| | | | | | | | | | | | | | | | They are not supported on older browsers, e.g. iOS 9.
| * | | Avoid nested function declarationsPierre Ossman2017-06-023-13/+13
| | | | | | | | | | | | | | | | Not supported in older browsers, e.g. iOS 9.
* | | | Merge pull request #838 from novnc/infra/fix-travis-sauceSolly Ross2017-06-052-5/+8
|\ \ \ \ | |/ / / |/| | | Fix Travis-Sauce Connection
| * | | Fix Travis-Sauce Connectioninfra/fix-travis-sauceSolly Ross2017-06-052-5/+8
|/ / / | | | | | | | | | | | | | | | | | | Somethings got messed up in the Travis-Sauce tunnel setup. This should fix it by re-adding the Sauce credentials. It also updates the config to explicitly pass auth information instead of via environment variables.
* | | Fix traffic management in playback testsPierre Ossman2017-06-011-4/+5
| | |
* | | Merge branch 'record' of https://github.com/CendioOssman/noVNCPierre Ossman2017-06-014-25/+30
|\ \ \ | |/ / |/| |
| * | Remove #nocache system as it is unusedPierre Ossman2017-05-223-17/+13
| | |