mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-05 17:04:46 +00:00
change api call paths to relative
change icon paths to relative
This commit is contained in:
parent
2544363fc0
commit
c8d729883c
6 changed files with 12 additions and 12 deletions
|
@ -394,7 +394,7 @@ function ApiCache() {
|
||||||
/**
|
/**
|
||||||
* Return cache performance statistics (hit rate). Suitable for putting into a route:
|
* Return cache performance statistics (hit rate). Suitable for putting into a route:
|
||||||
* <code>
|
* <code>
|
||||||
* app.get('/api/cache/performance', (req, res) => {
|
* app.get('./api/cache/performance', (req, res) => {
|
||||||
* res.json(apicache.getPerformance())
|
* res.json(apicache.getPerformance())
|
||||||
* })
|
* })
|
||||||
* </code>
|
* </code>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="d-flex justify-content-center align-items-center">
|
<div class="d-flex justify-content-center align-items-center">
|
||||||
<div class="logo d-flex flex-column justify-content-center align-items-center">
|
<div class="logo d-flex flex-column justify-content-center align-items-center">
|
||||||
<object class="my-4" width="200" height="200" data="/icon.svg" />
|
<object class="my-4" width="200" height="200" data="./icon.svg" />
|
||||||
<div class="fs-4 fw-bold">Uptime Kuma</div>
|
<div class="fs-4 fw-bold">Uptime Kuma</div>
|
||||||
<div>{{ $t("Version") }}: {{ $root.info.version }}</div>
|
<div>{{ $t("Version") }}: {{ $root.info.version }}</div>
|
||||||
<div class="my-1 update-link"><a href="https://github.com/louislam/uptime-kuma/releases" target="_blank" rel="noopener">{{ $t("Check Update On GitHub") }}</a></div>
|
<div class="my-1 update-link"><a href="https://github.com/louislam/uptime-kuma/releases" target="_blank" rel="noopener">{{ $t("Check Update On GitHub") }}</a></div>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<!-- Desktop header -->
|
<!-- Desktop header -->
|
||||||
<header v-if="! $root.isMobile" class="d-flex flex-wrap justify-content-center py-3 mb-3 border-bottom">
|
<header v-if="! $root.isMobile" class="d-flex flex-wrap justify-content-center py-3 mb-3 border-bottom">
|
||||||
<router-link to="/dashboard" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
|
<router-link to="/dashboard" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
|
||||||
<object class="bi me-2 ms-4" width="40" height="40" data="/icon.svg" />
|
<object class="bi me-2 ms-4" width="40" height="40" data="./icon.svg" />
|
||||||
<span class="fs-4 title">{{ $t("Uptime Kuma") }}</span>
|
<span class="fs-4 title">{{ $t("Uptime Kuma") }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
<!-- Mobile header -->
|
<!-- Mobile header -->
|
||||||
<header v-else class="d-flex flex-wrap justify-content-center pt-2 pb-2 mb-3">
|
<header v-else class="d-flex flex-wrap justify-content-center pt-2 pb-2 mb-3">
|
||||||
<router-link to="/dashboard" class="d-flex align-items-center text-dark text-decoration-none">
|
<router-link to="/dashboard" class="d-flex align-items-center text-dark text-decoration-none">
|
||||||
<object class="bi" width="40" height="40" data="/icon.svg" />
|
<object class="bi" width="40" height="40" data="./icon.svg" />
|
||||||
<span class="fs-4 title ms-2">Uptime Kuma</span>
|
<span class="fs-4 title ms-2">Uptime Kuma</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -7,7 +7,7 @@ import axios from "axios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
async mounted() {
|
async mounted() {
|
||||||
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");
|
this.$router.push("/status");
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="form">
|
<div class="form">
|
||||||
<form @submit.prevent="submit">
|
<form @submit.prevent="submit">
|
||||||
<div>
|
<div>
|
||||||
<object width="64" height="64" data="/icon.svg" />
|
<object width="64" height="64" data="./icon.svg" />
|
||||||
<div style="font-size: 28px; font-weight: bold; margin-top: 5px;">
|
<div style="font-size: 28px; font-weight: bold; margin-top: 5px;">
|
||||||
Uptime Kuma
|
Uptime Kuma
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- Uploader -->
|
<!-- Uploader -->
|
||||||
<!-- url="/api/status-page/upload-logo" -->
|
<!-- url="./api/status-page/upload-logo" -->
|
||||||
<ImageCropUpload v-model="showImageCropUpload"
|
<ImageCropUpload v-model="showImageCropUpload"
|
||||||
field="img"
|
field="img"
|
||||||
:width="128"
|
:width="128"
|
||||||
|
@ -255,7 +255,7 @@ export default {
|
||||||
incident: null,
|
incident: null,
|
||||||
previousIncident: null,
|
previousIncident: null,
|
||||||
showImageCropUpload: false,
|
showImageCropUpload: false,
|
||||||
imgDataUrl: "/icon.svg",
|
imgDataUrl: "./icon.svg",
|
||||||
loadedTheme: false,
|
loadedTheme: false,
|
||||||
loadedData: false,
|
loadedData: false,
|
||||||
baseURL: "",
|
baseURL: "",
|
||||||
|
@ -409,7 +409,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
axios.get("/api/status-page/config").then((res) => {
|
axios.get("./api/status-page/config").then((res) => {
|
||||||
this.config = res.data;
|
this.config = res.data;
|
||||||
|
|
||||||
if (this.config.logo) {
|
if (this.config.logo) {
|
||||||
|
@ -417,13 +417,13 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
axios.get("/api/status-page/incident").then((res) => {
|
axios.get("./api/status-page/incident").then((res) => {
|
||||||
if (res.data.ok) {
|
if (res.data.ok) {
|
||||||
this.incident = res.data.incident;
|
this.incident = res.data.incident;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
axios.get("/api/status-page/monitor-list").then((res) => {
|
axios.get("./api/status-page/monitor-list").then((res) => {
|
||||||
this.$root.publicGroupList = res.data;
|
this.$root.publicGroupList = res.data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -438,7 +438,7 @@ export default {
|
||||||
updateHeartbeatList() {
|
updateHeartbeatList() {
|
||||||
// If editMode, it will use the data from websocket.
|
// If editMode, it will use the data from websocket.
|
||||||
if (! this.editMode) {
|
if (! this.editMode) {
|
||||||
axios.get("/api/status-page/heartbeat").then((res) => {
|
axios.get("./api/status-page/heartbeat").then((res) => {
|
||||||
this.$root.heartbeatList = res.data.heartbeatList;
|
this.$root.heartbeatList = res.data.heartbeatList;
|
||||||
this.$root.uptimeList = res.data.uptimeList;
|
this.$root.uptimeList = res.data.uptimeList;
|
||||||
this.loadedData = true;
|
this.loadedData = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue