Skip to content

Commit

Permalink
some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 8, 2023
1 parent 1b0731f commit c331caf
Show file tree
Hide file tree
Showing 31 changed files with 119 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Component, Input, OnInit } from '@angular/core';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core';

@Component({
selector: 'app-confirm',
Expand All @@ -15,7 +14,6 @@ export class InformationComponent implements OnInit {

constructor(
public activeModal: NgbActiveModal,
private translate: TranslateService,
) { }

ngOnInit() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
{{ 'menu.label_plugins' | translate }}
</a>
<br>
<span class="grey-text" *ngIf="homebridgePluginStatus.length">
<a routerLink="/plugins" class="primary-text" *ngIf="homebridgePluginStatus.length">
{{ homebridgePluginStatus.length }} {{ homebridgePluginStatus.length === 1 ? ('status.plugin_out_of_date' | translate) : ('status.plugins_out_of_date' | translate) }}
</span>
</a>
<span class="grey-text" *ngIf="!homebridgePluginStatus.length">
{{ 'status.homebridge.label_up_to_date' | translate }}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
<td>
<a href="https://homebridge.io/w/JTKEF" rel="noopener noreferrer" target="_blank" class="system-info-link"
ngbTooltip="{{ nodejsInfo.updateAvailable ? ('plugins.status_update_available' | translate) + ' - ' + nodejsInfo.latestVersion : ''}}">
<i *ngIf="nodejsInfo.showUpdateWarning" class="primary-text fas fa-fw fa-circle-up"></i> {{ serverInfo.nodeVersion }}
</a>
<i *ngIf="nodejsInfo.updateAvailable" class="primary-text fas fa-fw fa-circle-up"></i>
</a> {{ serverInfo.nodeVersion }}
</td>
</tr>
<tr>
Expand Down Expand Up @@ -87,10 +87,17 @@
</th>
<td class="text-nowrap" [translate]="'status.widget.systeminfo.label_yes'">Yes</td>
</tr>
<tr *ngIf="serverInfo.homebridgeServiceMode">
<tr>
<th scope="row" class="text-nowrap" [translate]="'status.widget.systeminfo.label_service_mode'">Service Mode
</th>
<td class="text-nowrap" [translate]="'status.widget.systeminfo.label_enabled'">Enabled</td>
<td class="text-nowrap" *ngIf="serverInfo.homebridgeServiceMode">
{{ 'status.widget.systeminfo.label_enabled' | translate }}
</td>
<td class="text-nowrap" *ngIf="!serverInfo.homebridgeServiceMode">
<a class="system-info-link" href="javascript:void(0)" (click)="serviceModeModal()">
<i class="primary-text fas fa-fw fa-exclamation-circle"></i>
</a> {{ 'status.widget.systeminfo.label_disabled' | translate }}
</td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { WsService } from '@/app/core/ws.service';
import { AuthService } from '@/app/core/auth/auth.service';
import { InformationComponent } from '@/app/core/components/information/information.component';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { TranslateService } from '@ngx-translate/core';

@Component({
selector: 'app-system-info-widget',
Expand All @@ -20,6 +21,7 @@ export class SystemInfoWidgetComponent implements OnInit {
private $ws: WsService,
public $auth: AuthService,
private $modal: NgbModal,
private $translate: TranslateService,
) { }

ngOnInit() {
Expand All @@ -41,14 +43,21 @@ export class SystemInfoWidgetComponent implements OnInit {
this.nodejsInfo = data;
});
}
//

glibcVersionModal() {
const ref = this.$modal.open(InformationComponent);
ref.componentInstance.title = 'OS Update';
ref.componentInstance.message = 'This message indicates that your operating system does not support newer versions of Node.js. ' +
'To resolve this and be able to install updated versions of Node.js in the future, ' +
'you will need to update your operating system to a more recent version.';
ref.componentInstance.ctaButtonLabel = 'More Info';
ref.componentInstance.title = this.$translate.instant('status.widget.systeminfo.modal_glibc_title');
ref.componentInstance.message = this.$translate.instant('status.widget.systeminfo.modal_glibc_message');
ref.componentInstance.ctaButtonLabel = this.$translate.instant('status.widget.systeminfo.modal_glibc_cta');
ref.componentInstance.ctaButtonLink = 'https://homebridge.io/w/JJSun';
}

serviceModeModal() {
const ref = this.$modal.open(InformationComponent);
ref.componentInstance.title = this.$translate.instant('status.widget.systeminfo.modal_servicemode_title');
ref.componentInstance.message = this.$translate.instant('status.widget.systeminfo.modal_servicemode_message');
ref.componentInstance.ctaButtonLabel = this.$translate.instant('status.widget.systeminfo.modal_servicemode_cta');
ref.componentInstance.ctaButtonLink
= 'https://github.com/homebridge/homebridge-config-ui-x/wiki/How-To-Swap-From-Standalone-Mode-to-Service-Mode';
}
}
3 changes: 3 additions & 0 deletions ui/src/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Manage Widget",
"status.widget.uptime.label_process": "Process",
"status.widget.uptime.label_server": "Server",
Expand Down
13 changes: 8 additions & 5 deletions ui/src/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@
"status.widget.label_temperature_units_system_default": "Defecte del sistema",
"status.widget.label_unlock_layout": "Desbloquejar disseny",
"status.widget.systeminfo.label_config_path": "Ruta de configuració",
"status.widget.systeminfo.label_disabled": "Disabled",
"status.widget.systeminfo.label_disabled": "No",
"status.widget.systeminfo.label_docker": "Docker",
"status.widget.systeminfo.label_enabled": "Enabled",
"status.widget.systeminfo.label_enabled": "",
"status.widget.systeminfo.label_glibc_warning": "Version is too low for updating Node.js to newer versions - https://homebridge.io/w/JJSun",
"status.widget.systeminfo.label_hostname": "Hostname",
"status.widget.systeminfo.label_ipv4": "IPv4",
Expand All @@ -344,10 +344,13 @@
"status.widget.systeminfo.label_storage_path": "Ruta d'emmagatzematge",
"status.widget.systeminfo.label_synology_package": "Synology Package",
"status.widget.systeminfo.label_timezone": "Zona horària",
"status.widget.systeminfo.label_yes": "Yes",
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.label_yes": "",
"status.widget.systeminfo.modal_glibc_cta": "Més informació",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_glibc_title": "Actualització del OS",
"status.widget.systeminfo.modal_servicemode_cta": "Més informació",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Gestionar widget",
"status.widget.uptime.label_process": "Procés",
"status.widget.uptime.label_server": "Servidor",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Spravovat widgety",
"status.widget.uptime.label_process": "Proces",
"status.widget.uptime.label_server": "Server",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Widget verwalten",
"status.widget.uptime.label_process": "Prozess",
"status.widget.uptime.label_server": "Server",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Manage Widget",
"status.widget.uptime.label_process": "Process",
"status.widget.uptime.label_server": "Server",
Expand Down
13 changes: 8 additions & 5 deletions ui/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@
"status.widget.label_temperature_units_system_default": "Predeterminado del Sistema",
"status.widget.label_unlock_layout": "Desbloquear Diseño",
"status.widget.systeminfo.label_config_path": "Ruta de Configuración",
"status.widget.systeminfo.label_disabled": "Disabled",
"status.widget.systeminfo.label_disabled": "No",
"status.widget.systeminfo.label_docker": "Docker",
"status.widget.systeminfo.label_enabled": "Enabled",
"status.widget.systeminfo.label_enabled": "",
"status.widget.systeminfo.label_glibc_warning": "Version is too low for updating Node.js to newer versions - https://homebridge.io/w/JJSun",
"status.widget.systeminfo.label_hostname": "Hostname",
"status.widget.systeminfo.label_ipv4": "IPv4",
Expand All @@ -344,10 +344,13 @@
"status.widget.systeminfo.label_storage_path": "Ruta de Almacenamiento",
"status.widget.systeminfo.label_synology_package": "Synology Package",
"status.widget.systeminfo.label_timezone": "Zona Horaria",
"status.widget.systeminfo.label_yes": "Yes",
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.label_yes": "",
"status.widget.systeminfo.modal_glibc_cta": "Más Información",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_glibc_title": "Actualización del OS",
"status.widget.systeminfo.modal_servicemode_cta": "Más Información",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Modo de Servicio",
"status.widget.title_manage_widget": "Gestionar Widget",
"status.widget.uptime.label_process": "Proceso",
"status.widget.uptime.label_server": "Servidor",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Gérer le Widget",
"status.widget.uptime.label_process": "Process",
"status.widget.uptime.label_server": "Serveur",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "נהל ווידג'טים",
"status.widget.uptime.label_process": "תהליך",
"status.widget.uptime.label_server": "שרת",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Manage Widget",
"status.widget.uptime.label_process": "Process",
"status.widget.uptime.label_server": "Server",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Kelola Widget",
"status.widget.uptime.label_process": "Proses",
"status.widget.uptime.label_server": "Server",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Gestisci widget",
"status.widget.uptime.label_process": "Processo",
"status.widget.uptime.label_server": "Sistema",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "ウィジェットを管理",
"status.widget.uptime.label_process": "プロセス",
"status.widget.uptime.label_server": "サーバ",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "위젯 관리",
"status.widget.uptime.label_process": "프로세스",
"status.widget.uptime.label_server": "서버",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/mk.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Управувај со Widget",
"status.widget.uptime.label_process": "Провес",
"status.widget.uptime.label_server": "Сервер",
Expand Down
3 changes: 3 additions & 0 deletions ui/src/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"status.widget.systeminfo.modal_glibc_cta": "More Info",
"status.widget.systeminfo.modal_glibc_message": "This message indicates that your operating system does not support newer versions of Node.js. To resolve this and be able to install updated versions of Node.js in the future, you will need to update your operating system to a more recent version.",
"status.widget.systeminfo.modal_glibc_title": "OS Update",
"status.widget.systeminfo.modal_servicemode_cta": "More Info",
"status.widget.systeminfo.modal_servicemode_message": "Text to write...",
"status.widget.systeminfo.modal_servicemode_title": "Service Mode",
"status.widget.title_manage_widget": "Beheer Widget",
"status.widget.uptime.label_process": "Proces",
"status.widget.uptime.label_server": "Server",
Expand Down
Loading

0 comments on commit c331caf

Please sign in to comment.