From 917464347a362c848ce2b96c78edc84fb474c3bb Mon Sep 17 00:00:00 2001 From: "Jasper v. Blanckenburg" Date: Fri, 6 Sep 2024 14:04:29 +0200 Subject: [PATCH] Add overview popout --- src/routes/+layout.svelte | 5 +++ src/routes/+page.svelte | 7 ++-- src/routes/overview.svelte | 56 ++++++++++++++++++++------------ src/routes/overview/+page.svelte | 10 ++++++ 4 files changed, 56 insertions(+), 22 deletions(-) create mode 100644 src/routes/+layout.svelte create mode 100644 src/routes/overview/+page.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte new file mode 100644 index 0000000..f87b35e --- /dev/null +++ b/src/routes/+layout.svelte @@ -0,0 +1,5 @@ + + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 565eb5d..356b731 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,15 +1,18 @@ + + Charging + +
- +
diff --git a/src/routes/overview.svelte b/src/routes/overview.svelte index 4f4b78c..341ee3b 100644 --- a/src/routes/overview.svelte +++ b/src/routes/overview.svelte @@ -1,32 +1,48 @@ -
- {#if amsStatus != null && current != null && voltage != null} -
- -
-
- {voltage.toFixed(1)} V - {current.toFixed(1)} A - {amsStatus.maxCellTemp.toFixed(1)}°C - SDC {amsStatus.sdcClosed ? '✅' : '❌'} -
-
- + {#if showPopout} + {/if} +
+ {#if amsStatus != null} +
+ +
+
+ {shunt.voltage1.toFixed(1)} V + {shunt.current.toFixed(1)} A + {amsStatus.maxCellTemp.toFixed(1)}°C + SDC {amsStatus.sdcClosed ? '✅' : '❌'} +
+
+ +
+ {/if} +