From a8aa3bef5225e360803de9183f6cf1c0112b43f9 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 4 Jun 2021 02:08:52 -0700 Subject: [PATCH] GUACAMOLE-773: Restore missing static template/layout files. The on-screen keyboard layouts and AngularJS templates were previously part of the Java webapp build, but are now part of the NPM/Webpack build. Those files were incorrectly left out of the Webpack config, causing the on-screen keyboard and automatic display resize to fail. Display of the on-screen keyboard fails without these files as it relies on loading the on-screen keyboard layouts dynamically via HTTP. Handling of automatic display resize fails because this relies on a hidden element containing a blank HTML document, with that document served statically over HTTP. --- guacamole/src/main/frontend/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guacamole/src/main/frontend/webpack.config.js b/guacamole/src/main/frontend/webpack.config.js index 61187c25d..aa337fbb5 100644 --- a/guacamole/src/main/frontend/webpack.config.js +++ b/guacamole/src/main/frontend/webpack.config.js @@ -117,8 +117,10 @@ module.exports = { // Copy static files to dist/ new CopyPlugin([ + { from: 'app/**/*' }, { from: 'fonts/**/*' }, { from: 'images/**/*' }, + { from: 'layouts/**/*' }, { from: 'translations/**/*' } ], { context: 'src/'