mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	Merge 1.5.4 changes back to master.
This commit is contained in:
		| @@ -68,6 +68,13 @@ | ||||
|                 <configuration> | ||||
|                     <workingDirectory>src/main/frontend</workingDirectory> | ||||
|                     <installDirectory>${project.build.directory}</installDirectory> | ||||
|  | ||||
|                     <!-- Newer Node.js requires the following to avoid an "ERR_OSSL_EVP_UNSUPPORTED" | ||||
|                     error when WebPack attempts to use its default hash (MD4) for content hashing --> | ||||
|                     <environmentVariables> | ||||
|                         <NODE_OPTIONS>--openssl-legacy-provider</NODE_OPTIONS> | ||||
|                     </environmentVariables> | ||||
|  | ||||
|                 </configuration> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
| @@ -76,7 +83,8 @@ | ||||
|                             <goal>install-node-and-npm</goal> | ||||
|                         </goals> | ||||
|                         <configuration> | ||||
|                             <nodeVersion>v14.16.0</nodeVersion> | ||||
|                             <nodeVersion>v18.18.0</nodeVersion> | ||||
|                             <npmVersion>9.8.1</npmVersion> | ||||
|                         </configuration> | ||||
|                     </execution> | ||||
|                     <execution> | ||||
|   | ||||
							
								
								
									
										84
									
								
								guacamole/src/main/frontend/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										84
									
								
								guacamole/src/main/frontend/package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -17,7 +17,7 @@ | ||||
|                 "datalist-polyfill": "^1.25.1", | ||||
|                 "file-saver": "^2.0.5", | ||||
|                 "fuzzysort": "^2.0.4", | ||||
|                 "jquery": "^3.6.4", | ||||
|                 "jquery": "^3.7.1", | ||||
|                 "jstz": "^2.1.1", | ||||
|                 "lodash": "^4.17.21", | ||||
|                 "yaml": "^2.2.2" | ||||
| @@ -36,7 +36,7 @@ | ||||
|                 "google-closure-compiler": "20221004.0.0", | ||||
|                 "html-webpack-plugin": "^4.5.2", | ||||
|                 "mini-css-extract-plugin": "^1.6.2", | ||||
|                 "webpack": "^4.46.0", | ||||
|                 "webpack": "^4.47.0", | ||||
|                 "webpack-cli": "^4.10.0" | ||||
|             } | ||||
|         }, | ||||
| @@ -4328,9 +4328,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "node_modules/css-minimizer-webpack-plugin/node_modules/semver": { | ||||
|             "version": "6.3.0", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", | ||||
|             "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", | ||||
|             "version": "6.3.1", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", | ||||
|             "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", | ||||
|             "dev": true, | ||||
|             "bin": { | ||||
|                 "semver": "bin/semver.js" | ||||
| @@ -6776,9 +6776,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "node_modules/jquery": { | ||||
|             "version": "3.6.4", | ||||
|             "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.4.tgz", | ||||
|             "integrity": "sha512-v28EW9DWDFpzcD9O5iyJXg3R3+q+mET5JhnjJzQUZMHOv67bpSIHq81GEYpPNZHG+XXHsfSme3nxp/hndKEcsQ==" | ||||
|             "version": "3.7.1", | ||||
|             "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", | ||||
|             "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" | ||||
|         }, | ||||
|         "node_modules/js-tokens": { | ||||
|             "version": "4.0.0", | ||||
| @@ -6955,9 +6955,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "node_modules/make-dir/node_modules/semver": { | ||||
|             "version": "5.7.1", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", | ||||
|             "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", | ||||
|             "version": "5.7.2", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", | ||||
|             "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", | ||||
|             "bin": { | ||||
|                 "semver": "bin/semver" | ||||
|             } | ||||
| @@ -7949,9 +7949,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "node_modules/postcss": { | ||||
|             "version": "8.4.21", | ||||
|             "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", | ||||
|             "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", | ||||
|             "version": "8.4.31", | ||||
|             "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", | ||||
|             "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", | ||||
|             "dev": true, | ||||
|             "funding": [ | ||||
|                 { | ||||
| @@ -7961,10 +7961,14 @@ | ||||
|                 { | ||||
|                     "type": "tidelift", | ||||
|                     "url": "https://tidelift.com/funding/github/npm/postcss" | ||||
|                 }, | ||||
|                 { | ||||
|                     "type": "github", | ||||
|                     "url": "https://github.com/sponsors/ai" | ||||
|                 } | ||||
|             ], | ||||
|             "dependencies": { | ||||
|                 "nanoid": "^3.3.4", | ||||
|                 "nanoid": "^3.3.6", | ||||
|                 "picocolors": "^1.0.0", | ||||
|                 "source-map-js": "^1.0.2" | ||||
|             }, | ||||
| @@ -9665,9 +9669,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "node_modules/semver": { | ||||
|             "version": "7.3.8", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", | ||||
|             "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", | ||||
|             "version": "7.5.4", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", | ||||
|             "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", | ||||
|             "dev": true, | ||||
|             "dependencies": { | ||||
|                 "lru-cache": "^6.0.0" | ||||
| @@ -11187,9 +11191,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "node_modules/webpack": { | ||||
|             "version": "4.46.0", | ||||
|             "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.46.0.tgz", | ||||
|             "integrity": "sha512-6jJuJjg8znb/xRItk7bkT0+Q7AHCYjjFnvKIWQPkNIOyRqoCGvkOs0ipeQzrqz4l5FtN5ZI/ukEHroeX/o1/5Q==", | ||||
|             "version": "4.47.0", | ||||
|             "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.47.0.tgz", | ||||
|             "integrity": "sha512-td7fYwgLSrky3fI1EuU5cneU4+pbH6GgOfuKNS1tNPcfdGinGELAqsb/BP4nnvZyKSG2i/xFGU7+n2PvZA8HJQ==", | ||||
|             "dependencies": { | ||||
|                 "@webassemblyjs/ast": "1.9.0", | ||||
|                 "@webassemblyjs/helper-module-context": "1.9.0", | ||||
| @@ -14672,9 +14676,9 @@ | ||||
|                     } | ||||
|                 }, | ||||
|                 "semver": { | ||||
|                     "version": "6.3.0", | ||||
|                     "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", | ||||
|                     "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", | ||||
|                     "version": "6.3.1", | ||||
|                     "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", | ||||
|                     "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", | ||||
|                     "dev": true | ||||
|                 }, | ||||
|                 "serialize-javascript": { | ||||
| @@ -16522,9 +16526,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "jquery": { | ||||
|             "version": "3.6.4", | ||||
|             "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.4.tgz", | ||||
|             "integrity": "sha512-v28EW9DWDFpzcD9O5iyJXg3R3+q+mET5JhnjJzQUZMHOv67bpSIHq81GEYpPNZHG+XXHsfSme3nxp/hndKEcsQ==" | ||||
|             "version": "3.7.1", | ||||
|             "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", | ||||
|             "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" | ||||
|         }, | ||||
|         "js-tokens": { | ||||
|             "version": "4.0.0", | ||||
| @@ -16671,9 +16675,9 @@ | ||||
|             }, | ||||
|             "dependencies": { | ||||
|                 "semver": { | ||||
|                     "version": "5.7.1", | ||||
|                     "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", | ||||
|                     "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" | ||||
|                     "version": "5.7.2", | ||||
|                     "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", | ||||
|                     "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" | ||||
|                 } | ||||
|             } | ||||
|         }, | ||||
| @@ -17464,12 +17468,12 @@ | ||||
|             "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==" | ||||
|         }, | ||||
|         "postcss": { | ||||
|             "version": "8.4.21", | ||||
|             "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", | ||||
|             "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", | ||||
|             "version": "8.4.31", | ||||
|             "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", | ||||
|             "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", | ||||
|             "dev": true, | ||||
|             "requires": { | ||||
|                 "nanoid": "^3.3.4", | ||||
|                 "nanoid": "^3.3.6", | ||||
|                 "picocolors": "^1.0.0", | ||||
|                 "source-map-js": "^1.0.2" | ||||
|             } | ||||
| @@ -18846,9 +18850,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "semver": { | ||||
|             "version": "7.3.8", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", | ||||
|             "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", | ||||
|             "version": "7.5.4", | ||||
|             "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", | ||||
|             "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", | ||||
|             "dev": true, | ||||
|             "requires": { | ||||
|                 "lru-cache": "^6.0.0" | ||||
| @@ -20088,9 +20092,9 @@ | ||||
|             } | ||||
|         }, | ||||
|         "webpack": { | ||||
|             "version": "4.46.0", | ||||
|             "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.46.0.tgz", | ||||
|             "integrity": "sha512-6jJuJjg8znb/xRItk7bkT0+Q7AHCYjjFnvKIWQPkNIOyRqoCGvkOs0ipeQzrqz4l5FtN5ZI/ukEHroeX/o1/5Q==", | ||||
|             "version": "4.47.0", | ||||
|             "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.47.0.tgz", | ||||
|             "integrity": "sha512-td7fYwgLSrky3fI1EuU5cneU4+pbH6GgOfuKNS1tNPcfdGinGELAqsb/BP4nnvZyKSG2i/xFGU7+n2PvZA8HJQ==", | ||||
|             "requires": { | ||||
|                 "@webassemblyjs/ast": "1.9.0", | ||||
|                 "@webassemblyjs/helper-module-context": "1.9.0", | ||||
|   | ||||
| @@ -16,7 +16,7 @@ | ||||
|         "datalist-polyfill": "^1.25.1", | ||||
|         "file-saver": "^2.0.5", | ||||
|         "fuzzysort": "^2.0.4", | ||||
|         "jquery": "^3.6.4", | ||||
|         "jquery": "^3.7.1", | ||||
|         "jstz": "^2.1.1", | ||||
|         "lodash": "^4.17.21", | ||||
|         "yaml": "^2.2.2" | ||||
| @@ -35,7 +35,7 @@ | ||||
|         "google-closure-compiler": "20221004.0.0", | ||||
|         "html-webpack-plugin": "^4.5.2", | ||||
|         "mini-css-extract-plugin": "^1.6.2", | ||||
|         "webpack": "^4.46.0", | ||||
|         "webpack": "^4.47.0", | ||||
|         "webpack-cli": "^4.10.0" | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -91,6 +91,13 @@ class DependencyListPlugin { | ||||
|          */ | ||||
|         const logger = compiler.getInfrastructureLogger(PLUGIN_NAME); | ||||
|  | ||||
|         /** | ||||
|          * The directory receiving the dependency list file. | ||||
|          * | ||||
|          * @type {string} | ||||
|          */ | ||||
|         const outputPath = this.options.path || compiler.options.output.path; | ||||
|  | ||||
|         /** | ||||
|          * The full path to the output file that should contain the list of | ||||
|          * discovered NPM module dependencies. | ||||
| @@ -98,7 +105,7 @@ class DependencyListPlugin { | ||||
|          * @type {string} | ||||
|          */ | ||||
|         const outputFile = path.join( | ||||
|             this.options.path || compiler.options.output.path, | ||||
|             outputPath, | ||||
|             this.options.filename || 'npm-dependencies.txt' | ||||
|         ); | ||||
|  | ||||
| @@ -132,6 +139,10 @@ class DependencyListPlugin { | ||||
|  | ||||
|             }); | ||||
|  | ||||
|             // Create output path if it doesn't yet exist | ||||
|             if (!fs.existsSync(outputPath)) | ||||
|                 fs.mkdirSync(outputPath, { recursive: true, mode: 0o755 }); | ||||
|  | ||||
|             // Write all discovered NPM packages to configured output file | ||||
|             const sortedCoords = Object.keys(moduleCoords).sort(); | ||||
|             fs.writeFileSync(outputFile, sortedCoords.join('\n') + '\n'); | ||||
|   | ||||
							
								
								
									
										47
									
								
								guacamole/util/run-npm.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										47
									
								
								guacamole/util/run-npm.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,47 @@ | ||||
| #!/bin/sh | ||||
| # | ||||
| # Licensed to the Apache Software Foundation (ASF) under one | ||||
| # or more contributor license agreements.  See the NOTICE file | ||||
| # distributed with this work for additional information | ||||
| # regarding copyright ownership.  The ASF licenses this file | ||||
| # to you under the Apache License, Version 2.0 (the | ||||
| # "License"); you may not use this file except in compliance | ||||
| # with the License.  You may obtain a copy of the License at | ||||
| # | ||||
| #   http://www.apache.org/licenses/LICENSE-2.0 | ||||
| # | ||||
| # Unless required by applicable law or agreed to in writing, | ||||
| # software distributed under the License is distributed on an | ||||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||||
| # KIND, either express or implied.  See the License for the | ||||
| # specific language governing permissions and limitations | ||||
| # under the License. | ||||
| # | ||||
|  | ||||
| # | ||||
| # run-npm.sh - Convenience script for automatically running the version of NPM | ||||
| # used by the "guacamole" build. All command-line options given to this script | ||||
| # are passed directly to NPM. The Guacamole build must have run at least once, | ||||
| # even unsuccessfully, for copies of Node.js and NPM to have been downloaded. | ||||
| # | ||||
|  | ||||
| ## | ||||
| ## The directory containing this script. | ||||
| ## | ||||
| UTIL_DIR="`dirname "$0"`" | ||||
|  | ||||
| ## | ||||
| ## The directory containing the "guacamole" project. | ||||
| ## | ||||
| PROJECT_DIR="$UTIL_DIR/.." | ||||
|  | ||||
| ## | ||||
| ## The directory containing copies of Node.js and NPM that were downloaded by | ||||
| ## the "guacamole" project build process. | ||||
| ## | ||||
| NODE_DIR="$PROJECT_DIR/target/node" | ||||
|  | ||||
| # Invoke NPM with provided arguments, using the Node.js and NPM versions | ||||
| # downloaded by the "guacamole" project build | ||||
| exec "$NODE_DIR/node" "$NODE_DIR/node_modules/npm/bin/npm-cli.js" "$@" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user