From a129d7eb13d8891e1fe0718d31edd6aef7105cb7 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 14 Aug 2021 14:31:16 +0530 Subject: [PATCH] refactor: init newstore for request body Co-authored-by: Andrew Bastin --- components/http/Body.vue | 11 +-- components/http/BodyParameters.vue | 140 +++++----------------------- helpers/types/HoppRESTRequest.ts | 21 +++-- newstore/RESTSession.ts | 144 ++++++++++++++++++++++++++++- 4 files changed, 188 insertions(+), 128 deletions(-) diff --git a/components/http/Body.vue b/components/http/Body.vue index 40cf46667..48aebc9d5 100644 --- a/components/http/Body.vue +++ b/components/http/Body.vue @@ -5,7 +5,7 @@ bg-primary border-b border-dividerLight flex flex-1 - pl-4 pl-4 + pl-4 items-center justify-between " @@ -44,11 +44,11 @@ /> - - {{ $t("raw_input") }} - - + @@ -63,7 +63,6 @@ export default defineComponent({ setup() { return { contentType: pluckRef(useRESTRequestBody(), "contentType"), - rawInput: pluckRef(useRESTRequestBody(), "isRaw"), } }, data() { diff --git a/components/http/BodyParameters.vue b/components/http/BodyParameters.vue index d5304c92b..75509f7f9 100644 --- a/components/http/BodyParameters.vue +++ b/components/http/BodyParameters.vue @@ -13,7 +13,7 @@ justify-between " > -