refactor: minor ui improvements
This commit is contained in:
@@ -156,7 +156,7 @@ a {
|
|||||||
|
|
||||||
.tippy-content > div {
|
.tippy-content > div {
|
||||||
@apply flex flex-col;
|
@apply flex flex-col;
|
||||||
@apply max-h-56;
|
@apply max-h-46;
|
||||||
@apply items-stretch;
|
@apply items-stretch;
|
||||||
@apply overflow-y-auto;
|
@apply overflow-y-auto;
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,14 @@
|
|||||||
class="rounded-none"
|
class="rounded-none"
|
||||||
@click.native="displayModalAdd(true)"
|
@click.native="displayModalAdd(true)"
|
||||||
/>
|
/>
|
||||||
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
to="https://docs.hoppscotch.io/"
|
||||||
|
blank
|
||||||
|
:title="$t('wiki')"
|
||||||
|
icon="help_outline"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-if="showCollActions"
|
v-if="showCollActions"
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
@@ -41,6 +49,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="flex-col">
|
<div class="flex-col">
|
||||||
<CollectionsGraphqlCollection
|
<CollectionsGraphqlCollection
|
||||||
v-for="(collection, index) in filteredCollections"
|
v-for="(collection, index) in filteredCollections"
|
||||||
|
|||||||
@@ -45,6 +45,14 @@
|
|||||||
class="rounded-none"
|
class="rounded-none"
|
||||||
@click.native="displayModalAdd(true)"
|
@click.native="displayModalAdd(true)"
|
||||||
/>
|
/>
|
||||||
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
to="https://docs.hoppscotch.io/"
|
||||||
|
blank
|
||||||
|
:title="$t('wiki')"
|
||||||
|
icon="help_outline"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
icon="import_export"
|
icon="import_export"
|
||||||
@@ -53,6 +61,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<EnvironmentsAdd
|
<EnvironmentsAdd
|
||||||
:show="showModalAdd"
|
:show="showModalAdd"
|
||||||
@hide-modal="displayModalAdd(false)"
|
@hide-modal="displayModalAdd(false)"
|
||||||
|
|||||||
@@ -152,7 +152,6 @@
|
|||||||
border-b border-dividerLight
|
border-b border-dividerLight
|
||||||
flex
|
flex
|
||||||
"
|
"
|
||||||
:class="{ 'border-t': index == 0 }"
|
|
||||||
>
|
>
|
||||||
<SmartAutoComplete
|
<SmartAutoComplete
|
||||||
:placeholder="$t('count.header', { count: index + 1 })"
|
:placeholder="$t('count.header', { count: index + 1 })"
|
||||||
@@ -333,6 +332,7 @@ export default defineComponent({
|
|||||||
const showSaveRequestModal = ref(false)
|
const showSaveRequestModal = ref(false)
|
||||||
|
|
||||||
const schema = useReadonlyStream(props.conn.schemaString$, "")
|
const schema = useReadonlyStream(props.conn.schemaString$, "")
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
headers,
|
headers,
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<div
|
<div
|
||||||
class="
|
class="
|
||||||
bg-primaryLight
|
bg-primaryLight
|
||||||
flex flex-col
|
flex
|
||||||
top-sidebarPrimaryStickyFold
|
top-sidebarPrimaryStickyFold
|
||||||
z-10
|
z-10
|
||||||
sticky
|
sticky
|
||||||
@@ -29,11 +29,19 @@
|
|||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
to="https://docs.hoppscotch.io/"
|
||||||
|
blank
|
||||||
|
:title="$t('wiki')"
|
||||||
|
icon="help_outline"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<SmartTabs
|
<SmartTabs
|
||||||
ref="gqlTabs"
|
ref="gqlTabs"
|
||||||
styles="
|
styles="border-t border-dividerLight sticky z-10 top-sidebarSecondaryStickyFold"
|
||||||
border-t border-dividerLight sticky z-8 top-sidebarSecondaryStickyFold"
|
|
||||||
>
|
>
|
||||||
<div class="gqlTabs">
|
<div class="gqlTabs">
|
||||||
<SmartTab
|
<SmartTab
|
||||||
@@ -153,6 +161,13 @@
|
|||||||
{{ $t("schema") }}
|
{{ $t("schema") }}
|
||||||
</label>
|
</label>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
to="https://docs.hoppscotch.io/"
|
||||||
|
blank
|
||||||
|
:title="$t('wiki')"
|
||||||
|
icon="help_outline"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
ref="downloadSchema"
|
ref="downloadSchema"
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
|||||||
@@ -27,6 +27,14 @@
|
|||||||
:placeholder="$t('search')"
|
:placeholder="$t('search')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex">
|
||||||
|
<ButtonSecondary
|
||||||
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
to="https://docs.hoppscotch.io/"
|
||||||
|
blank
|
||||||
|
:title="$t('wiki')"
|
||||||
|
icon="help_outline"
|
||||||
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
data-testid="clear_history"
|
data-testid="clear_history"
|
||||||
@@ -36,6 +44,7 @@
|
|||||||
@click.native="confirmRemove = true"
|
@click.native="confirmRemove = true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div v-for="(entry, index) in filteredHistory" :key="`entry-${index}`">
|
<div v-for="(entry, index) in filteredHistory" :key="`entry-${index}`">
|
||||||
<HistoryRestCard
|
<HistoryRestCard
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
class="px-2"
|
class="px-2"
|
||||||
@change="authActive = !authActive"
|
@change="authActive = !authActive"
|
||||||
>
|
>
|
||||||
{{ authActive ? $t("enabled") : $t("disabled") }}
|
{{ $t("enabled") }}
|
||||||
</SmartToggle>
|
</SmartToggle>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-tippy="{ theme: 'tooltip' }"
|
v-tippy="{ theme: 'tooltip' }"
|
||||||
|
|||||||
@@ -45,10 +45,7 @@
|
|||||||
</tippy>
|
</tippy>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<HttpBodyParameters
|
<HttpBodyParameters v-if="contentType == 'multipart/form-data'" />
|
||||||
v-if="contentType == 'multipart/form-data'"
|
|
||||||
:content-type="contentType"
|
|
||||||
/>
|
|
||||||
<HttpRawBody v-else :content-type="contentType" />
|
<HttpRawBody v-else :content-type="contentType" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
v-for="(header, index) in headers$"
|
v-for="(header, index) in headers$"
|
||||||
:key="`header-${index}`"
|
:key="`header-${index}`"
|
||||||
class="divide-x divide-dividerLight border-b border-dividerLight flex"
|
class="divide-x divide-dividerLight border-b border-dividerLight flex"
|
||||||
:class="{ 'border-t': index == 0 }"
|
|
||||||
>
|
>
|
||||||
<SmartAutoComplete
|
<SmartAutoComplete
|
||||||
:placeholder="$t('count.header', { count: index + 1 })"
|
:placeholder="$t('count.header', { count: index + 1 })"
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ export default defineComponent({
|
|||||||
body: {
|
body: {
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
body: "",
|
body: "",
|
||||||
isRaw: false,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
v-for="(param, index) in params$"
|
v-for="(param, index) in params$"
|
||||||
:key="`param-${index}`"
|
:key="`param-${index}`"
|
||||||
class="divide-x divide-dividerLight border-b border-dividerLight flex"
|
class="divide-x divide-dividerLight border-b border-dividerLight flex"
|
||||||
:class="{ 'border-t': index == 0 }"
|
|
||||||
>
|
>
|
||||||
<SmartEnvInput
|
<SmartEnvInput
|
||||||
v-if="EXPERIMENTAL_URL_BAR_ENABLED"
|
v-if="EXPERIMENTAL_URL_BAR_ENABLED"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
icon="help_outline"
|
icon="help_outline"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="border-b border-dividerLight flex">
|
||||||
<div class="border-r border-dividerLight w-2/3">
|
<div class="border-r border-dividerLight w-2/3">
|
||||||
<SmartJsEditor
|
<SmartJsEditor
|
||||||
v-model="preRequestScript"
|
v-model="preRequestScript"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
justify-between
|
justify-between
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<label for="rawBody">
|
<label class="font-semibold text-secondaryLight">
|
||||||
{{ $t("raw_request_body") }}
|
{{ $t("raw_request_body") }}
|
||||||
</label>
|
</label>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
icon="help_outline"
|
icon="help_outline"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="border-b border-dividerLight flex">
|
||||||
<div class="border-r border-dividerLight w-2/3">
|
<div class="border-r border-dividerLight w-2/3">
|
||||||
<SmartJsEditor
|
<SmartJsEditor
|
||||||
v-model="testScript"
|
v-model="testScript"
|
||||||
|
|||||||
@@ -79,7 +79,6 @@
|
|||||||
border-b border-dividerLight
|
border-b border-dividerLight
|
||||||
flex
|
flex
|
||||||
"
|
"
|
||||||
:class="{ 'border-t': index == 0 }"
|
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
v-model="protocol.value"
|
v-model="protocol.value"
|
||||||
|
|||||||
@@ -268,7 +268,7 @@
|
|||||||
"path": "Path",
|
"path": "Path",
|
||||||
"label": "Label",
|
"label": "Label",
|
||||||
"content_type": "Content Type",
|
"content_type": "Content Type",
|
||||||
"raw_input": "Raw input",
|
"raw": "Raw",
|
||||||
"parameter_list": "Query Parameters",
|
"parameter_list": "Query Parameters",
|
||||||
"body": "Body",
|
"body": "Body",
|
||||||
"request_body": "Request Body",
|
"request_body": "Request Body",
|
||||||
|
|||||||
@@ -14,13 +14,7 @@
|
|||||||
"~/*": ["./*"],
|
"~/*": ["./*"],
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"]
|
||||||
},
|
},
|
||||||
"types": [
|
"types": ["@types/node", "@nuxt/types", "@nuxtjs/i18n", "@nuxtjs/toast"]
|
||||||
"@types/node",
|
|
||||||
"@nuxt/types",
|
|
||||||
"@nuxtjs/i18n",
|
|
||||||
"@nuxtjs/toast",
|
|
||||||
"vue-rx"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", ".nuxt", "dist"]
|
"exclude": ["node_modules", ".nuxt", "dist"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user