Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienwirtz committed Feb 10, 2022
1 parent dec7e46 commit 893690c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export default {
window.location.href = response.url;
return;
}
if (!response.ok) {
throw Error(`${response.statusText}: ${response.body}`);
}
Expand Down
24 changes: 12 additions & 12 deletions src/components/services/Prowlarr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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">
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 893690c

Please sign in to comment.