feat: status page + maintenance

This commit is contained in:
mco-system 2023-05-27 17:19:40 +11:00
parent 204269b849
commit e76d9815c9
2 changed files with 10 additions and 9 deletions

View File

@ -3,11 +3,11 @@ function reboot() {
xhttp.onreadystatechange = function() { xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) { if (this.readyState == 4 && this.status == 200) {
document.getElementById("logs").innerHTML = this.responseText; document.getElementById("logs").innerHTML = this.responseText;
setTimeout(function () {
document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000
);
} }
}; };
xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true); xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true);
xhttp.send(); xhttp.send();
setTimeout(function () {
document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000
);
} }

View File

@ -27,26 +27,24 @@
align-items: center; align-items: center;
text-align: center; text-align: center;
width: 48em; width: 48em;
background-color: yellow;
} }
.title { .title {
font-size: 3em;
font-weight: bold; font-weight: bold;
margin: 2em;
} }
.table_headers, .line { .table_headers, .line {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
background-color: green;
} }
.header, .status { .header, .status {
font-weight: bold; font-weight: bold;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
width: 16em; width: 16em;
padding: 1em; padding: 0.2em;
background-color: violet;
} }
.table_content { .table_content {
display: flex; display: flex;
@ -54,13 +52,16 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
text-align: center; text-align: center;
background-color: cyan;
} }
.status { .status {
font-weight: normal; font-weight: normal;
} }
.container_log { .container_log {
text-align: left; text-align: left;
width: 48em;
padding: 0.2em;
border-width: 1px;
border-style: solid;
} }
.button { .button {
font-weight: bold; font-weight: bold;