@novnc/novnc 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/AUTHORS +13 -0
  2. package/LICENSE.txt +2 -1
  3. package/README.md +69 -3
  4. package/core/base64.js +35 -41
  5. package/core/decoders/copyrect.js +22 -0
  6. package/core/decoders/hextile.js +137 -0
  7. package/core/decoders/raw.js +56 -0
  8. package/core/decoders/rre.js +44 -0
  9. package/core/decoders/tight.js +315 -0
  10. package/core/decoders/tightpng.js +27 -0
  11. package/core/deflator.js +85 -0
  12. package/core/des.js +90 -95
  13. package/core/display.js +254 -297
  14. package/core/encodings.js +7 -3
  15. package/core/inflator.js +48 -20
  16. package/core/input/domkeytable.js +21 -24
  17. package/core/input/fixedkeys.js +3 -1
  18. package/core/input/gesturehandler.js +567 -0
  19. package/core/input/keyboard.js +194 -120
  20. package/core/input/keysym.js +2 -0
  21. package/core/input/keysymdef.js +3 -3
  22. package/core/input/util.js +53 -12
  23. package/core/input/vkeys.js +2 -1
  24. package/core/rfb.js +1937 -1496
  25. package/core/util/browser.js +80 -29
  26. package/core/util/cursor.js +253 -0
  27. package/core/util/element.js +32 -0
  28. package/core/util/events.js +59 -55
  29. package/core/util/eventtarget.js +25 -30
  30. package/core/util/int.js +15 -0
  31. package/core/util/logging.js +21 -16
  32. package/core/util/polyfill.js +15 -8
  33. package/core/util/strings.js +21 -8
  34. package/core/websock.js +145 -167
  35. package/docs/API.md +31 -10
  36. package/lib/base64.js +115 -0
  37. package/lib/decoders/copyrect.js +44 -0
  38. package/lib/decoders/hextile.js +173 -0
  39. package/lib/decoders/raw.js +78 -0
  40. package/lib/decoders/rre.js +65 -0
  41. package/lib/decoders/tight.js +350 -0
  42. package/lib/decoders/tightpng.js +67 -0
  43. package/lib/deflator.js +99 -0
  44. package/lib/des.js +314 -0
  45. package/lib/display.js +733 -0
  46. package/lib/encodings.js +64 -0
  47. package/lib/inflator.js +87 -0
  48. package/lib/input/domkeytable.js +282 -0
  49. package/lib/input/fixedkeys.js +123 -0
  50. package/lib/input/gesturehandler.js +642 -0
  51. package/lib/input/keyboard.js +429 -0
  52. package/lib/input/keysym.js +1135 -0
  53. package/lib/input/keysymdef.js +1354 -0
  54. package/lib/input/util.js +304 -0
  55. package/lib/input/vkeys.js +127 -0
  56. package/lib/input/xtscancodes.js +505 -0
  57. package/lib/rfb.js +3448 -0
  58. package/lib/util/browser.js +131 -0
  59. package/lib/util/cursor.js +314 -0
  60. package/lib/util/element.js +43 -0
  61. package/lib/util/events.js +142 -0
  62. package/lib/util/eventtarget.js +64 -0
  63. package/lib/util/int.js +22 -0
  64. package/lib/util/logging.js +79 -0
  65. package/lib/util/polyfill.js +72 -0
  66. package/lib/util/strings.js +38 -0
  67. package/lib/vendor/pako/lib/utils/common.js +67 -0
  68. package/lib/vendor/pako/lib/zlib/adler32.js +33 -0
  69. package/lib/vendor/pako/lib/zlib/constants.js +51 -0
  70. package/lib/vendor/pako/lib/zlib/crc32.js +42 -0
  71. package/lib/vendor/pako/lib/zlib/deflate.js +2159 -0
  72. package/lib/vendor/pako/lib/zlib/gzheader.js +53 -0
  73. package/lib/vendor/pako/lib/zlib/inffast.js +445 -0
  74. package/lib/vendor/pako/lib/zlib/inflate.js +2114 -0
  75. package/lib/vendor/pako/lib/zlib/inftrees.js +418 -0
  76. package/lib/vendor/pako/lib/zlib/messages.js +36 -0
  77. package/lib/vendor/pako/lib/zlib/trees.js +1499 -0
  78. package/lib/vendor/pako/lib/zlib/zstream.js +46 -0
  79. package/lib/vendor/promise.js +255 -0
  80. package/lib/websock.js +374 -0
  81. package/package.json +48 -28
  82. package/vendor/pako/lib/zlib/deflate.js +30 -30
  83. package/vendor/pako/lib/zlib/inflate.js +17 -17
  84. package/core/input/mouse.js +0 -280
  85. package/docs/API-internal.md +0 -125
  86. package/docs/EMBEDDING.md +0 -83
  87. package/docs/VERSION +0 -1
package/docs/EMBEDDING.md DELETED
@@ -1,83 +0,0 @@
1
- # Embedding and Deploying noVNC Application
2
-
3
- This document describes how to embed and deploy the noVNC application, which
4
- includes settings and a full user interface. If you are looking for
5
- documentation on how to use the core noVNC library in your own application,
6
- then please see our [library documentation](LIBRARY.md).
7
-
8
- ## Files
9
-
10
- The noVNC application consists of the following files and directories:
11
-
12
- * `vnc.html` - The main page for the application and where users should go. It
13
- is possible to rename this file.
14
-
15
- * `app/` - Support files for the application. Contains code, images, styles and
16
- translations.
17
-
18
- * `core/` - The core noVNC library.
19
-
20
- * `vendor/` - Third party support libraries used by the application and the
21
- core library.
22
-
23
- The most basic deployment consists of simply serving these files from a web
24
- server and setting up a WebSocket proxy to the VNC server.
25
-
26
- ## Parameters
27
-
28
- The noVNC application can be controlled by including certain settings in the
29
- query string. Currently the following options are available:
30
-
31
- * `autoconnect` - Automatically connect as soon as the page has finished
32
- loading.
33
-
34
- * `reconnect` - If noVNC should automatically reconnect if the connection is
35
- dropped.
36
-
37
- * `reconnect_delay` - How long to wait in milliseconds before attempting to
38
- reconnect.
39
-
40
- * `host` - The WebSocket host to connect to.
41
-
42
- * `port` - The WebSocket port to connect to.
43
-
44
- * `encrypt` - If TLS should be used for the WebSocket connection.
45
-
46
- * `path` - The WebSocket path to use.
47
-
48
- * `password` - The password sent to the server, if required.
49
-
50
- * `repeaterID` - The repeater ID to use if a VNC repeater is detected.
51
-
52
- * `shared` - If other VNC clients should be disconnected when noVNC connects.
53
-
54
- * `bell` - If the keyboard bell should be enabled or not.
55
-
56
- * `view_only` - If the remote session should be in non-interactive mode.
57
-
58
- * `view_clip` - If the remote session should be clipped or use scrollbars if
59
- it cannot fit in the browser.
60
-
61
- * `resize` - How to resize the remote session if it is not the same size as
62
- the browser window. Can be one of `off`, `scale` and `remote`.
63
-
64
- * `logging` - The console log level. Can be one of `error`, `warn`, `info` or
65
- `debug`.
66
-
67
- ## Pre-conversion of Modules
68
-
69
- noVNC is written using ECMAScript 6 modules. Many of the major browsers support
70
- these modules natively, but not all. By default the noVNC application includes
71
- a script that can convert these modules to an older format as they are being
72
- loaded. However this process can be slow and severely increases the load time
73
- for the application.
74
-
75
- It is possible to perform this conversion ahead of time, avoiding the extra
76
- load times. To do this please follow these steps:
77
-
78
- 1. Install Node.js
79
- 2. Run `npm install` in the noVNC directory
80
- 3. Run `./utils/use_require.js --with-app --as commonjs`
81
-
82
- This will produce a `build/` directory that includes everything needed to run
83
- the noVNC application.
package/docs/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.0-testing.2