summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Add a record flag to launch.shbug/fix-test-playbackSolly Ross2018-07-301-1/+5
| | | | Add the `--record` flag to launch.js, for easy recording when testing.
* Use fat arrow functions `const foo = () => { ... };` for callbacksJuanjo Diaz2018-07-123-31/+26
| | | | and any other function that is passed around and it's not a top level function
* Fixes #1075Henry Vindin2018-07-011-5/+8
| | | | | | Rather than trying to pick a utility, we should be able to just use bash to check if a port is available or not. We can probably assume bash is available due to the shebang declaring it.
* Prefer const/let over varJuanjo Diaz2018-05-243-65/+65
|
* Add transpilation for IE11 and skip linux testsJuanjo Diaz2018-05-241-0/+1
|
* Add eslint and fix reported issuesJuanjo Diaz2018-05-244-10/+19
|
* Only use converted modules as legacy fallback for appPierre Ossman2018-02-282-28/+92
| | | | | | 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.
* Don't include icons Makefile when packagingPierre Ossman2018-01-051-0/+1
|
* Remove intermediate files when bundlingPierre Ossman2018-01-052-1/+27
|
* Convert use_require.js to use promisesPierre Ossman2018-01-052-51/+117
| | | | | We had some race conditions between the callbacks that could cause failures. Order everything properly using promises.
* [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.
* Adjust import of vendor/ modules in NPM packagePierre Ossman2017-07-041-0/+7
| | | | | 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.
* Merge branch 'keyboard' of https://github.com/CendioOssman/noVNCPierre Ossman2017-05-042-103/+128
|\
| * Simplify keysymdef.jsPierre Ossman2017-03-241-4/+24
| | | | | | | | | | Some Unicode to Keysym mappings can be computed and can therefore be left out of the huge lookup table.
| * Clean up keysymdefPierre Ossman2017-03-241-16/+39
| |
| * Remove keysym names from keysymdef.jsPierre Ossman2017-03-241-18/+3
| | | | | | | | | | They were incomplete and turned off in most cases so they served little use besides adding complexity.
| * Get parse.js in sync with generated codePierre Ossman2017-03-241-16/+13
| | | | | | | | | | The generated keysymdef.js was recently converted to ES modules, but the generating script was overlooked.
* | Update url'sSamuel Mannehed2017-04-192-3/+3
|/
* Vendor in an IE11 polyfill for PromisesSolly Ross2017-03-212-17/+32
| | | | | | This commit introduces a polyfill to add support for Promises in IE11. This means IE11 can be tested without first running `utils/as_require.js`.
* Move error handler into separate fileSolly Ross2017-03-211-3/+23
| | | | | | | | This commit moves the global error handler into a separate file, so that it can catch module loading errors. This also adds support for properly displaying error messages with newlines in them (since the module loader may throw those)
* Optimize ES6 Module Loader PolyfillSolly Ross2017-03-211-3/+5
| | | | | | | | | | This commit makes the ES6 module loader polyfill use Web Workers, so that Babel doesn't block the browser from animating. It also uses localStorage to cache the compiled results, only recompiling on source changes, so it makes loading faster while developing noVNC. This includes a vendored copy of the ES6 module loader, modified as described above.
* Allow transforming to any formatSolly Ross2017-03-073-100/+136
| | | | | | | This changes around `utils/use_require.js` to be able to generate any of AMD (RequireJS), CommonJS, SystemJS, or UMD modules. The three former also include support for translating `vnc.html`, producing a full "app" version of noVNC.
* Use Unicode keysym range as fallbackPierre Ossman2016-10-151-1/+7
| | | | | | Not all Unicode codepoints have an equivalent named Keysym. But there is a range in the Keysym namespace that can be used to map any codepoint to.
* Merge pull request #603 from WardF/masterSolly Ross2016-09-161-3/+12
|\ | | | | Added option for --ssl-only noVNC session to launch.sh
| * Tweaked message printed based on whether or not http is available.Ward Fisher2016-04-111-1/+6
| |
| * Added an '--ssl-only' option to noVNC launch script. This will pass through ↵Ward Fisher2016-04-111-2/+6
| | | | | | | | to Websockify, allowing a user to specify that only ssl-secured connections will be allowed.
* | Move input-related files into core/inputSolly Ross2016-09-161-1/+2
| | | | | | | | | | | | This commit moves all the input-related files from `core/` to `core/input/`, and renames a couple as relevant (input.js --> input/devices.js, keyboard.js --> input/util.js).
* | Enable noVNC to become BrowserifiableSolly Ross2016-09-163-40/+145
| | | | | | | | | | | | This commit restructures noVNC, splitting it into the core directory and the app directory, with the former containing core noVNC parts, and the latter containing parts specific to the application.
* | Removing unused import (#642)Trần Tuấn Anh2016-08-261-1/+1
| |
* | Update launch.shnunojusto2016-08-161-1/+1
| | | | | | | | Just a correction of port in use test algoritm. This way we will not have problems when using port X and having some other service using zyX or any *X port
* | Clarify that utils/launch.sh is MPL-2.0Joel Martin2016-06-131-0/+4
|/ | | | | | Also, note in the top-level license file that the default noVNC license for files that are not explicitly marked or mentioned in the LICENSE.txt file are by default MPL-2.0 licensed.
* Fixed vnc_perf.htmlSolly Ross2016-01-061-0/+17
| | | | | | | | | 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.
* Small typo in launch.shSarrailh Rémi2015-11-231-1/+1
|
* Make sure Pako always has enough roombug/pako-issueSolly Ross2015-09-231-3/+11
| | | | | | | | | | | | Previously, we used a fixed chunkSize of 100KiB for Pako's output buffer. Using a hardcoded size caused issues, since Pako would assume we wanted to use multiple chunks, and we didn't deal with this. Now, `Inflator#inflate()` takes a new `expected` argument, which indicates the expected output size. If this is bigger than the current chunkSize, Inflator allocates a new output buffer that's big enough to hold the output. Fixes #531
* WIP: Switch to Pako for zlibSolly Ross2015-08-061-0/+32
| | | | | This commit introduces an alternate implementation of the zlib decompressor based on Pako (https://github.com/nodeca/pako).
* Follow symbolic links in launch.shbug/follow-symlinks-for-hereSolly Ross2015-03-261-1/+2
| | | | | | | | | | | | Previously, in launch.sh, `$HERE` was the directory of `$0`. However, if `$0` was actually a symlink, `$HERE` would be wherever the symlink was, which could cause issues (for example, the script wouldn't be able to local `$WEB` or `$WEBSOCKIFY` properly). Now, `$HERE` looks at whatever `$0` points at instead. Closes #447.
* Remove last bits of websockify cruftSolly Ross2015-02-173-66/+4
| | | | | | | | | Issue #449 pointed out that there were some files that were missed in 6f5148648bd0e0ffa7ad00474c230f5f1ff4e39f. This fixes that. Closes #449 Closes #450
* Make sure websockify is cloned to the correct dirSolly Ross2015-02-171-2/+1
| | | | | | | When `utils/launch.sh` clones websockify, it can be cloned into the incorrect directory, depending on how `utils/launch.sh` is run. This commit ensures that websockify is always cloned into `utils/websockify`.
* Actually remove the "websockify" fileSolly Ross2015-02-171-471/+0
| | | | | | Somehow, `utils/websockify` itself manage to sneak back in to 6f5148648bd0e0ffa7ad00474c230f5f1ff4e39f. This actually removes it.
* Remove local copies of websockifySolly Ross2015-02-167-1298/+34
| | | | | | | | | | | | | | | | | | | This commit removes local copies of websockify. Instead `utils/launch.sh` performs the following logic: If `utils/websockify` exists, use `utils/websockify/run` (if the latter does not exist, or is not executable, fail, since this is probably a mistake). Otherwise, check to see if websockify is installed somewhere (try `which websockify`). If it is, use that. Otherwise, clone websockify from github, and tell git to ignore that directory. Packaged versions of noVNC should simply list websockify as a requirement. The debian packaging has been updated to reflect this. Closes #433
* Sync with websockifysamhed2014-04-142-541/+762
| | | | Pull 90b519edf0c1857d
* Keyboard Handling [1/8]: Parse keysymdef.h to produce Unicode -> keysym ↵jalf2013-12-051-0/+97
| | | | | | | | | mappings table Add a node.js-based tool (utils/parse.js) to read keysymdef.h and produce a JavaScript file mapping Unicode code points to keysyms. Also add the generated table (include/keysymdef.js).
* Sync with websockify.Joel Martin2013-04-251-123/+28
| | | | | | | | | | | | | Pull in websockify 4725aa7. - Update to c0855c6cae of web-socket-js - Update both the submodule and the swf build. The submodule now contains the unobfuscated source for swfobject.js which should make websockify more DFSG compliant. - Remove Hixie support. iOS 6 now includes HyBi support which means there is no remaining platform that needs Hixie.
* Remove references to wsproxy.Joel Martin2013-04-154-14/+13
| | | | Also, update nova-novncproxy to import websockify instead of wsproxy.
* Import cfg from oslo in nova-novncproxyNikola Dipanov2013-04-081-1/+1
| | | | | Upstram OpenStack Nova package has moved the config engine into a separate package. Mirror that change in the novnc script.
* Changed the config module which includes CONFNikhil Komawar2012-11-301-1/+1
| | | | | currently CONF was attempted of being imported from nova config.py rather than openstack/common/cfg.py. this commit fixes that.
* Sync with websockify.Joel Martin2012-11-142-21/+29
| | | | | | | | | Pull c33f0b52e7 from websockify. - Fix for python2.4 with URL parsing. - Set binaryType earlier in Opera 12.10 to avoid receiving a blob. - Re-order client and target processing so that pending client data has an opportunity to be sent when the target closes.
* Mirror FLAGS->CONF change in NovaTerry Wilson2012-11-081-17/+17
| | | | | Nova recently removed parse_args from flags.py. This updates the nova proxy to properly use CONF instead of FLAGS.