From c7a507f37aeed70ce77a01bc32268aff298814ba Mon Sep 17 00:00:00 2001 From: Ben <43026681+bwp91@users.noreply.github.com> Date: Sat, 30 Nov 2024 15:40:42 +0000 Subject: [PATCH] add reload menu item when using as a PWA --- CHANGELOG.md | 1 + ui/package-lock.json | 21 +++++++++++++++++++ ui/package.json | 1 + .../layout/sidebar/sidebar.component.html | 14 +++++++++++++ .../layout/sidebar/sidebar.component.ts | 6 ++++++ ui/src/i18n/bg.json | 1 + ui/src/i18n/ca.json | 1 + ui/src/i18n/cs.json | 1 + ui/src/i18n/de.json | 1 + ui/src/i18n/en.json | 1 + ui/src/i18n/es.json | 1 + ui/src/i18n/fi.json | 1 + ui/src/i18n/fr.json | 1 + ui/src/i18n/he.json | 1 + ui/src/i18n/hu.json | 1 + ui/src/i18n/id.json | 1 + ui/src/i18n/it.json | 1 + ui/src/i18n/ja.json | 1 + ui/src/i18n/ko.json | 1 + ui/src/i18n/mk.json | 1 + ui/src/i18n/nl.json | 1 + ui/src/i18n/no.json | 1 + ui/src/i18n/pl.json | 1 + ui/src/i18n/pt-BR.json | 1 + ui/src/i18n/pt.json | 1 + ui/src/i18n/ru.json | 1 + ui/src/i18n/sl.json | 1 + ui/src/i18n/sv.json | 1 + ui/src/i18n/th.json | 1 + ui/src/i18n/tr.json | 1 + ui/src/i18n/uk.json | 1 + ui/src/i18n/zh-CN.json | 1 + ui/src/i18n/zh-TW.json | 1 + 33 files changed, 71 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c86dcb526..51e49c00b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file. - updates to the `de.json` language file (#2249) (@Staubgeborener) - updates to the `ko.json` language file (#2251) (@alphaorderly) - updates to the `uk.json` language file (#2255) (@xrust83) +- add reload menu item when using as a PWA ### Other Changes diff --git a/ui/package-lock.json b/ui/package-lock.json index 8097e651e..b67d754b4 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -33,6 +33,7 @@ "dayjs": "1.11.13", "emoji-js": "3.8.0", "file-saver": "2.0.5", + "is-standalone-pwa": "0.1.1", "jquery": "3.7.1", "json5": "2.2.3", "lodash-es": "4.17.21", @@ -4641,6 +4642,26 @@ "node": ">=0.12.0" } }, + "node_modules/is-standalone-pwa": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-standalone-pwa/-/is-standalone-pwa-0.1.1.tgz", + "integrity": "sha512-9Cbovsa52vNQCjdXOzeQq5CnCbAcRk05aU62K20WO372NrTv0NxibLFCK6lQ4/iZEFdEA3p3t2VNOn8AJ53F5g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + } + ], + "license": "MIT" + }, "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", diff --git a/ui/package.json b/ui/package.json index 9f9ca5ad0..ca4d9444c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -35,6 +35,7 @@ "dayjs": "1.11.13", "emoji-js": "3.8.0", "file-saver": "2.0.5", + "is-standalone-pwa": "0.1.1", "jquery": "3.7.1", "json5": "2.2.3", "lodash-es": "4.17.21", diff --git a/ui/src/app/shared/layout/sidebar/sidebar.component.html b/ui/src/app/shared/layout/sidebar/sidebar.component.html index 622b13a00..3e85b4c9c 100644 --- a/ui/src/app/shared/layout/sidebar/sidebar.component.html +++ b/ui/src/app/shared/layout/sidebar/sidebar.component.html @@ -187,6 +187,20 @@ + +