Änderungen von Dokument Servermeldungen (SaaS)

Zuletzt geändert von MACH ProForms GmbH am 22.07.2024

Von Version 10.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 18.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,7 @@
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>
22 22  <!-- Servers Status -->
23 23  <div>
24 24   <h2>&Uuml;berblick Status</h2>
... ... @@ -68,8 +68,24 @@
68 68  
69 69   data.hostStatus.forEach(host => {
70 70   const listItem = document.createElement('li');
71 - listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`;
55 + const statusSpan = document.createElement('span');
56 + statusSpan.innerHTML = `<strong>${getStatusText(host.status)}</strong>`;
72 72  
58 + switch (host.status) {
59 + case 'Up':
60 + statusSpan.style.color = 'rgb(3, 133, 3)';
61 + break;
62 + case 'Down':
63 + statusSpan.style.color = 'rgb(187, 9, 9)';
64 + break;
65 + case 'Under Maintenance':
66 + statusSpan.style.color = 'gold';
67 + break;
68 + }
69 +
70 + listItem.innerHTML = `<span class="host-name">${host.host}:</span> `;
71 + listItem.appendChild(statusSpan);
72 +
73 73   if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") {
74 74   productiveSystemsList.appendChild(listItem);
75 75   } else {
... ... @@ -102,20 +102,6 @@
102 102   }
103 103   }
104 104  
105 - // Function to get the appropriate status color class
106 - function getStatusColor(status) {
107 - switch (status) {
108 - case 'Up':
109 - return 'up';
110 - case 'Down':
111 - return 'down';
112 - case 'Under Maintenance':
113 - return 'maintenance';
114 - default:
115 - return '';
116 - }
117 - }
118 -
119 119   window.addEventListener('load', fetchData);
120 120  </script>
121 121  {{/html}}