refactor: minor ui improvements

This commit is contained in:
liyasthomas
2021-08-14 16:14:08 +05:30
parent a129d7eb13
commit 2051b8788a
17 changed files with 75 additions and 46 deletions

View File

@@ -66,7 +66,7 @@
class="px-2"
@change="authActive = !authActive"
>
{{ authActive ? $t("enabled") : $t("disabled") }}
{{ $t("enabled") }}
</SmartToggle>
<ButtonSecondary
v-tippy="{ theme: 'tooltip' }"

View File

@@ -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>

View File

@@ -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 })"

View File

@@ -119,7 +119,6 @@ export default defineComponent({
body: {
contentType: "application/json",
body: "",
isRaw: false,
},
})
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -13,7 +13,7 @@
justify-between
"
>
<label for="rawBody">
<label class="font-semibold text-secondaryLight">
{{ $t("raw_request_body") }}
</label>
<div class="flex">

View File

@@ -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"