</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",
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">
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"