From fb615d2d2b8fa0bd4f3fee0408fe8c01bb48d885 Mon Sep 17 00:00:00 2001 From: nivedin Date: Mon, 19 Feb 2024 21:24:17 +0530 Subject: [PATCH] chore: add env autocomplete to components --- .../src/components/http/Authorization.vue | 6 +++++- .../src/components/http/Headers.vue | 2 ++ .../components/http/OAuth2Authorization.vue | 21 ++++++++++++++++--- .../src/components/http/Parameters.vue | 2 ++ .../src/components/http/Request.vue | 1 + .../components/http/authorization/ApiKey.vue | 12 +++++++++-- .../components/http/authorization/Basic.vue | 2 ++ 7 files changed, 40 insertions(+), 6 deletions(-) diff --git a/packages/hoppscotch-common/src/components/http/Authorization.vue b/packages/hoppscotch-common/src/components/http/Authorization.vue index f1a7b0a60..e59fb39b3 100644 --- a/packages/hoppscotch-common/src/components/http/Authorization.vue +++ b/packages/hoppscotch-common/src/components/http/Authorization.vue @@ -169,7 +169,11 @@
- +
diff --git a/packages/hoppscotch-common/src/components/http/Headers.vue b/packages/hoppscotch-common/src/components/http/Headers.vue index fb46c4aee..33fd0ecb8 100644 --- a/packages/hoppscotch-common/src/components/http/Headers.vue +++ b/packages/hoppscotch-common/src/components/http/Headers.vue @@ -92,6 +92,7 @@ :auto-complete-source="commonHeaders" :env-index="index" :inspection-results="getInspectorResult(headerKeyResults, index)" + :auto-complete-env="true" @change=" updateHeader(index, { id: header.id, @@ -108,6 +109,7 @@ getInspectorResult(headerValueResults, index) " :env-index="index" + :auto-complete-env="true" @change=" updateHeader(index, { id: header.id, diff --git a/packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue b/packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue index ee9d2f1c0..bb85607c5 100644 --- a/packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue +++ b/packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue @@ -6,6 +6,7 @@ :styles=" hasAccessTokenOrAuthURL ? 'pointer-events-none opacity-70' : '' " + :auto-complete-env="true" placeholder="OpenID Connect Discovery URL" />
@@ -13,6 +14,7 @@ @@ -20,17 +22,30 @@
- +
- +
- +
- +
- +
diff --git a/packages/hoppscotch-common/src/components/http/authorization/Basic.vue b/packages/hoppscotch-common/src/components/http/authorization/Basic.vue index b3db29a6b..02e473999 100644 --- a/packages/hoppscotch-common/src/components/http/authorization/Basic.vue +++ b/packages/hoppscotch-common/src/components/http/authorization/Basic.vue @@ -3,12 +3,14 @@