[status page] improve the entry

This commit is contained in:
LouisLam
2021-09-23 13:57:24 +08:00
parent 5f533b9091
commit 439f45d91e
5 changed files with 50 additions and 19 deletions

View File

@@ -6,6 +6,7 @@ let socket;
const noSocketIOPages = [
"/status-page",
"/"
];
export default {

View File

@@ -5,7 +5,7 @@ export default {
system: (window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light",
userTheme: localStorage.theme,
userHeartbeatBar: localStorage.heartbeatBarTheme,
statusPageTheme: "dark",
statusPageTheme: "light",
path: "",
};
},
@@ -27,6 +27,12 @@ export default {
computed: {
theme() {
// Entry no need dark
if (this.path === "") {
return "light";
}
if (this.path === "/status-page") {
return this.statusPageTheme;
} else {
@@ -72,5 +78,5 @@ export default {
}
}
}
}
};