Änderungen von Dokument Servermeldungen (SaaS)

Zuletzt geändert von MACH ProForms GmbH am 22.07.2024

Von Version 11.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 15.1
bearbeitet von MACH ProForms GmbH
am 22.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -2,23 +2,18 @@
2 2  
3 3  Hier finden unsere SaaS-Kunden und Benutzer eine dynamische Anzeige der Uptime der Services und die geplanten Wartungsintervalle.
4 4  
5 -(% class="box infomessage" %)
6 -(((
7 -Der Service befindet sich derzeit im Wartungsmodus. Wir bitte um Ihr Verständnis und wir arbeiten mit Hochdruck an der Fertigstellung.
8 -)))
9 -
10 10  {{html}}
11 -<style>
12 - .status-up {
13 - color: rgb(3, 133, 3); /* Green text color for "UP" status */
14 - }
15 - .status-down {
16 - color: rgb(187, 9, 9); /* Red text color for "DOWN" status */
17 - }
18 - .status-maintenance {
19 - color: gold; /* Gold text color for "Under Maintenance" status */
20 - }
21 -</style>
6 + <style>
7 + .status-up {
8 + color: rgb(3, 133, 3); /* Green text color for "UP" status */
9 + }
10 + .status-down {
11 + color: rgb(187, 9, 9); /* Red text color for "DOWN" status */
12 + }
13 + .status-maintenance {
14 + color: gold; /* Gold text color for "Under Maintenance" status */
15 + }
16 + </style>
22 22  <!-- Servers Status -->
23 23  <div>
24 24   <h2>&Uuml;berblick Status</h2>
... ... @@ -61,21 +61,14 @@
61 61  <script type="text/javascript">
62 62   function fetchData() {
63 63   fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger')
64 - .then(response => {
65 - if (!response.ok) {
66 - throw new Error('Network response was not ok ' + response.statusText);
67 - }
68 - return response.json();
69 - })
59 + .then(response => response.json())
70 70   .then(data => {
71 - console.log('Data fetched successfully:', data); // Log the fetched data
72 -
73 73   const productiveSystemsList = document.querySelector('.productive-systems-list');
74 74   const customerSystemsList = document.querySelector('.customer-systems-list');
75 75  
76 76   data.hostStatus.forEach(host => {
77 77   const listItem = document.createElement('li');
78 - listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;
66 + listItem.innerHTML = `<span style="color:red;" class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;
79 79  
80 80   if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") {
81 81   productiveSystemsList.appendChild(listItem);
... ... @@ -91,7 +91,7 @@
91 91   plannedMaintenance.textContent = data.plannedMaintenance;
92 92   })
93 93   .catch(error => {
94 - console.error('Error fetching data:', error); // Improved error logging
82 + console.error('Error fetching data:', error);
95 95   });
96 96   }
97 97