Add NoVnc keyboard (#13)

* novnc wip.

* remove blacklistKeys.

* eslint ignore all js files.

* ad common keyboard interface.

* upgrade novnc.

* fix novnc.

* fix novnc keyboard.

* fix keyboard remapping.

* conditionally include novnc at build time.
This commit is contained in:
Miroslav Šedivý 2022-10-04 20:28:07 +02:00 committed by GitHub
parent 3a75b1bf54
commit 0371a7dc4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 4014 additions and 1532 deletions

View file

@ -1,4 +1,5 @@
const path = require('path')
const webpack = require('webpack')
module.exports = {
productionSourceMap: false,
@ -9,6 +10,15 @@ module.exports = {
'~': path.resolve(__dirname, 'src/'),
},
},
plugins: [
new webpack.NormalModuleReplacementPlugin(
/(.*)__KEYBOARD__/,
function(resource){
resource.request = resource.request
.replace(/__KEYBOARD__/, process.env.KEYBOARD || 'guacamole');
},
),
],
},
devServer: {
allowedHosts: "all",