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 { 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); } /** 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(); ?> +
+ -
- + + -
- - -
-
+ +
+ + +
-
- - -
-
+ + +
-
-
- - -
- - -
-
-
-
-
-
-
-
- - -
-
-
+ 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); ?> +
+
:
+
:
+
:
+
:
+
+ +
+ + +
+ + +
+
+ +
+ + +
+
+ +
+
+ + +
+ + +
+
+
+