diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d2d10c6c..8e1ec13ba 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/src/core/config/config.service.ts b/src/core/config/config.service.ts index d83369bcc..12239acb4 100644 --- a/src/core/config/config.service.ts +++ b/src/core/config/config.service.ts @@ -207,7 +207,7 @@ export class ConfigService { formAuth: Boolean(this.ui.auth !== 'none'), lightingMode: this.ui.lightingMode || 'auto', serverTimestamp: new Date().toISOString(), - theme: this.ui.theme || 'orange', + theme: this.ui.theme || 'purple', } if (!authorized) { diff --git a/ui/package-lock.json b/ui/package-lock.json index 0567a0446..784c2392e 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -3494,9 +3494,9 @@ } }, "node_modules/@jsonjoy.com/util": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@jsonjoy.com/util/-/util-1.4.0.tgz", - "integrity": "sha512-LLGQO+U1CZyBqPTLkvP3vhWDMmF5BJHSUeiroA3cc6LfyJL5skfcgDhA+EB94lyHIE/z+eZmGBwXYaDO103Qfw==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jsonjoy.com/util/-/util-1.5.0.tgz", + "integrity": "sha512-ojoNsrIuPI9g6o8UxhraZQSyF2ByJanAY4cTFbc8Mf2AXEF4aQRGY1dJxyJpuyav8r9FGflEt/Ff3u5Nt6YMPA==", "dev": true, "license": "Apache-2.0", "engines": { @@ -14190,9 +14190,9 @@ } }, "node_modules/webpack-dev-server/node_modules/http-proxy-middleware": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", - "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.7.tgz", + "integrity": "sha512-fgVY8AV7qU7z/MmXJ/rxwbrtQH4jBQ9m7kp3llF0liB7glmFeVZFBepQb32T3y8n8k2+AEYuMPCpinYW+/CuRA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/ui/src/app/core/settings.service.ts b/ui/src/app/core/settings.service.ts index f6bc39430..f772618f2 100644 --- a/ui/src/app/core/settings.service.ts +++ b/ui/src/app/core/settings.service.ts @@ -126,9 +126,9 @@ export class SettingsService { } setTheme(theme: string) { - // Default theme is orange + // Default theme is purple if (!theme || !this.themeList.includes(theme)) { - theme = 'orange' + theme = 'purple' } // Grab the body element diff --git a/ui/src/app/modules/login/login.component.html b/ui/src/app/modules/login/login.component.html index 6e4b3d930..ad3877db4 100644 --- a/ui/src/app/modules/login/login.component.html +++ b/ui/src/app/modules/login/login.component.html @@ -1,14 +1,30 @@
-
+