From 85663341ebb7cba0039a3bb8fc666726d19f6341 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 23 Mar 2025 00:26:48 -0700 Subject: [PATCH 1/4] Initial commit --- templates/dashboard/data.php | 19 +++++ templates/dashboard/status.php | 123 +++++++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 templates/dashboard/data.php create mode 100644 templates/dashboard/status.php diff --git a/templates/dashboard/data.php b/templates/dashboard/data.php new file mode 100644 index 00000000..bac508e6 --- /dev/null +++ b/templates/dashboard/data.php @@ -0,0 +1,19 @@ +
+

+ +

+ +
+
+ +
+
+ +
+ + diff --git a/templates/dashboard/status.php b/templates/dashboard/status.php new file mode 100644 index 00000000..5fc77913 --- /dev/null +++ b/templates/dashboard/status.php @@ -0,0 +1,123 @@ +
+

+ +

+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + Network connection +
+
+
+ <?php echo htmlspecialchars($revision, ENT_QUOTES); ?> +
+
:
+
:
+
:
+
:
+
+ +
+ + +
+ + +
+
+ +
+ + +
+
+ +
+
+ + +
+ + +
+
+
+ From 4d0de82986d725fadb511c80b08fd46328d11eb8 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 23 Mar 2025 00:27:39 -0700 Subject: [PATCH 2/4] Add &$extraFooterScripts to support data usage graph --- includes/dashboard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/dashboard.php b/includes/dashboard.php index 3e1b3e14..c6857b21 100755 --- a/includes/dashboard.php +++ b/includes/dashboard.php @@ -7,7 +7,7 @@ require_once 'includes/functions.php'; /** * Displays the dashboard */ -function DisplayDashboard(): void +function DisplayDashboard(&$extraFooterScripts): void { // instantiate RaspAP objects $system = new \RaspAP\System\Sysinfo; @@ -123,6 +123,7 @@ function DisplayDashboard(): void "status" ) ); + $extraFooterScripts[] = array('src'=>'app/js/dashboardchart.js', 'defer'=>false); } /** From 483b1fc27d505e19f0c890dedebe8de1adf628aa Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 23 Mar 2025 00:28:31 -0700 Subject: [PATCH 3/4] Split single template into tabs --- templates/dashboard.php | 167 +++++++--------------------------------- 1 file changed, 26 insertions(+), 141 deletions(-) diff --git a/templates/dashboard.php b/templates/dashboard.php index b4c34cda..394dcbf6 100755 --- a/templates/dashboard.php +++ b/templates/dashboard.php @@ -1,12 +1,12 @@ - - - " name="ifup_wlan0" /> - - " name="ifdown_wlan0" /> - + + + " name="ifup_wlan0" /> + + " name="ifdown_wlan0" /> - -
-
-
- showMessages(); ?> -

- -

-
-
-
- - -
-
- - -
-
- - -
-
- - -
- - Network connection -
-
-
- <?php echo htmlspecialchars($revision, ENT_QUOTES); ?> -
-
:
-
:
-
:
-
:
-
+
+ showMessages(); ?> +
+ -
- + + -
- - -
-
+ +
+ + +
-
- - -
-
+ + +
-
-
- - -
- - -
-
-
-
-
-
-
-
- - -
-
-
+ From a24516a4d5f75ff6dfff88cabc79f5205fce567a Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 23 Mar 2025 00:33:27 -0700 Subject: [PATCH 4/4] Tweak divDBChartBandwidthhourly --- app/css/all.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/css/all.css b/app/css/all.css index d95c8390..b42a34e2 100644 --- a/app/css/all.css +++ b/app/css/all.css @@ -169,7 +169,7 @@ th { } canvas#divDBChartBandwidthhourly { - height: 350px!important; + height: 509px!important; } .dbChart {