mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 14:42:51 +08:00
[status page] improve the entry
This commit is contained in:
@@ -6,6 +6,7 @@ let socket;
|
||||
|
||||
const noSocketIOPages = [
|
||||
"/status-page",
|
||||
"/"
|
||||
];
|
||||
|
||||
export default {
|
||||
|
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user