]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Lint fixes v22.02.1
authorBastien Wirtz <bastien.wirtz@gmail.com>
Thu, 10 Feb 2022 21:07:00 +0000 (22:07 +0100)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Thu, 10 Feb 2022 21:07:00 +0000 (22:07 +0100)
src/App.vue
src/components/services/Prowlarr.vue
yarn.lock

index 4eb112d4739dc1b60f7111dcbc65f978f2a3ee77..9a67a3376039d78a0c0889127c46a47bd914c119 100644 (file)
@@ -211,6 +211,7 @@ export default {
           window.location.href = response.url;
           return;
         }
+
         if (!response.ok) {
           throw Error(`${response.statusText}: ${response.body}`);
         }
index c122ca0bcf92300a14326c634aaa3d3747b2da34..abaa0f05384723a26630b999661ad91a489b22ed 100644 (file)
@@ -21,8 +21,8 @@
 </template>
 
 <script>
-import service from "@/mixins/service.js"
-import Generic from "./Generic.vue"
+import service from "@/mixins/service.js";
+import Generic from "./Generic.vue";
 
 export default {
   name: "Prowlarr",
@@ -38,32 +38,32 @@ export default {
       warnings: null,
       errors: null,
       serverError: false,
-    }
+    };
   },
   created: function () {
-    this.fetchConfig()
+    this.fetchConfig();
   },
   methods: {
     fetchConfig: function () {
       this.fetch(`/api/v1/health?apikey=${this.item.apikey}`)
         .then((health) => {
-          this.warnings = 0
-          this.errors = 0
+          this.warnings = 0;
+          this.errors = 0;
           for (var i = 0; i < health.length; i++) {
             if (health[i].type == "warning") {
-              this.warnings++
+              this.warnings++;
             } else if (health[i].type == "error") {
-              this.errors++
+              this.errors++;
             }
           }
         })
         .catch((e) => {
-          console.error(e)
-          this.serverError = true
-        })
+          console.error(e);
+          this.serverError = true;
+        });
     },
   },
-}
+};
 </script>
 
 <style scoped lang="scss">
index f3a16d9f8fdbefea7f362c1a8fcadd27bcf6f280..e02ab8201724fb2d9e4cf23a8d1ba21770d46c89 100644 (file)
--- a/yarn.lock
+++ b/yarn.lock
@@ -2339,9 +2339,9 @@ caniuse-api@^3.0.0:
     lodash.uniq "^4.5.0"
 
 caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001219:
-  version "1.0.30001245"
-  resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001245.tgz#45b941bbd833cb0fa53861ff2bae746b3c6ca5d4"
-  integrity sha512-768fM9j1PKXpOCKws6eTo3RHmvTUsG9UrpT4WoREFeZgJBTi4/X9g565azS/rVUGtqb8nt7FjLeF5u4kukERnA==
+  version "1.0.30001311"
+  resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001311.tgz"
+  integrity sha512-mleTFtFKfykEeW34EyfhGIFjGCqzhh38Y0LhdQ9aWF+HorZTtdgKV/1hEE0NlFkG2ubvisPV6l400tlbPys98A==
 
 case-sensitive-paths-webpack-plugin@^2.3.0:
   version "2.4.0"