-
@@ -538,7 +628,7 @@
@@ -579,20 +669,25 @@
readOnly: true,
showPrintMargin: false,
useWorker: false
- }"
+ }"
/>
-
+
visibility
visibility_off
- {{ previewEnabled ? 'Hide Preview' : 'Preview HTML' }}
+ {{
+ previewEnabled ? "Hide Preview" : "Preview HTML"
+ }}
@@ -622,7 +717,7 @@ import modal from "../components/modal";
import collections from "../components/collections";
import saveRequestAs from "../components/collections/saveRequestAs";
import parseCurlCommand from "../assets/js/curlparser.js";
-import AceEditor from '../components/ace-editor';
+import AceEditor from "../components/ace-editor";
import getEnvironmentVariablesFromScript from "../functions/preRequest";
import parseTemplateString from "../functions/templating";
@@ -732,8 +827,8 @@ export default {
editRequest: {},
urlExcludes: {},
- responseBodyText: '',
- responseBodyType: 'text'
+ responseBodyText: "",
+ responseBodyType: "text"
};
},
watch: {
@@ -759,19 +854,20 @@ export default {
this.response.body === "Loading..."
) {
this.responseBodyText = this.response.body;
- this.responseBodyType = 'text';
+ this.responseBodyType = "text";
} else {
- if(this.responseType === "application/json" ||
- this.responseType === "application/hal+json"
+ if (
+ this.responseType === "application/json" ||
+ this.responseType === "application/hal+json"
) {
- this.responseBodyText = JSON.stringify(this.response.body, null, 2)
- this.responseBodyType = 'json'
+ this.responseBodyText = JSON.stringify(this.response.body, null, 2);
+ this.responseBodyType = "json";
} else if (this.responseType === "text/html") {
this.responseBodyText = this.response.body;
- this.responseBodyType = 'html'
+ this.responseBodyType = "html";
} else {
this.responseBodyText = this.response.body;
- this.responseBodyType = 'text';
+ this.responseBodyType = "text";
}
}
},
@@ -1183,7 +1279,14 @@ export default {
behavior: "smooth"
});
},
- handleUseHistory({ label, method, url, path, usesScripts, preRequestScript }) {
+ handleUseHistory({
+ label,
+ method,
+ url,
+ path,
+ usesScripts,
+ preRequestScript
+ }) {
this.label = label;
this.method = method;
this.url = url;
diff --git a/pages/settings.vue b/pages/settings.vue
index 5bdf41c80..d31a4c15e 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -46,7 +46,11 @@
Multi-color {{ settings.FRAME_COLORS_ENABLED ? "Enabled" : "Disabled" }}
+ >Multi-color
+ {{
+ settings.FRAME_COLORS_ENABLED ? "Enabled" : "Disabled"
+ }}
@@ -62,9 +66,15 @@
Proxy {{ settings.PROXY_ENABLED ? "enabled" : "disabled" }}
+ >Proxy
+ {{ settings.PROXY_ENABLED ? "enabled" : "disabled" }}
-
+
help
@@ -77,7 +87,10 @@
Postwoman's Proxy is hosted by ApolloTV.
- Read the ApolloTV privacy policy.
+ Read the
+ ApolloTV privacy policy.
@@ -149,7 +162,9 @@ export default {
name: "Auto (system)",
vibrant: window.matchMedia("(prefers-color-scheme: light)").matches,
class: "auto",
- aceEditor: window.matchMedia("(prefers-color-scheme: light)").matches ? 'xcode' : 'dracula'
+ aceEditor: window.matchMedia("(prefers-color-scheme: light)").matches
+ ? "xcode"
+ : "dracula"
}
],
// You can define a new color here! It will simply store the color value.
@@ -224,7 +239,7 @@ export default {
},
methods: {
- applyTheme({class:name, color, aceEditor}) {
+ applyTheme({ class: name, color, aceEditor }) {
this.applySetting("THEME_CLASS", name);
this.applySetting("THEME_ACE_EDITOR", aceEditor);
document
diff --git a/pages/websocket.vue b/pages/websocket.vue
index 90a0febc0..dd33f12a8 100644
--- a/pages/websocket.vue
+++ b/pages/websocket.vue
@@ -14,7 +14,12 @@
-
+
{{ toggleConnectionVerb }}
sync
@@ -27,7 +32,12 @@
-
+
-
@@ -37,7 +47,9 @@
v-for="(logEntry, index) in communication.log"
:style="{ color: logEntry.color }"
:key="index"
- >@ {{ logEntry.ts }} {{ getSourcePrefix(logEntry.source) }} {{ logEntry.payload }}
+ >@ {{ logEntry.ts }} {{ getSourcePrefix(logEntry.source) }}
+ {{ logEntry.payload }}
(waiting for connection)
@@ -57,7 +69,12 @@