Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
refactor: minor ui improvements
liyasthomas2051b8788a92
diff --git a/assets/scss/styles.scss b/assets/scss/styles.scssindex 60442a765..141509370 100644--- a/assets/scss/styles.scss+++ b/assets/scss/styles.scss@@ -156,7 +156,7 @@ a {.tippy-content > div {@apply flex flex-col;- @apply max-h-56;+ @apply max-h-46;@apply items-stretch;@apply overflow-y-auto;diff --git a/components/collections/graphql/index.vue b/components/collections/graphql/index.vueindex 5b53beb50..3ed312ee5 100644--- a/components/collections/graphql/index.vue+++ b/components/collections/graphql/index.vue@@ -32,13 +32,22 @@class="rounded-none"@click.native="displayModalAdd(true)"/>- <ButtonSecondary- v-if="showCollActions"- v-tippy="{ theme: 'tooltip' }"- :title="$t('modal.import_export')"- icon="import_export"- @click.native="displayModalImportExport(true)"- />+ <div class="flex">+ <ButtonSecondary+ v-tippy="{ theme: 'tooltip' }"+ to="https://docs.hoppscotch.io/"+ blank+ :title="$t('wiki')"+ icon="help_outline"+ />+ <ButtonSecondary+ v-if="showCollActions"+ v-tippy="{ theme: 'tooltip' }"+ :title="$t('modal.import_export')"+ icon="import_export"+ @click.native="displayModalImportExport(true)"+ />+ </div></div></div><div class="flex-col">diff --git a/components/environments/index.vue b/components/environments/index.vueindex a8b7d4435..476476f24 100644--- a/components/environments/index.vue+++ b/components/environments/index.vue@@ -45,12 +45,21 @@class="rounded-none"@click.native="displayModalAdd(true)"/>- <ButtonSecondary- v-tippy="{ theme: 'tooltip' }"- icon="import_export"- :title="$t('modal.import_export')"- @click.native="displayModalImportExport(true)"- />+ <div class="flex">+ <ButtonSecondary+ v-tippy="{ theme: 'tooltip' }"+ to="https://docs.hoppscotch.io/"+ blank+ :title="$t('wiki')"+ icon="help_outline"+ />+ <ButtonSecondary+ v-tippy="{ theme: 'tooltip' }"+ icon="import_export"+ :title="$t('modal.import_export')"+ @click.native="displayModalImportExport(true)"+ />+ </div></div></div><EnvironmentsAdddiff --git a/components/graphql/RequestOptions.vue b/components/graphql/RequestOptions.vueindex b0c9f03f8..845003c39 100644--- a/components/graphql/RequestOptions.vue+++ b/components/graphql/RequestOptions.vue@@ -152,7 +152,6 @@border-b border-dividerLightflex"- :class="{ 'border-t': index == 0 }"><SmartAutoComplete:placeholder="$t('count.header', { count: index + 1 })"@@ -333,6 +332,7 @@ export default defineComponent({const showSaveRequestModal = ref(false)const schema = useReadonlyStream(props.conn.schemaString$, "")+watch(headers,() => {diff --git a/components/graphql/Sidebar.vue b/components/graphql/Sidebar.vueindex c5a55d5a9..61340925c 100644--- a/components/graphql/Sidebar.vue+++ b/components/graphql/Sidebar.vue@@ -6,7 +6,7 @@<divclass="bg-primaryLight- flex flex-col+ flextop-sidebarPrimaryStickyFoldz-10sticky@@ -29,11 +29,19 @@"/></div>+ <div class="flex">+ <ButtonSecondary+ v-tippy="{ theme: 'tooltip' }"+ to="https://docs.hoppscotch.io/"+ blank+ :title="$t('wiki')"+ icon="help_outline"+ />+ </div></div><SmartTabsref="gqlTabs"- styles="- border-t border-dividerLight sticky z-8 top-sidebarSecondaryStickyFold"+ styles="border-t border-dividerLight sticky z-10 top-sidebarSecondaryStickyFold"><div class="gqlTabs"><SmartTab@@ -153,6 +161,13 @@{{ $t("schema") }}</label><div class="flex">+ <ButtonSecondary+ v-tippy="{ theme: 'tooltip' }"+ to="https://docs.hoppscotch.io/"+ blank+ :title="$t('wiki')"+ icon="help_outline"+ /><ButtonSecondaryref="downloadSchema"v-tippy="{ theme: 'tooltip' }"diff --git a/components/history/index.vue b/components/history/index.vueindex 58a9874db..73cf4a8ed 100644--- a/components/history/index.vue+++ b/components/history/index.vue@@ -27,14 +27,23 @@:placeholder="$t('search')"/></div>- <ButtonSecondary- v-tippy="{ theme: 'tooltip' }"- data-testid="clear_history"- :disabled="history.length === 0"- icon="clear_all"- :title="$t('clear_all')"- @click.native="confirmRemove = true"- />+ <div class="flex">+ <ButtonSecondary+ v-tippy="{ theme: 'tooltip' }"+ to="https://docs.hoppscotch.io/"+ blank+ :title="$t('wiki')"+ icon="help_outline"+ />+ <ButtonSecondary+ v-tippy="{ theme: 'tooltip' }"+ data-testid="clear_history"+ :disabled="history.length === 0"+ icon="clear_all"+ :title="$t('clear_all')"+ @click.native="confirmRemove = true"+ />+ </div></div><div class="flex flex-col"><div v-for="(entry, index) in filteredHistory" :key="`entry-${index}`">diff --git a/components/http/Authorization.vue b/components/http/Authorization.vueindex d204d17bf..a872246db 100644--- a/components/http/Authorization.vue+++ b/components/http/Authorization.vue@@ -66,7 +66,7 @@class="px-2"@change="authActive = !authActive">- {{ authActive ? $t("enabled") : $t("disabled") }}+ {{ $t("enabled") }}</SmartToggle><ButtonSecondaryv-tippy="{ theme: 'tooltip' }"diff --git a/components/http/Body.vue b/components/http/Body.vueindex 48aebc9d5..2988c7d28 100644--- a/components/http/Body.vue+++ b/components/http/Body.vue@@ -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>diff --git a/components/http/Headers.vue b/components/http/Headers.vueindex e8f20ec93..95a42efb7 100644--- a/components/http/Headers.vue+++ b/components/http/Headers.vue@@ -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 })"diff --git a/components/http/ImportCurl.vue b/components/http/ImportCurl.vueindex 32e6910fc..8613170c8 100644--- a/components/http/ImportCurl.vue+++ b/components/http/ImportCurl.vue@@ -119,7 +119,6 @@ export default defineComponent({body: {contentType: "application/json",body: "",- isRaw: false,},}))diff --git a/components/http/Parameters.vue b/components/http/Parameters.vueindex c00ae7237..98d5a9901 100644--- a/components/http/Parameters.vue+++ b/components/http/Parameters.vue@@ -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 }"><SmartEnvInputv-if="EXPERIMENTAL_URL_BAR_ENABLED"diff --git a/components/http/PreRequestScript.vue b/components/http/PreRequestScript.vueindex a4e705ccd..9b10cfced 100644--- a/components/http/PreRequestScript.vue+++ b/components/http/PreRequestScript.vue@@ -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"><SmartJsEditorv-model="preRequestScript"diff --git a/components/http/RawBody.vue b/components/http/RawBody.vueindex 692ec6cad..6c04a6f1a 100644--- a/components/http/RawBody.vue+++ b/components/http/RawBody.vue@@ -13,7 +13,7 @@justify-between">- <label for="rawBody">+ <label class="font-semibold text-secondaryLight">{{ $t("raw_request_body") }}</label><div class="flex">diff --git a/components/http/Tests.vue b/components/http/Tests.vueindex a665e0c10..e22a17e0e 100644--- a/components/http/Tests.vue+++ b/components/http/Tests.vue@@ -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"><SmartJsEditorv-model="testScript"diff --git a/components/realtime/Websocket.vue b/components/realtime/Websocket.vueindex 37e9fcf4d..8db948ff1 100644--- a/components/realtime/Websocket.vue+++ b/components/realtime/Websocket.vue@@ -79,7 +79,6 @@border-b border-dividerLightflex"- :class="{ 'border-t': index == 0 }"><inputv-model="protocol.value"diff --git a/lang/en-US.json b/lang/en-US.jsonindex 95f29caba..90ee05cdb 100644--- a/lang/en-US.json+++ b/lang/en-US.json@@ -268,7 +268,7 @@"path": "Path","label": "Label","content_type": "Content Type",- "raw_input": "Raw input",+ "raw": "Raw","parameter_list": "Query Parameters","body": "Body","request_body": "Request Body",diff --git a/tsconfig.json b/tsconfig.jsonindex ec3fa80a9..0f427aa8e 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -14,13 +14,7 @@"~/*": ["./*"],"@/*": ["./*"]},- "types": [- "@types/node",- "@nuxt/types",- "@nuxtjs/i18n",- "@nuxtjs/toast",- "vue-rx"- ]+ "types": ["@types/node", "@nuxt/types", "@nuxtjs/i18n", "@nuxtjs/toast"]},"exclude": ["node_modules", ".nuxt", "dist"]}