From 91326a1f8296f57701b6fe7f8e75408fc7e6800f Mon Sep 17 00:00:00 2001 From: Ben <43026681+bwp91@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:56:47 +0100 Subject: [PATCH] enhancements to `login` and `setup-wizard` modules --- CHANGELOG.md | 1 + scripts/lang-sync.ts | 3 + ui/package-lock.json | 124 +- .../accessories/accessories.component.html | 258 ++-- .../config-editor.component.html | 180 +-- ui/src/app/modules/login/login.component.html | 83 +- ui/src/app/modules/login/login.component.scss | 72 +- ui/src/app/modules/login/login.component.ts | 38 +- ui/src/app/modules/login/login.module.ts | 3 +- ui/src/app/modules/logs/logs.component.html | 46 +- .../container-restart.component.html | 40 +- .../startup-script.component.html | 25 +- .../restart-linux.component.html | 36 +- .../shutdown-linux.component.html | 24 +- .../terminal/terminal.component.html | 14 +- .../modules/plugins/plugins.component.html | 55 +- .../power-options.component.html | 82 +- .../modules/restart/restart.component.html | 80 +- .../settings/restore/restore.component.html | 18 +- .../settings/restore/restore.component.ts | 13 +- .../modules/settings/settings.component.html | 1083 +++++++++-------- .../setup-wizard/setup-wizard.component.html | 166 +-- .../setup-wizard/setup-wizard.component.scss | 91 +- .../setup-wizard/setup-wizard.component.ts | 193 +-- .../app/modules/status/status.component.html | 188 +-- .../app/modules/status/status.component.scss | 2 +- .../system-info-widget.component.html | 8 +- .../modules/support/support.component.html | 358 +++--- ui/src/app/modules/users/users.component.html | 96 +- .../app/shared/layout/layout.component.html | 2 +- .../app/shared/layout/layout.component.scss | 1 + ui/src/app/shared/layout/layout.component.ts | 18 +- ui/src/assets/homebridge-color-round.svg | 2 +- ui/src/i18n/bg.json | 22 +- ui/src/i18n/ca.json | 20 +- ui/src/i18n/cs.json | 20 +- ui/src/i18n/de.json | 20 +- ui/src/i18n/en.json | 34 +- ui/src/i18n/es.json | 20 +- ui/src/i18n/fr.json | 20 +- ui/src/i18n/he.json | 18 +- ui/src/i18n/hu.json | 22 +- ui/src/i18n/id.json | 20 +- ui/src/i18n/it.json | 20 +- ui/src/i18n/ja.json | 20 +- ui/src/i18n/ko.json | 20 +- ui/src/i18n/mk.json | 20 +- ui/src/i18n/nl.json | 20 +- ui/src/i18n/no.json | 22 +- ui/src/i18n/pl.json | 16 +- ui/src/i18n/pt-BR.json | 20 +- ui/src/i18n/pt.json | 20 +- ui/src/i18n/ru.json | 20 +- ui/src/i18n/sl.json | 20 +- ui/src/i18n/sv.json | 20 +- ui/src/i18n/th.json | 18 +- ui/src/i18n/tr.json | 20 +- ui/src/i18n/uk.json | 20 +- ui/src/i18n/zh-CN.json | 20 +- ui/src/i18n/zh-TW.json | 20 +- ui/src/scss/base/buttons.scss | 2 +- ui/src/scss/base/layout.scss | 97 +- ui/src/scss/base/modal.scss | 18 +- ui/src/scss/components/accessories.scss | 2 +- ui/src/scss/components/widgets.scss | 4 +- ui/src/scss/themes/themes-dark.scss | 115 +- ui/src/scss/themes/themes-light.scss | 79 +- 67 files changed, 2373 insertions(+), 1899 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2be9ce160..b09615e1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file. ### UI Changes - switch from a top menu to a sidebar menu +- enhancements to `login` and `setup-wizard` modules ### Other Changes diff --git a/scripts/lang-sync.ts b/scripts/lang-sync.ts index b6203dded..ed5330f99 100644 --- a/scripts/lang-sync.ts +++ b/scripts/lang-sync.ts @@ -50,6 +50,9 @@ async function main() { // Check each key const unusedKeys = [] for (const key of keys) { + if (key.startsWith('login.tips_')) { + continue + } const isUsed = await Promise.all(allFiles.map(file => isKeyUsedInFile(key, file))) .then(results => results.some(result => result)) if (!isUsed) { diff --git a/ui/package-lock.json b/ui/package-lock.json index 0db15e547..61b9ae9d2 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -352,6 +352,34 @@ "typescript": ">=5.4 <5.6" } }, + "node_modules/@angular/compiler-cli/node_modules/chokidar": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", + "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@angular/compiler-cli/node_modules/readdirp": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", + "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", + "license": "MIT", + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@angular/core": { "version": "18.2.8", "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.8.tgz", @@ -3177,18 +3205,28 @@ } }, "node_modules/chokidar": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", - "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, "license": "MIT", "dependencies": { - "readdirp": "^4.0.1" + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" }, "engines": { - "node": ">= 14.16.0" + "node": ">= 8.10.0" }, "funding": { "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, "node_modules/chownr": { @@ -6863,16 +6901,29 @@ } }, "node_modules/readdirp": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", - "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, "engines": { - "node": ">= 14.16.0" + "node": ">=8.10.0" + } + }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" }, "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" + "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/reflect-metadata": { @@ -7141,57 +7192,6 @@ "node": ">=14.0.0" } }, - "node_modules/sass/node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/sass/node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/sass/node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, "node_modules/semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", diff --git a/ui/src/app/modules/accessories/accessories.component.html b/ui/src/app/modules/accessories/accessories.component.html index a582918f3..3b5f6b4f7 100644 --- a/ui/src/app/modules/accessories/accessories.component.html +++ b/ui/src/app/modules/accessories/accessories.component.html @@ -1,142 +1,144 @@ -
-
-
-

{{ 'accessories.title_accessories' | translate }}

-
-
-
- -
-
- +
+
+
+
+

{{ 'accessories.title_accessories' | translate }}

-
- - +
+
+ +
+
+ +
+
+ + +
-
-
-
-
-
-
- {{ room.name === 'Default Room' ? ('accessories.control.default_room' | translate) : room.name }} -
-
-
-
-
-
- - - +
+
+
+
+
+ {{ room.name === 'Default Room' ? ('accessories.control.default_room' | translate) : room.name }} +
- - - - - - - - - - - - - - -
-
- +
+
+
+ + + +
+ + + + + + + + + + + + + + + +
+
+ +
-
-
-
-
-

{{ 'accessories.title_accessories' | translate }}

-
-
-