From 8ac85c9d0fd14a52b54933287924a000c56df5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rik=20Levente?= <33373714+Levminer@users.noreply.github.com> Date: Sat, 20 Jul 2024 22:16:45 +0200 Subject: [PATCH] Home header --- platforms/interface/ui/pages/home.svelte | 844 ++++++++++++----------- 1 file changed, 456 insertions(+), 388 deletions(-) diff --git a/platforms/interface/ui/pages/home.svelte b/platforms/interface/ui/pages/home.svelte index 59021d9..422f3c2 100644 --- a/platforms/interface/ui/pages/home.svelte +++ b/platforms/interface/ui/pages/home.svelte @@ -1,543 +1,611 @@
{item.name?.replaceAll("CPU", "")}
-{Math.round(item.value)}%
-Virtual memory
-{Math.round($hardwareInfo.ram.load[5]?.value ?? 0)}%
+ + {#if import.meta.env.VITE_CORES_MODE === "host"} +{item.name?.replaceAll("D3D", "")}
-{Math.round(item.value)}%
-{item.name} Read Speed
-{parseFloat((item.throughputRead / 1_048_576).toFixed(2))} MB/s
-{item.name} Write Speed
-{parseFloat((item.throughputWrite / 1_048_576).toFixed(2))} MB/s
-{item.name}
-{Math.round($hardwareInfo.system.superIO.fanControl[i].value)}%
+{item.name?.replaceAll("CPU", "")}
+{Math.round(item.value)}%
{item.name} Download Speed
-{parseFloat((item.throughputDownload / 1_048_576).toFixed(2))} MB/s
-{item.name} Upload Speed
-{parseFloat((item.throughputUpload / 1_048_576).toFixed(2))} MB/s
+Virtual memory
+{Math.round($hardwareInfo.ram.load[5]?.value ?? 0)}%
{item.name?.replaceAll("D3D", "")}
+{Math.round(item.value)}%
+{item.name} Read Speed
+{parseFloat((item.throughputRead / 1_048_576).toFixed(2))} MB/s
+{item.name} Write Speed
+{parseFloat((item.throughputWrite / 1_048_576).toFixed(2))} MB/s
+{item.name}
+{Math.round($hardwareInfo.system.superIO.fanControl[i].value)}%
+{item.name} Download Speed
+{parseFloat((item.throughputDownload / 1_048_576).toFixed(2))} MB/s
+{item.name} Upload Speed
+{parseFloat((item.throughputUpload / 1_048_576).toFixed(2))} MB/s
+