mirror of
				https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
				synced 2025-10-30 17:57:46 +00:00 
			
		
		
		
	
							
								
								
									
										179
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										179
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -1,12 +1,12 @@ | |||||||
| { | { | ||||||
|   "name": "ucentral-client", |   "name": "ucentral-client", | ||||||
|   "version": "2.6.25", |   "version": "2.6.26", | ||||||
|   "lockfileVersion": 2, |   "lockfileVersion": 2, | ||||||
|   "requires": true, |   "requires": true, | ||||||
|   "packages": { |   "packages": { | ||||||
|     "": { |     "": { | ||||||
|       "name": "ucentral-client", |       "name": "ucentral-client", | ||||||
|       "version": "2.6.25", |       "version": "2.6.26", | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|         "@coreui/coreui": "^3.4.0", |         "@coreui/coreui": "^3.4.0", | ||||||
|         "@coreui/icons": "^2.0.1", |         "@coreui/icons": "^2.0.1", | ||||||
| @@ -16,6 +16,7 @@ | |||||||
|         "apexcharts": "^3.27.1", |         "apexcharts": "^3.27.1", | ||||||
|         "axios": "^0.21.1", |         "axios": "^0.21.1", | ||||||
|         "axios-retry": "^3.1.9", |         "axios-retry": "^3.1.9", | ||||||
|  |         "buffer": "^6.0.3", | ||||||
|         "dagre": "^0.8.5", |         "dagre": "^0.8.5", | ||||||
|         "i18next": "^20.3.1", |         "i18next": "^20.3.1", | ||||||
|         "i18next-browser-languagedetector": "^6.1.2", |         "i18next-browser-languagedetector": "^6.1.2", | ||||||
| @@ -34,7 +35,7 @@ | |||||||
|         "react-tooltip": "^4.2.21", |         "react-tooltip": "^4.2.21", | ||||||
|         "react-widgets": "^5.1.1", |         "react-widgets": "^5.1.1", | ||||||
|         "sass": "^1.35.1", |         "sass": "^1.35.1", | ||||||
|         "ucentral-libs": "^1.0.60", |         "ucentral-libs": "^1.0.61", | ||||||
|         "uuid": "^8.3.2" |         "uuid": "^8.3.2" | ||||||
|       }, |       }, | ||||||
|       "devDependencies": { |       "devDependencies": { | ||||||
| @@ -2960,7 +2961,7 @@ | |||||||
|     "node_modules/ansi-html": { |     "node_modules/ansi-html": { | ||||||
|       "version": "0.0.7", |       "version": "0.0.7", | ||||||
|       "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", |       "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", | ||||||
|       "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", |       "integrity": "sha512-JoAxEa1DfP9m2xfB/y2r/aKcwXNlltr4+0QSBC4TrLfcxyvepX2Pv0t/xpgGV5bGsDzCYV8SzjWgyCW0T9yYbA==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|       "engines": [ |       "engines": [ | ||||||
|         "node >= 0.8.0" |         "node >= 0.8.0" | ||||||
| @@ -3432,6 +3433,25 @@ | |||||||
|         "node": ">=0.10.0" |         "node": ">=0.10.0" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "node_modules/base64-js": { | ||||||
|  |       "version": "1.5.1", | ||||||
|  |       "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", | ||||||
|  |       "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", | ||||||
|  |       "funding": [ | ||||||
|  |         { | ||||||
|  |           "type": "github", | ||||||
|  |           "url": "https://github.com/sponsors/feross" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "type": "patreon", | ||||||
|  |           "url": "https://www.patreon.com/feross" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "type": "consulting", | ||||||
|  |           "url": "https://feross.org/support" | ||||||
|  |         } | ||||||
|  |       ] | ||||||
|  |     }, | ||||||
|     "node_modules/batch": { |     "node_modules/batch": { | ||||||
|       "version": "0.6.1", |       "version": "0.6.1", | ||||||
|       "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", |       "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", | ||||||
| @@ -3574,6 +3594,29 @@ | |||||||
|         "url": "https://opencollective.com/browserslist" |         "url": "https://opencollective.com/browserslist" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "node_modules/buffer": { | ||||||
|  |       "version": "6.0.3", | ||||||
|  |       "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", | ||||||
|  |       "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", | ||||||
|  |       "funding": [ | ||||||
|  |         { | ||||||
|  |           "type": "github", | ||||||
|  |           "url": "https://github.com/sponsors/feross" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "type": "patreon", | ||||||
|  |           "url": "https://www.patreon.com/feross" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "type": "consulting", | ||||||
|  |           "url": "https://feross.org/support" | ||||||
|  |         } | ||||||
|  |       ], | ||||||
|  |       "dependencies": { | ||||||
|  |         "base64-js": "^1.3.1", | ||||||
|  |         "ieee754": "^1.2.1" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "node_modules/buffer-from": { |     "node_modules/buffer-from": { | ||||||
|       "version": "1.1.2", |       "version": "1.1.2", | ||||||
|       "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", |       "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", | ||||||
| @@ -6221,9 +6264,9 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "node_modules/eventsource": { |     "node_modules/eventsource": { | ||||||
|       "version": "1.1.0", |       "version": "1.1.1", | ||||||
|       "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.0.tgz", |       "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.1.tgz", | ||||||
|       "integrity": "sha512-VSJjT5oCNrFvCS6igjzPAt5hBzQ2qPBFIbJ03zLI9SE0mxwZpMw6BfJrbFHm1a141AavMEB8JHmBhWAd66PfCg==", |       "integrity": "sha512-qV5ZC0h7jYIAOhArFJgSfdyz6rALJyb270714o7ZtNnw2WSJ+eexhKtE0O8LYPRsHZHf2osHKZBxGPvm3kPkCA==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|         "original": "^1.0.0" |         "original": "^1.0.0" | ||||||
| @@ -7786,6 +7829,25 @@ | |||||||
|         "postcss": "^8.1.0" |         "postcss": "^8.1.0" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "node_modules/ieee754": { | ||||||
|  |       "version": "1.2.1", | ||||||
|  |       "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", | ||||||
|  |       "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", | ||||||
|  |       "funding": [ | ||||||
|  |         { | ||||||
|  |           "type": "github", | ||||||
|  |           "url": "https://github.com/sponsors/feross" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "type": "patreon", | ||||||
|  |           "url": "https://www.patreon.com/feross" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "type": "consulting", | ||||||
|  |           "url": "https://feross.org/support" | ||||||
|  |         } | ||||||
|  |       ] | ||||||
|  |     }, | ||||||
|     "node_modules/ignore": { |     "node_modules/ignore": { | ||||||
|       "version": "4.0.6", |       "version": "4.0.6", | ||||||
|       "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", |       "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", | ||||||
| @@ -8445,12 +8507,6 @@ | |||||||
|       "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", |       "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", | ||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "node_modules/json3": { |  | ||||||
|       "version": "3.3.3", |  | ||||||
|       "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", |  | ||||||
|       "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==", |  | ||||||
|       "dev": true |  | ||||||
|     }, |  | ||||||
|     "node_modules/json5": { |     "node_modules/json5": { | ||||||
|       "version": "2.2.0", |       "version": "2.2.0", | ||||||
|       "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", |       "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", | ||||||
| @@ -11739,9 +11795,9 @@ | |||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "node_modules/semver-regex": { |     "node_modules/semver-regex": { | ||||||
|       "version": "3.1.3", |       "version": "3.1.4", | ||||||
|       "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", |       "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", | ||||||
|       "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", |       "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|       "engines": { |       "engines": { | ||||||
|         "node": ">=8" |         "node": ">=8" | ||||||
| @@ -12244,17 +12300,22 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "node_modules/sockjs-client": { |     "node_modules/sockjs-client": { | ||||||
|       "version": "1.5.2", |       "version": "1.6.0", | ||||||
|       "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.2.tgz", |       "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.6.0.tgz", | ||||||
|       "integrity": "sha512-ZzRxPBISQE7RpzlH4tKJMQbHM9pabHluk0WBaxAQ+wm/UieeBVBou0p4wVnSQGN9QmpAZygQ0cDIypWuqOFmFQ==", |       "integrity": "sha512-qVHJlyfdHFht3eBFZdKEXKTlb7I4IV41xnVNo8yUKA1UHcPJwgW2SvTq9LhnjjCywSkSK7c/e4nghU0GOoMCRQ==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|         "debug": "^3.2.6", |         "debug": "^3.2.7", | ||||||
|         "eventsource": "^1.0.7", |         "eventsource": "^1.1.0", | ||||||
|         "faye-websocket": "^0.11.3", |         "faye-websocket": "^0.11.4", | ||||||
|         "inherits": "^2.0.4", |         "inherits": "^2.0.4", | ||||||
|         "json3": "^3.3.3", |         "url-parse": "^1.5.10" | ||||||
|         "url-parse": "^1.5.3" |       }, | ||||||
|  |       "engines": { | ||||||
|  |         "node": ">=12" | ||||||
|  |       }, | ||||||
|  |       "funding": { | ||||||
|  |         "url": "https://tidelift.com/funding/github/npm/sockjs-client" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "node_modules/sockjs-client/node_modules/debug": { |     "node_modules/sockjs-client/node_modules/debug": { | ||||||
| @@ -13359,9 +13420,9 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "node_modules/ucentral-libs": { |     "node_modules/ucentral-libs": { | ||||||
|       "version": "1.0.60", |       "version": "1.0.61", | ||||||
|       "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.60.tgz", |       "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.61.tgz", | ||||||
|       "integrity": "sha512-PRw2QTcbnHdrA8rPQhREI1FOKyuZUt48H3KcSGQgHpik2Ni+0una7jRfMFXwOU9yHzxQAlYG0EWLrzBnrKRvGA==", |       "integrity": "sha512-RMUFLC6PMeh4S1MSkDXYjpQfh4yWeZX5Rm5FTRNbfYfaLKuL8CbRZjnuGPFrgABGQRWk5TITxXQASYBpmOq1dQ==", | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|         "@coreui/coreui": "^3.4.0", |         "@coreui/coreui": "^3.4.0", | ||||||
|         "@coreui/icons": "^2.0.1", |         "@coreui/icons": "^2.0.1", | ||||||
| @@ -14208,7 +14269,7 @@ | |||||||
|     "node_modules/webpack-dev-server/node_modules/glob-parent": { |     "node_modules/webpack-dev-server/node_modules/glob-parent": { | ||||||
|       "version": "3.1.0", |       "version": "3.1.0", | ||||||
|       "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", |       "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", | ||||||
|       "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", |       "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|         "is-glob": "^3.1.0", |         "is-glob": "^3.1.0", | ||||||
| @@ -17039,7 +17100,7 @@ | |||||||
|     "ansi-html": { |     "ansi-html": { | ||||||
|       "version": "0.0.7", |       "version": "0.0.7", | ||||||
|       "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", |       "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", | ||||||
|       "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", |       "integrity": "sha512-JoAxEa1DfP9m2xfB/y2r/aKcwXNlltr4+0QSBC4TrLfcxyvepX2Pv0t/xpgGV5bGsDzCYV8SzjWgyCW0T9yYbA==", | ||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "ansi-html-community": { |     "ansi-html-community": { | ||||||
| @@ -17392,6 +17453,11 @@ | |||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "base64-js": { | ||||||
|  |       "version": "1.5.1", | ||||||
|  |       "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", | ||||||
|  |       "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" | ||||||
|  |     }, | ||||||
|     "batch": { |     "batch": { | ||||||
|       "version": "0.6.1", |       "version": "0.6.1", | ||||||
|       "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", |       "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", | ||||||
| @@ -17511,6 +17577,15 @@ | |||||||
|         "picocolors": "^1.0.0" |         "picocolors": "^1.0.0" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "buffer": { | ||||||
|  |       "version": "6.0.3", | ||||||
|  |       "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", | ||||||
|  |       "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", | ||||||
|  |       "requires": { | ||||||
|  |         "base64-js": "^1.3.1", | ||||||
|  |         "ieee754": "^1.2.1" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "buffer-from": { |     "buffer-from": { | ||||||
|       "version": "1.1.2", |       "version": "1.1.2", | ||||||
|       "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", |       "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", | ||||||
| @@ -19522,9 +19597,9 @@ | |||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "eventsource": { |     "eventsource": { | ||||||
|       "version": "1.1.0", |       "version": "1.1.1", | ||||||
|       "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.0.tgz", |       "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.1.1.tgz", | ||||||
|       "integrity": "sha512-VSJjT5oCNrFvCS6igjzPAt5hBzQ2qPBFIbJ03zLI9SE0mxwZpMw6BfJrbFHm1a141AavMEB8JHmBhWAd66PfCg==", |       "integrity": "sha512-qV5ZC0h7jYIAOhArFJgSfdyz6rALJyb270714o7ZtNnw2WSJ+eexhKtE0O8LYPRsHZHf2osHKZBxGPvm3kPkCA==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|       "requires": { |       "requires": { | ||||||
|         "original": "^1.0.0" |         "original": "^1.0.0" | ||||||
| @@ -20730,6 +20805,11 @@ | |||||||
|       "dev": true, |       "dev": true, | ||||||
|       "requires": {} |       "requires": {} | ||||||
|     }, |     }, | ||||||
|  |     "ieee754": { | ||||||
|  |       "version": "1.2.1", | ||||||
|  |       "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", | ||||||
|  |       "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" | ||||||
|  |     }, | ||||||
|     "ignore": { |     "ignore": { | ||||||
|       "version": "4.0.6", |       "version": "4.0.6", | ||||||
|       "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", |       "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", | ||||||
| @@ -21199,12 +21279,6 @@ | |||||||
|       "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", |       "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", | ||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "json3": { |  | ||||||
|       "version": "3.3.3", |  | ||||||
|       "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", |  | ||||||
|       "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==", |  | ||||||
|       "dev": true |  | ||||||
|     }, |  | ||||||
|     "json5": { |     "json5": { | ||||||
|       "version": "2.2.0", |       "version": "2.2.0", | ||||||
|       "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", |       "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", | ||||||
| @@ -23616,9 +23690,9 @@ | |||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "semver-regex": { |     "semver-regex": { | ||||||
|       "version": "3.1.3", |       "version": "3.1.4", | ||||||
|       "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", |       "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", | ||||||
|       "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", |       "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", | ||||||
|       "dev": true |       "dev": true | ||||||
|     }, |     }, | ||||||
|     "send": { |     "send": { | ||||||
| @@ -24042,17 +24116,16 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "sockjs-client": { |     "sockjs-client": { | ||||||
|       "version": "1.5.2", |       "version": "1.6.0", | ||||||
|       "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.5.2.tgz", |       "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.6.0.tgz", | ||||||
|       "integrity": "sha512-ZzRxPBISQE7RpzlH4tKJMQbHM9pabHluk0WBaxAQ+wm/UieeBVBou0p4wVnSQGN9QmpAZygQ0cDIypWuqOFmFQ==", |       "integrity": "sha512-qVHJlyfdHFht3eBFZdKEXKTlb7I4IV41xnVNo8yUKA1UHcPJwgW2SvTq9LhnjjCywSkSK7c/e4nghU0GOoMCRQ==", | ||||||
|       "dev": true, |       "dev": true, | ||||||
|       "requires": { |       "requires": { | ||||||
|         "debug": "^3.2.6", |         "debug": "^3.2.7", | ||||||
|         "eventsource": "^1.0.7", |         "eventsource": "^1.1.0", | ||||||
|         "faye-websocket": "^0.11.3", |         "faye-websocket": "^0.11.4", | ||||||
|         "inherits": "^2.0.4", |         "inherits": "^2.0.4", | ||||||
|         "json3": "^3.3.3", |         "url-parse": "^1.5.10" | ||||||
|         "url-parse": "^1.5.3" |  | ||||||
|       }, |       }, | ||||||
|       "dependencies": { |       "dependencies": { | ||||||
|         "debug": { |         "debug": { | ||||||
| @@ -24902,9 +24975,9 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "ucentral-libs": { |     "ucentral-libs": { | ||||||
|       "version": "1.0.60", |       "version": "1.0.61", | ||||||
|       "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.60.tgz", |       "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.61.tgz", | ||||||
|       "integrity": "sha512-PRw2QTcbnHdrA8rPQhREI1FOKyuZUt48H3KcSGQgHpik2Ni+0una7jRfMFXwOU9yHzxQAlYG0EWLrzBnrKRvGA==", |       "integrity": "sha512-RMUFLC6PMeh4S1MSkDXYjpQfh4yWeZX5Rm5FTRNbfYfaLKuL8CbRZjnuGPFrgABGQRWk5TITxXQASYBpmOq1dQ==", | ||||||
|       "requires": { |       "requires": { | ||||||
|         "@coreui/coreui": "^3.4.0", |         "@coreui/coreui": "^3.4.0", | ||||||
|         "@coreui/icons": "^2.0.1", |         "@coreui/icons": "^2.0.1", | ||||||
| @@ -25587,7 +25660,7 @@ | |||||||
|         "glob-parent": { |         "glob-parent": { | ||||||
|           "version": "3.1.0", |           "version": "3.1.0", | ||||||
|           "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", |           "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", | ||||||
|           "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", |           "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", | ||||||
|           "dev": true, |           "dev": true, | ||||||
|           "requires": { |           "requires": { | ||||||
|             "is-glob": "^3.1.0", |             "is-glob": "^3.1.0", | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "ucentral-client", |   "name": "ucentral-client", | ||||||
|   "version": "2.6.25", |   "version": "2.6.26", | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "@coreui/coreui": "^3.4.0", |     "@coreui/coreui": "^3.4.0", | ||||||
|     "@coreui/icons": "^2.0.1", |     "@coreui/icons": "^2.0.1", | ||||||
| @@ -10,6 +10,7 @@ | |||||||
|     "apexcharts": "^3.27.1", |     "apexcharts": "^3.27.1", | ||||||
|     "axios": "^0.21.1", |     "axios": "^0.21.1", | ||||||
|     "axios-retry": "^3.1.9", |     "axios-retry": "^3.1.9", | ||||||
|  |     "buffer": "^6.0.3", | ||||||
|     "dagre": "^0.8.5", |     "dagre": "^0.8.5", | ||||||
|     "i18next": "^20.3.1", |     "i18next": "^20.3.1", | ||||||
|     "i18next-browser-languagedetector": "^6.1.2", |     "i18next-browser-languagedetector": "^6.1.2", | ||||||
| @@ -28,7 +29,7 @@ | |||||||
|     "react-tooltip": "^4.2.21", |     "react-tooltip": "^4.2.21", | ||||||
|     "react-widgets": "^5.1.1", |     "react-widgets": "^5.1.1", | ||||||
|     "sass": "^1.35.1", |     "sass": "^1.35.1", | ||||||
|     "ucentral-libs": "^1.0.60", |     "ucentral-libs": "^1.0.61", | ||||||
|     "uuid": "^8.3.2" |     "uuid": "^8.3.2" | ||||||
|   }, |   }, | ||||||
|   "main": "index.js", |   "main": "index.js", | ||||||
|   | |||||||
| @@ -8,6 +8,7 @@ | |||||||
| 		"factory_reset": "Auf Werkseinstellungen zurückgesetzt", | 		"factory_reset": "Auf Werkseinstellungen zurückgesetzt", | ||||||
| 		"firmware_upgrade": "Firmware Aktualisierung", | 		"firmware_upgrade": "Firmware Aktualisierung", | ||||||
| 		"reboot": "Gerät neustarten", | 		"reboot": "Gerät neustarten", | ||||||
|  | 		"request_ie": "Fordern Sie IEs an", | ||||||
| 		"telemetry": "Telemetrie", | 		"telemetry": "Telemetrie", | ||||||
| 		"title": "Geräte Administrations", | 		"title": "Geräte Administrations", | ||||||
| 		"trace": "Tcpdump starten", | 		"trace": "Tcpdump starten", | ||||||
| @@ -27,6 +28,7 @@ | |||||||
| 		"error": "Fehler beim Senden des Befehls!", | 		"error": "Fehler beim Senden des Befehls!", | ||||||
| 		"error_delete_log": "Fehler beim Versuch zu löschen: {{error}}", | 		"error_delete_log": "Fehler beim Versuch zu löschen: {{error}}", | ||||||
| 		"event_queue": "Ereigniswarteschlange", | 		"event_queue": "Ereigniswarteschlange", | ||||||
|  | 		"reboot_start": "Der Neustartvorgang hat begonnen!", | ||||||
| 		"success": "Befehl wurde erfolgreich übermittelt", | 		"success": "Befehl wurde erfolgreich übermittelt", | ||||||
| 		"title": "Gerätebefehle", | 		"title": "Gerätebefehle", | ||||||
| 		"unable_queue": "Anfrage für Ereigniswarteschlange kann nicht abgeschlossen werden: {{error}}" | 		"unable_queue": "Anfrage für Ereigniswarteschlange kann nicht abgeschlossen werden: {{error}}" | ||||||
| @@ -148,6 +150,7 @@ | |||||||
| 		"need_date": "Du brauchst ein Datum...", | 		"need_date": "Du brauchst ein Datum...", | ||||||
| 		"no": "Nein", | 		"no": "Nein", | ||||||
| 		"no_addresses_found": "Keine Adressen gefunden", | 		"no_addresses_found": "Keine Adressen gefunden", | ||||||
|  | 		"no_clients_found": "Keine Kunden gefunden", | ||||||
| 		"no_devices_found": "Keine Geräte gefunden", | 		"no_devices_found": "Keine Geräte gefunden", | ||||||
| 		"no_items": "Keine Gegenstände", | 		"no_items": "Keine Gegenstände", | ||||||
| 		"none": "Keiner", | 		"none": "Keiner", | ||||||
| @@ -326,11 +329,13 @@ | |||||||
| 		"blacklisted_on": "Datum", | 		"blacklisted_on": "Datum", | ||||||
| 		"capabilities": "Fähigkeiten", | 		"capabilities": "Fähigkeiten", | ||||||
| 		"certificate_explanation": "Zertifikate der angeschlossenen Geräte", | 		"certificate_explanation": "Zertifikate der angeschlossenen Geräte", | ||||||
|  | 		"count_explanation": "Geräte, die auf diese Gateway-Instanz verweisen", | ||||||
| 		"edit_blacklist": "Gerät auf der schwarzen Liste bearbeiten", | 		"edit_blacklist": "Gerät auf der schwarzen Liste bearbeiten", | ||||||
| 		"error_adding_blacklist": "Fehler beim Hinzufügen des Geräts zur Blacklist: {{error}}", | 		"error_adding_blacklist": "Fehler beim Hinzufügen des Geräts zur Blacklist: {{error}}", | ||||||
| 		"error_edit_blacklist": "Fehler beim Bearbeiten der schwarzen Liste: {{error}}", | 		"error_edit_blacklist": "Fehler beim Bearbeiten der schwarzen Liste: {{error}}", | ||||||
| 		"error_fetching_device": "Fehler beim Abrufen der Geräteinformationen: {{error}}", | 		"error_fetching_device": "Fehler beim Abrufen der Geräteinformationen: {{error}}", | ||||||
| 		"error_fetching_devices": "Fehler beim Abrufen von Geräten: {{error}}", | 		"error_fetching_devices": "Fehler beim Abrufen von Geräten: {{error}}", | ||||||
|  | 		"firmware_count_explanation": "Dies ist die Gesamtzahl der Geräte, die diesem Firmware-Server hinzugefügt wurden, einschließlich der Geräte, die derzeit nicht auf den zugehörigen Gateway-Server verweisen.", | ||||||
| 		"health_explanation": "Zustand der verbundenen Geräte ((Geräte = 100 % * 100 + Geräte > 90 % * 95 + Geräte > 60 % * 75 + Geräte < 60 % * 35) / Verbundene Geräte)", | 		"health_explanation": "Zustand der verbundenen Geräte ((Geräte = 100 % * 100 + Geräte > 90 % * 95 + Geräte > 60 % * 75 + Geräte < 60 % * 35) / Verbundene Geräte)", | ||||||
| 		"memory_explanation": "Anzahl verbundener Geräte mit entsprechendem belegtem Speicher %", | 		"memory_explanation": "Anzahl verbundener Geräte mit entsprechendem belegtem Speicher %", | ||||||
| 		"remove_from_blacklist": "Von der schwarzen Liste entfernen", | 		"remove_from_blacklist": "Von der schwarzen Liste entfernen", | ||||||
| @@ -424,7 +429,7 @@ | |||||||
| 		"to_release": "Zu", | 		"to_release": "Zu", | ||||||
| 		"unknown_firmware_status": "Unbekannter Firmware-Status", | 		"unknown_firmware_status": "Unbekannter Firmware-Status", | ||||||
| 		"upgrade": "Aktualisierung", | 		"upgrade": "Aktualisierung", | ||||||
| 		"upgrade_command_submitted": "Upgrade-Befehl erfolgreich gesendet", | 		"upgrade_command_submitted": "Aktualisierung läuft...", | ||||||
| 		"upgrade_to_latest": "Neueste", | 		"upgrade_to_latest": "Neueste", | ||||||
| 		"upgrade_to_version": "Upgrade auf diese Revision", | 		"upgrade_to_version": "Upgrade auf diese Revision", | ||||||
| 		"upgrading": "Upgrade durchführen..." | 		"upgrading": "Upgrade durchführen..." | ||||||
| @@ -714,6 +719,8 @@ | |||||||
| 	"telemetry": { | 	"telemetry": { | ||||||
| 		"connection_failed": "Verbindung konnte nicht hergestellt werden. Fehler: {{error}}", | 		"connection_failed": "Verbindung konnte nicht hergestellt werden. Fehler: {{error}}", | ||||||
| 		"interval": "Intervall", | 		"interval": "Intervall", | ||||||
|  | 		"lifetime": "Dauer", | ||||||
|  | 		"outputmode": "Ausgabemodus", | ||||||
| 		"last_update": "Letztes Update", | 		"last_update": "Letztes Update", | ||||||
| 		"types": "Typen" | 		"types": "Typen" | ||||||
| 	}, | 	}, | ||||||
| @@ -725,7 +732,7 @@ | |||||||
| 		"title": "Tcpdump", | 		"title": "Tcpdump", | ||||||
| 		"trace": "Spur", | 		"trace": "Spur", | ||||||
| 		"trace_not_successful": "Trace nicht erfolgreich: Gateway hat folgenden Fehler gemeldet: {{error}}", | 		"trace_not_successful": "Trace nicht erfolgreich: Gateway hat folgenden Fehler gemeldet: {{error}}", | ||||||
| 		"wait_for_file": "Möchten Sie warten, bis die Trace-Datei fertig ist?", | 		"wait_for_file": "Warten, bis die Trace-Datei fertig ist?", | ||||||
| 		"waiting_directions": "Bitte warten Sie auf die Trace-Datendatei. Dies könnte eine Weile dauern. Sie können das Warten beenden und die Ablaufverfolgungsdatei später aus der Befehlstabelle abrufen.", | 		"waiting_directions": "Bitte warten Sie auf die Trace-Datendatei. Dies könnte eine Weile dauern. Sie können das Warten beenden und die Ablaufverfolgungsdatei später aus der Befehlstabelle abrufen.", | ||||||
| 		"waiting_seconds": "Verstrichene Zeit: {{seconds}} Sekunden" | 		"waiting_seconds": "Verstrichene Zeit: {{seconds}} Sekunden" | ||||||
| 	}, | 	}, | ||||||
|   | |||||||
| @@ -8,6 +8,7 @@ | |||||||
| 		"factory_reset": "Factory Reset", | 		"factory_reset": "Factory Reset", | ||||||
| 		"firmware_upgrade": "Firmware Upgrade", | 		"firmware_upgrade": "Firmware Upgrade", | ||||||
| 		"reboot": "Reboot", | 		"reboot": "Reboot", | ||||||
|  | 		"request_ie": "Request IEs", | ||||||
| 		"telemetry": "Telemetry", | 		"telemetry": "Telemetry", | ||||||
| 		"title": "Commands", | 		"title": "Commands", | ||||||
| 		"trace": "Trace", | 		"trace": "Trace", | ||||||
| @@ -27,6 +28,7 @@ | |||||||
| 		"error": "Error while submitting command!", | 		"error": "Error while submitting command!", | ||||||
| 		"error_delete_log": "Error while trying to delete: {{error}}", | 		"error_delete_log": "Error while trying to delete: {{error}}", | ||||||
| 		"event_queue": "Event Queue", | 		"event_queue": "Event Queue", | ||||||
|  | 		"reboot_start": "Reboot process has started!", | ||||||
| 		"success": "Command submitted successfully, you can look at the Commands log for the result", | 		"success": "Command submitted successfully, you can look at the Commands log for the result", | ||||||
| 		"title": "Command History", | 		"title": "Command History", | ||||||
| 		"unable_queue": "Unable to complete event queue request: {{error}}" | 		"unable_queue": "Unable to complete event queue request: {{error}}" | ||||||
| @@ -148,6 +150,7 @@ | |||||||
| 		"need_date": "You need a date...", | 		"need_date": "You need a date...", | ||||||
| 		"no": "No", | 		"no": "No", | ||||||
| 		"no_addresses_found": "No Addresses Found", | 		"no_addresses_found": "No Addresses Found", | ||||||
|  | 		"no_clients_found": "No Clients Found", | ||||||
| 		"no_devices_found": "No Devices Found", | 		"no_devices_found": "No Devices Found", | ||||||
| 		"no_items": "No Items", | 		"no_items": "No Items", | ||||||
| 		"none": "None", | 		"none": "None", | ||||||
| @@ -326,11 +329,13 @@ | |||||||
| 		"blacklisted_on": "Date", | 		"blacklisted_on": "Date", | ||||||
| 		"capabilities": "Capabilities", | 		"capabilities": "Capabilities", | ||||||
| 		"certificate_explanation": "Certificates of connected devices", | 		"certificate_explanation": "Certificates of connected devices", | ||||||
|  | 		"count_explanation": "Devices pointing at this gateway instance", | ||||||
| 		"edit_blacklist": "Edit Blacklisted Device", | 		"edit_blacklist": "Edit Blacklisted Device", | ||||||
| 		"error_adding_blacklist": "Error adding device to blacklist: {{error}}", | 		"error_adding_blacklist": "Error adding device to blacklist: {{error}}", | ||||||
| 		"error_edit_blacklist": "Error editing blacklist: {{error}}", | 		"error_edit_blacklist": "Error editing blacklist: {{error}}", | ||||||
| 		"error_fetching_device": "Error fetching device information: {{error}}", | 		"error_fetching_device": "Error fetching device information: {{error}}", | ||||||
| 		"error_fetching_devices": "Error while fetching devices: {{error}}", | 		"error_fetching_devices": "Error while fetching devices: {{error}}", | ||||||
|  | 		"firmware_count_explanation": "This is the total amount of devices that were added to this firmware server, including devices not currently pointing at the related gateway server.", | ||||||
| 		"health_explanation": "Health of connected devices ((Devices=100% * 100 + Devices>90% * 95 + Devices>60% * 75 + Devices<60% * 35) / ConnectedDevices)", | 		"health_explanation": "Health of connected devices ((Devices=100% * 100 + Devices>90% * 95 + Devices>60% * 75 + Devices<60% * 35) / ConnectedDevices)", | ||||||
| 		"memory_explanation": "Amount of connected devices with corresponding memory used percentage", | 		"memory_explanation": "Amount of connected devices with corresponding memory used percentage", | ||||||
| 		"remove_from_blacklist": "Remove from blacklist", | 		"remove_from_blacklist": "Remove from blacklist", | ||||||
| @@ -424,7 +429,7 @@ | |||||||
| 		"to_release": "To", | 		"to_release": "To", | ||||||
| 		"unknown_firmware_status": "Unknown Firmware Status", | 		"unknown_firmware_status": "Unknown Firmware Status", | ||||||
| 		"upgrade": "Upgrade", | 		"upgrade": "Upgrade", | ||||||
| 		"upgrade_command_submitted": "Upgrade Command Submitted Successfully", | 		"upgrade_command_submitted": "Upgrade in progress...", | ||||||
| 		"upgrade_to_latest": "Latest", | 		"upgrade_to_latest": "Latest", | ||||||
| 		"upgrade_to_version": "Upgrade to this Revision", | 		"upgrade_to_version": "Upgrade to this Revision", | ||||||
| 		"upgrading": "Upgrading..." | 		"upgrading": "Upgrading..." | ||||||
| @@ -714,6 +719,8 @@ | |||||||
| 	"telemetry": { | 	"telemetry": { | ||||||
| 		"connection_failed": "Failed to create connection. Error: {{error}}", | 		"connection_failed": "Failed to create connection. Error: {{error}}", | ||||||
| 		"interval": "Interval", | 		"interval": "Interval", | ||||||
|  | 		"lifetime": "Duration", | ||||||
|  | 		"outputmode": "Output Mode", | ||||||
| 		"last_update": "Last Update", | 		"last_update": "Last Update", | ||||||
| 		"types": "Types" | 		"types": "Types" | ||||||
| 	}, | 	}, | ||||||
| @@ -725,7 +732,7 @@ | |||||||
| 		"title": "Trace", | 		"title": "Trace", | ||||||
| 		"trace": "Trace", | 		"trace": "Trace", | ||||||
| 		"trace_not_successful": "Trace not successful: gateway reported the following error : {{error}}", | 		"trace_not_successful": "Trace not successful: gateway reported the following error : {{error}}", | ||||||
| 		"wait_for_file": "Would you like to wait until the trace file is ready?", | 		"wait_for_file": "Wait until the trace file is ready?", | ||||||
| 		"waiting_directions": "Please wait for the trace data file. This may take some time. You can exit the wait and retrieve the trace file from the commands table later.", | 		"waiting_directions": "Please wait for the trace data file. This may take some time. You can exit the wait and retrieve the trace file from the commands table later.", | ||||||
| 		"waiting_seconds": "Time Elapsed: {{seconds}} seconds" | 		"waiting_seconds": "Time Elapsed: {{seconds}} seconds" | ||||||
| 	}, | 	}, | ||||||
|   | |||||||
| @@ -8,6 +8,7 @@ | |||||||
| 		"factory_reset": "Restablecimiento De Fábrica", | 		"factory_reset": "Restablecimiento De Fábrica", | ||||||
| 		"firmware_upgrade": "Actualización de firmware", | 		"firmware_upgrade": "Actualización de firmware", | ||||||
| 		"reboot": "Reiniciar", | 		"reboot": "Reiniciar", | ||||||
|  | 		"request_ie": "Solicitar IE", | ||||||
| 		"telemetry": "Telemetria", | 		"telemetry": "Telemetria", | ||||||
| 		"title": "Comandos", | 		"title": "Comandos", | ||||||
| 		"trace": "Rastro", | 		"trace": "Rastro", | ||||||
| @@ -27,6 +28,7 @@ | |||||||
| 		"error": "¡Error al enviar el comando!", | 		"error": "¡Error al enviar el comando!", | ||||||
| 		"error_delete_log": "Error al intentar eliminar: {{error}}", | 		"error_delete_log": "Error al intentar eliminar: {{error}}", | ||||||
| 		"event_queue": "Cola de eventos", | 		"event_queue": "Cola de eventos", | ||||||
|  | 		"reboot_start": "¡El proceso de reinicio ha comenzado!", | ||||||
| 		"success": "Comando enviado con éxito, puede consultar el registro de Comandos para ver el resultado", | 		"success": "Comando enviado con éxito, puede consultar el registro de Comandos para ver el resultado", | ||||||
| 		"title": "Historial de Comandos", | 		"title": "Historial de Comandos", | ||||||
| 		"unable_queue": "No se pudo completar la solicitud de cola de eventos: {{error}}" | 		"unable_queue": "No se pudo completar la solicitud de cola de eventos: {{error}}" | ||||||
| @@ -148,6 +150,7 @@ | |||||||
| 		"need_date": "Necesitas una cita ...", | 		"need_date": "Necesitas una cita ...", | ||||||
| 		"no": "No", | 		"no": "No", | ||||||
| 		"no_addresses_found": "No se encontraron direcciones", | 		"no_addresses_found": "No se encontraron direcciones", | ||||||
|  | 		"no_clients_found": "No se encontraron clientes", | ||||||
| 		"no_devices_found": "No se encontraron dispositivos", | 		"no_devices_found": "No se encontraron dispositivos", | ||||||
| 		"no_items": "No hay articulos", | 		"no_items": "No hay articulos", | ||||||
| 		"none": "Ninguna", | 		"none": "Ninguna", | ||||||
| @@ -326,11 +329,13 @@ | |||||||
| 		"blacklisted_on": "Fecha", | 		"blacklisted_on": "Fecha", | ||||||
| 		"capabilities": "capacidades", | 		"capabilities": "capacidades", | ||||||
| 		"certificate_explanation": "Certificados de dispositivos conectados", | 		"certificate_explanation": "Certificados de dispositivos conectados", | ||||||
|  | 		"count_explanation": "Dispositivos que apuntan a esta instancia de puerta de enlace", | ||||||
| 		"edit_blacklist": "Editar dispositivo incluido en la lista negra", | 		"edit_blacklist": "Editar dispositivo incluido en la lista negra", | ||||||
| 		"error_adding_blacklist": "Error al agregar el dispositivo a la lista negra: {{error}}", | 		"error_adding_blacklist": "Error al agregar el dispositivo a la lista negra: {{error}}", | ||||||
| 		"error_edit_blacklist": "Error al editar la lista negra: {{error}}", | 		"error_edit_blacklist": "Error al editar la lista negra: {{error}}", | ||||||
| 		"error_fetching_device": "Error al obtener la información del dispositivo: {{error}}", | 		"error_fetching_device": "Error al obtener la información del dispositivo: {{error}}", | ||||||
| 		"error_fetching_devices": "Error al recuperar dispositivos: {{error}}", | 		"error_fetching_devices": "Error al recuperar dispositivos: {{error}}", | ||||||
|  | 		"firmware_count_explanation": "Esta es la cantidad total de dispositivos que se agregaron a este servidor de firmware, incluidos los dispositivos que actualmente no apuntan al servidor de puerta de enlace relacionado.", | ||||||
| 		"health_explanation": "Estado de los dispositivos conectados ((Dispositivos = 100% * 100 + Dispositivos> 90% * 95 + Dispositivos> 60% * 75 + Dispositivos <60% * 35) / Dispositivos conectados)", | 		"health_explanation": "Estado de los dispositivos conectados ((Dispositivos = 100% * 100 + Dispositivos> 90% * 95 + Dispositivos> 60% * 75 + Dispositivos <60% * 35) / Dispositivos conectados)", | ||||||
| 		"memory_explanation": "Cantidad de dispositivos conectados con la memoria correspondiente utilizada%", | 		"memory_explanation": "Cantidad de dispositivos conectados con la memoria correspondiente utilizada%", | ||||||
| 		"remove_from_blacklist": "ELIMINAR DE LA LISTA NEGRA", | 		"remove_from_blacklist": "ELIMINAR DE LA LISTA NEGRA", | ||||||
| @@ -424,7 +429,7 @@ | |||||||
| 		"to_release": "A", | 		"to_release": "A", | ||||||
| 		"unknown_firmware_status": "Estado de firmware desconocido", | 		"unknown_firmware_status": "Estado de firmware desconocido", | ||||||
| 		"upgrade": "Mejorar", | 		"upgrade": "Mejorar", | ||||||
| 		"upgrade_command_submitted": "El comando de actualización se envió correctamente", | 		"upgrade_command_submitted": "Actualización en curso...", | ||||||
| 		"upgrade_to_latest": "último", | 		"upgrade_to_latest": "último", | ||||||
| 		"upgrade_to_version": "Actualizar a esta revisión", | 		"upgrade_to_version": "Actualizar a esta revisión", | ||||||
| 		"upgrading": "Actualizando ..." | 		"upgrading": "Actualizando ..." | ||||||
| @@ -714,6 +719,8 @@ | |||||||
| 	"telemetry": { | 	"telemetry": { | ||||||
| 		"connection_failed": "No se pudo crear la conexión. Error: {{error}}", | 		"connection_failed": "No se pudo crear la conexión. Error: {{error}}", | ||||||
| 		"interval": "intervalo", | 		"interval": "intervalo", | ||||||
|  | 		"lifetime": "Duración", | ||||||
|  | 		"outputmode": "Modo salida", | ||||||
| 		"last_update": "Última actualización", | 		"last_update": "Última actualización", | ||||||
| 		"types": "Los tipos" | 		"types": "Los tipos" | ||||||
| 	}, | 	}, | ||||||
| @@ -725,7 +732,7 @@ | |||||||
| 		"title": "Rastro", | 		"title": "Rastro", | ||||||
| 		"trace": "Rastro", | 		"trace": "Rastro", | ||||||
| 		"trace_not_successful": "Seguimiento fallido: la puerta de enlace informó el siguiente error: {{error}}", | 		"trace_not_successful": "Seguimiento fallido: la puerta de enlace informó el siguiente error: {{error}}", | ||||||
| 		"wait_for_file": "¿Le gustaría esperar hasta que el archivo de seguimiento esté listo?", | 		"wait_for_file": "¿Esperar hasta que el archivo de rastreo esté listo?", | ||||||
| 		"waiting_directions": "Espere el archivo de datos de seguimiento. Esto puede tomar algo de tiempo. Puede salir de la espera y recuperar el archivo de seguimiento de la tabla de comandos más tarde.", | 		"waiting_directions": "Espere el archivo de datos de seguimiento. Esto puede tomar algo de tiempo. Puede salir de la espera y recuperar el archivo de seguimiento de la tabla de comandos más tarde.", | ||||||
| 		"waiting_seconds": "Tiempo transcurrido: {{seconds}} segundos" | 		"waiting_seconds": "Tiempo transcurrido: {{seconds}} segundos" | ||||||
| 	}, | 	}, | ||||||
|   | |||||||
| @@ -8,6 +8,7 @@ | |||||||
| 		"factory_reset": "Retour aux paramètres d'usine", | 		"factory_reset": "Retour aux paramètres d'usine", | ||||||
| 		"firmware_upgrade": "Mise à jour du firmware", | 		"firmware_upgrade": "Mise à jour du firmware", | ||||||
| 		"reboot": "Redémarrer", | 		"reboot": "Redémarrer", | ||||||
|  | 		"request_ie": "Demander des IE", | ||||||
| 		"telemetry": "Télémétrie", | 		"telemetry": "Télémétrie", | ||||||
| 		"title": "Les commandes", | 		"title": "Les commandes", | ||||||
| 		"trace": "Trace", | 		"trace": "Trace", | ||||||
| @@ -27,6 +28,7 @@ | |||||||
| 		"error": "Erreur lors de la soumission de la commande !", | 		"error": "Erreur lors de la soumission de la commande !", | ||||||
| 		"error_delete_log": "Erreur lors de la tentative de suppression : {{error}}", | 		"error_delete_log": "Erreur lors de la tentative de suppression : {{error}}", | ||||||
| 		"event_queue": "File d'attente d'événements", | 		"event_queue": "File d'attente d'événements", | ||||||
|  | 		"reboot_start": "Le processus de redémarrage a commencé !", | ||||||
| 		"success": "Commande soumise avec succès, vous pouvez consulter le journal des commandes pour le résultat", | 		"success": "Commande soumise avec succès, vous pouvez consulter le journal des commandes pour le résultat", | ||||||
| 		"title": "Historique des commandes", | 		"title": "Historique des commandes", | ||||||
| 		"unable_queue": "Impossible de terminer la demande de file d'attente d'événements: {{error}}" | 		"unable_queue": "Impossible de terminer la demande de file d'attente d'événements: {{error}}" | ||||||
| @@ -148,6 +150,7 @@ | |||||||
| 		"need_date": "Vous avez besoin d'un rendez-vous...", | 		"need_date": "Vous avez besoin d'un rendez-vous...", | ||||||
| 		"no": "Non", | 		"no": "Non", | ||||||
| 		"no_addresses_found": "Aucune adresse trouvée", | 		"no_addresses_found": "Aucune adresse trouvée", | ||||||
|  | 		"no_clients_found": "Aucun client trouvé", | ||||||
| 		"no_devices_found": "Aucun périphérique trouvé", | 		"no_devices_found": "Aucun périphérique trouvé", | ||||||
| 		"no_items": "Pas d'objet", | 		"no_items": "Pas d'objet", | ||||||
| 		"none": "Aucun", | 		"none": "Aucun", | ||||||
| @@ -326,11 +329,13 @@ | |||||||
| 		"blacklisted_on": "Rendez-vous amoureux", | 		"blacklisted_on": "Rendez-vous amoureux", | ||||||
| 		"capabilities": "Capacités", | 		"capabilities": "Capacités", | ||||||
| 		"certificate_explanation": "Certificats des appareils connectés", | 		"certificate_explanation": "Certificats des appareils connectés", | ||||||
|  | 		"count_explanation": "Périphériques pointant vers cette instance de passerelle", | ||||||
| 		"edit_blacklist": "Modifier l'appareil sur liste noire", | 		"edit_blacklist": "Modifier l'appareil sur liste noire", | ||||||
| 		"error_adding_blacklist": "Erreur lors de l'ajout de l'appareil à la liste noire : {{error}}", | 		"error_adding_blacklist": "Erreur lors de l'ajout de l'appareil à la liste noire : {{error}}", | ||||||
| 		"error_edit_blacklist": "Erreur lors de la modification de la liste noire : {{error}}", | 		"error_edit_blacklist": "Erreur lors de la modification de la liste noire : {{error}}", | ||||||
| 		"error_fetching_device": "Erreur lors de la récupération des informations sur l'appareil : {{error}}", | 		"error_fetching_device": "Erreur lors de la récupération des informations sur l'appareil : {{error}}", | ||||||
| 		"error_fetching_devices": "Erreur lors de la récupération des appareils : {{error}}", | 		"error_fetching_devices": "Erreur lors de la récupération des appareils : {{error}}", | ||||||
|  | 		"firmware_count_explanation": "Il s'agit du nombre total d'appareils qui ont été ajoutés à ce serveur de micrologiciel, y compris les appareils qui ne pointent pas actuellement vers le serveur de passerelle associé.", | ||||||
| 		"health_explanation": "Santé des appareils connectés ((Appareils = 100 % * 100 + Appareils> 90 % * 95 + Appareils> 60 % * 75 + Appareils < 60 % * 35) / Appareils connectés)", | 		"health_explanation": "Santé des appareils connectés ((Appareils = 100 % * 100 + Appareils> 90 % * 95 + Appareils> 60 % * 75 + Appareils < 60 % * 35) / Appareils connectés)", | ||||||
| 		"memory_explanation": "Nombre d'appareils connectés avec la mémoire correspondante utilisée %", | 		"memory_explanation": "Nombre d'appareils connectés avec la mémoire correspondante utilisée %", | ||||||
| 		"remove_from_blacklist": "Supprimer de la liste noire", | 		"remove_from_blacklist": "Supprimer de la liste noire", | ||||||
| @@ -424,7 +429,7 @@ | |||||||
| 		"to_release": "à", | 		"to_release": "à", | ||||||
| 		"unknown_firmware_status": "État du micrologiciel inconnu", | 		"unknown_firmware_status": "État du micrologiciel inconnu", | ||||||
| 		"upgrade": "Améliorer", | 		"upgrade": "Améliorer", | ||||||
| 		"upgrade_command_submitted": "Commande de mise à niveau soumise avec succès", | 		"upgrade_command_submitted": "Mise à jour en cours...", | ||||||
| 		"upgrade_to_latest": "Dernier", | 		"upgrade_to_latest": "Dernier", | ||||||
| 		"upgrade_to_version": "Mettre à niveau vers cette révision", | 		"upgrade_to_version": "Mettre à niveau vers cette révision", | ||||||
| 		"upgrading": "Mise à niveau..." | 		"upgrading": "Mise à niveau..." | ||||||
| @@ -714,6 +719,8 @@ | |||||||
| 	"telemetry": { | 	"telemetry": { | ||||||
| 		"connection_failed": "Échec de la création de la connexion. Erreur : {{error}}", | 		"connection_failed": "Échec de la création de la connexion. Erreur : {{error}}", | ||||||
| 		"interval": "Intervalle", | 		"interval": "Intervalle", | ||||||
|  | 		"lifetime": "Durée", | ||||||
|  | 		"outputmode": "Mode de sortie", | ||||||
| 		"last_update": "Dernière mise à jour", | 		"last_update": "Dernière mise à jour", | ||||||
| 		"types": "Les types" | 		"types": "Les types" | ||||||
| 	}, | 	}, | ||||||
| @@ -725,7 +732,7 @@ | |||||||
| 		"title": "Trace", | 		"title": "Trace", | ||||||
| 		"trace": "Trace", | 		"trace": "Trace", | ||||||
| 		"trace_not_successful": "Trace non réussie : la passerelle a signalé l'erreur suivante : {{error}}", | 		"trace_not_successful": "Trace non réussie : la passerelle a signalé l'erreur suivante : {{error}}", | ||||||
| 		"wait_for_file": "Souhaitez-vous attendre que le fichier de trace soit prêt ?", | 		"wait_for_file": "Attendre que le fichier de trace soit prêt ?", | ||||||
| 		"waiting_directions": "Veuillez attendre le fichier de données de trace. Cela peut prendre un certain temps. Vous pouvez quitter l'attente et récupérer le fichier de trace de la table des commandes plus tard.", | 		"waiting_directions": "Veuillez attendre le fichier de données de trace. Cela peut prendre un certain temps. Vous pouvez quitter l'attente et récupérer le fichier de trace de la table des commandes plus tard.", | ||||||
| 		"waiting_seconds": "Temps écoulé : {{seconds}} secondes" | 		"waiting_seconds": "Temps écoulé : {{seconds}} secondes" | ||||||
| 	}, | 	}, | ||||||
|   | |||||||
| @@ -8,6 +8,7 @@ | |||||||
| 		"factory_reset": "Restauração de fábrica", | 		"factory_reset": "Restauração de fábrica", | ||||||
| 		"firmware_upgrade": "Atualização de firmware", | 		"firmware_upgrade": "Atualização de firmware", | ||||||
| 		"reboot": "Reiniciar", | 		"reboot": "Reiniciar", | ||||||
|  | 		"request_ie": "Solicitar IEs", | ||||||
| 		"telemetry": "Telemetria", | 		"telemetry": "Telemetria", | ||||||
| 		"title": "Comandos", | 		"title": "Comandos", | ||||||
| 		"trace": "Vestígio", | 		"trace": "Vestígio", | ||||||
| @@ -27,6 +28,7 @@ | |||||||
| 		"error": "Erro ao enviar comando!", | 		"error": "Erro ao enviar comando!", | ||||||
| 		"error_delete_log": "Erro ao tentar excluir: {{error}}", | 		"error_delete_log": "Erro ao tentar excluir: {{error}}", | ||||||
| 		"event_queue": "Fila de Eventos", | 		"event_queue": "Fila de Eventos", | ||||||
|  | 		"reboot_start": "O processo de reinicialização foi iniciado!", | ||||||
| 		"success": "Comando enviado com sucesso, você pode consultar o log de Comandos para ver o resultado", | 		"success": "Comando enviado com sucesso, você pode consultar o log de Comandos para ver o resultado", | ||||||
| 		"title": "Histórico de Comandos", | 		"title": "Histórico de Comandos", | ||||||
| 		"unable_queue": "Incapaz de completar o pedido de fila de eventos: {{error}}" | 		"unable_queue": "Incapaz de completar o pedido de fila de eventos: {{error}}" | ||||||
| @@ -148,6 +150,7 @@ | |||||||
| 		"need_date": "Você precisa de um encontro ...", | 		"need_date": "Você precisa de um encontro ...", | ||||||
| 		"no": "Não", | 		"no": "Não", | ||||||
| 		"no_addresses_found": "Nenhum endereço encontrado", | 		"no_addresses_found": "Nenhum endereço encontrado", | ||||||
|  | 		"no_clients_found": "Nenhum cliente encontrado", | ||||||
| 		"no_devices_found": "Nenhum dispositivo encontrado", | 		"no_devices_found": "Nenhum dispositivo encontrado", | ||||||
| 		"no_items": "Nenhum item", | 		"no_items": "Nenhum item", | ||||||
| 		"none": "Nenhum", | 		"none": "Nenhum", | ||||||
| @@ -326,11 +329,13 @@ | |||||||
| 		"blacklisted_on": "Encontro", | 		"blacklisted_on": "Encontro", | ||||||
| 		"capabilities": "Recursos", | 		"capabilities": "Recursos", | ||||||
| 		"certificate_explanation": "Certificados de dispositivos conectados", | 		"certificate_explanation": "Certificados de dispositivos conectados", | ||||||
|  | 		"count_explanation": "Dispositivos apontando para esta instância de gateway", | ||||||
| 		"edit_blacklist": "Editar dispositivo na lista negra", | 		"edit_blacklist": "Editar dispositivo na lista negra", | ||||||
| 		"error_adding_blacklist": "Erro ao adicionar dispositivo à lista negra: {{error}}", | 		"error_adding_blacklist": "Erro ao adicionar dispositivo à lista negra: {{error}}", | ||||||
| 		"error_edit_blacklist": "Erro ao editar a lista negra: {{error}}", | 		"error_edit_blacklist": "Erro ao editar a lista negra: {{error}}", | ||||||
| 		"error_fetching_device": "Erro ao buscar informações do dispositivo: {{error}}", | 		"error_fetching_device": "Erro ao buscar informações do dispositivo: {{error}}", | ||||||
| 		"error_fetching_devices": "Erro ao buscar dispositivos: {{error}}", | 		"error_fetching_devices": "Erro ao buscar dispositivos: {{error}}", | ||||||
|  | 		"firmware_count_explanation": "Esta é a quantidade total de dispositivos que foram adicionados a este servidor de firmware, incluindo dispositivos que não estão apontando para o servidor de gateway relacionado.", | ||||||
| 		"health_explanation": "Integridade dos dispositivos conectados ((Dispositivos = 100% * 100 + Dispositivos> 90% * 95 + Dispositivos> 60% * 75 + Dispositivos <60% * 35) / Dispositivos Conectados)", | 		"health_explanation": "Integridade dos dispositivos conectados ((Dispositivos = 100% * 100 + Dispositivos> 90% * 95 + Dispositivos> 60% * 75 + Dispositivos <60% * 35) / Dispositivos Conectados)", | ||||||
| 		"memory_explanation": "Quantidade de dispositivos conectados com a memória correspondente usada%", | 		"memory_explanation": "Quantidade de dispositivos conectados com a memória correspondente usada%", | ||||||
| 		"remove_from_blacklist": "Remover da lista negra", | 		"remove_from_blacklist": "Remover da lista negra", | ||||||
| @@ -424,7 +429,7 @@ | |||||||
| 		"to_release": "Para", | 		"to_release": "Para", | ||||||
| 		"unknown_firmware_status": "Status de firmware desconhecido", | 		"unknown_firmware_status": "Status de firmware desconhecido", | ||||||
| 		"upgrade": "Melhorar", | 		"upgrade": "Melhorar", | ||||||
| 		"upgrade_command_submitted": "Comando de atualização enviado com sucesso", | 		"upgrade_command_submitted": "Atualização em andamento...", | ||||||
| 		"upgrade_to_latest": "Mais recentes", | 		"upgrade_to_latest": "Mais recentes", | ||||||
| 		"upgrade_to_version": "Atualize para esta revisão", | 		"upgrade_to_version": "Atualize para esta revisão", | ||||||
| 		"upgrading": "Atualizando ..." | 		"upgrading": "Atualizando ..." | ||||||
| @@ -714,6 +719,8 @@ | |||||||
| 	"telemetry": { | 	"telemetry": { | ||||||
| 		"connection_failed": "Falha ao criar conexão. Erro: {{error}}", | 		"connection_failed": "Falha ao criar conexão. Erro: {{error}}", | ||||||
| 		"interval": "intervalo", | 		"interval": "intervalo", | ||||||
|  | 		"lifetime": "Duração", | ||||||
|  | 		"outputmode": "Modo saída", | ||||||
| 		"last_update": "Última atualização", | 		"last_update": "Última atualização", | ||||||
| 		"types": "Tipos" | 		"types": "Tipos" | ||||||
| 	}, | 	}, | ||||||
| @@ -725,7 +732,7 @@ | |||||||
| 		"title": "Vestígio", | 		"title": "Vestígio", | ||||||
| 		"trace": "Vestígio", | 		"trace": "Vestígio", | ||||||
| 		"trace_not_successful": "O rastreamento não foi bem-sucedido: o gateway relatou o seguinte erro: {{error}}", | 		"trace_not_successful": "O rastreamento não foi bem-sucedido: o gateway relatou o seguinte erro: {{error}}", | ||||||
| 		"wait_for_file": "Você gostaria de esperar até que o arquivo de rastreamento esteja pronto?", | 		"wait_for_file": "Esperar até que o arquivo de rastreamento esteja pronto?", | ||||||
| 		"waiting_directions": "Aguarde o arquivo de dados de rastreamento. Isto pode tomar algum tempo. Você pode sair da espera e recuperar o arquivo de rastreamento da tabela de comandos mais tarde.", | 		"waiting_directions": "Aguarde o arquivo de dados de rastreamento. Isto pode tomar algum tempo. Você pode sair da espera e recuperar o arquivo de rastreamento da tabela de comandos mais tarde.", | ||||||
| 		"waiting_seconds": "Tempo decorrido: {{seconds}} segundos" | 		"waiting_seconds": "Tempo decorrido: {{seconds}} segundos" | ||||||
| 	}, | 	}, | ||||||
|   | |||||||
| @@ -358,6 +358,7 @@ const DeviceCommands = () => { | |||||||
|                           shape="square" |                           shape="square" | ||||||
|                           size="sm" |                           size="sm" | ||||||
|                           className="mx-2" |                           className="mx-2" | ||||||
|  |                           disabled={item.completed === 0} | ||||||
|                           onClick={() => { |                           onClick={() => { | ||||||
|                             toggleDetails(item); |                             toggleDetails(item); | ||||||
|                           }} |                           }} | ||||||
|   | |||||||
| @@ -414,6 +414,8 @@ const DeviceListTable = ({ | |||||||
|                 nextClassName="page-item" |                 nextClassName="page-item" | ||||||
|                 nextLinkClassName="page-link" |                 nextLinkClassName="page-link" | ||||||
|                 activeClassName="active" |                 activeClassName="active" | ||||||
|  |                 pageRangeDisplayed={5} | ||||||
|  |                 marginPagesDisplayed={1} | ||||||
|               /> |               /> | ||||||
|             </div> |             </div> | ||||||
|             <p className="pr-2 mt-1">{t('common.items_per_page')}</p> |             <p className="pr-2 mt-1">{t('common.items_per_page')}</p> | ||||||
|   | |||||||
| @@ -21,6 +21,7 @@ const DeviceList = () => { | |||||||
|   const [overrides, setOverrides] = useState({}); |   const [overrides, setOverrides] = useState({}); | ||||||
|   const [page, setPage] = useState(parseInt(sessionStorage.getItem('deviceTable') ?? 0, 10)); |   const [page, setPage] = useState(parseInt(sessionStorage.getItem('deviceTable') ?? 0, 10)); | ||||||
|   const { currentToken, endpoints } = useAuth(); |   const { currentToken, endpoints } = useAuth(); | ||||||
|  |   const [deviceToRefresh, setDeviceToRefresh] = useState(undefined); | ||||||
|   const [upgradeStatus, setUpgradeStatus] = useState({ |   const [upgradeStatus, setUpgradeStatus] = useState({ | ||||||
|     loading: false, |     loading: false, | ||||||
|   }); |   }); | ||||||
| @@ -372,14 +373,17 @@ const DeviceList = () => { | |||||||
|     getCount(); |     getCount(); | ||||||
|   }, []); |   }, []); | ||||||
|  |  | ||||||
|  |   useEffect(() => { | ||||||
|  |     if (deviceToRefresh) refreshDevice(deviceToRefresh.serial); | ||||||
|  |   }, [deviceToRefresh?.timestamp]); | ||||||
|  |  | ||||||
|   useEffect(() => { |   useEffect(() => { | ||||||
|     if (lastMessage && lastMessage.type === 'DEVICE') { |     if (lastMessage && lastMessage.type === 'DEVICE') { | ||||||
|       const { serialNumber: msgSerial, isConnected } = lastMessage; |       const { serialNumber: msgSerial, timestamp } = lastMessage; | ||||||
|       if (overrides[msgSerial] === undefined || overrides[msgSerial] !== isConnected) { |       if (timestamp !== deviceToRefresh?.timestamp) | ||||||
|         setOverrides({ ...overrides, [msgSerial]: isConnected }); |         setDeviceToRefresh({ serial: msgSerial, timestamp }); | ||||||
|       } |  | ||||||
|     } |     } | ||||||
|   }, [lastMessage, overrides]); |   }, [lastMessage, deviceToRefresh]); | ||||||
|  |  | ||||||
|   useEffect(() => { |   useEffect(() => { | ||||||
|     if (upgradeStatus.result !== undefined) { |     if (upgradeStatus.result !== undefined) { | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ import { CSpinner } from '@coreui/react'; | |||||||
| import { useTranslation } from 'react-i18next'; | import { useTranslation } from 'react-i18next'; | ||||||
| import { v4 as createUuid } from 'uuid'; | import { v4 as createUuid } from 'uuid'; | ||||||
| import axiosInstance from 'utils/axiosInstance'; | import axiosInstance from 'utils/axiosInstance'; | ||||||
| import { useAuth, useDevice } from 'ucentral-libs'; | import { useAuth } from 'ucentral-libs'; | ||||||
| import { | import { | ||||||
|   capitalizeFirstLetter, |   capitalizeFirstLetter, | ||||||
|   datesSameDay, |   datesSameDay, | ||||||
| @@ -14,11 +14,10 @@ import { | |||||||
| } from 'utils/helper'; | } from 'utils/helper'; | ||||||
| import DeviceStatisticsChart from './DeviceStatisticsChart'; | import DeviceStatisticsChart from './DeviceStatisticsChart'; | ||||||
|  |  | ||||||
| const StatisticsChartList = ({ setOptions, section, setStart, setEnd, time }) => { | const StatisticsChartList = ({ deviceSerialNumber, setOptions, section, time }) => { | ||||||
|   const { t } = useTranslation(); |   const { t } = useTranslation(); | ||||||
|   const [loading, setLoading] = useState(false); |   const [loading, setLoading] = useState(false); | ||||||
|   const { currentToken, endpoints } = useAuth(); |   const { currentToken, endpoints } = useAuth(); | ||||||
|   const { deviceSerialNumber } = useDevice(); |  | ||||||
|   const [statOptions, setStatOptions] = useState({ |   const [statOptions, setStatOptions] = useState({ | ||||||
|     interfaceList: [], |     interfaceList: [], | ||||||
|     memory: [], |     memory: [], | ||||||
| @@ -244,10 +243,6 @@ const StatisticsChartList = ({ setOptions, section, setStart, setEnd, time }) => | |||||||
|       })); |       })); | ||||||
|       setOptions([...sectionOptions, { value: 'memory', label: t('statistics.memory') }]); |       setOptions([...sectionOptions, { value: 'memory', label: t('statistics.memory') }]); | ||||||
|       setStatOptions({ ...newOptions }); |       setStatOptions({ ...newOptions }); | ||||||
|       if (sortedData.length > 0) { |  | ||||||
|         setStart(new Date(sortedData[0].recorded * 1000)); |  | ||||||
|         setEnd(new Date(sortedData[sortedData.length - 1].recorded * 1000)); |  | ||||||
|       } |  | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
| @@ -358,11 +353,10 @@ const StatisticsChartList = ({ setOptions, section, setStart, setEnd, time }) => | |||||||
| }; | }; | ||||||
|  |  | ||||||
| StatisticsChartList.propTypes = { | StatisticsChartList.propTypes = { | ||||||
|  |   deviceSerialNumber: PropTypes.string.isRequired, | ||||||
|   setOptions: PropTypes.func.isRequired, |   setOptions: PropTypes.func.isRequired, | ||||||
|   section: PropTypes.string.isRequired, |   section: PropTypes.string.isRequired, | ||||||
|   time: PropTypes.instanceOf(Object).isRequired, |   time: PropTypes.instanceOf(Object).isRequired, | ||||||
|   setStart: PropTypes.func.isRequired, |  | ||||||
|   setEnd: PropTypes.func.isRequired, |  | ||||||
| }; | }; | ||||||
|  |  | ||||||
| export default React.memo(StatisticsChartList); | export default React.memo(StatisticsChartList); | ||||||
|   | |||||||
| @@ -12,55 +12,98 @@ import { | |||||||
| } from '@coreui/react'; | } from '@coreui/react'; | ||||||
| import DatePicker from 'react-widgets/DatePicker'; | import DatePicker from 'react-widgets/DatePicker'; | ||||||
| import { cilSync } from '@coreui/icons'; | import { cilSync } from '@coreui/icons'; | ||||||
|  | import { useDevice } from 'ucentral-libs'; | ||||||
| import CIcon from '@coreui/icons-react'; | import CIcon from '@coreui/icons-react'; | ||||||
|  | import { useGlobalWebSocket } from 'contexts/WebSocketProvider'; | ||||||
| import StatisticsChartList from './StatisticsChartList'; | import StatisticsChartList from './StatisticsChartList'; | ||||||
| import LatestStatisticsmodal from './LatestStatisticsModal'; | import LatestStatisticsmodal from './LatestStatisticsModal'; | ||||||
|  |  | ||||||
|  | const getStart = () => { | ||||||
|  |   const date = new Date(); | ||||||
|  |   date.setHours(date.getHours() - 1); | ||||||
|  |   return date; | ||||||
|  | }; | ||||||
| const DeviceStatisticsCard = () => { | const DeviceStatisticsCard = () => { | ||||||
|   const { t } = useTranslation(); |   const { t } = useTranslation(); | ||||||
|   const [showLatestModal, setShowLatestModal] = useState(false); |   const [showLatestModal, setShowLatestModal] = useState(false); | ||||||
|   const [options, setOptions] = useState([]); |   const [options, setOptions] = useState([]); | ||||||
|   const [section, setSection] = useState(''); |   const [section, setSection] = useState(''); | ||||||
|   const [start, setStart] = useState(null); |  | ||||||
|   const [startError, setStartError] = useState(false); |   const [startError, setStartError] = useState(false); | ||||||
|   const [end, setEnd] = useState(null); |  | ||||||
|   const [endError, setEndError] = useState(false); |   const [endError, setEndError] = useState(false); | ||||||
|   const [time, setTime] = useState({ refreshId: '0', start: null, end: null }); |   const { deviceSerialNumber } = useDevice(); | ||||||
|  |   const [nextUpdate, setNextUpdate] = useState(undefined); | ||||||
|  |   const { addDeviceListener, removeDeviceListener } = useGlobalWebSocket(); | ||||||
|  |   const [time, setTime] = useState({ | ||||||
|  |     refreshId: '0', | ||||||
|  |     start: getStart(), | ||||||
|  |     end: new Date().toISOString(), | ||||||
|  |   }); | ||||||
|  |  | ||||||
|   const toggleLatestModal = () => { |   const toggleLatestModal = () => { | ||||||
|     setShowLatestModal(!showLatestModal); |     setShowLatestModal(!showLatestModal); | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   const modifyStart = (value) => { |   const modifyStart = (value, refresh = true) => { | ||||||
|     try { |     try { | ||||||
|       new Date(value).toISOString(); |       new Date(value).toISOString(); | ||||||
|       setStartError(false); |       setStartError(false); | ||||||
|       setStart(value); |       if (refresh) setTime({ ...time, refreshId: createUuid(), start: value, isChosen: true }); | ||||||
|  |       else setTime({ ...time, start: value, isChosen: true }); | ||||||
|     } catch (e) { |     } catch (e) { | ||||||
|       setStart(''); |  | ||||||
|       setStartError(true); |       setStartError(true); | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   const modifyEnd = (value) => { |   const modifyEnd = (value, refresh = true) => { | ||||||
|     try { |     try { | ||||||
|       new Date(value).toISOString(); |       new Date(value).toISOString(); | ||||||
|       setEndError(false); |       setEndError(false); | ||||||
|       setEnd(value); |       if (refresh) setTime({ ...time, refreshId: createUuid(), end: value, isChosen: true }); | ||||||
|  |       else setTime({ ...time, end: value, isChosen: true }); | ||||||
|     } catch (e) { |     } catch (e) { | ||||||
|       setEnd(''); |  | ||||||
|       setEndError(true); |       setEndError(true); | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   const refresh = () => { |   const refresh = () => { | ||||||
|     setTime({ refreshId: createUuid(), start, end }); |     setTime({ refreshId: createUuid(), start: getStart(), end: new Date().toISOString() }); | ||||||
|  |   }; | ||||||
|  |  | ||||||
|  |   const handleRefreshClick = () => { | ||||||
|  |     refresh(); | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   useEffect(() => { |   useEffect(() => { | ||||||
|     if (section === '' && options.length > 0) setSection(options[0].value); |     if (section === '' && options.length > 0) setSection(options[0].value); | ||||||
|   }, [options]); |   }, [options]); | ||||||
|  |  | ||||||
|  |   useEffect(() => { | ||||||
|  |     if (nextUpdate && !time.isChosen) { | ||||||
|  |       setTime({ refreshId: createUuid(), start: getStart(), end: new Date().toISOString() }); | ||||||
|  |       setNextUpdate(undefined); | ||||||
|  |     } | ||||||
|  |   }, [nextUpdate, time]); | ||||||
|  |  | ||||||
|  |   useEffect(() => { | ||||||
|  |     setNextUpdate(undefined); | ||||||
|  |     if (deviceSerialNumber) { | ||||||
|  |       addDeviceListener({ | ||||||
|  |         serialNumber: deviceSerialNumber, | ||||||
|  |         types: ['device_statistics'], | ||||||
|  |         onTrigger: () => setNextUpdate(1), | ||||||
|  |       }); | ||||||
|  |       refresh(); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     return () => { | ||||||
|  |       if (deviceSerialNumber) { | ||||||
|  |         removeDeviceListener({ | ||||||
|  |           serialNumber: deviceSerialNumber, | ||||||
|  |         }); | ||||||
|  |       } | ||||||
|  |     }; | ||||||
|  |   }, [deviceSerialNumber]); | ||||||
|  |  | ||||||
|   return ( |   return ( | ||||||
|     <div> |     <div> | ||||||
|       <CCard className="m-0"> |       <CCard className="m-0"> | ||||||
| @@ -68,7 +111,12 @@ const DeviceStatisticsCard = () => { | |||||||
|           <div className="d-flex flex-row-reverse align-items-center"> |           <div className="d-flex flex-row-reverse align-items-center"> | ||||||
|             <div className="pl-2"> |             <div className="pl-2"> | ||||||
|               <CPopover content={t('common.refresh')}> |               <CPopover content={t('common.refresh')}> | ||||||
|                 <CButton size="sm" color="info" onClick={refresh} disabled={startError || endError}> |                 <CButton | ||||||
|  |                   size="sm" | ||||||
|  |                   color="info" | ||||||
|  |                   onClick={handleRefreshClick} | ||||||
|  |                   disabled={startError || endError} | ||||||
|  |                 > | ||||||
|                   <CIcon content={cilSync} /> |                   <CIcon content={cilSync} /> | ||||||
|                 </CButton> |                 </CButton> | ||||||
|               </CPopover> |               </CPopover> | ||||||
| @@ -77,7 +125,7 @@ const DeviceStatisticsCard = () => { | |||||||
|               <DatePicker |               <DatePicker | ||||||
|                 includeTime |                 includeTime | ||||||
|                 onChange={(date) => modifyEnd(date)} |                 onChange={(date) => modifyEnd(date)} | ||||||
|                 value={end ? new Date(end) : undefined} |                 value={time.end ? new Date(time.end) : undefined} | ||||||
|               /> |               /> | ||||||
|               <CFormText color="danger" hidden={!endError}> |               <CFormText color="danger" hidden={!endError}> | ||||||
|                 {t('common.invalid_date_explanation')} |                 {t('common.invalid_date_explanation')} | ||||||
| @@ -88,7 +136,7 @@ const DeviceStatisticsCard = () => { | |||||||
|               <DatePicker |               <DatePicker | ||||||
|                 includeTime |                 includeTime | ||||||
|                 onChange={(date) => modifyStart(date)} |                 onChange={(date) => modifyStart(date)} | ||||||
|                 value={start ? new Date(start) : undefined} |                 value={time.start ? new Date(time.start) : undefined} | ||||||
|               /> |               /> | ||||||
|               <CFormText color="danger" hidden={!startError}> |               <CFormText color="danger" hidden={!startError}> | ||||||
|                 {t('common.invalid_date_explanation')} |                 {t('common.invalid_date_explanation')} | ||||||
| @@ -118,11 +166,10 @@ const DeviceStatisticsCard = () => { | |||||||
|         </CCardHeader> |         </CCardHeader> | ||||||
|         <CCardBody className="p-1"> |         <CCardBody className="p-1"> | ||||||
|           <StatisticsChartList |           <StatisticsChartList | ||||||
|  |             deviceSerialNumber={deviceSerialNumber} | ||||||
|             setOptions={setOptions} |             setOptions={setOptions} | ||||||
|             section={section} |             section={section} | ||||||
|             time={time} |             time={time} | ||||||
|             setStart={setStart} |  | ||||||
|             setEnd={setEnd} |  | ||||||
|           /> |           /> | ||||||
|         </CCardBody> |         </CCardBody> | ||||||
|       </CCard> |       </CCard> | ||||||
|   | |||||||
| @@ -12,6 +12,9 @@ import { | |||||||
|   CRow, |   CRow, | ||||||
|   CCol, |   CCol, | ||||||
|   CInput, |   CInput, | ||||||
|  |   CFormGroup, | ||||||
|  |   CInputRadio, | ||||||
|  |   CLabel, | ||||||
|   CSpinner, |   CSpinner, | ||||||
|   CAlert, |   CAlert, | ||||||
| } from '@coreui/react'; | } from '@coreui/react'; | ||||||
| @@ -36,11 +39,14 @@ const TelemetryModal = ({ show, toggle }) => { | |||||||
|   const [lastMessage, setLastMessage] = useState({}); |   const [lastMessage, setLastMessage] = useState({}); | ||||||
|   const [receivedMessages, setReceivedMessages] = useState(0); |   const [receivedMessages, setReceivedMessages] = useState(0); | ||||||
|   const [types, setTypes] = useState([]); |   const [types, setTypes] = useState([]); | ||||||
|  |   const [chosenMethod, setChosenMethod] = useState('false'); | ||||||
|  |   const [lifetime, setLifetime] = useState(5); | ||||||
|   const [interval, setInterval] = useState(3); |   const [interval, setInterval] = useState(3); | ||||||
|   const [loading, setLoading] = useState(false); |   const [loading, setLoading] = useState(false); | ||||||
|   const [lastUpdate, setLastUpdate] = useState(''); |   const [lastUpdate, setLastUpdate] = useState(''); | ||||||
|  |  | ||||||
|   const onIntervalChange = (e) => setInterval(e.target.value); |   const onIntervalChange = (e) => setInterval(e.target.value); | ||||||
|  |   const onLifetimeChange = (e) => setLifetime(e.target.value); | ||||||
|  |  | ||||||
|   const closeSocket = () => { |   const closeSocket = () => { | ||||||
|     if (socket !== null) { |     if (socket !== null) { | ||||||
| @@ -57,6 +63,8 @@ const TelemetryModal = ({ show, toggle }) => { | |||||||
|     const parameters = { |     const parameters = { | ||||||
|       serialNumber: deviceSerialNumber, |       serialNumber: deviceSerialNumber, | ||||||
|       interval: parseInt(interval, 10), |       interval: parseInt(interval, 10), | ||||||
|  |       lifetime: parseInt(lifetime * 60, 10), | ||||||
|  |       kafka: chosenMethod, | ||||||
|       types: types.map((type) => type.value), |       types: types.map((type) => type.value), | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
| @@ -72,7 +80,16 @@ const TelemetryModal = ({ show, toggle }) => { | |||||||
|         { headers }, |         { headers }, | ||||||
|       ) |       ) | ||||||
|       .then((response) => { |       .then((response) => { | ||||||
|         if (response.data.uri && response.data.uri !== '') { |         if (chosenMethod === 'true') { | ||||||
|  |           addToast({ | ||||||
|  |               title: t('common.success'), | ||||||
|  |               body: t('commands.command_success'), | ||||||
|  |               color: 'success', | ||||||
|  |               autohide: true, | ||||||
|  |             }); | ||||||
|  |           toggle(); | ||||||
|  |         } | ||||||
|  |         else if (response.data.uri && response.data.uri !== '') { | ||||||
|           setReceivedMessages(0); |           setReceivedMessages(0); | ||||||
|           setSocket(new WebSocket(response.data.uri)); |           setSocket(new WebSocket(response.data.uri)); | ||||||
|         } |         } | ||||||
| @@ -146,6 +163,50 @@ const TelemetryModal = ({ show, toggle }) => { | |||||||
|                 /> |                 /> | ||||||
|               </CCol> |               </CCol> | ||||||
|             </CRow> |             </CRow> | ||||||
|  |             <CRow> | ||||||
|  |               <CCol>{`${t('telemetry.lifetime')}: ${lifetime} ${t('common.minutes')}`}</CCol> | ||||||
|  |             </CRow> | ||||||
|  |             <CRow> | ||||||
|  |               <CCol> | ||||||
|  |                 <CInput | ||||||
|  |                   type="range" | ||||||
|  |                   min="1" | ||||||
|  |                   max="120" | ||||||
|  |                   step="1" | ||||||
|  |                   onChange={onLifetimeChange} | ||||||
|  |                   value={lifetime} | ||||||
|  |                 /> | ||||||
|  |               </CCol> | ||||||
|  |             </CRow> | ||||||
|  |             <CFormGroup row className="mb-0"> | ||||||
|  |               <CCol md="3"> | ||||||
|  |                 <CLabel>{t('telemetry.outputmode')}</CLabel> | ||||||
|  |               </CCol> | ||||||
|  |               <CCol> | ||||||
|  |                 <CFormGroup variant="checkbox" onClick={() => setChosenMethod('false')} inline> | ||||||
|  |                   <CInputRadio | ||||||
|  |                     defaultChecked={chosenMethod === 'false'} | ||||||
|  |                     id="traceRadio1" | ||||||
|  |                     name="radios" | ||||||
|  |                     value="traceOption1" | ||||||
|  |                   /> | ||||||
|  |                   <CLabel variant="checkbox" htmlFor="traceRadio1"> | ||||||
|  |                     Websocket | ||||||
|  |                   </CLabel> | ||||||
|  |                 </CFormGroup> | ||||||
|  |                 <CFormGroup variant="checkbox" onClick={() => setChosenMethod('true')} inline> | ||||||
|  |                   <CInputRadio | ||||||
|  |                     defaultChecked={chosenMethod === 'true'} | ||||||
|  |                     id="traceRadio2" | ||||||
|  |                     name="radios" | ||||||
|  |                     value="traceOption2" | ||||||
|  |                   /> | ||||||
|  |                   <CLabel variant="checkbox" htmlFor="traceRadio2"> | ||||||
|  |                     Kafka | ||||||
|  |                   </CLabel> | ||||||
|  |                 </CFormGroup> | ||||||
|  |               </CCol> | ||||||
|  |             </CFormGroup> | ||||||
|             <CRow> |             <CRow> | ||||||
|               <CCol sm="2" className="pt-2"> |               <CCol sm="2" className="pt-2"> | ||||||
|                 {t('telemetry.types')}: |                 {t('telemetry.types')}: | ||||||
| @@ -178,6 +239,11 @@ const TelemetryModal = ({ show, toggle }) => { | |||||||
|                 {t('telemetry.interval')}: {interval} {t('common.seconds')} |                 {t('telemetry.interval')}: {interval} {t('common.seconds')} | ||||||
|               </CCol> |               </CCol> | ||||||
|             </CRow> |             </CRow> | ||||||
|  |             <CRow> | ||||||
|  |               <CCol> | ||||||
|  |                 {t('telemetry.lifetime')}: {lifetime} {t('common.minutes')} | ||||||
|  |               </CCol> | ||||||
|  |             </CRow> | ||||||
|             <CRow> |             <CRow> | ||||||
|               <CCol> |               <CCol> | ||||||
|                 {t('telemetry.types')}: {types.map((type) => type.label).join(', ')} |                 {t('telemetry.types')}: {types.map((type) => type.label).join(', ')} | ||||||
|   | |||||||
| @@ -49,7 +49,7 @@ const WifiAnalysis = () => { | |||||||
|   const secondsToLabel = (seconds) => |   const secondsToLabel = (seconds) => | ||||||
|     compactSecondsToDetailed(seconds, t('common.day'), t('common.days'), t('common.seconds')); |     compactSecondsToDetailed(seconds, t('common.day'), t('common.days'), t('common.seconds')); | ||||||
|  |  | ||||||
|   const extractIp = (json, bssid) => { |   const extractIp = (json, station) => { | ||||||
|     const ips = { |     const ips = { | ||||||
|       ipV4: [], |       ipV4: [], | ||||||
|       ipV6: [], |       ipV6: [], | ||||||
| @@ -57,7 +57,7 @@ const WifiAnalysis = () => { | |||||||
|     for (const obj of json.interfaces) { |     for (const obj of json.interfaces) { | ||||||
|       if ('clients' in obj) { |       if ('clients' in obj) { | ||||||
|         for (const client of obj.clients) { |         for (const client of obj.clients) { | ||||||
|           if (client.mac === bssid) { |           if (client.mac === station) { | ||||||
|             ips.ipV4 = ips.ipV4.concat(client.ipv4_addresses ?? []); |             ips.ipV4 = ips.ipV4.concat(client.ipv4_addresses ?? []); | ||||||
|             ips.ipV6 = ips.ipV6.concat(client.ipv6_addresses ?? []); |             ips.ipV6 = ips.ipV6.concat(client.ipv6_addresses ?? []); | ||||||
|           } |           } | ||||||
| @@ -151,7 +151,7 @@ const WifiAnalysis = () => { | |||||||
|  |  | ||||||
|                 const data = { |                 const data = { | ||||||
|                   radio: radioInfo, |                   radio: radioInfo, | ||||||
|                   ...extractIp(stat.data, association.bssid), |                   ...extractIp(stat.data, association.station), | ||||||
|                   station: association.station, |                   station: association.station, | ||||||
|                   ssid: ssid.ssid, |                   ssid: ssid.ssid, | ||||||
|                   rssi: association.rssi ? parseDbm(association.rssi) : '-', |                   rssi: association.rssi ? parseDbm(association.rssi) : '-', | ||||||
|   | |||||||
							
								
								
									
										187
									
								
								src/components/WifiScanModal/IE_OPTIONS.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										187
									
								
								src/components/WifiScanModal/IE_OPTIONS.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,187 @@ | |||||||
|  | { | ||||||
|  |   "SSID": 0, | ||||||
|  |   "SUPP_RATES": 1, | ||||||
|  |   "FH_PARAMS": 2, | ||||||
|  |   "DS_PARAMS": 3, | ||||||
|  |   "CF_PARAMS": 4, | ||||||
|  |   "TIM": 5, | ||||||
|  |   "IBSS_PARAMS": 6, | ||||||
|  |   "COUNTRY": 7, | ||||||
|  |   "REQUEST": 10, | ||||||
|  |   "QBSS_LOAD": 11, | ||||||
|  |   "EDCA_PARAM_SET": 12, | ||||||
|  |   "TSPEC": 13, | ||||||
|  |   "TCLAS": 14, | ||||||
|  |   "SCHEDULE": 15, | ||||||
|  |   "CHALLENGE": 16, | ||||||
|  |   "PWR_CONSTRAINT": 32, | ||||||
|  |   "PWR_CAPABILITY": 33, | ||||||
|  |   "TPC_REQUEST": 34, | ||||||
|  |   "TPC_REPORT": 35, | ||||||
|  |   "SUPPORTED_CHANNELS": 36, | ||||||
|  |   "CHANNEL_SWITCH": 37, | ||||||
|  |   "MEASURE_REQUEST": 38, | ||||||
|  |   "MEASURE_REPORT": 39, | ||||||
|  |   "QUIET": 40, | ||||||
|  |   "IBSS_DFS": 41, | ||||||
|  |   "ERP_INFO": 42, | ||||||
|  |   "TS_DELAY": 43, | ||||||
|  |   "TCLAS_PROCESSING": 44, | ||||||
|  |   "HT_CAPABILITY": 45, | ||||||
|  |   "QOS_CAPA": 46, | ||||||
|  |   "RSN": 48, | ||||||
|  |   "802_15_COEX": 49, | ||||||
|  |   "EXT_SUPP_RATES": 50, | ||||||
|  |   "AP_CHAN_REPORT": 51, | ||||||
|  |   "NEIGHBOR_REPORT": 52, | ||||||
|  |   "RCPI": 53, | ||||||
|  |   "MOBILITY_DOMAIN": 54, | ||||||
|  |   "FAST_BSS_TRANSITION": 55, | ||||||
|  |   "TIMEOUT_INTERVAL": 56, | ||||||
|  |   "RIC_DATA": 57, | ||||||
|  |   "DSE_REGISTERED_LOCATION": 58, | ||||||
|  |   "SUPPORTED_REGULATORY_CLASSES": 59, | ||||||
|  |   "EXT_CHANSWITCH_ANN": 60, | ||||||
|  |   "HT_OPERATION": 61, | ||||||
|  |   "SECONDARY_CHANNEL_OFFSET": 62, | ||||||
|  |   "BSS_AVG_ACCESS_DELAY": 63, | ||||||
|  |   "ANTENNA_INFO": 64, | ||||||
|  |   "RSNI": 65, | ||||||
|  |   "MEASUREMENT_PILOT_TX_INFO": 66, | ||||||
|  |   "BSS_AVAILABLE_CAPACITY": 67, | ||||||
|  |   "BSS_AC_ACCESS_DELAY": 68, | ||||||
|  |   "TIME_ADVERTISEMENT": 69, | ||||||
|  |   "RRM_ENABLED_CAPABILITIES": 70, | ||||||
|  |   "MULTIPLE_BSSID": 71, | ||||||
|  |   "BSS_COEX_2040": 72, | ||||||
|  |   "BSS_INTOLERANT_CHL_REPORT": 73, | ||||||
|  |   "OVERLAP_BSS_SCAN_PARAM": 74, | ||||||
|  |   "RIC_DESCRIPTOR": 75, | ||||||
|  |   "MMIE": 76, | ||||||
|  |   "ASSOC_COMEBACK_TIME": 77, | ||||||
|  |   "EVENT_REQUEST": 78, | ||||||
|  |   "EVENT_REPORT": 79, | ||||||
|  |   "DIAGNOSTIC_REQUEST": 80, | ||||||
|  |   "DIAGNOSTIC_REPORT": 81, | ||||||
|  |   "LOCATION_PARAMS": 82, | ||||||
|  |   "NON_TX_BSSID_CAP": 83, | ||||||
|  |   "SSID_LIST": 84, | ||||||
|  |   "MULTI_BSSID_IDX": 85, | ||||||
|  |   "FMS_DESCRIPTOR": 86, | ||||||
|  |   "FMS_REQUEST": 87, | ||||||
|  |   "FMS_RESPONSE": 88, | ||||||
|  |   "QOS_TRAFFIC_CAPA": 89, | ||||||
|  |   "BSS_MAX_IDLE_PERIOD": 90, | ||||||
|  |   "TSF_REQUEST": 91, | ||||||
|  |   "TSF_RESPOSNE": 92, | ||||||
|  |   "WNM_SLEEP_MODE": 93, | ||||||
|  |   "TIM_BCAST_REQ": 94, | ||||||
|  |   "TIM_BCAST_RESP": 95, | ||||||
|  |   "COLL_IF_REPORT": 96, | ||||||
|  |   "CHANNEL_USAGE": 97, | ||||||
|  |   "TIME_ZONE": 98, | ||||||
|  |   "DMS_REQUEST": 99, | ||||||
|  |   "DMS_RESPONSE": 100, | ||||||
|  |   "LINK_ID": 101, | ||||||
|  |   "WAKEUP_SCHEDUL": 102, | ||||||
|  |   "CHAN_SWITCH_TIMING": 104, | ||||||
|  |   "PTI_CONTROL": 105, | ||||||
|  |   "PU_BUFFER_STATUS": 106, | ||||||
|  |   "INTERWORKING": 107, | ||||||
|  |   "ADVERTISEMENT_PROTOCOL": 108, | ||||||
|  |   "EXPEDITED_BW_REQ": 109, | ||||||
|  |   "QOS_MAP_SET": 110, | ||||||
|  |   "ROAMING_CONSORTIUM": 111, | ||||||
|  |   "EMERGENCY_ALERT": 112, | ||||||
|  |   "MESH_CONFIG": 113, | ||||||
|  |   "MESH_ID": 114, | ||||||
|  |   "LINK_METRIC_REPORT": 115, | ||||||
|  |   "CONGESTION_NOTIFICATION": 116, | ||||||
|  |   "PEER_MGMT": 117, | ||||||
|  |   "CHAN_SWITCH_PARAM": 118, | ||||||
|  |   "MESH_AWAKE_WINDOW": 119, | ||||||
|  |   "BEACON_TIMING": 120, | ||||||
|  |   "MCCAOP_SETUP_REQ": 121, | ||||||
|  |   "MCCAOP_SETUP_RESP": 122, | ||||||
|  |   "MCCAOP_ADVERT": 123, | ||||||
|  |   "MCCAOP_TEARDOWN": 124, | ||||||
|  |   "GANN": 125, | ||||||
|  |   "RANN": 126, | ||||||
|  |   "EXT_CAPABILITY": 127, | ||||||
|  |   "PREQ": 130, | ||||||
|  |   "PREP": 131, | ||||||
|  |   "PERR": 132, | ||||||
|  |   "PXU": 137, | ||||||
|  |   "PXUC": 138, | ||||||
|  |   "AUTH_MESH_PEER_EXCH": 139, | ||||||
|  |   "MIC": 140, | ||||||
|  |   "DESTINATION_URI": 141, | ||||||
|  |   "UAPSD_COEX": 142, | ||||||
|  |   "WAKEUP_SCHEDULE": 143, | ||||||
|  |   "EXT_SCHEDULE": 144, | ||||||
|  |   "STA_AVAILABILITY": 145, | ||||||
|  |   "DMG_TSPEC": 146, | ||||||
|  |   "DMG_AT": 147, | ||||||
|  |   "DMG_CAP": 148, | ||||||
|  |   "CISCO_VENDOR_SPECIFIC": 150, | ||||||
|  |   "DMG_OPERATION": 151, | ||||||
|  |   "DMG_BSS_PARAM_CHANGE": 152, | ||||||
|  |   "DMG_BEAM_REFINEMENT": 153, | ||||||
|  |   "CHANNEL_MEASURE_FEEDBACK": 154, | ||||||
|  |   "AWAKE_WINDOW": 157, | ||||||
|  |   "MULTI_BAND": 158, | ||||||
|  |   "ADDBA_EXT": 159, | ||||||
|  |   "NEXT_PCP_LIST": 160, | ||||||
|  |   "PCP_HANDOVER": 161, | ||||||
|  |   "DMG_LINK_MARGIN": 162, | ||||||
|  |   "SWITCHING_STREAM": 163, | ||||||
|  |   "SESSION_TRANSITION": 164, | ||||||
|  |   "DYN_TONE_PAIRING_REPORT": 165, | ||||||
|  |   "CLUSTER_REPORT": 166, | ||||||
|  |   "RELAY_CAP": 167, | ||||||
|  |   "RELAY_XFER_PARAM_SET": 168, | ||||||
|  |   "BEAM_LINK_MAINT": 169, | ||||||
|  |   "MULTIPLE_MAC_ADDR": 170, | ||||||
|  |   "U_PID": 171, | ||||||
|  |   "DMG_LINK_ADAPT_ACK": 172, | ||||||
|  |   "MCCAOP_ADV_OVERVIEW": 174, | ||||||
|  |   "QUIET_PERIOD_REQ": 175, | ||||||
|  |   "QUIET_PERIOD_RESP": 177, | ||||||
|  |   "EPAC_POLICY": 182, | ||||||
|  |   "CLISTER_TIME_OFF": 183, | ||||||
|  |   "INTER_AC_PRIO": 184, | ||||||
|  |   "SCS_DESCRIPTOR": 185, | ||||||
|  |   "QLOAD_REPORT": 186, | ||||||
|  |   "HCCA_TXOP_UPDATE_COUNT": 187, | ||||||
|  |   "HL_STREAM_ID": 188, | ||||||
|  |   "GCR_GROUP_ADDR": 189, | ||||||
|  |   "ANTENNA_SECTOR_ID_PATTERN": 190, | ||||||
|  |   "VHT_CAPABILITY": 191, | ||||||
|  |   "VHT_OPERATION": 192, | ||||||
|  |   "EXTENDED_BSS_LOAD": 193, | ||||||
|  |   "WIDE_BW_CHANNEL_SWITCH": 194, | ||||||
|  |   "TX_POWER_ENVELOPE": 195, | ||||||
|  |   "CHANNEL_SWITCH_WRAPPER": 196, | ||||||
|  |   "AID": 197, | ||||||
|  |   "QUIET_CHANNEL": 198, | ||||||
|  |   "OPMODE_NOTIF": 199, | ||||||
|  |  | ||||||
|  |   "REDUCED_NEIGHBOR_REPORT": 201, | ||||||
|  |  | ||||||
|  |   "AID_REQUEST": 210, | ||||||
|  |   "AID_RESPONSE": 211, | ||||||
|  |   "S1G_BCN_COMPAT": 213, | ||||||
|  |   "S1G_SHORT_BCN_INTERVAL": 214, | ||||||
|  |   "S1G_TWT": 216, | ||||||
|  |   "S1G_CAPABILITIES": 217, | ||||||
|  |   "VENDOR_SPECIFIC": 221, | ||||||
|  |   "QOS_PARAMETER": 222, | ||||||
|  |   "S1G_OPERATION": 232, | ||||||
|  |   "CAG_NUMBER": 237, | ||||||
|  |   "AP_CSN": 239, | ||||||
|  |   "FILS_INDICATION": 240, | ||||||
|  |   "DILS": 241, | ||||||
|  |   "FRAGMENT": 242, | ||||||
|  |   "RSNX": 244, | ||||||
|  |   "EXTENSION": 255 | ||||||
|  | } | ||||||
| @@ -6,7 +6,6 @@ import { | |||||||
|   CModalTitle, |   CModalTitle, | ||||||
|   CModalBody, |   CModalBody, | ||||||
|   CRow, |   CRow, | ||||||
|   CForm, |  | ||||||
|   CSwitch, |   CSwitch, | ||||||
|   CCol, |   CCol, | ||||||
|   CSpinner, |   CSpinner, | ||||||
| @@ -25,12 +24,27 @@ import { useAuth, useDevice } from 'ucentral-libs'; | |||||||
| import WifiChannelTable from 'components/WifiScanResultModal/WifiChannelTable'; | import WifiChannelTable from 'components/WifiScanResultModal/WifiChannelTable'; | ||||||
| import 'react-widgets/styles.css'; | import 'react-widgets/styles.css'; | ||||||
| import { CSVLink } from 'react-csv'; | import { CSVLink } from 'react-csv'; | ||||||
|  | import Select from 'react-select'; | ||||||
|  | import IeDisplay from 'components/WifiScanResultModal/IeDisplay'; | ||||||
|  | import IE_OPTIONS from './IE_OPTIONS.json'; | ||||||
|  |  | ||||||
|  | const getIeOptions = () => { | ||||||
|  |   const arr = []; | ||||||
|  |   for (const [key, value] of Object.entries(IE_OPTIONS)) { | ||||||
|  |     arr.push({ | ||||||
|  |       label: `${key} (${value})`, | ||||||
|  |       value, | ||||||
|  |     }); | ||||||
|  |   } | ||||||
|  |   return arr; | ||||||
|  | }; | ||||||
| const WifiScanModal = ({ show, toggleModal }) => { | const WifiScanModal = ({ show, toggleModal }) => { | ||||||
|   const { t } = useTranslation(); |   const { t } = useTranslation(); | ||||||
|   const { currentToken, endpoints } = useAuth(); |   const { currentToken, endpoints } = useAuth(); | ||||||
|   const { deviceSerialNumber } = useDevice(); |   const { deviceSerialNumber } = useDevice(); | ||||||
|   const [hadSuccess, setHadSuccess] = useState(false); |   const [hadSuccess, setHadSuccess] = useState(false); | ||||||
|  |   const [selectedIes, setSelectedIes] = useState(undefined); | ||||||
|  |   const [ies, setIes] = useState([]); | ||||||
|   const [hadFailure, setHadFailure] = useState(false); |   const [hadFailure, setHadFailure] = useState(false); | ||||||
|   const [errorCode, setErrorCode] = useState(0); |   const [errorCode, setErrorCode] = useState(0); | ||||||
|   const [waiting, setWaiting] = useState(false); |   const [waiting, setWaiting] = useState(false); | ||||||
| @@ -49,6 +63,14 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|     setActiveScan(!activeScan); |     setActiveScan(!activeScan); | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|  |   const onIesChange = (v) => { | ||||||
|  |     if (v.find(({ value }) => value === '*')) { | ||||||
|  |       setIes(getIeOptions()); | ||||||
|  |     } else { | ||||||
|  |       setIes(v); | ||||||
|  |     } | ||||||
|  |   }; | ||||||
|  |  | ||||||
|   useEffect(() => { |   useEffect(() => { | ||||||
|     setHadSuccess(false); |     setHadSuccess(false); | ||||||
|     setHadFailure(false); |     setHadFailure(false); | ||||||
| @@ -60,6 +82,7 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|     setActiveScan(false); |     setActiveScan(false); | ||||||
|     setHideOptions(false); |     setHideOptions(false); | ||||||
|     setErrorCode(0); |     setErrorCode(0); | ||||||
|  |     setIes(undefined); | ||||||
|   }, [show]); |   }, [show]); | ||||||
|  |  | ||||||
|   const parseThroughList = (scanList) => { |   const parseThroughList = (scanList) => { | ||||||
| @@ -87,6 +110,7 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|             deviceToAdd.SSID = device.meshid && device.meshid.length > 0 ? device.meshid : 'N/A'; |             deviceToAdd.SSID = device.meshid && device.meshid.length > 0 ? device.meshid : 'N/A'; | ||||||
|           } |           } | ||||||
|           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; |           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; | ||||||
|  |           deviceToAdd.ies = device.ies; | ||||||
|           channel.devices.push(deviceToAdd); |           channel.devices.push(deviceToAdd); | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
| @@ -123,7 +147,7 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|           } |           } | ||||||
|           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; |           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; | ||||||
|           channel.devices.push(deviceToAdd); |           channel.devices.push(deviceToAdd); | ||||||
|           listCsv.push({ ...deviceToAdd, ...device }); |           listCsv.push({ ...device, ...deviceToAdd, ies: JSON.stringify(device.ies, null, 4) }); | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
|     }); |     }); | ||||||
| @@ -140,6 +164,7 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|       override_dfs: dfs, |       override_dfs: dfs, | ||||||
|       bandwidth: bandwidth !== '' ? bandwidth : undefined, |       bandwidth: bandwidth !== '' ? bandwidth : undefined, | ||||||
|       activeScan, |       activeScan, | ||||||
|  |       ies: ies.length > 0 ? ies.map(({ value }) => value) : undefined, | ||||||
|     }; |     }; | ||||||
|     const headers = { |     const headers = { | ||||||
|       Accept: 'application/json', |       Accept: 'application/json', | ||||||
| @@ -223,15 +248,13 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|               <p className="pl-2">{t('wifi_analysis.override_dfs')}:</p> |               <p className="pl-2">{t('wifi_analysis.override_dfs')}:</p> | ||||||
|             </CCol> |             </CCol> | ||||||
|             <CCol> |             <CCol> | ||||||
|               <CForm className="pl-4"> |               <CSwitch | ||||||
|                 <CSwitch |                 color="primary" | ||||||
|                   color="primary" |                 defaultChecked={dfs} | ||||||
|                   defaultChecked={dfs} |                 onClick={toggleDfs} | ||||||
|                   onClick={toggleDfs} |                 labelOn={t('common.on')} | ||||||
|                   labelOn={t('common.on')} |                 labelOff={t('common.off')} | ||||||
|                   labelOff={t('common.off')} |               /> | ||||||
|                 /> |  | ||||||
|               </CForm> |  | ||||||
|             </CCol> |             </CCol> | ||||||
|           </CRow> |           </CRow> | ||||||
|           <CRow className="mt-3"> |           <CRow className="mt-3"> | ||||||
| @@ -239,15 +262,13 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|               <p className="pl-2">{t('scan.active')}:</p> |               <p className="pl-2">{t('scan.active')}:</p> | ||||||
|             </CCol> |             </CCol> | ||||||
|             <CCol> |             <CCol> | ||||||
|               <CForm className="pl-4"> |               <CSwitch | ||||||
|                 <CSwitch |                 color="primary" | ||||||
|                   color="primary" |                 defaultChecked={activeScan} | ||||||
|                   defaultChecked={activeScan} |                 onClick={toggleActiveScan} | ||||||
|                   onClick={toggleActiveScan} |                 labelOn={t('common.on')} | ||||||
|                   labelOn={t('common.on')} |                 labelOff={t('common.off')} | ||||||
|                   labelOff={t('common.off')} |               /> | ||||||
|                 /> |  | ||||||
|               </CForm> |  | ||||||
|             </CCol> |             </CCol> | ||||||
|           </CRow> |           </CRow> | ||||||
|           <CRow className="mt-3"> |           <CRow className="mt-3"> | ||||||
| @@ -255,19 +276,34 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|               <p className="pl-2">Bandwidth:</p> |               <p className="pl-2">Bandwidth:</p> | ||||||
|             </CCol> |             </CCol> | ||||||
|             <CCol> |             <CCol> | ||||||
|               <CForm className="pl-4"> |               <CSelect | ||||||
|                 <CSelect |                 custom | ||||||
|                   custom |                 value={bandwidth} | ||||||
|                   value={bandwidth} |                 onChange={(e) => setBandwidth(e.target.value)} | ||||||
|                   onChange={(e) => setBandwidth(e.target.value)} |                 style={{ width: '100px' }} | ||||||
|                   style={{ width: '100px' }} |               > | ||||||
|                 > |                 <option value="">Default</option> | ||||||
|                   <option value="">Default</option> |                 <option value="20">20 MHz</option> | ||||||
|                   <option value="20">20 MHz</option> |                 <option value="40">40 MHz</option> | ||||||
|                   <option value="40">40 MHz</option> |                 <option value="80">80 MHz</option> | ||||||
|                   <option value="80">80 MHz</option> |               </CSelect> | ||||||
|                 </CSelect> |             </CCol> | ||||||
|               </CForm> |           </CRow> | ||||||
|  |           <CRow className="mt-3"> | ||||||
|  |             <CCol md="3"> | ||||||
|  |               <p className="pl-2">{t('actions.request_ie')}:</p> | ||||||
|  |             </CCol> | ||||||
|  |             <CCol> | ||||||
|  |               <Select | ||||||
|  |                 isMulti | ||||||
|  |                 closeMenuOnSelect={false} | ||||||
|  |                 name="request_ie" | ||||||
|  |                 options={[{ label: 'All', value: '*' }, ...getIeOptions()]} | ||||||
|  |                 onChange={onIesChange} | ||||||
|  |                 value={ies} | ||||||
|  |                 className="basic-multi-select" | ||||||
|  |                 classNamePrefix="select" | ||||||
|  |               /> | ||||||
|             </CCol> |             </CCol> | ||||||
|           </CRow> |           </CRow> | ||||||
|         </div> |         </div> | ||||||
| @@ -296,7 +332,10 @@ const WifiScanModal = ({ show, toggleModal }) => { | |||||||
|               </CCol> |               </CCol> | ||||||
|             </CRow> |             </CRow> | ||||||
|           )} |           )} | ||||||
|           <WifiChannelTable channels={channelList} /> |           {selectedIes && <IeDisplay ies={selectedIes} setIes={setSelectedIes} />} | ||||||
|  |           {selectedIes || channelList === null ? null : ( | ||||||
|  |             <WifiChannelTable channels={channelList} setIes={setSelectedIes} /> | ||||||
|  |           )} | ||||||
|         </div> |         </div> | ||||||
|       </CModalBody> |       </CModalBody> | ||||||
|     </CModal> |     </CModal> | ||||||
|   | |||||||
							
								
								
									
										90
									
								
								src/components/WifiScanResultModal/IeDisplay.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										90
									
								
								src/components/WifiScanResultModal/IeDisplay.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,90 @@ | |||||||
|  | import React, { useMemo } from 'react'; | ||||||
|  | import PropTypes from 'prop-types'; | ||||||
|  | import { CButton, CRow, CCol } from '@coreui/react'; | ||||||
|  | import CIcon from '@coreui/icons-react'; | ||||||
|  | import { cilArrowLeft } from '@coreui/icons'; | ||||||
|  |  | ||||||
|  | const IeDisplay = ({ ies, setIes }) => { | ||||||
|  |   const handleClick = () => { | ||||||
|  |     setIes(undefined); | ||||||
|  |   }; | ||||||
|  |  | ||||||
|  |   const display = useMemo( | ||||||
|  |     () => | ||||||
|  |       ies.map((ie) => { | ||||||
|  |         if (ie.byteArr) { | ||||||
|  |           return ( | ||||||
|  |             <CCol sm="6"> | ||||||
|  |               <h5 | ||||||
|  |                 style={{ | ||||||
|  |                   textDecoration: 'underline', | ||||||
|  |                 }} | ||||||
|  |               > | ||||||
|  |                 {ie.name}:{' '} | ||||||
|  |               </h5> | ||||||
|  |               <pre> | ||||||
|  |                 {ie.byteArr.map((arr, i) => { | ||||||
|  |                   const offset = (i * 8).toString(16); | ||||||
|  |                   return ( | ||||||
|  |                     <pre | ||||||
|  |                       className="mb-0" | ||||||
|  |                       style={{ | ||||||
|  |                         overflowY: 'auto', | ||||||
|  |                         maxHeight: '200px', | ||||||
|  |                       }} | ||||||
|  |                     > | ||||||
|  |                       {offset.length === 1 ? `0${offset}` : offset}: {arr.join('  ')} | ||||||
|  |                     </pre> | ||||||
|  |                   ); | ||||||
|  |                 })} | ||||||
|  |               </pre> | ||||||
|  |             </CCol> | ||||||
|  |           ); | ||||||
|  |         } | ||||||
|  |         return ( | ||||||
|  |           <CCol sm="6"> | ||||||
|  |             <h5 | ||||||
|  |               style={{ | ||||||
|  |                 textDecoration: 'underline', | ||||||
|  |               }} | ||||||
|  |             > | ||||||
|  |               {ie.name}:{' '} | ||||||
|  |             </h5> | ||||||
|  |             <pre | ||||||
|  |               style={{ | ||||||
|  |                 overflowY: 'auto', | ||||||
|  |                 maxHeight: '200px', | ||||||
|  |               }} | ||||||
|  |             > | ||||||
|  |               {JSON.stringify(ie.data, null, 4)} | ||||||
|  |             </pre> | ||||||
|  |           </CCol> | ||||||
|  |         ); | ||||||
|  |       }), | ||||||
|  |     [ies], | ||||||
|  |   ); | ||||||
|  |  | ||||||
|  |   return ( | ||||||
|  |     <> | ||||||
|  |       <CRow> | ||||||
|  |         <CCol> | ||||||
|  |           <h4>Information Elements</h4> | ||||||
|  |         </CCol> | ||||||
|  |         <CCol className="text-right"> | ||||||
|  |           <CButton color="primary" variant="outline" className="ml-2" onClick={handleClick}> | ||||||
|  |             Go Back | ||||||
|  |             <CIcon className="ml-2" content={cilArrowLeft} /> | ||||||
|  |           </CButton> | ||||||
|  |         </CCol> | ||||||
|  |       </CRow> | ||||||
|  |       <CRow>{display}</CRow> | ||||||
|  |     </> | ||||||
|  |   ); | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | IeDisplay.propTypes = { | ||||||
|  |   ies: PropTypes.instanceOf(Array).isRequired, | ||||||
|  |   setIes: PropTypes.func.isRequired, | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | export default IeDisplay; | ||||||
| @@ -1,8 +1,18 @@ | |||||||
| import { CCard, CCardTitle, CCardBody, CDataTable, CCardHeader } from '@coreui/react'; | import { | ||||||
|  |   CCard, | ||||||
|  |   CCardTitle, | ||||||
|  |   CCardBody, | ||||||
|  |   CDataTable, | ||||||
|  |   CButton, | ||||||
|  |   CPopover, | ||||||
|  |   CCardHeader, | ||||||
|  | } from '@coreui/react'; | ||||||
| import React from 'react'; | import React from 'react'; | ||||||
| import { useTranslation } from 'react-i18next'; | import { useTranslation } from 'react-i18next'; | ||||||
| import PropTypes from 'prop-types'; | import PropTypes from 'prop-types'; | ||||||
| import 'react-widgets/styles.css'; | import 'react-widgets/styles.css'; | ||||||
|  | import { Buffer } from 'buffer'; | ||||||
|  | import IE_OPTIONS from '../WifiScanModal/IE_OPTIONS.json'; | ||||||
|  |  | ||||||
| const parseDbm = (value) => { | const parseDbm = (value) => { | ||||||
|   if (!value) return '-'; |   if (!value) return '-'; | ||||||
| @@ -10,9 +20,66 @@ const parseDbm = (value) => { | |||||||
|   return 4294967295 + value; |   return 4294967295 + value; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| const WifiChannelCard = ({ channel }) => { | const getIeName = (type) => { | ||||||
|  |   for (const [key, value] of Object.entries(IE_OPTIONS)) { | ||||||
|  |     if (value === type) return `${key} (${type})`; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   return type; | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | const parseIe = ({ name, type, data, content }) => { | ||||||
|  |   try { | ||||||
|  |     if (data) { | ||||||
|  |       const ie = Buffer.from(data, 'base64'); | ||||||
|  |       const arr = new Uint16Array(ie); | ||||||
|  |       const finalArr = []; | ||||||
|  |       for (let i = 0; i < arr.length; i += 8) { | ||||||
|  |         const slice = arr.slice(i, i + 8); | ||||||
|  |         finalArr.push( | ||||||
|  |           Object.keys(slice).map((k) => { | ||||||
|  |             const num = slice[k].toString(16); | ||||||
|  |             return num.length === 1 ? `0${num}` : num; | ||||||
|  |           }), | ||||||
|  |         ); | ||||||
|  |       } | ||||||
|  |       const finalName = name ? `${name} (${type})` : getIeName(type); | ||||||
|  |  | ||||||
|  |       return { name: finalName, byteArr: finalArr }; | ||||||
|  |     } | ||||||
|  |     if (content) { | ||||||
|  |       return { name: name ? `${name} (${type})` : getIeName(type), data: content }; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     return { name: name ? `${name} (${type})` : getIeName(type), data: content ?? data }; | ||||||
|  |   } catch { | ||||||
|  |     return { name: name ? `${name} (${type}, error while parsing)` : getIeName(type), data }; | ||||||
|  |   } | ||||||
|  | }; | ||||||
|  |  | ||||||
|  | const WifiChannelCard = ({ channel, setIes }) => { | ||||||
|   const { t } = useTranslation(); |   const { t } = useTranslation(); | ||||||
|   const columns = [{ key: 'SSID', _style: { width: '70%' } }, { key: 'Signal' }]; |   const columns = [{ key: 'SSID', _style: { width: '70%' } }, { key: 'Signal' }, { key: 'IE' }]; | ||||||
|  |  | ||||||
|  |   const displayIe = (ies) => { | ||||||
|  |     const parsedIes = ies.map((ie) => parseIe(ie)); | ||||||
|  |  | ||||||
|  |     const str = ies.map(({ type, data }) => `${type}: ${data}\n`); | ||||||
|  |  | ||||||
|  |     return ( | ||||||
|  |       <td className="ignore-overflow text-center align-middle"> | ||||||
|  |         {str.length > 0 ? ( | ||||||
|  |           <CPopover content="View IEs"> | ||||||
|  |             <CButton color="primary" size="sm" onClick={() => setIes(parsedIes)}> | ||||||
|  |               {ies.length} | ||||||
|  |             </CButton> | ||||||
|  |           </CPopover> | ||||||
|  |         ) : ( | ||||||
|  |           ies.length | ||||||
|  |         )} | ||||||
|  |       </td> | ||||||
|  |     ); | ||||||
|  |   }; | ||||||
|  |  | ||||||
|   return ( |   return ( | ||||||
|     <CCard> |     <CCard> | ||||||
| @@ -29,7 +96,8 @@ const WifiChannelCard = ({ channel }) => { | |||||||
|             fields={columns} |             fields={columns} | ||||||
|             className="text-white" |             className="text-white" | ||||||
|             scopedSlots={{ |             scopedSlots={{ | ||||||
|               Signal: (item) => <td>{parseDbm(item.Signal)}</td>, |               Signal: (item) => <td className="align-middle">{parseDbm(item.Signal)}</td>, | ||||||
|  |               IE: (item) => displayIe(item.ies), | ||||||
|             }} |             }} | ||||||
|           /> |           /> | ||||||
|         </div> |         </div> | ||||||
| @@ -40,6 +108,7 @@ const WifiChannelCard = ({ channel }) => { | |||||||
|  |  | ||||||
| WifiChannelCard.propTypes = { | WifiChannelCard.propTypes = { | ||||||
|   channel: PropTypes.instanceOf(Object).isRequired, |   channel: PropTypes.instanceOf(Object).isRequired, | ||||||
|  |   setIes: PropTypes.func.isRequired, | ||||||
| }; | }; | ||||||
|  |  | ||||||
| export default WifiChannelCard; | export default WifiChannelCard; | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ import { v4 as createUuid } from 'uuid'; | |||||||
| import PropTypes from 'prop-types'; | import PropTypes from 'prop-types'; | ||||||
| import WifiChannelCard from './WifiChannelCard'; | import WifiChannelCard from './WifiChannelCard'; | ||||||
|  |  | ||||||
| const WifiChannelTable = ({ channels }) => { | const WifiChannelTable = ({ channels, setIes }) => { | ||||||
|   const sortChannels = () => { |   const sortChannels = () => { | ||||||
|     channels.sort((a, b) => (a.channel > b.channel ? 1 : -1)); |     channels.sort((a, b) => (a.channel > b.channel ? 1 : -1)); | ||||||
|   }; |   }; | ||||||
| @@ -17,13 +17,15 @@ const WifiChannelTable = ({ channels }) => { | |||||||
|     <CRow> |     <CRow> | ||||||
|       <CCol> |       <CCol> | ||||||
|         {channels.map((channel, index) => { |         {channels.map((channel, index) => { | ||||||
|           if (index % 2 === 0) return <WifiChannelCard key={createUuid()} channel={channel} />; |           if (index % 2 === 0) | ||||||
|  |             return <WifiChannelCard key={createUuid()} channel={channel} setIes={setIes} />; | ||||||
|           return <div key={createUuid()} />; |           return <div key={createUuid()} />; | ||||||
|         })} |         })} | ||||||
|       </CCol> |       </CCol> | ||||||
|       <CCol> |       <CCol> | ||||||
|         {channels.map((channel, index) => { |         {channels.map((channel, index) => { | ||||||
|           if (index % 2 === 1) return <WifiChannelCard key={createUuid()} channel={channel} />; |           if (index % 2 === 1) | ||||||
|  |             return <WifiChannelCard key={createUuid()} channel={channel} setIes={setIes} />; | ||||||
|           return <div key={createUuid()} />; |           return <div key={createUuid()} />; | ||||||
|         })} |         })} | ||||||
|       </CCol> |       </CCol> | ||||||
| @@ -33,6 +35,7 @@ const WifiChannelTable = ({ channels }) => { | |||||||
|  |  | ||||||
| WifiChannelTable.propTypes = { | WifiChannelTable.propTypes = { | ||||||
|   channels: PropTypes.instanceOf(Array), |   channels: PropTypes.instanceOf(Array), | ||||||
|  |   setIes: PropTypes.func.isRequired, | ||||||
| }; | }; | ||||||
|  |  | ||||||
| WifiChannelTable.defaultProps = { | WifiChannelTable.defaultProps = { | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| /* eslint-disable-rule prefer-destructuring */ | /* eslint-disable-rule prefer-destructuring */ | ||||||
| import React, { useCallback } from 'react'; | import React, { useEffect, useMemo, useState } from 'react'; | ||||||
| import { useTranslation } from 'react-i18next'; | import { useTranslation } from 'react-i18next'; | ||||||
| import { CButton, CModal, CModalHeader, CModalBody, CModalTitle, CPopover } from '@coreui/react'; | import { CButton, CModal, CModalHeader, CModalBody, CModalTitle, CPopover } from '@coreui/react'; | ||||||
| import CIcon from '@coreui/icons-react'; | import CIcon from '@coreui/icons-react'; | ||||||
| @@ -9,12 +9,14 @@ import { prettyDate, prettyDateForFile } from 'utils/helper'; | |||||||
| import { useDevice } from 'ucentral-libs'; | import { useDevice } from 'ucentral-libs'; | ||||||
| import { CSVLink } from 'react-csv'; | import { CSVLink } from 'react-csv'; | ||||||
| import WifiChannelTable from './WifiChannelTable'; | import WifiChannelTable from './WifiChannelTable'; | ||||||
|  | import IeDisplay from './IeDisplay'; | ||||||
|  |  | ||||||
| const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | ||||||
|   const { t } = useTranslation(); |   const { t } = useTranslation(); | ||||||
|   const { deviceSerialNumber } = useDevice(); |   const { deviceSerialNumber } = useDevice(); | ||||||
|  |   const [selectedIes, setSelectedIes] = useState(undefined); | ||||||
|  |  | ||||||
|   const getData = useCallback(() => { |   const getData = useMemo(() => { | ||||||
|     if (scanResults === null || scanResults.length === 0) return []; |     if (scanResults === null || scanResults.length === 0) return []; | ||||||
|     const dbmNumber = 4294967295; |     const dbmNumber = 4294967295; | ||||||
|     const listOfChannels = []; |     const listOfChannels = []; | ||||||
| @@ -31,7 +33,6 @@ const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | |||||||
|         channel: channelNumber, |         channel: channelNumber, | ||||||
|         devices: [], |         devices: [], | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
|       scanResults.forEach((device) => { |       scanResults.forEach((device) => { | ||||||
|         if (device.channel === channelNumber) { |         if (device.channel === channelNumber) { | ||||||
|           const deviceToAdd = {}; |           const deviceToAdd = {}; | ||||||
| @@ -41,14 +42,15 @@ const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | |||||||
|           } |           } | ||||||
|           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; |           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; | ||||||
|           channel.devices.push(deviceToAdd); |           channel.devices.push(deviceToAdd); | ||||||
|           listCsv.push({ ...deviceToAdd, ...device }); |           listCsv.push({ ...deviceToAdd, ...device, ies: JSON.stringify(device.ies, null, 4) }); | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
|     }); |     }); | ||||||
|     return listCsv; |     return listCsv; | ||||||
|   }, [scanResults]); |   }, [scanResults]); | ||||||
|  |  | ||||||
|   const parseThroughList = useCallback(() => { |   const parseThroughList = useMemo(() => { | ||||||
|  |     if (!scanResults) return null; | ||||||
|     const dbmNumber = 4294967295; |     const dbmNumber = 4294967295; | ||||||
|     const listOfChannels = []; |     const listOfChannels = []; | ||||||
|  |  | ||||||
| @@ -73,6 +75,7 @@ const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | |||||||
|             deviceToAdd.SSID = device.meshid && device.meshid.length > 0 ? device.meshid : 'N/A'; |             deviceToAdd.SSID = device.meshid && device.meshid.length > 0 ? device.meshid : 'N/A'; | ||||||
|           } |           } | ||||||
|           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; |           deviceToAdd.Signal = (dbmNumber - device.signal) * -1; | ||||||
|  |           deviceToAdd.ies = device.ies; | ||||||
|           channel.devices.push(deviceToAdd); |           channel.devices.push(deviceToAdd); | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
| @@ -82,6 +85,10 @@ const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | |||||||
|     return finalList; |     return finalList; | ||||||
|   }, [scanResults]); |   }, [scanResults]); | ||||||
|  |  | ||||||
|  |   useEffect(() => { | ||||||
|  |     setSelectedIes(undefined); | ||||||
|  |   }, [show]); | ||||||
|  |  | ||||||
|   return ( |   return ( | ||||||
|     <CModal size="lg" show={show} onClose={toggle}> |     <CModal size="lg" show={show} onClose={toggle}> | ||||||
|       <CModalHeader> |       <CModalHeader> | ||||||
| @@ -94,7 +101,7 @@ const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | |||||||
|               filename={`wifi_scan_${deviceSerialNumber}_${ |               filename={`wifi_scan_${deviceSerialNumber}_${ | ||||||
|                 date !== '' ? prettyDateForFile(date) : '' |                 date !== '' ? prettyDateForFile(date) : '' | ||||||
|               }.csv`} |               }.csv`} | ||||||
|               data={getData()} |               data={getData} | ||||||
|             > |             > | ||||||
|               <CButton color="primary" variant="outline" className="ml-2"> |               <CButton color="primary" variant="outline" className="ml-2"> | ||||||
|                 <CIcon content={cilCloudDownload} /> |                 <CIcon content={cilCloudDownload} /> | ||||||
| @@ -109,7 +116,10 @@ const WifiScanResultModal = ({ show, toggle, scanResults, date }) => { | |||||||
|         </div> |         </div> | ||||||
|       </CModalHeader> |       </CModalHeader> | ||||||
|       <CModalBody> |       <CModalBody> | ||||||
|         {scanResults === null ? null : <WifiChannelTable channels={parseThroughList()} />} |         {selectedIes && <IeDisplay ies={selectedIes} setIes={setSelectedIes} />} | ||||||
|  |         {selectedIes || scanResults === null ? null : ( | ||||||
|  |           <WifiChannelTable channels={parseThroughList} setIes={setSelectedIes} /> | ||||||
|  |         )} | ||||||
|       </CModalBody> |       </CModalBody> | ||||||
|     </CModal> |     </CModal> | ||||||
|   ); |   ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Charles
					Charles