ES Lint Compliant

Also changed line endings from 'LF' to 'CRLF'
This commit is contained in:
Matt Visnovsky 2024-05-01 10:29:13 -06:00
parent ba84f01444
commit 4699a1ccd8

View file

@ -903,7 +903,7 @@ const monitorDefaults = {
packetSize: 56, packetSize: 56,
expiryNotification: false, expiryNotification: false,
maxredirects: 10, maxredirects: 10,
accepted_statuscodes: ["200-299"], accepted_statuscodes: [ "200-299" ],
dns_resolve_type: "A", dns_resolve_type: "A",
dns_resolve_server: "1.1.1.1", dns_resolve_server: "1.1.1.1",
docker_container: "", docker_container: "",
@ -1030,15 +1030,15 @@ export default {
}, },
protoServicePlaceholder() { protoServicePlaceholder() {
return this.$t("Example:", ["Health"]); return this.$t("Example:", [ "Health" ]);
}, },
protoMethodPlaceholder() { protoMethodPlaceholder() {
return this.$t("Example:", ["check"]); return this.$t("Example:", [ "check" ]);
}, },
protoBufDataPlaceholder() { protoBufDataPlaceholder() {
return this.$t("Example:", [` return this.$t("Example:", [ `
syntax = "proto3"; syntax = "proto3";
package grpc.health.v1; package grpc.health.v1;
@ -1065,7 +1065,7 @@ message HealthCheckResponse {
}, },
bodyPlaceholder() { bodyPlaceholder() {
if (this.monitor && this.monitor.httpBodyEncoding && this.monitor.httpBodyEncoding === "xml") { if (this.monitor && this.monitor.httpBodyEncoding && this.monitor.httpBodyEncoding === "xml") {
return this.$t("Example:", [` return this.$t("Example:", [ `
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body> <soap:Body>
@ -1074,16 +1074,16 @@ message HealthCheckResponse {
</soap:Envelope>` ]); </soap:Envelope>` ]);
} }
if (this.monitor && this.monitor.httpBodyEncoding === "form") { if (this.monitor && this.monitor.httpBodyEncoding === "form") {
return this.$t("Example:", ["key1=value1&key2=value2"]); return this.$t("Example:", [ "key1=value1&key2=value2" ]);
} }
return this.$t("Example:", [` return this.$t("Example:", [ `
{ {
"key": "value" "key": "value"
}` ]); }` ]);
}, },
headersPlaceholder() { headersPlaceholder() {
return this.$t("Example:", [` return this.$t("Example:", [ `
{ {
"HeaderName": "HeaderValue" "HeaderName": "HeaderValue"
}` ]); }` ]);
@ -1383,7 +1383,7 @@ message HealthCheckResponse {
this.monitor.pathName = undefined; this.monitor.pathName = undefined;
this.monitor.screenshot = undefined; this.monitor.screenshot = undefined;
this.monitor.name = this.$t("cloneOf", [this.monitor.name]); this.monitor.name = this.$t("cloneOf", [ this.monitor.name ]);
this.$refs.tagsManager.newTags = this.monitor.tags.map((monitorTag) => { this.$refs.tagsManager.newTags = this.monitor.tags.map((monitorTag) => {
return { return {
id: monitorTag.tag_id, id: monitorTag.tag_id,
@ -1470,7 +1470,7 @@ message HealthCheckResponse {
this.monitor.body = JSON.stringify(JSON.parse(this.monitor.body), null, 4); this.monitor.body = JSON.stringify(JSON.parse(this.monitor.body), null, 4);
} }
const monitorTypesWithEncodingAllowed = ["http", "keyword", "json-query"]; const monitorTypesWithEncodingAllowed = [ "http", "keyword", "json-query" ];
if (this.monitor.type && !monitorTypesWithEncodingAllowed.includes(this.monitor.type)) { if (this.monitor.type && !monitorTypesWithEncodingAllowed.includes(this.monitor.type)) {
this.monitor.httpBodyEncoding = null; this.monitor.httpBodyEncoding = null;
} }