refactor: minor ui improvements
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
class="px-2"
|
||||
@change="authActive = !authActive"
|
||||
>
|
||||
{{ authActive ? $t("enabled") : $t("disabled") }}
|
||||
{{ $t("enabled") }}
|
||||
</SmartToggle>
|
||||
<ButtonSecondary
|
||||
v-tippy="{ theme: 'tooltip' }"
|
||||
|
||||
@@ -45,10 +45,7 @@
|
||||
</tippy>
|
||||
</span>
|
||||
</div>
|
||||
<HttpBodyParameters
|
||||
v-if="contentType == 'multipart/form-data'"
|
||||
:content-type="contentType"
|
||||
/>
|
||||
<HttpBodyParameters v-if="contentType == 'multipart/form-data'" />
|
||||
<HttpRawBody v-else :content-type="contentType" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
v-for="(header, index) in headers$"
|
||||
:key="`header-${index}`"
|
||||
class="divide-x divide-dividerLight border-b border-dividerLight flex"
|
||||
:class="{ 'border-t': index == 0 }"
|
||||
>
|
||||
<SmartAutoComplete
|
||||
:placeholder="$t('count.header', { count: index + 1 })"
|
||||
|
||||
@@ -119,7 +119,6 @@ export default defineComponent({
|
||||
body: {
|
||||
contentType: "application/json",
|
||||
body: "",
|
||||
isRaw: false,
|
||||
},
|
||||
})
|
||||
)
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
v-for="(param, index) in params$"
|
||||
:key="`param-${index}`"
|
||||
class="divide-x divide-dividerLight border-b border-dividerLight flex"
|
||||
:class="{ 'border-t': index == 0 }"
|
||||
>
|
||||
<SmartEnvInput
|
||||
v-if="EXPERIMENTAL_URL_BAR_ENABLED"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
icon="help_outline"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="border-b border-dividerLight flex">
|
||||
<div class="border-r border-dividerLight w-2/3">
|
||||
<SmartJsEditor
|
||||
v-model="preRequestScript"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
justify-between
|
||||
"
|
||||
>
|
||||
<label for="rawBody">
|
||||
<label class="font-semibold text-secondaryLight">
|
||||
{{ $t("raw_request_body") }}
|
||||
</label>
|
||||
<div class="flex">
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
icon="help_outline"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="border-b border-dividerLight flex">
|
||||
<div class="border-r border-dividerLight w-2/3">
|
||||
<SmartJsEditor
|
||||
v-model="testScript"
|
||||
|
||||
Reference in New Issue
Block a user