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 @@
+
diff --git a/front/js/graph_online_history.js b/front/js/graph_online_history.js
new file mode 100644
index 00000000..b87bf468
--- /dev/null
+++ b/front/js/graph_online_history.js
@@ -0,0 +1,57 @@
+function pia_draw_graph_online_history(pia_js_graph_online_history_time, pia_js_graph_online_history_ondev, pia_js_graph_online_history_dodev) {
+ var xValues = pia_js_graph_online_history_time;
+ new Chart("OnlineChart", {
+ type: "bar",
+ data: {
+ labels: xValues,
+ datasets: [{
+ label: 'Online Devices',
+ data: pia_js_graph_online_history_ondev,
+ borderColor: "#00a65a",
+ fill: true,
+ backgroundColor: "rgba(0, 166, 89, .6)",
+ pointStyle: 'circle',
+ pointRadius: 3,
+ pointHoverRadius: 3
+ }, {
+ label: 'Offline/Down Devices',
+ data: pia_js_graph_online_history_dodev,
+ borderColor: "#dd4b39",
+ fill: true,
+ backgroundColor: "rgba(222, 74, 56, .6)",
+ pointStyle: 'circle',
+ pointRadius: 3,
+ pointHoverRadius: 3
+ }]
+ },
+ options: {
+ legend: {
+ display: true,
+ labels: {
+ fontColor: "#A0A0A0",
+ }
+ },
+ scales: {
+ yAxes: [{
+ ticks: {
+ beginAtZero:true,
+ fontColor: '#A0A0A0'
+ },
+ gridLines: {
+ color: "rgba(0, 0, 0, 0)",
+ },
+ stacked: true,
+ }],
+ xAxes: [{
+ ticks: {
+ fontColor: '#A0A0A0',
+ },
+ gridLines: {
+ color: "rgba(0, 0, 0, 0)",
+ },
+ stacked: true,
+ }],
+ }
+ }
+ });
+}
\ No newline at end of file
diff --git a/front/maintenance.php b/front/maintenance.php
index c9650a8e..51462c18 100644
--- a/front/maintenance.php
+++ b/front/maintenance.php
@@ -160,151 +160,194 @@ if (submit && isset($_POST['langselector_set'])) {
}
?>
-
-