🚨 Lint

This commit is contained in:
Liyas Thomas
2019-11-26 20:01:48 +05:30
parent 1aa5ec6aa4
commit c4c320da83
7 changed files with 71 additions and 50 deletions

View File

@@ -599,7 +599,9 @@
: 'Collapse response'
}"
>
<i class="material-icons" v-if="!expandResponse">unfold_more</i>
<i class="material-icons" v-if="!expandResponse"
>unfold_more</i
>
<i class="material-icons" v-else>unfold_less</i>
</button>
<button
@@ -1231,7 +1233,7 @@ export default {
);
}
if (this.headers) {
this.headers.forEach((element) => {
this.headers.forEach(element => {
requestString.push(
"xhr.setRequestHeader('" +
element.key +
@@ -1288,7 +1290,7 @@ export default {
);
}
if (this.headers) {
this.headers.forEach((element) => {
this.headers.forEach(element => {
headers.push(
' "' + element.key + '": "' + element.value + '",\n'
);
@@ -1326,7 +1328,7 @@ export default {
);
}
if (this.headers) {
this.headers.forEach((element) => {
this.headers.forEach(element => {
requestString.push(
" -H '" + element.key + ": " + element.value + "' \\\n"
);
@@ -1412,7 +1414,9 @@ export default {
const config = this.$store.state.postwoman.settings.PROXY_ENABLED
? {
method: "POST",
url: this.$store.state.postwoman.settings.PROXY_URL || "https://postwoman.apollotv.xyz/",
url:
this.$store.state.postwoman.settings.PROXY_URL ||
"https://postwoman.apollotv.xyz/",
data: requestOptions
}
: requestOptions;
@@ -1702,7 +1706,8 @@ export default {
},
ToggleExpandResponse() {
this.expandResponse = !this.expandResponse;
this.responseBodyMaxLines = (this.responseBodyMaxLines == Infinity) ? 16 : Infinity;
this.responseBodyMaxLines =
this.responseBodyMaxLines == Infinity ? 16 : Infinity;
},
copyResponse() {
this.$refs.copyResponse.innerHTML = this.doneButton;