diff --git a/components/http/http-body-parameters.vue b/components/http/http-body-parameters.vue new file mode 100644 index 000000000..99b961872 --- /dev/null +++ b/components/http/http-body-parameters.vue @@ -0,0 +1,126 @@ + + + diff --git a/components/http/http-headers.vue b/components/http/http-headers.vue index dd15e41ec..2b3897a9f 100644 --- a/components/http/http-headers.vue +++ b/components/http/http-headers.vue @@ -56,10 +56,35 @@
  • +
  • + +
    +
  • +
  • diff --git a/components/http/http-parameters.vue b/components/http/http-parameters.vue index a61974c36..a4740cfce 100644 --- a/components/http/http-parameters.vue +++ b/components/http/http-parameters.vue @@ -73,10 +73,35 @@
  • +
  • +
    +
    +
  • +
  • diff --git a/helpers/requestParams.js b/helpers/requestParams.js index 5bcbd46e3..8fd13e62f 100644 --- a/helpers/requestParams.js +++ b/helpers/requestParams.js @@ -1,9 +1,12 @@ export function hasPathParams(params) { - return params.some(({ type }) => type === "path") + return params + .filter((item) => (item.hasOwnProperty("active") ? item.active == true : true)) + .some(({ type }) => type === "path") } export function addPathParamsToVariables(params, variables) { params + .filter((item) => (item.hasOwnProperty("active") ? item.active == true : true)) .filter(({ key }) => !!key) .filter(({ type }) => type === "path") .forEach(({ key, value }) => (variables[key] = value)) @@ -11,5 +14,8 @@ export function addPathParamsToVariables(params, variables) { } export function getQueryParams(params) { - return params.filter(({ key }) => !!key).filter(({ type }) => type != "path") + return params + .filter((item) => (item.hasOwnProperty("active") ? item.active == true : true)) + .filter(({ key }) => !!key) + .filter(({ type }) => type != "path") } diff --git a/lang/en-US.json b/lang/en-US.json index 27881fdec..47de7f0e5 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -264,6 +264,7 @@ "syncCollections": "Collections", "syncEnvironments": "Environments", "turn_on": "Turn on", + "turn_off": "Turn off", "login_first": "Login first", "paste_a_note": "Paste a note", "import_from_sync": "Import from Sync", diff --git a/pages/index.vue b/pages/index.vue index b94691971..086656dc9 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -151,81 +151,14 @@
    -
    - - - -
    +