From 2e970d028984b00dc58a73df3f3a0c3251ca1d47 Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Thu, 14 Jul 2022 18:43:38 +0200 Subject: [PATCH] improve history graph - JS optimized to avoid duplicate code - Page redesigned with the help of the frameworks provides by AdminLTE - Modification of the chart for a better presentation - Headlines changed --- front/css/dark-patch.css | 5 +- front/css/pialert.css | 8 +- front/devices.php | 69 +----- front/js/graph_online_history.js | 57 +++++ front/maintenance.php | 319 ++++++++++++++----------- front/php/templates/graph.php | 5 +- front/php/templates/language/de_de.php | 2 + front/php/templates/language/en_us.php | 2 + front/presence.php | 64 +---- 9 files changed, 264 insertions(+), 267 deletions(-) create mode 100644 front/js/graph_online_history.js diff --git a/front/css/dark-patch.css b/front/css/dark-patch.css index 799786fb..acba4e05 100644 --- a/front/css/dark-patch.css +++ b/front/css/dark-patch.css @@ -674,9 +674,6 @@ input[type="password"]::-webkit-caps-lock-indicator { border-spacing: 0em; font-weight: 400; font-size: 15px; - width: 95%; + width: 100%; margin: auto; - margin-top: 40px; - margin-bottom: 40px; - border: solid 1px #606060; } diff --git a/front/css/pialert.css b/front/css/pialert.css index 7f7c8849..b79da8e4 100644 --- a/front/css/pialert.css +++ b/front/css/pialert.css @@ -490,11 +490,8 @@ border-spacing: 0em; font-weight: 400; font-size: 15px; - width: 95%; + width: 100%; margin: auto; - margin-top: 40px; - margin-bottom: 40px; - border: solid 1px #ddd; } .db_info_table_row { @@ -522,7 +519,6 @@ font-size: 16px; vertical-align: middle; padding: 10px; - padding-right: 15px; } .ajax_scripts_loading { @@ -530,4 +526,4 @@ background-image: url('../img/Loading_Animation.gif'); background-repeat: no-repeat; background-position: center; height: 50px; -} \ No newline at end of file +} diff --git a/front/devices.php b/front/devices.php index 14de362c..ec388348 100644 --- a/front/devices.php +++ b/front/devices.php @@ -96,16 +96,16 @@ +