diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-05-29 09:46:05 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-05-29 09:46:05 +0200 |
commit | 95d73348e5dd8fd0fbb1b6747c58b346ecf772ad (patch) | |
tree | d60d4cd006d12d43871c0069fa3de6aefff3befe /src/components | |
parent | d4001281d926bf3b004f1af5f9c0eeacee07325e (diff) | |
download | homer-95d73348e5dd8fd0fbb1b6747c58b346ecf772ad.tar.gz homer-95d73348e5dd8fd0fbb1b6747c58b346ecf772ad.tar.zst homer-95d73348e5dd8fd0fbb1b6747c58b346ecf772ad.zip |
Updates
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/Tautulli.vue | 6 | ||||
-rw-r--r-- | src/components/services/UptimeKuma.vue | 4 |
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 | }, |