Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Merge branch 'master' into update-proxy-info
John Harker4c3248065eb0
diff --cc functions/strategies/AxiosStrategy.jsindex 02cda5521,10de551fd..3aa7f8271--- a/functions/strategies/AxiosStrategy.js+++ b/functions/strategies/AxiosStrategy.js@@@ -2,16 -2,16 +2,16 @@@ import axios from "axiosconst axiosWithProxy = async (req, { state }) => {const { data } = await axios.post(- state.postwoman.settings.PROXY_URL || "https://postwoman.apollotv.xyz/",+ state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",req- );- return data;- };+ )+ return data+ }const axiosWithoutProxy = async (req, _store) => {- const res = await axios(req);- return res;- };+ const res = await axios(req)+ return res+ }const axiosStrategy = (req, store) => {if (store.state.postwoman.settings.PROXY_ENABLED) {diff --cc functions/strategies/ExtensionStrategy.jsindex 9382562f2,fa7b2831a..b6fa7b56b--- a/functions/strategies/ExtensionStrategy.js+++ b/functions/strategies/ExtensionStrategy.js@@@ -4,17 -4,16 +4,17 @@@ export const hasExtensionInstalled = (const extensionWithProxy = async (req, { state }) => {const { data } = await window.__POSTWOMAN_EXTENSION_HOOK__.sendRequest({method: "post",- url: state.postwoman.settings.PROXY_URL || "https://postwoman.apollotv.xyz/",- data: req,- })- return data-}+ url:+ state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",+ data: req+ });+ return data;+};const extensionWithoutProxy = async (req, _store) => {- const res = await window.__POSTWOMAN_EXTENSION_HOOK__.sendRequest(req);- return res;- };+ const res = await window.__POSTWOMAN_EXTENSION_HOOK__.sendRequest(req)+ return res+ }const extensionStrategy = (req, store) => {if (store.state.postwoman.settings.PROXY_ENABLED) {diff --cc lang/en-US.jsindex e09b560fd,e7c5e755c..85522f0cb--- a/lang/en-US.js+++ b/lang/en-US.js@@@ -85,10 -85,9 +85,9 @@@ export defaultenabled: "Enabled",disabled: "Disabled",proxy: "Proxy",- postwoman_official_proxy_hosting:- "Postwoman's Official Proxy is hosted by Apollo Software.",- postwoman_official_proxy_hosting: "Postwoman's Official Proxy is hosted by ApolloTV.",++ postwoman_official_proxy_hosting: "Postwoman's Official Proxy is hosted by Apollo Software.",read_the: "Read the",- apollotv_privacy_policy: "ApolloTV privacy policy",+ apollosw_privacy_policy: "Apollo Software privacy policy",contact_us: "Contact us",connect: "Connect",disconnect: "Disconnect",diff --cc lang/es-ES.jsindex ddb6be076,3b981ca2a..cdcee1627--- a/lang/es-ES.js+++ b/lang/es-ES.js@@@ -78,10 -78,9 +78,9 @@@ export defaultenabled: "Habilitado",disabled: "Deshabilitado",proxy: "Proxy",- postwoman_official_proxy_hosting:- "Proxy Oficial de Postwoman está hospedado en Apollo Software.",- postwoman_official_proxy_hosting: "Proxy Oficial de Postwoman está hospedado en ApolloTV.",++ postwoman_official_proxy_hosting: "Proxy Oficial de Postwoman está hospedado en Apollo Software.",read_the: "Leer la",- apollotv_privacy_policy: "Política de Privacidad de ApolloTV",+ apollosw_privacy_policy: "Política de Privacidad de Apollo Software",contact_us: "Contáctenos",connect: "Conectar",disconnect: "Desconectar",diff --cc lang/fa-IR.jsindex 1ab9ce295,e407d8eff..4738d9c3a--- a/lang/fa-IR.js+++ b/lang/fa-IR.js@@@ -78,10 -78,9 +78,9 @@@ export defaultenabled: "فعال",disabled: "غیر فعال",proxy: "پراکسی",- postwoman_official_proxy_hosting:- "پراکسی Postwoman برروی هاست Apollo Software قرار دارد.",- postwoman_official_proxy_hosting: "پراکسی Postwoman برروی هاست ApolloTV قرار دارد.",++ postwoman_official_proxy_hosting: "پراکسی Postwoman برروی هاست Apollo Software قرار دارد.",read_the: "بخوانید",- apollotv_privacy_policy: "خط مشی رازداری ApolloTV",+ apollosw_privacy_policy: "خط مشی رازداری Apollo Software",contact_us: "Contact us",connect: "Connect",disconnect: "Disconnect",diff --cc lang/fr-FR.jsindex 4a8b9bcf3,cd85a492d..b801b4a5d--- a/lang/fr-FR.js+++ b/lang/fr-FR.js@@@ -78,10 -78,9 +78,9 @@@ export defaultenabled: "Activé",disabled: "Désactivé",proxy: "Proxy",- postwoman_official_proxy_hosting:- "Le proxy officiel de Postwoman est hébergé par Apollo Software.",- postwoman_official_proxy_hosting: "Le proxy officiel de Postwoman est hébergé par ApolloTV.",++ postwoman_official_proxy_hosting: "Le proxy officiel de Postwoman est hébergé par Apollo Software.",read_the: "Lire la",- apollotv_privacy_policy: "politique de confidentialité ApolloTV",+ apollosw_privacy_policy: "politique de confidentialité Apollo Software",contact_us: "Contactez nous",connect: "Relier",disconnect: "Déconnecter",diff --cc lang/id-ID.jsindex a6cb96ba0,59f1fe7ed..68f26b00d--- a/lang/id-ID.js+++ b/lang/id-ID.js@@@ -78,10 -78,9 +78,9 @@@ export defaultenabled: "diaktifkan",disabled: "dinonaktifkan",proxy: "Proksi",- postwoman_official_proxy_hosting:- "Proksi Resmi Postwoman dalam penginangan Apollo Software.",- postwoman_official_proxy_hosting: "Proksi Resmi Postwoman dalam penginangan ApolloTV.",++ postwoman_official_proxy_hosting: "Proksi Resmi Postwoman dalam penginangan Apollo Software.",read_the: "Bacalah",- apollotv_privacy_policy: "kebijakan privasi ApolloTV",+ apollosw_privacy_policy: "kebijakan privasi Apollo Software",contact_us: "Hubungi kami",connect: "Menghubungkan",disconnect: "Memutuskan",diff --cc lang/ja-JP.jsindex 4f202a4b2,1c1d7a417..f88ca82f6--- a/lang/ja-JP.js+++ b/lang/ja-JP.js@@@ -78,10 -78,9 +78,9 @@@ export defaultenabled: "有効",disabled: "無効",proxy: "プロキシ",- postwoman_official_proxy_hosting:- "Postwomanの公式プロキシは、Apollo TVがホストしています。",- postwoman_official_proxy_hosting: "Postwomanの公式プロキシは、Apollo TVがホストしています。",++ postwoman_official_proxy_hosting: "Postwomanの公式プロキシは、Apollo Softwareがホストしています。",read_the: "プライバシーポリシー",- apollotv_privacy_policy: "を読む",+ apollosw_privacy_policy: "を読む",contact_us: "お問い合わせ",connect: "接続",disconnect: "切断",diff --cc lang/tr-TR.jsindex 733ad8999,fe9233288..09ba4e0db--- a/lang/tr-TR.js+++ b/lang/tr-TR.js@@@ -78,10 -78,9 +78,9 @@@ export defaultenabled: "Aktif",disabled: "Aktif değil",proxy: "Proxy",- postwoman_official_proxy_hosting:- "Proxy Oficial de Postwoman está hospedado en Apollo Software.",- postwoman_official_proxy_hosting: "Proxy Oficial de Postwoman está hospedado en ApolloTV.",++ postwoman_official_proxy_hosting: "Proxy Oficial de Postwoman está hospedado en Apollo Software.",read_the: "Leer la",- apollotv_privacy_policy: "ApolloTV gizlilik politikaları",+ apollosw_privacy_policy: "Apollo Software gizlilik politikaları",contact_us: "Bizimle iletişime geçin",connect: "Bağlan",disconnect: "Kesmek",diff --cc pages/graphql.vueindex fee7f8a17,e2b5f7c37..290c4972b--- a/pages/graphql.vue+++ b/pages/graphql.vue@@@ -571,30 -563,26 +563,27 @@@ export default? {method: "post",url:- this.$store.state.postwoman.settings.PROXY_URL || `https://postwoman.apollotv.xyz/`,- data: reqOptions,+ this.$store.state.postwoman.settings.PROXY_URL ||+ `https://postwoman.apollosoftware.xyz/`,+ data: reqOptions}- : reqOptions;-- const res = await axios(reqConfig);+ : reqOptions- const data = this.$store.state.postwoman.settings.PROXY_ENABLED- ? res.data- : res;+ const res = await axios(reqConfig)- const schema = gql.buildClientSchema(data.data.data);- this.schemaString = gql.printSchema(schema, {- commentDescriptions: true- });+ const data = this.$store.state.postwoman.settings.PROXY_ENABLED ? res.data : res+ const schema = gql.buildClientSchema(data.data.data)+ this.schema = gql.printSchema(schema, {+ commentDescriptions: true,+ })if (schema.getQueryType()) {- const fields = schema.getQueryType().getFields();- const qFields = [];+ const fields = schema.getQueryType().getFields()+ const qFields = []for (const field in fields) {- qFields.push(fields[field]);+ qFields.push(fields[field])}- this.queryFields = qFields;+ this.queryFields = qFields}if (schema.getMutationType()) {diff --cc pages/settings.vueindex e3520db3b,98ec14d17..721df672b--- a/pages/settings.vue+++ b/pages/settings.vue@@@ -222,14 -207,9 +207,12 @@@{{ $t("postwoman_official_proxy_hosting") }}<br />{{ $t("read_the") }}- <a class="link" href="https://apollotv.xyz/legal" target="_blank" rel="noopener">- {{ $t("apollotv_privacy_policy") }} </a- >.+ <a+ class="link"+ href="https://apollosoftware.xyz/legal/postwoman"+ target="_blank"- rel="noopener"- >- {{ $t("apollosw_privacy_policy") }} </a- >.++ rel="noopener">++ {{ $t("apollosw_privacy_policy") }} </a>.</p></li></ul>@@@ -356,13 -337,10 +340,9 @@@ export defaultTHEME_TAB_COLOR: "",THEME_COLOR_VIBRANT: true,- FRAME_COLORS_ENABLED:- this.$store.state.postwoman.settings.FRAME_COLORS_ENABLED || false,- PROXY_ENABLED:- this.$store.state.postwoman.settings.PROXY_ENABLED || false,- PROXY_URL:- this.$store.state.postwoman.settings.PROXY_URL ||- "https://postwoman.apollosoftware.xyz/",+ FRAME_COLORS_ENABLED: this.$store.state.postwoman.settings.FRAME_COLORS_ENABLED || false,+ PROXY_ENABLED: this.$store.state.postwoman.settings.PROXY_ENABLED || false,- PROXY_URL:- this.$store.state.postwoman.settings.PROXY_URL || "https://postwoman.apollotv.xyz/",++ PROXY_URL: this.$store.state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",PROXY_KEY: this.$store.state.postwoman.settings.PROXY_KEY || "",EXTENSIONS_ENABLED:@@@ -495,29 -468,26 +470,26 @@@}).catch(err => {this.$toast.show(err.message || err, {- icon: "error"- });- });+ icon: "error",+ })+ })},toggleSettings(s, v) {- fb.writeSettings(s, !v);+ fb.writeSettings(s, !v)},initSettings() {- fb.writeSettings("syncHistory", true);- fb.writeSettings("syncCollections", true);- fb.writeSettings("syncEnvironments", true);+ fb.writeSettings("syncHistory", true)+ fb.writeSettings("syncCollections", true)+ fb.writeSettings("syncEnvironments", true)},resetProxy({ target }) {- this.settings.PROXY_URL = `https://postwoman.apollotv.xyz/`- target.innerHTML = this.doneButton+ this.settings.PROXY_URL = `https://postwoman.apollosoftware.xyz/`;+ target.innerHTML = this.doneButton;this.$toast.info(this.$t("cleared"), {- icon: "clear_all"- });- setTimeout(- () => (target.innerHTML = '<i class="material-icons">clear_all</i>'),- 1000- );- }+ icon: "clear_all",+ })+ setTimeout(() => (target.innerHTML = '<i class="material-icons">clear_all</i>'), 1000)+ },},beforeMount() {