mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 00:10:07 +02:00
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:
parent
3a75b1bf54
commit
0371a7dc4c
18 changed files with 4014 additions and 1532 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue