From 4982463b57b4e4e00bffc22e89b6cec15ad65fbc Mon Sep 17 00:00:00 2001 From: Caleb <57644769+alliraine@users.noreply.github.com> Date: Fri, 16 May 2025 16:33:45 -0400 Subject: [PATCH] Add seperate card for current recording and recording controls --- ...ntrolBar.svelte => DeleteAllButton.svelte} | 5 ----- .../src/lib/components/ManifestCard.svelte | 2 +- .../src/lib/components/ManifestTable.svelte | 6 ------ .../lib/components/SystemStatsTable.svelte | 2 +- bin/web/src/routes/+page.svelte | 21 ++++++++++++++++--- 5 files changed, 20 insertions(+), 16 deletions(-) rename bin/web/src/lib/components/{ControlBar.svelte => DeleteAllButton.svelte} (72%) diff --git a/bin/web/src/lib/components/ControlBar.svelte b/bin/web/src/lib/components/DeleteAllButton.svelte similarity index 72% rename from bin/web/src/lib/components/ControlBar.svelte rename to bin/web/src/lib/components/DeleteAllButton.svelte index e6ce763..ac94bf4 100644 --- a/bin/web/src/lib/components/ControlBar.svelte +++ b/bin/web/src/lib/components/DeleteAllButton.svelte @@ -1,10 +1,6 @@
- -
+
{#if current} Current Recording {/if} diff --git a/bin/web/src/lib/components/ManifestTable.svelte b/bin/web/src/lib/components/ManifestTable.svelte index daf5bee..1cba349 100644 --- a/bin/web/src/lib/components/ManifestTable.svelte +++ b/bin/web/src/lib/components/ManifestTable.svelte @@ -25,9 +25,6 @@ - {#if current_entry !== undefined} - - {/if} {#each entries as entry, i} {/each} @@ -35,9 +32,6 @@
- {#if current_entry !== undefined} - - {/if} {#each entries as entry, i} {/each} diff --git a/bin/web/src/lib/components/SystemStatsTable.svelte b/bin/web/src/lib/components/SystemStatsTable.svelte index acd4a2a..40c2f43 100644 --- a/bin/web/src/lib/components/SystemStatsTable.svelte +++ b/bin/web/src/lib/components/SystemStatsTable.svelte @@ -6,7 +6,7 @@ -
+

System Information

diff --git a/bin/web/src/routes/+page.svelte b/bin/web/src/routes/+page.svelte index 656f656..dc637cb 100644 --- a/bin/web/src/routes/+page.svelte +++ b/bin/web/src/routes/+page.svelte @@ -2,10 +2,12 @@ import { ManifestEntry } from "$lib/manifest.svelte"; import { get_manifest, get_system_stats } from "$lib/utils.svelte"; import ManifestTable from "$lib/components/ManifestTable.svelte"; + import Card from "$lib/components/ManifestCard.svelte"; import type { SystemStats } from "$lib/systemStats"; import { AnalysisManager } from "$lib/analysisManager.svelte"; import SystemStatsTable from "$lib/components/SystemStatsTable.svelte"; - import ControlBar from "$lib/components/ControlBar.svelte"; + import DeleteAllButton from "$lib/components/DeleteAllButton.svelte"; + import RecordingControls from "$lib/components//RecordingControls.svelte"; let manager: AnalysisManager = new AnalysisManager(); let loaded = $state(false); @@ -49,9 +51,22 @@
{#if loaded} - - +
+ + {#if recording} + + {:else} +
+ WARNING: Not Recording + Rayhunter is not currently running! +
+ +
+
+ {/if} +
+ {:else}

Loading...

{/if}