From a053dc3a5740085e28f35cd674085b5f2042a9e7 Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Thu, 2 Feb 2023 17:20:03 +0000 Subject: [PATCH] feat: Adds network and virtualization info Signed-off-by: Pedro Lamas --- .../widgets/system/SystemOverviewCard.vue | 53 ++++++++++--------- src/locales/en.yaml | 2 + src/store/server/types.ts | 2 +- 3 files changed, 30 insertions(+), 27 deletions(-) diff --git a/src/components/widgets/system/SystemOverviewCard.vue b/src/components/widgets/system/SystemOverviewCard.vue index c37798921f..fce7eb2bea 100644 --- a/src/components/widgets/system/SystemOverviewCard.vue +++ b/src/components/widgets/system/SystemOverviewCard.vue @@ -49,6 +49,14 @@ {{ $t('app.system_info.label.distribution_codename') }} {{ distribution.codename }} + + {{ $t('app.system_info.label.network') }} + {{ network }} + + + {{ $t('app.system_info.label.virtualization') }} + {{ virtualization.virt_type }} ({{ virtualization.virt_identifier }}) + @@ -58,52 +66,45 @@ - - - - - diff --git a/src/locales/en.yaml b/src/locales/en.yaml index 4169e81f15..cc86ad066f 100644 --- a/src/locales/en.yaml +++ b/src/locales/en.yaml @@ -603,6 +603,7 @@ app: micro_controller: Micro-Controller model: CPU Model moonraker_load: Moonraker Load + network: Network processor_desc: Processor product_name: Product Name serial_number: Serial Number @@ -612,6 +613,7 @@ app: total_memory: Total Memory operating_system: Operating System version: Version + virtualization: Virtualization tool: btn: home_x: X diff --git a/src/store/server/types.ts b/src/store/server/types.ts index 091facdc27..443da2835f 100644 --- a/src/store/server/types.ts +++ b/src/store/server/types.ts @@ -124,7 +124,7 @@ export interface NetworkState { export interface NetworkInterface { mac_address?: string; - ip_addresses?: NetworkIpAddress; + ip_addresses?: NetworkIpAddress[]; } export interface NetworkIpAddress {