|
|
@ -40,6 +40,11 @@
|
|
|
|
<textarea id="cname" v-model="config.domanNames" rows="3" disabled class="form-control" :placeholder="domainNamesPlaceholder"></textarea>
|
|
|
|
<textarea id="cname" v-model="config.domanNames" rows="3" disabled class="form-control" :placeholder="domainNamesPlaceholder"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button class="btn btn-danger me-2" @click="discard">
|
|
|
|
|
|
|
|
<font-awesome-icon icon="trash" />
|
|
|
|
|
|
|
|
{{ $t("Delete") }}
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Sidebar Footer -->
|
|
|
|
<!-- Sidebar Footer -->
|
|
|
|
<div class="sidebar-footer">
|
|
|
|
<div class="sidebar-footer">
|
|
|
|
<button class="btn btn-success me-2" @click="save">
|
|
|
|
<button class="btn btn-success me-2" @click="save">
|
|
|
@ -53,6 +58,8 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Main Status Page -->
|
|
|
|
<div :class="{ edit: enableEditMode}" class="main">
|
|
|
|
<div :class="{ edit: enableEditMode}" class="main">
|
|
|
|
<!-- Logo & Title -->
|
|
|
|
<!-- Logo & Title -->
|
|
|
|
<h1 class="mb-4">
|
|
|
|
<h1 class="mb-4">
|
|
|
@ -232,6 +239,7 @@ import { STATUS_PAGE_ALL_DOWN, STATUS_PAGE_ALL_UP, STATUS_PAGE_PARTIAL_DOWN, UP
|
|
|
|
import { useToast } from "vue-toastification";
|
|
|
|
import { useToast } from "vue-toastification";
|
|
|
|
import dayjs from "dayjs";
|
|
|
|
import dayjs from "dayjs";
|
|
|
|
import Favico from "favico.js";
|
|
|
|
import Favico from "favico.js";
|
|
|
|
|
|
|
|
import { getResBaseURL } from "../util-frontend";
|
|
|
|
|
|
|
|
|
|
|
|
const toast = useToast();
|
|
|
|
const toast = useToast();
|
|
|
|
|
|
|
|
|
|
|
@ -427,10 +435,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Special handle for dev
|
|
|
|
// Special handle for dev
|
|
|
|
const env = process.env.NODE_ENV;
|
|
|
|
this.baseURL = getResBaseURL();
|
|
|
|
if (env === "development" || localStorage.dev === "dev") {
|
|
|
|
|
|
|
|
this.baseURL = location.protocol + "//" + location.hostname + ":3001";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async mounted() {
|
|
|
|
async mounted() {
|
|
|
|
this.slug = this.$route.params.slug;
|
|
|
|
this.slug = this.$route.params.slug;
|
|
|
@ -442,8 +447,8 @@ export default {
|
|
|
|
axios.get("/api/status-page/" + this.slug).then((res) => {
|
|
|
|
axios.get("/api/status-page/" + this.slug).then((res) => {
|
|
|
|
this.config = res.data.config;
|
|
|
|
this.config = res.data.config;
|
|
|
|
|
|
|
|
|
|
|
|
if (this.config.logo) {
|
|
|
|
if (this.config.icon) {
|
|
|
|
this.imgDataUrl = this.config.logo;
|
|
|
|
this.imgDataUrl = this.config.icon;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.incident = res.data.incident;
|
|
|
|
this.incident = res.data.incident;
|
|
|
|