From 09303ab2fb4506c211e471a24ae1cacfb3b93166 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Thu, 9 Nov 2023 16:04:18 -0700 Subject: [PATCH] make it run --- .../service/components/status.component.ts | 1 + .../system/updates/updates.component.ts | 4 +- .../pages/services/status/status.component.ts | 1 + .../server-metrics/server-metrics.page.html | 224 ++++++++++-------- 4 files changed, 130 insertions(+), 100 deletions(-) diff --git a/frontend/projects/ui/src/app/apps/portal/routes/service/components/status.component.ts b/frontend/projects/ui/src/app/apps/portal/routes/service/components/status.component.ts index a636fbc68..d97e5523c 100644 --- a/frontend/projects/ui/src/app/apps/portal/routes/service/components/status.component.ts +++ b/frontend/projects/ui/src/app/apps/portal/routes/service/components/status.component.ts @@ -14,6 +14,7 @@ import { InstallProgressPipeModule } from 'src/app/common/install-progress/insta template: ` {{ connected ? rendering.display : 'Unknown' }} + diff --git a/frontend/projects/ui/src/app/apps/portal/routes/system/updates/updates.component.ts b/frontend/projects/ui/src/app/apps/portal/routes/system/updates/updates.component.ts index c30f9ada0..1b4b48434 100644 --- a/frontend/projects/ui/src/app/apps/portal/routes/system/updates/updates.component.ts +++ b/frontend/projects/ui/src/app/apps/portal/routes/system/updates/updates.component.ts @@ -38,8 +38,8 @@ import { SkeletonListComponent } from '../../../components/skeleton-list.compone else: loading; empty: blank " - [pkg]="pkg" - [local]="data.local[pkg.manifest.id]" + [marketplacePkg]="pkg" + [localPkg]="data.local[pkg.manifest.id]" [url]="host.url" > diff --git a/frontend/projects/ui/src/app/apps/ui/pages/services/status/status.component.ts b/frontend/projects/ui/src/app/apps/ui/pages/services/status/status.component.ts index 0535030b2..156dc9e6c 100644 --- a/frontend/projects/ui/src/app/apps/ui/pages/services/status/status.component.ts +++ b/frontend/projects/ui/src/app/apps/ui/pages/services/status/status.component.ts @@ -21,6 +21,7 @@ export class StatusComponent { @Input() style?: string = 'regular' @Input() weight?: string = 'normal' @Input() installProgress?: InstallProgress + @Input() sigtermTimeout?: string | null = null readonly connected$ = this.connectionService.connected$ diff --git a/frontend/projects/ui/src/app/apps/ui/pages/system/server-metrics/server-metrics.page.html b/frontend/projects/ui/src/app/apps/ui/pages/system/server-metrics/server-metrics.page.html index 47cac26ef..58be4b196 100644 --- a/frontend/projects/ui/src/app/apps/ui/pages/system/server-metrics/server-metrics.page.html +++ b/frontend/projects/ui/src/app/apps/ui/pages/system/server-metrics/server-metrics.page.html @@ -13,24 +13,24 @@ Websocket Failed. Reconnecting

- - System Time - - Current Time (UTC) -
- {{ timeInfo.systemCurrentTime | date : 'MMMM d, y, h:mm:ss a' : 'UTC' - }} -
-
- - Start Time (UTC) -
- {{ timeInfo.systemStartTime | date : 'MMMM d, y, h:mm:ss a' : 'UTC' }} -
-
- - Uptime -
+ + +

Current Time (UTC)

+

+ {{ serverData[0].value | date : 'MMMM d, y, h:mm:ss a' : 'UTC' }} +

+

+ + NTP not synced, time could be wrong + +

+
+
+ + + +

Uptime

+

{{ uptime.days }} Days, {{ uptime.hours }} @@ -39,87 +39,115 @@ Minutes, {{ uptime.seconds }} Seconds -

-
- +
+ +
- - - General - - Temperature -
{{ metrics.general.temperature }} °C
-
- - Memory - - Percentage Used -
{{ metrics.memory['percentage-used'] }} %
-
- - Total -
{{ metrics.memory.total }} MiB
-
- - Available -
{{ metrics.memory.available }} MiB
-
- - Used -
{{ metrics.memory.used }} MiB
-
- - Swap Total -
{{ metrics.memory['swap-total'] }} MiB
-
- - Swap Free -
{{ metrics.memory['swap-free'] }} MiB
-
- - Swap Used -
{{ metrics.memory['swap-used'] }} MiB
-
- - CPU - - User Space -
{{ metrics.cpu['user-space'] }} %
-
- - Kernel Space -
{{ metrics.cpu['kernel-space'] }} %
-
- - I/O Wait -
{{ metrics.cpu['io-wait'] }} %
-
- - Idle -
{{ metrics.cpu.idle }} %
-
- - Usage -
{{ metrics.cpu.usage }} %
-
- - Disk - - Size -
{{ metrics.disk.size }} GB
-
- - Used -
{{ metrics.disk.used }} GB
-
- - Percentage Used -
{{ metrics.disk['percentage-used'] }} %
-
- - Available -
{{ metrics.disk.available }} GB
-
+ + + General + + Temperature + + + {{ general.temperature.value }} °C + + N/A + + + + + + Memory + + Percentage Used + + {{ memory['percentage-used'].value }} % + + + + Total + + {{ memory.total.value }} MiB + + + + Used + + {{ memory.used.value }} MiB + + + + Available + {{ memory.available.value }} MiB + + + zram Used + {{ memory['zram-used'].value }} MiB + + + zram Total + {{ memory['zram-total'].value }} MiB + + + zram Available + + {{ memory['zram-available'].value }} MiB + + + + + + CPU + + Percentage Used + {{ cpu['percentage-used'].value }} % + + + User Space + + {{ cpu['user-space'].value }} % + + + + Kernel Space + + {{ cpu['kernel-space'].value }} % + + + + Idle + {{ cpu.idle.value }} % + + + I/O Wait + {{ cpu.wait.value }} % + + + + + Disk + + Percentage Used + {{ disk['percentage-used'].value }} % + + + Capacity + + {{ disk.capacity.value }} GB + + + + Used + + {{ disk.used.value }} GB + + + + Available + {{ disk.available.value }} GB + +