From f694f1ad36a7315a40c58365bccf0e558f7826e9 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Fri, 23 Jul 2021 00:07:39 +0530 Subject: [PATCH] refactor: init new state for body --- components/http/Body.vue | 74 +++++++++++++++++++++++ components/http/BodyParameters.vue | 17 ++++-- components/http/RawBody.vue | 34 +++++------ components/http/TestResult.vue | 53 +++++++++++++++++ components/http/Tests.vue | 88 +++++++++++++++++---------- components/realtime/Websocket.vue | 2 +- helpers/types/HoppRESTRequest.ts | 29 +++++++++ helpers/utils/composables.ts | 26 ++++++++ helpers/utils/contenttypes.js | 15 ----- helpers/utils/contenttypes.ts | 13 ++++ newstore/RESTSession.ts | 36 +++++++++++ package-lock.json | 19 ++++++ package.json | 1 + pages/index.vue | 95 +----------------------------- 14 files changed, 336 insertions(+), 166 deletions(-) create mode 100644 components/http/Body.vue create mode 100644 components/http/TestResult.vue delete mode 100644 helpers/utils/contenttypes.js create mode 100644 helpers/utils/contenttypes.ts diff --git a/components/http/Body.vue b/components/http/Body.vue new file mode 100644 index 000000000..9d3f4d5a4 --- /dev/null +++ b/components/http/Body.vue @@ -0,0 +1,74 @@ + + + diff --git a/components/http/BodyParameters.vue b/components/http/BodyParameters.vue index d06917b7e..a517cc6bd 100644 --- a/components/http/BodyParameters.vue +++ b/components/http/BodyParameters.vue @@ -104,7 +104,7 @@ @click.native="toggleActive(index, param)" /> -
+