mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 19:54:39 -05:00
add /status, alias of /status-page (#471)
This commit is contained in:
parent
ce9a97a107
commit
87e213085f
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class="nav-item me-2">
|
<li class="nav-item me-2">
|
||||||
<a href="/status-page" class="nav-link status-page">
|
<a href="/status" class="nav-link status-page">
|
||||||
<font-awesome-icon icon="stream" /> {{ $t("Status Page") }}
|
<font-awesome-icon icon="stream" /> {{ $t("Status Page") }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -6,6 +6,7 @@ let socket;
|
|||||||
|
|
||||||
const noSocketIOPages = [
|
const noSocketIOPages = [
|
||||||
"/status-page",
|
"/status-page",
|
||||||
|
"/status",
|
||||||
"/"
|
"/"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ export default {
|
|||||||
return "light";
|
return "light";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.path === "/status-page") {
|
if (this.path === "/status-page" || this.path === "/status") {
|
||||||
return this.statusPageTheme;
|
return this.statusPageTheme;
|
||||||
} else {
|
} else {
|
||||||
if (this.userTheme === "auto") {
|
if (this.userTheme === "auto") {
|
||||||
|
@ -10,7 +10,7 @@ export default {
|
|||||||
let entryPage = (await axios.get("/api/entry-page")).data;
|
let entryPage = (await axios.get("/api/entry-page")).data;
|
||||||
|
|
||||||
if (entryPage === "statusPage") {
|
if (entryPage === "statusPage") {
|
||||||
this.$router.push("/status-page");
|
this.$router.push("/status");
|
||||||
} else {
|
} else {
|
||||||
this.$router.push("/dashboard");
|
this.$router.push("/dashboard");
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,10 @@ const routes = [
|
|||||||
path: "/status-page",
|
path: "/status-page",
|
||||||
component: StatusPage,
|
component: StatusPage,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/status",
|
||||||
|
component: StatusPage,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const router = createRouter({
|
export const router = createRouter({
|
||||||
|
Loading…
Reference in New Issue
Block a user