From 414469e5e96a4dba5ed479506ed9ac9eb8c95db7 Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Tue, 29 Mar 2022 10:23:55 +0600 Subject: [PATCH] feat: override content-type (#2191) Co-authored-by: Liyas Thomas Co-authored-by: Andrew Bastin --- .../hoppscotch-app/components/http/Body.vue | 78 ++++++++++++++++--- .../components/http/RequestOptions.vue | 12 ++- .../components/smart/EnvInput.vue | 2 + .../hoppscotch-app/components/smart/Tabs.vue | 48 +++++++----- .../helpers/utils/EffectiveURL.ts | 5 +- packages/hoppscotch-app/locales/en.json | 5 +- 6 files changed, 115 insertions(+), 35 deletions(-) diff --git a/packages/hoppscotch-app/components/http/Body.vue b/packages/hoppscotch-app/components/http/Body.vue index f5c8571b5..5bebec593 100644 --- a/packages/hoppscotch-app/components/http/Body.vue +++ b/packages/hoppscotch-app/components/http/Body.vue @@ -49,6 +49,25 @@ /> + @@ -80,19 +99,56 @@ - diff --git a/packages/hoppscotch-app/components/http/RequestOptions.vue b/packages/hoppscotch-app/components/http/RequestOptions.vue index 7293245e0..486509733 100644 --- a/packages/hoppscotch-app/components/http/RequestOptions.vue +++ b/packages/hoppscotch-app/components/http/RequestOptions.vue @@ -11,7 +11,7 @@ - + ("params") +const changeTab = (e: RequestOptionTabs) => { + selectedRealtimeTab.value = e +} + const newActiveParamsCount$ = useReadonlyStream( restActiveParamsCount$.pipe( map((e) => { diff --git a/packages/hoppscotch-app/components/smart/EnvInput.vue b/packages/hoppscotch-app/components/smart/EnvInput.vue index 0156efaa1..860b787f7 100644 --- a/packages/hoppscotch-app/components/smart/EnvInput.vue +++ b/packages/hoppscotch-app/components/smart/EnvInput.vue @@ -44,12 +44,14 @@ const props = withDefaults( placeholder: string styles: string envs: { key: string; value: string; source: string }[] | null + focus: boolean }>(), { value: "", placeholder: "", styles: "", envs: null, + focus: false, } ) diff --git a/packages/hoppscotch-app/components/smart/Tabs.vue b/packages/hoppscotch-app/components/smart/Tabs.vue index f6a8a5fdd..54f5a4e4e 100644 --- a/packages/hoppscotch-app/components/smart/Tabs.vue +++ b/packages/hoppscotch-app/components/smart/Tabs.vue @@ -65,7 +65,12 @@