4 <div v-if="status" class="status" :class="status">
12 import service from "@/mixins/service.js";
13 import Generic from "./Generic.vue";
31 fetchStatus: async function () {
32 const method = typeof this.item.method === 'string' && this.item.method.toLowerCase() === "get" ? "GET" : "HEAD"
33 this.fetch("/", { method, cache: "no-cache" }, false)
35 this.status = "online";
38 this.status = "offline";
45 <style scoped lang="scss">
48 color: var(--text-title);
53 background-color: #94e185;
54 border-color: #78d965;
55 box-shadow: 0 0 5px 1px #94e185;
59 background-color: #c9404d;
60 border-color: #c42c3b;
61 box-shadow: 0 0 5px 1px #c9404d;
66 display: inline-block;
70 border: 1px solid #000;