aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-02-10 22:07:00 +0100
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-02-10 22:07:00 +0100
commit893690cf95eda1233a094e0d1b63011ff740989e (patch)
tree280dcf3b57349bfff6a7d6d5cc6b9936b3b749ac
parentdec7e466b981ba48390e4771ba0f4e54a311c181 (diff)
downloadhomer-22.02.1.tar.gz
homer-22.02.1.tar.zst
homer-22.02.1.zip
Lint fixesv22.02.1
-rw-r--r--src/App.vue1
-rw-r--r--src/components/services/Prowlarr.vue24
-rw-r--r--yarn.lock6
3 files changed, 16 insertions, 15 deletions
diff --git a/src/App.vue b/src/App.vue
index 4eb112d..9a67a33 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -211,6 +211,7 @@ export default {
211 window.location.href = response.url; 211 window.location.href = response.url;
212 return; 212 return;
213 } 213 }
214
214 if (!response.ok) { 215 if (!response.ok) {
215 throw Error(`${response.statusText}: ${response.body}`); 216 throw Error(`${response.statusText}: ${response.body}`);
216 } 217 }
diff --git a/src/components/services/Prowlarr.vue b/src/components/services/Prowlarr.vue
index c122ca0..abaa0f0 100644
--- a/src/components/services/Prowlarr.vue
+++ b/src/components/services/Prowlarr.vue
@@ -21,8 +21,8 @@
21</template> 21</template>
22 22
23<script> 23<script>
24import service from "@/mixins/service.js" 24import service from "@/mixins/service.js";
25import Generic from "./Generic.vue" 25import Generic from "./Generic.vue";
26 26
27export default { 27export default {
28 name: "Prowlarr", 28 name: "Prowlarr",
@@ -38,32 +38,32 @@ export default {
38 warnings: null, 38 warnings: null,
39 errors: null, 39 errors: null,
40 serverError: false, 40 serverError: false,
41 } 41 };
42 }, 42 },
43 created: function () { 43 created: function () {
44 this.fetchConfig() 44 this.fetchConfig();
45 }, 45 },
46 methods: { 46 methods: {
47 fetchConfig: function () { 47 fetchConfig: function () {
48 this.fetch(`/api/v1/health?apikey=${this.item.apikey}`) 48 this.fetch(`/api/v1/health?apikey=${this.item.apikey}`)
49 .then((health) => { 49 .then((health) => {
50 this.warnings = 0 50 this.warnings = 0;
51 this.errors = 0 51 this.errors = 0;
52 for (var i = 0; i < health.length; i++) { 52 for (var i = 0; i < health.length; i++) {
53 if (health[i].type == "warning") { 53 if (health[i].type == "warning") {
54 this.warnings++ 54 this.warnings++;
55 } else if (health[i].type == "error") { 55 } else if (health[i].type == "error") {
56 this.errors++ 56 this.errors++;
57 } 57 }
58 } 58 }
59 }) 59 })
60 .catch((e) => { 60 .catch((e) => {
61 console.error(e) 61 console.error(e);
62 this.serverError = true 62 this.serverError = true;
63 }) 63 });
64 }, 64 },
65 }, 65 },
66} 66};
67</script> 67</script>
68 68
69<style scoped lang="scss"> 69<style scoped lang="scss">
diff --git a/yarn.lock b/yarn.lock
index f3a16d9..e02ab82 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2339,9 +2339,9 @@ caniuse-api@^3.0.0:
2339 lodash.uniq "^4.5.0" 2339 lodash.uniq "^4.5.0"
2340 2340
2341caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001219: 2341caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001219:
2342 version "1.0.30001245" 2342 version "1.0.30001311"
2343 resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001245.tgz#45b941bbd833cb0fa53861ff2bae746b3c6ca5d4" 2343 resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001311.tgz"
2344 integrity sha512-768fM9j1PKXpOCKws6eTo3RHmvTUsG9UrpT4WoREFeZgJBTi4/X9g565azS/rVUGtqb8nt7FjLeF5u4kukERnA== 2344 integrity sha512-mleTFtFKfykEeW34EyfhGIFjGCqzhh38Y0LhdQ9aWF+HorZTtdgKV/1hEE0NlFkG2ubvisPV6l400tlbPys98A==
2345 2345
2346case-sensitive-paths-webpack-plugin@^2.3.0: 2346case-sensitive-paths-webpack-plugin@^2.3.0:
2347 version "2.4.0" 2347 version "2.4.0"