aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services')
-rw-r--r--src/components/services/Tautulli.vue6
-rw-r--r--src/components/services/UptimeKuma.vue4
2 files changed, 7 insertions, 3 deletions
diff --git a/src/components/services/Tautulli.vue b/src/components/services/Tautulli.vue
index 2e8f8f5..0f27ff1 100644
--- a/src/components/services/Tautulli.vue
+++ b/src/components/services/Tautulli.vue
@@ -50,14 +50,16 @@ export default {
50 methods: { 50 methods: {
51 fetchStatus: async function () { 51 fetchStatus: async function () {
52 try { 52 try {
53 const response = await this.fetch(`/api/v2?apikey=${this.item.apikey}&cmd=get_activity`); 53 const response = await this.fetch(
54 `/api/v2?apikey=${this.item.apikey}&cmd=get_activity`
55 );
54 this.error = false; 56 this.error = false;
55 this.stats = response.response.data; 57 this.stats = response.response.data;
56 } catch (e) { 58 } catch (e) {
57 this.error = true; 59 this.error = true;
58 console.error(e); 60 console.error(e);
59 } 61 }
60 } 62 },
61 }, 63 },
62}; 64};
63</script> 65</script>
diff --git a/src/components/services/UptimeKuma.vue b/src/components/services/UptimeKuma.vue
index 5dd75f3..3be53b8 100644
--- a/src/components/services/UptimeKuma.vue
+++ b/src/components/services/UptimeKuma.vue
@@ -108,7 +108,9 @@ export default {
108 .catch((e) => console.error(e)) 108 .catch((e) => console.error(e))
109 .then((resp) => (this.incident = resp)); 109 .then((resp) => (this.incident = resp));
110 110
111 this.fetch(`/api/status-page/heartbeat/${this.dashboard}?cachebust=${Date.now()}`) 111 this.fetch(
112 `/api/status-page/heartbeat/${this.dashboard}?cachebust=${Date.now()}`
113 )
112 .catch((e) => console.error(e)) 114 .catch((e) => console.error(e))
113 .then((resp) => (this.heartbeat = resp)); 115 .then((resp) => (this.heartbeat = resp));
114 }, 116 },