8 :title="`${queue} items queued`"
15 :title="`${errored} items`"
21 class="notif error fa-solid fa-triangle-exclamation"
22 title="Unable to fetch current status"
30 import service from "@/mixins/service.js";
31 import Generic from "./Generic.vue";
51 return this.stats.table1Count;
53 errored: function () {
57 return this.stats.table6Count;
61 const checkInterval = parseInt(this.item.checkInterval, 10) || 0;
62 if (checkInterval > 0) {
63 setInterval(() => this.fetchStatus(), checkInterval);
69 fetchStatus: async function () {
74 "Content-Type": "application/json",
75 Accept: "application/json",
77 body: JSON.stringify({
78 headers: { "content-Type": "application/json" },
80 collection: "StatisticsJSONDB",
88 const response = await this.fetch(`/api/v2/cruddb`, options);
90 this.stats = response;
100 <style scoped lang="scss">
104 font-family: sans-serif;
109 display: inline-block;
110 padding: 0.2em 0.35em;
111 border-radius: 0.25em;
117 background-color: #28a9a3;
121 background-color: #e51111;
127 background-color: #e51111;