diff --git a/packages/hoppscotch-app/components/app/PowerSearchEntry.vue b/packages/hoppscotch-app/components/app/PowerSearchEntry.vue
index 62842e7d0..526e3dbf4 100644
--- a/packages/hoppscotch-app/components/app/PowerSearchEntry.vue
+++ b/packages/hoppscotch-app/components/app/PowerSearchEntry.vue
@@ -33,7 +33,12 @@ import { useI18n } from "~/helpers/utils/composables"
const t = useI18n()
defineProps<{
- shortcut: Object
+ shortcut: {
+ label: string
+ keys: string[]
+ action: string
+ icon: string
+ }
active: Boolean
}>()
diff --git a/packages/hoppscotch-app/components/app/ShortcutsEntry.vue b/packages/hoppscotch-app/components/app/ShortcutsEntry.vue
index 985d226d1..4c303f972 100644
--- a/packages/hoppscotch-app/components/app/ShortcutsEntry.vue
+++ b/packages/hoppscotch-app/components/app/ShortcutsEntry.vue
@@ -19,6 +19,9 @@ import { useI18n } from "~/helpers/utils/composables"
const t = useI18n()
defineProps<{
- shortcut: Object
+ shortcut: {
+ label: string
+ keys: string[]
+ }
}>()
diff --git a/packages/hoppscotch-app/components/app/Sidenav.vue b/packages/hoppscotch-app/components/app/Sidenav.vue
index 452e97d44..a520dafe5 100644
--- a/packages/hoppscotch-app/components/app/Sidenav.vue
+++ b/packages/hoppscotch-app/components/app/Sidenav.vue
@@ -8,9 +8,6 @@
class="nav-link"
tabindex="0"
>
-
- {{ navigation.icon }}
-
diff --git a/packages/hoppscotch-app/components/collections/graphql/Collection.vue b/packages/hoppscotch-app/components/collections/graphql/Collection.vue
index cab06d0e2..52700a9d9 100644
--- a/packages/hoppscotch-app/components/collections/graphql/Collection.vue
+++ b/packages/hoppscotch-app/components/collections/graphql/Collection.vue
@@ -227,10 +227,8 @@ export default defineComponent({
},
dropEvent({ dataTransfer }: any) {
this.dragging = !this.dragging
-
const folderPath = dataTransfer.getData("folderPath")
const requestIndex = dataTransfer.getData("requestIndex")
-
moveGraphqlRequest(folderPath, requestIndex, `${this.collectionIndex}`)
},
},
diff --git a/packages/hoppscotch-app/components/collections/graphql/Folder.vue b/packages/hoppscotch-app/components/collections/graphql/Folder.vue
index 2d0199bdb..7483dc39f 100644
--- a/packages/hoppscotch-app/components/collections/graphql/Folder.vue
+++ b/packages/hoppscotch-app/components/collections/graphql/Folder.vue
@@ -137,7 +137,7 @@
:src="`/images/states/${$colorMode.value}/pack.svg`"
loading="lazy"
class="flex-col object-contain object-center h-16 mb-4 w-16 inline-flex"
- :alt="$t('empty.folder')"
+ :alt="`${$t('empty.folder')}`"
/>
{{ $t("empty.folder") }}
@@ -226,7 +226,6 @@ export default defineComponent({
this.dragging = !this.dragging
const folderPath = dataTransfer.getData("folderPath")
const requestIndex = dataTransfer.getData("requestIndex")
-
moveGraphqlRequest(folderPath, requestIndex, this.folderPath)
},
},
diff --git a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue
index af9b0b251..47fc42daf 100644
--- a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue
+++ b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue
@@ -19,8 +19,10 @@
icon="assignment_returned"
:label="$t('import.from_gist')"
@click.native="
- readCollectionGist
- $refs.options.tippy().hide()
+ () => {
+ readCollectionGist()
+ $refs.options.tippy().hide()
+ }
"
/>
{
+ createCollectionGist()
+ $refs.options.tippy().hide()
+ }
"
/>
diff --git a/packages/hoppscotch-app/components/collections/my/Request.vue b/packages/hoppscotch-app/components/collections/my/Request.vue
index 676aca73c..50122331b 100644
--- a/packages/hoppscotch-app/components/collections/my/Request.vue
+++ b/packages/hoppscotch-app/components/collections/my/Request.vue
@@ -71,38 +71,44 @@
svg="edit"
:label="$t('action.edit')"
@click.native="
- $emit('edit-request', {
- collectionIndex,
- folderIndex,
- folderName,
- request,
- requestIndex,
- folderPath,
- })
- $refs.options.tippy().hide()
+ () => {
+ $emit('edit-request', {
+ collectionIndex,
+ folderIndex,
+ folderName,
+ request,
+ requestIndex,
+ folderPath,
+ })
+ $refs.options.tippy().hide()
+ }
"
/>
{
+ $emit('duplicate-request', {
+ collectionIndex,
+ folderIndex,
+ folderName,
+ request,
+ requestIndex,
+ folderPath,
+ })
+ $refs.options.tippy().hide()
+ }
"
/>
{
+ confirmRemove = true
+ $refs.options.tippy().hide()
+ }
"
/>
diff --git a/packages/hoppscotch-app/components/environments/ImportExport.vue b/packages/hoppscotch-app/components/environments/ImportExport.vue
index c7d467376..79177067a 100644
--- a/packages/hoppscotch-app/components/environments/ImportExport.vue
+++ b/packages/hoppscotch-app/components/environments/ImportExport.vue
@@ -19,8 +19,10 @@
icon="assignment_returned"
:label="$t('import.from_gist')"
@click.native="
- readEnvironmentGist
- $refs.options.tippy().hide()
+ () => {
+ readEnvironmentGist()
+ $refs.options.tippy().hide()
+ }
"
/>
{
+ createEnvironmentGist()
+ $refs.options.tippy().hide()
+ }
"
/>
diff --git a/packages/hoppscotch-app/components/environments/index.vue b/packages/hoppscotch-app/components/environments/index.vue
index f43dd09e0..411ccfee0 100644
--- a/packages/hoppscotch-app/components/environments/index.vue
+++ b/packages/hoppscotch-app/components/environments/index.vue
@@ -92,7 +92,7 @@
:src="`/images/states/${$colorMode.value}/blockchain.svg`"
loading="lazy"
class="flex-col object-contain object-center h-16 my-4 w-16 inline-flex"
- :alt="$t('empty.environments')"
+ :alt="`${$t('empty.environments')}`"
/>
{{ $t("empty.environments") }}
diff --git a/packages/hoppscotch-app/components/http/Authorization.vue b/packages/hoppscotch-app/components/http/Authorization.vue
index fbc74ebba..6f6471362 100644
--- a/packages/hoppscotch-app/components/http/Authorization.vue
+++ b/packages/hoppscotch-app/components/http/Authorization.vue
@@ -156,17 +156,15 @@
-
-
- {{ $t("helpers.authorization") }}
-
-
+
+ {{ $t("helpers.authorization") }}
+
@@ -182,17 +180,15 @@
-
-
- {{ $t("helpers.authorization") }}
-
-
+
+ {{ $t("helpers.authorization") }}
+
-
-
- {{ $t("helpers.authorization") }}
-
-
+
+ {{ $t("helpers.authorization") }}
+
-
-
- {{ $t("helpers.authorization") }}
-
-
+
+ {{ $t("helpers.authorization") }}
+
@@ -305,7 +307,7 @@ import {
HoppRESTAuthBasic,
HoppRESTAuthBearer,
HoppRESTAuthOAuth2,
- HoppRESTAuthApiKey,
+ HoppRESTAuthAPIKey,
} from "@hoppscotch/data"
import { pluckRef, useStream } from "~/helpers/utils/composables"
import { restAuth$, setRESTAuth } from "~/newstore/RESTSession"
@@ -331,9 +333,15 @@ export default defineComponent({
const basicPassword = pluckRef(auth as Ref, "password")
const bearerToken = pluckRef(auth as Ref, "token")
const oauth2Token = pluckRef(auth as Ref, "token")
- const apiKey = pluckRef(auth as Ref, "key")
- const apiValue = pluckRef(auth as Ref, "value")
- const addTo = pluckRef(auth as Ref, "addTo")
+ const apiKey = pluckRef(auth as Ref, "key")
+ const apiValue = pluckRef(auth as Ref, "value")
+ const addTo = pluckRef(auth as Ref, "addTo")
+ if (typeof addTo.value === "undefined") {
+ addTo.value = "Headers"
+ apiKey.value = ""
+ apiValue.value = ""
+ }
+
const URLExcludes = useSetting("URL_EXCLUDES")
const clearContent = () => {
auth.value = {
diff --git a/packages/hoppscotch-app/components/http/Body.vue b/packages/hoppscotch-app/components/http/Body.vue
index cfa80ab4a..3128bab8a 100644
--- a/packages/hoppscotch-app/components/http/Body.vue
+++ b/packages/hoppscotch-app/components/http/Body.vue
@@ -59,7 +59,7 @@
:src="`/images/states/${$colorMode.value}/upload_single_file.svg`"
loading="lazy"
class="flex-col object-contain object-center h-16 my-4 w-16 inline-flex"
- :alt="$t('empty.body')"
+ :alt="`${$t('empty.body')}`"
/>
{{ $t("empty.body") }}
diff --git a/packages/hoppscotch-app/components/http/TestResultReport.vue b/packages/hoppscotch-app/components/http/TestResultReport.vue
index bce7a045e..a58e8775a 100644
--- a/packages/hoppscotch-app/components/http/TestResultReport.vue
+++ b/packages/hoppscotch-app/components/http/TestResultReport.vue
@@ -20,12 +20,16 @@