Skip to content

Commit

Permalink
add message for docker/synology users is node update info modal
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Feb 8, 2025
1 parent 08bc59d commit 8061488
Show file tree
Hide file tree
Showing 32 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
- improvements to long-click accessory control
- also fixes accessory and room rearranging on the accessories page
- accessory and status page layout will now be locked by default on each visit
- add message for docker/synology users in node update info modal

### Other Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ <h5 class="modal-title">{{ title }}</h5>
<h5 class="mb-3" [innerHTML]="subtitle"></h5>
}
<p class="mb-0" [innerHTML]="message"></p>
@if (message2) {
<p class="mb-0 mt-3" [innerHTML]="message2"></p>
}
</div>
<div class="modal-footer justify-content-between">
<div class="text-start">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class InformationComponent {
@Input() title: string
@Input() subtitle?: string
@Input() message: string
@Input() message2?: string
@Input() ctaButtonLabel?: string
@Input() ctaButtonLink?: string
@Input() faIconClass: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ export class UpdateInfoWidgetComponent implements OnInit {

ref.componentInstance.title = this.$translate.instant('status.widget.info.node_update_title')
ref.componentInstance.message = this.$translate.instant('status.widget.info.node_update_message')
if (this.serverInfo.homebridgeRunningInSynologyPackage || this.serverInfo.homebridgeRunningInDocker) {
ref.componentInstance.message2 = this.$translate.instant('status.widget.info.node_update_message_2')
}
ref.componentInstance.subtitle = `${this.serverInfo.nodeVersion} &rarr; ${this.nodejsInfo.latestVersion}`
ref.componentInstance.ctaButtonLabel = this.$translate.instant('form.button_more_info')
ref.componentInstance.faIconClass = 'fab fa-fw fa-node-js primary-text'
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "Sistema operatiu",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "Používáte verzi Node.js, která není oficiálně podporována Homebridge. Doporučujeme přejít na podporovanou verzi.",
"status.widget.info.node_unsupp_title": "Nepodporovaná verze Node.js",
"status.widget.info.node_update_message": "Homebridge vyžaduje nainstalovaný Node.js pro běh. Občas budete muset aktualizovat Node.js runtime, aby podporoval nové funkce. Homebridge (a ověřené pluginy) podporují všechny aktuální verze Active a Maintenance LTS Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Aktualizace Node.js",
"status.widget.info.nodejs_path": "Cesta k Node.js",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "Sie verwenden eine Version von Node.js, die nicht offiziell von Homebridge unterstützt wird. Sie sollten den Wechsel zu einer unterstützten Version in Betracht ziehen.",
"status.widget.info.node_unsupp_title": "Nicht unterstützte Node Version",
"status.widget.info.node_update_message": "Für die Ausführung von Homebridge muss Node.js auf Ihrem System installiert sein. Ab und an müssen Sie die Node.js-Laufzeitumgebung aktualisieren, um die Unterstützung für neue Funktionen zu aktivieren. Homebridge (und verifizierte Plugins) unterstützen alle aktuellen Active und Maintenance LTS-Versionen von Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Pfad",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "¡Atención! Estás utilizando una versión de Node.js que no es oficialmente compatible con Homebridge. Te recomendamos cambiar a una versión compatible para garantizar un funcionamiento óptimo.",
"status.widget.info.node_unsupp_title": "Versión de Node no soportada",
"status.widget.info.node_update_message": "Homebridge necesita Node.js instalado en tu sistema para funcionar. Ocasionalmente, deberás actualizar el entorno de ejecución de Node.js para habilitar nuevas funcionalidades. Homebridge (y los plugins verificados) son compatibles con todas las versiones activas y de soporte LTS (Long-Term Support) actuales de Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Actualización de Node",
"status.widget.info.nodejs_path": "Ruta de Node.js",
"status.widget.info.os": "Sistema Operativo",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "Käytät Node.js-versiota, jota Homebridge ei tue virallisesti. Sinun tulisi harkita vaihtamista tuettuun versioon.",
"status.widget.info.node_unsupp_title": "Ei tuettu Node versio",
"status.widget.info.node_update_message": "Homebridge vaatii toimiakseen Node.js:n, joka on asennettu järjestelmään. Sinun on aika ajoin päivitettävä Node.js, jotta voit ottaa käyttöön tuen uusille ominaisuuksille. Homebridge (ja vahvistetut laajennukset) tukevat kaikkia Node.js:n nykyisiä Active- ja Maintenance LTS -julkaisuja.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node päivitys",
"status.widget.info.nodejs_path": "Node.js polku",
"status.widget.info.os": "Käyttöjärjestelmä",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge nécessite l'installation de Node.js sur votre système pour fonctionner. De temps à autre, vous devrez mettre à jour le moteur d'exécution Node.js pour permettre la prise en charge de nouvelles fonctionnalités. Homebridge (et les plugins vérifiés) prend en charge toutes les versions actuelles LTS Active et de Maintenance de Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Mise à jour de Node",
"status.widget.info.nodejs_path": "Répertoire de Node.js",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "מערכת הפעלה",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "Sistema operativo",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "Homebridgeが正式にサポートしていないバージョンのNode.jsを使用しています。サポートされているバージョンへの変更を検討してください。",
"status.widget.info.node_unsupp_title": "サポートされていないNodeのバージョン",
"status.widget.info.node_update_message": "Homebridgeを実行するには、システムにNode.jsがインストールされている必要があります。時々、新機能のサポートを有効にするために、Node.jsランタイムを更新する必要があります。Homebridge(および検証済みのプラグイン)は、Node.jsの現在のActiveおよびMaintenance LTSリリースをすべてサポートしています。",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Nodeアップデート",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "현재 Homebridge가 공식적으로 지원하지 않는 버전의 Node.js를 실행 중입니다. 지원되는 버전으로 변경하는 것을 고려해보시기 바랍니다.",
"status.widget.info.node_unsupp_title": "지원하지 않는 Node 버전",
"status.widget.info.node_update_message": "Homebridge를 실행하려면 시스템에 Node.js가 설치되어 있어야 합니다. 새로운 기능을 지원하기 위해 때때로 Node.js 런타임을 업데이트해야 할 수 있습니다. Homebridge(및 검증된 플러그인)는 Node.js의 모든 현재 Active 및 Maintenance LTS 릴리스를 지원합니다.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node 업데아트",
"status.widget.info.nodejs_path": "Node.js 경로",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/mk.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "U gebruikt een versie van Node.js die niet officieel ondersteund wordt door Homebridge. Installatie van een ondersteunde versie wordt geadviseerd.",
"status.widget.info.node_unsupp_title": "Niet ondersteunde Node Versie",
"status.widget.info.node_update_message": "Homebridge vereist Node.js geïnstalleerd op Uw syteem. Met enige regelmaat moet u de Node.js runtime bijwerken om nieuwe functionaliteit te ondersteuen. Homebridge (en verified plugins) ondersteunen alle huidige Active en Maintenance LTS releases van Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Pad",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "You are running a version of Node.js that is not officially supported by Homebridge. You should consider changing to a supported version.",
"status.widget.info.node_unsupp_title": "Unsupported Node Version",
"status.widget.info.node_update_message": "Homebridge requires Node.js installed on your system to run. From time to time, you will need to update the Node.js runtime to enable support for new features. Homebridge (and verified plugins) support all current Active and Maintenance LTS releases of Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Node Update",
"status.widget.info.nodejs_path": "Node.js Path",
"status.widget.info.os": "OS",
Expand Down
1 change: 1 addition & 0 deletions ui/src/i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
"status.widget.info.node_unsupp_message": "Używasz wersji Node.js która nie jest oficjalnie wspierana przez Homebridge. Powinieneś użyć wersji oficjalnie wspieranej.",
"status.widget.info.node_unsupp_title": "Niewspierana wersja Node.js",
"status.widget.info.node_update_message": "Homebridge wymaga zainstalowania Node.js w systemie do działania. Od czasu do czasu trzeba zaktualizować Node.js, aby włączyć obsługę nowych funkcji. Homebridge (i zweryfikowane wtyczki) obsługują wszystkie aktualne wersje Active i Maintenance LTS Node.js.",
"status.widget.info.node_update_message_2": "For Docker/Synology users, the Node.js version is managed by the Docker image or Synology package. You can hide Node.js update information using the widget settings.",
"status.widget.info.node_update_title": "Aktualizacja Node.js",
"status.widget.info.nodejs_path": "Ścieżka Node.js",
"status.widget.info.os": "System",
Expand Down
Loading

0 comments on commit 8061488

Please sign in to comment.