From c5ceb51ec404cd391ca47de65d7c6a99bfcd436e Mon Sep 17 00:00:00 2001 From: Fred Clausen <43556888+fredclausen@users.noreply.github.com> Date: Tue, 21 May 2024 18:06:33 -0600 Subject: [PATCH 1/9] readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 589934b..3015829 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Sorry, there is no migration path from ACARS Hub to SDR-E Hub. The data that ACA - [x] GitHub CI - [ ] FIXME/TODO Cleanup - [ ] Code documentation + - [ ] Unit Tests - [ ] Alpha 2 - [ ] Connect to data providers - [ ] ADSB @@ -43,6 +44,7 @@ Sorry, there is no migration path from ACARS Hub to SDR-E Hub. The data that ACA - [ ] Display data on the web interface - [ ] FIXME/TODO Cleanup - [ ] Code documentation + - [ ] Unit Tests - [ ] Alpha 3 - [ ] Implement database storage - [ ] RRD style data storage for relevant stats @@ -50,10 +52,12 @@ Sorry, there is no migration path from ACARS Hub to SDR-E Hub. The data that ACA - [ ] General stats - [ ] FIXME/TODO Cleanup - [ ] Code documentation + - [ ] Unit Tests - [ ] Beta 1 - [ ] Focus on interface; clean it up, mobile functionality, etc - [ ] FIXME/TODO Cleanup - [ ] Code documentation + - [ ] Unit Tests ## Thank you From 3e5bc904b79b7625d614eb03e07c6a87fafa1ee2 Mon Sep 17 00:00:00 2001 From: Fred Clausen <43556888+fredclausen@users.noreply.github.com> Date: Wed, 22 May 2024 11:52:12 -0600 Subject: [PATCH 2/9] some css styling and related setup for settings fix padding based on what is displayed in the panels --- sh-frontend/src/app/live.rs | 17 +++- sh-frontend/src/components/mod.rs | 1 + .../src/components/setting_components/mod.rs | 9 ++ .../setting_components/sh_app_config.rs | 25 ++++++ .../setting_components/sh_data_sources.rs | 25 ++++++ .../sh_enabled_data_sources.rs | 25 ++++++ .../components/setting_components/sh_map.rs | 25 ++++++ sh-frontend/src/components/settings.rs | 13 ++- sh-frontend/tailwind.css | 83 ++++++++++++++++++- 9 files changed, 216 insertions(+), 7 deletions(-) create mode 100644 sh-frontend/src/components/setting_components/mod.rs create mode 100644 sh-frontend/src/components/setting_components/sh_app_config.rs create mode 100644 sh-frontend/src/components/setting_components/sh_data_sources.rs create mode 100644 sh-frontend/src/components/setting_components/sh_enabled_data_sources.rs create mode 100644 sh-frontend/src/components/setting_components/sh_map.rs diff --git a/sh-frontend/src/app/live.rs b/sh-frontend/src/app/live.rs index 89502f1..d778709 100644 --- a/sh-frontend/src/app/live.rs +++ b/sh-frontend/src/app/live.rs @@ -111,12 +111,25 @@ pub fn live() -> Html { } }); + // FIXME: This feels garbage and yuck. Ideally we use tailwind classes and dynamically set them? + let pad_inside_left = if *left_panel == Panels::Map { + "padding: 0px;" + } else { + "padding: 0.5rem;" + }; + + let pad_inside_right = if *right_panel == Panels::Map { + "padding: 0px;" + } else { + "padding: 0.5rem;" + }; + html! {
-
+
{ left_panel_show.clone() }
-