From bc15c3b9fbfe790af6ccf7b65db67e8c8777c745 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 + .../accessories/accessories.component.html | 265 ++-- .../config-editor.component.html | 188 +-- 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 | 66 +- .../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 | 73 +- .../modules/restart/restart.component.html | 80 +- .../settings/restore/restore.component.html | 4 +- .../settings/restore/restore.component.ts | 10 - .../modules/settings/settings.component.html | 1084 +++++++++-------- .../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 | 195 ++- .../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 | 24 +- ui/src/i18n/ca.json | 22 +- ui/src/i18n/cs.json | 22 +- ui/src/i18n/de.json | 22 +- ui/src/i18n/en.json | 36 +- ui/src/i18n/es.json | 22 +- ui/src/i18n/fi.json | 17 +- ui/src/i18n/fr.json | 22 +- ui/src/i18n/he.json | 20 +- ui/src/i18n/hu.json | 24 +- ui/src/i18n/id.json | 22 +- ui/src/i18n/it.json | 22 +- ui/src/i18n/ja.json | 22 +- ui/src/i18n/ko.json | 22 +- ui/src/i18n/mk.json | 22 +- ui/src/i18n/nl.json | 22 +- ui/src/i18n/no.json | 24 +- ui/src/i18n/pl.json | 18 +- ui/src/i18n/pt-BR.json | 22 +- ui/src/i18n/pt.json | 22 +- ui/src/i18n/ru.json | 16 +- ui/src/i18n/sl.json | 22 +- ui/src/i18n/sv.json | 22 +- ui/src/i18n/th.json | 20 +- ui/src/i18n/tr.json | 22 +- ui/src/i18n/uk.json | 22 +- ui/src/i18n/zh-CN.json | 22 +- ui/src/i18n/zh-TW.json | 22 +- 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, 2320 insertions(+), 1910 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dadf88e34..1591342ca 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/src/app/modules/accessories/accessories.component.html b/ui/src/app/modules/accessories/accessories.component.html index a82334ef4..f4a2ae9a3 100644 --- a/ui/src/app/modules/accessories/accessories.component.html +++ b/ui/src/app/modules/accessories/accessories.component.html @@ -1,146 +1,147 @@ -
-
-
-

{{ '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 }}

-
-
-