chore: add env autocomplete to components
This commit is contained in:
@@ -169,7 +169,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="auth.authType === 'bearer'">
|
<div v-if="auth.authType === 'bearer'">
|
||||||
<div class="flex flex-1 border-b border-dividerLight">
|
<div class="flex flex-1 border-b border-dividerLight">
|
||||||
<SmartEnvInput v-model="auth.token" placeholder="Token" />
|
<SmartEnvInput
|
||||||
|
v-model="auth.token"
|
||||||
|
placeholder="Token"
|
||||||
|
:auto-complete-env="true"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="auth.authType === 'oauth-2'">
|
<div v-if="auth.authType === 'oauth-2'">
|
||||||
|
|||||||
@@ -92,6 +92,7 @@
|
|||||||
:auto-complete-source="commonHeaders"
|
:auto-complete-source="commonHeaders"
|
||||||
:env-index="index"
|
:env-index="index"
|
||||||
:inspection-results="getInspectorResult(headerKeyResults, index)"
|
:inspection-results="getInspectorResult(headerKeyResults, index)"
|
||||||
|
:auto-complete-env="true"
|
||||||
@change="
|
@change="
|
||||||
updateHeader(index, {
|
updateHeader(index, {
|
||||||
id: header.id,
|
id: header.id,
|
||||||
@@ -108,6 +109,7 @@
|
|||||||
getInspectorResult(headerValueResults, index)
|
getInspectorResult(headerValueResults, index)
|
||||||
"
|
"
|
||||||
:env-index="index"
|
:env-index="index"
|
||||||
|
:auto-complete-env="true"
|
||||||
@change="
|
@change="
|
||||||
updateHeader(index, {
|
updateHeader(index, {
|
||||||
id: header.id,
|
id: header.id,
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
:styles="
|
:styles="
|
||||||
hasAccessTokenOrAuthURL ? 'pointer-events-none opacity-70' : ''
|
hasAccessTokenOrAuthURL ? 'pointer-events-none opacity-70' : ''
|
||||||
"
|
"
|
||||||
|
:auto-complete-env="true"
|
||||||
placeholder="OpenID Connect Discovery URL"
|
placeholder="OpenID Connect Discovery URL"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -13,6 +14,7 @@
|
|||||||
<SmartEnvInput
|
<SmartEnvInput
|
||||||
v-model="authURL"
|
v-model="authURL"
|
||||||
placeholder="Authorization URL"
|
placeholder="Authorization URL"
|
||||||
|
:auto-complete-env="true"
|
||||||
:styles="hasOIDCURL ? 'pointer-events-none opacity-70' : ''"
|
:styles="hasOIDCURL ? 'pointer-events-none opacity-70' : ''"
|
||||||
></SmartEnvInput>
|
></SmartEnvInput>
|
||||||
</div>
|
</div>
|
||||||
@@ -20,17 +22,30 @@
|
|||||||
<SmartEnvInput
|
<SmartEnvInput
|
||||||
v-model="accessTokenURL"
|
v-model="accessTokenURL"
|
||||||
placeholder="Access Token URL"
|
placeholder="Access Token URL"
|
||||||
|
:auto-complete-env="true"
|
||||||
:styles="hasOIDCURL ? 'pointer-events-none opacity-70' : ''"
|
:styles="hasOIDCURL ? 'pointer-events-none opacity-70' : ''"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1 border-b border-dividerLight">
|
<div class="flex flex-1 border-b border-dividerLight">
|
||||||
<SmartEnvInput v-model="clientID" placeholder="Client ID" />
|
<SmartEnvInput
|
||||||
|
v-model="clientID"
|
||||||
|
:auto-complete-env="true"
|
||||||
|
placeholder="Client ID"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1 border-b border-dividerLight">
|
<div class="flex flex-1 border-b border-dividerLight">
|
||||||
<SmartEnvInput v-model="clientSecret" placeholder="Client Secret" />
|
<SmartEnvInput
|
||||||
|
v-model="clientSecret"
|
||||||
|
:auto-complete-env="true"
|
||||||
|
placeholder="Client Secret"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1 border-b border-dividerLight">
|
<div class="flex flex-1 border-b border-dividerLight">
|
||||||
<SmartEnvInput v-model="scope" placeholder="Scope" />
|
<SmartEnvInput
|
||||||
|
v-model="scope"
|
||||||
|
:auto-complete-env="true"
|
||||||
|
placeholder="Scope"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-2">
|
<div class="p-2">
|
||||||
<HoppButtonSecondary
|
<HoppButtonSecondary
|
||||||
|
|||||||
@@ -87,6 +87,7 @@
|
|||||||
:inspection-results="
|
:inspection-results="
|
||||||
getInspectorResult(parameterKeyResults, index)
|
getInspectorResult(parameterKeyResults, index)
|
||||||
"
|
"
|
||||||
|
:auto-complete-env="true"
|
||||||
@change="
|
@change="
|
||||||
updateParam(index, {
|
updateParam(index, {
|
||||||
id: param.id,
|
id: param.id,
|
||||||
@@ -102,6 +103,7 @@
|
|||||||
:inspection-results="
|
:inspection-results="
|
||||||
getInspectorResult(parameterValueResults, index)
|
getInspectorResult(parameterValueResults, index)
|
||||||
"
|
"
|
||||||
|
:auto-complete-env="true"
|
||||||
@change="
|
@change="
|
||||||
updateParam(index, {
|
updateParam(index, {
|
||||||
id: param.id,
|
id: param.id,
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
v-model="tab.document.request.endpoint"
|
v-model="tab.document.request.endpoint"
|
||||||
:placeholder="`${t('request.url')}`"
|
:placeholder="`${t('request.url')}`"
|
||||||
:auto-complete-source="userHistories"
|
:auto-complete-source="userHistories"
|
||||||
|
:auto-complete-env="true"
|
||||||
:inspection-results="tabResults"
|
:inspection-results="tabResults"
|
||||||
@paste="onPasteUrl($event)"
|
@paste="onPasteUrl($event)"
|
||||||
@enter="newSendRequest"
|
@enter="newSendRequest"
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex flex-1 border-b border-dividerLight">
|
<div class="flex flex-1 border-b border-dividerLight">
|
||||||
<SmartEnvInput v-model="auth.key" placeholder="Key" />
|
<SmartEnvInput
|
||||||
|
v-model="auth.key"
|
||||||
|
:auto-complete-env="true"
|
||||||
|
placeholder="Key"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1 border-b border-dividerLight">
|
<div class="flex flex-1 border-b border-dividerLight">
|
||||||
<SmartEnvInput v-model="auth.value" placeholder="Value" />
|
<SmartEnvInput
|
||||||
|
v-model="auth.value"
|
||||||
|
:auto-complete-env="true"
|
||||||
|
placeholder="Value"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center border-b border-dividerLight">
|
<div class="flex items-center border-b border-dividerLight">
|
||||||
<span class="flex items-center">
|
<span class="flex items-center">
|
||||||
|
|||||||
@@ -3,12 +3,14 @@
|
|||||||
<SmartEnvInput
|
<SmartEnvInput
|
||||||
v-model="auth.username"
|
v-model="auth.username"
|
||||||
:placeholder="t('authorization.username')"
|
:placeholder="t('authorization.username')"
|
||||||
|
:auto-complete-env="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-1 border-b border-dividerLight">
|
<div class="flex flex-1 border-b border-dividerLight">
|
||||||
<SmartEnvInput
|
<SmartEnvInput
|
||||||
v-model="auth.password"
|
v-model="auth.password"
|
||||||
:placeholder="t('authorization.password')"
|
:placeholder="t('authorization.password')"
|
||||||
|
:auto-complete-env="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user