From 691629890fd3e1a74091666eead10b47750ea697 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 14 Aug 2021 19:11:05 +0530 Subject: [PATCH] fix: form data request as body Co-authored-by: Andrew Bastin --- components/http/BodyParameters.vue | 231 +++++++++++++++++++---------- components/http/Headers.vue | 2 +- components/http/Parameters.vue | 4 +- components/smart/DeletableChip.vue | 15 +- components/smart/EnvInput.vue | 3 +- helpers/types/HoppRESTRequest.ts | 2 +- newstore/RESTSession.ts | 22 +-- 7 files changed, 180 insertions(+), 99 deletions(-) diff --git a/components/http/BodyParameters.vue b/components/http/BodyParameters.vue index 75509f7f9..f05fd3e29 100644 --- a/components/http/BodyParameters.vue +++ b/components/http/BodyParameters.vue @@ -38,7 +38,6 @@ /> -
@@ -84,54 +83,14 @@ key: $event.target.value, value: param.value, active: param.active, + isFile: param.isFile, }) " /> - - -
-
+
+
@@ -139,6 +98,68 @@
+ + + + + + + + - - - -
- @@ -243,10 +320,12 @@ export default defineComponent({ @apply flex flex-1; @apply whitespace-nowrap; @apply overflow-auto; - @apply bg-primaryDark; + @apply bg-primaryLight; .file-chips-wrapper { @apply flex; + @apply px-4; + @apply py-1; @apply w-0; } } diff --git a/components/http/Headers.vue b/components/http/Headers.vue index 95a42efb7..228b56c82 100644 --- a/components/http/Headers.vue +++ b/components/http/Headers.vue @@ -82,7 +82,7 @@ @change=" updateHeader(index, { key: header.key, - value: $event.target.value, + value: $event, active: header.active, }) " diff --git a/components/http/Parameters.vue b/components/http/Parameters.vue index 98d5a9901..d4bdc5e9b 100644 --- a/components/http/Parameters.vue +++ b/components/http/Parameters.vue @@ -57,7 +57,7 @@ " @change=" updateParam(index, { - key: $event.target.value, + key: $event, value: param.value, active: param.active, }) @@ -100,7 +100,7 @@ @change=" updateParam(index, { key: param.key, - value: $event.target.value, + value: $event, active: param.active, }) " diff --git a/components/smart/DeletableChip.vue b/components/smart/DeletableChip.vue index a96c67eb6..b629bfc94 100644 --- a/components/smart/DeletableChip.vue +++ b/components/smart/DeletableChip.vue @@ -1,8 +1,9 @@