From 61e4db258b181b76e4b6587b4a210571dfacc5e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rik=20Levente?= <33373714+Levminer@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:00:36 +0200 Subject: [PATCH] Hide not relevant info --- platforms/interface/ui/pages/cpu.svelte | 108 +++++++++--------- platforms/interface/ui/pages/gpu.svelte | 2 +- platforms/interface/ui/pages/home.svelte | 16 +-- platforms/interface/ui/pages/storage.svelte | 82 ++++++------- .../web/src/components/getStarted.svelte | 2 +- 5 files changed, 109 insertions(+), 101 deletions(-) diff --git a/platforms/interface/ui/pages/cpu.svelte b/platforms/interface/ui/pages/cpu.svelte index f463f69..ae753c6 100644 --- a/platforms/interface/ui/pages/cpu.svelte +++ b/platforms/interface/ui/pages/cpu.svelte @@ -115,37 +115,39 @@
-
-
-
-
- + {#if $hardwareInfo.cpu.power.length > 0} +
+
+
+
+ +
+

CPU Power Usage

+
+
+ (minutes = !minutes)} />
-

CPU Power Usage

+
- (minutes = !minutes)} /> + value.cpu.power) + : $hardwareStatistics.seconds.map((value) => value.cpu.power), + }, + ], + time: minutes ? "m" : "s", + unit: " W", + }} + />
- -
- value.cpu.power) - : $hardwareStatistics.seconds.map((value) => value.cpu.power), - }, - ], - time: minutes ? "m" : "s", - unit: " W", - }} - /> -
-
+ {/if}
@@ -184,37 +186,39 @@
-
-
-
-
- + {#if $hardwareInfo.cpu.voltage.length > 0} +
+
+
+
+ +
+

CPU Voltage

+
+
+ (minutes = !minutes)} />
-

CPU Voltage

+
- (minutes = !minutes)} /> + value.cpu.voltage) + : $hardwareStatistics.seconds.map((value) => value.cpu.voltage), + }, + ], + time: minutes ? "m" : "s", + unit: " V", + }} + />
- -
- value.cpu.voltage) - : $hardwareStatistics.seconds.map((value) => value.cpu.voltage), - }, - ], - time: minutes ? "m" : "s", - unit: " V", - }} - /> -
-
+ {/if}
diff --git a/platforms/interface/ui/pages/gpu.svelte b/platforms/interface/ui/pages/gpu.svelte index 158078d..80b8a27 100644 --- a/platforms/interface/ui/pages/gpu.svelte +++ b/platforms/interface/ui/pages/gpu.svelte @@ -13,7 +13,7 @@

Vendor: {$hardwareInfo.gpu.name?.split(" ")[0] ?? "N/A"}

Name: {$hardwareInfo.gpu.name ?? "N/A"}

GPU memory: {$hardwareInfo.gpu.memory.length > 2 ? Math.round($hardwareInfo.gpu.memory[2]?.value ?? 0) : "N/A"} GB

-

Driver date: {$hardwareInfo.gpu.info}

+

Driver: {$hardwareInfo.gpu.info}

Primary monitor: {$hardwareInfo.system.monitor.monitors.find((monitor) => monitor.primary)?.resolution ?? "N/A"} {$hardwareInfo.system.monitor.monitors.find((monitor) => monitor.primary)?.refreshRate ?? "N/A"} Hz diff --git a/platforms/interface/ui/pages/home.svelte b/platforms/interface/ui/pages/home.svelte index 1a283a1..fa4c717 100644 --- a/platforms/interface/ui/pages/home.svelte +++ b/platforms/interface/ui/pages/home.svelte @@ -351,13 +351,15 @@ ($hardwareInfo.ram.load[3]?.value ?? 0) + ($hardwareInfo.ram.load[4]?.value ?? 0) ).toFixed(1)} GB`}

-
- -
+ {#if $hardwareInfo.ram.load[3]?.value ?? 0 > 0} +
+ +
+ {/if}
diff --git a/platforms/interface/ui/pages/storage.svelte b/platforms/interface/ui/pages/storage.svelte index a35fc85..22a723b 100644 --- a/platforms/interface/ui/pages/storage.svelte +++ b/platforms/interface/ui/pages/storage.svelte @@ -82,51 +82,53 @@
-
-
-
-
- + {#if item.temperature.value > 0} +
+
+
+
+ +
+

{item.name} Temperature

+
+
+ (minutes = !minutes)} />
-

{item.name} Temperature

- (minutes = !minutes)} /> -
-
-
- value.storage[i].temperature.max) - : $hardwareStatistics.seconds.map((value) => value.storage[i].temperature.max), - }, + value.storage[i].temperature.max) + : $hardwareStatistics.seconds.map((value) => value.storage[i].temperature.max), + }, - { - label: `Current Temperature`, - color: "current", - data: minutes - ? $hardwareStatistics.minutes.map((value) => value.storage[i].temperature.value) - : $hardwareStatistics.seconds.map((value) => value.storage[i].temperature.value), - }, - { - label: `Min Temperature`, - color: "min", - data: minutes - ? $hardwareStatistics.minutes.map((value) => value.storage[i].temperature.min) - : $hardwareStatistics.seconds.map((value) => value.storage[i].temperature.min), - }, - ], - unit: " °C", - time: minutes ? "m" : "s", - }} - /> + { + label: `Current Temperature`, + color: "current", + data: minutes + ? $hardwareStatistics.minutes.map((value) => value.storage[i].temperature.value) + : $hardwareStatistics.seconds.map((value) => value.storage[i].temperature.value), + }, + { + label: `Min Temperature`, + color: "min", + data: minutes + ? $hardwareStatistics.minutes.map((value) => value.storage[i].temperature.min) + : $hardwareStatistics.seconds.map((value) => value.storage[i].temperature.min), + }, + ], + unit: " °C", + time: minutes ? "m" : "s", + }} + /> +
-
+ {/if}
{/each}
diff --git a/platforms/interface/web/src/components/getStarted.svelte b/platforms/interface/web/src/components/getStarted.svelte index 939d33c..8f27e5d 100644 --- a/platforms/interface/web/src/components/getStarted.svelte +++ b/platforms/interface/web/src/components/getStarted.svelte @@ -30,7 +30,7 @@

Launch Cores Web in any browser and use the connection code from Cores Desktop.

SetupSetup