Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Merge branch 'main' into feat/short-code

liyasthomas56cdb7977399
diff --cc packages/hoppscotch-app/components/http/Request.vue
index 2a2091a5d,d12101f7b..b692a8e00
--- a/packages/hoppscotch-app/components/http/Request.vue
+++ b/packages/hoppscotch-app/components/http/Request.vue
@@@ -208,9 -208,8 +208,9 @@@
</template>
<script setup lang="ts">
- import { computed, ref, useContext, watch } from "@nuxtjs/composition-api"
+ import { computed, ref, watch } from "@nuxtjs/composition-api"
import { isRight } from "fp-ts/lib/Either"
+import * as E from "fp-ts/Either"
import {
updateRESTResponse,
restEndpoint$,
@@@ -235,8 -236,9 +237,10 @@@ import { useSetting } from "~/newstore/
import { overwriteRequestTeams } from "~/helpers/teams/utils"
import { apolloClient } from "~/helpers/apollo"
import useWindowSize from "~/helpers/utils/useWindowSize"
+import { createShortcode } from "~/helpers/backend/mutations/Shortcode"
+ const t = useI18n()
+
const methods = [
"GET",
"POST",
@@@ -371,12 -341,8 +372,12 @@@ const copyShareLink = (shareLink: strin
.then(() => {})
.catch(() => {})
} else {
- copyToClipboard(window.location.href)
- toast.success(`${t("state.copied_to_clipboard")}`)
+ copyLinkIcon.value = "check"
+ copyToClipboard(`https://hopp.sh/r${shareLink}`)
- $toast.success(`${t("state.copied_to_clipboard")}`, {
++ toast.success(`${t("state.copied_to_clipboard")}`, {
+ icon: "content_paste",
+ })
+ setTimeout(() => (copyLinkIcon.value = "copy"), 2000)
}
}
diff --cc packages/hoppscotch-app/locales/it.json
index 39f3541e6,2ab755504..a7733227f
--- a/packages/hoppscotch-app/locales/it.json
+++ b/packages/hoppscotch-app/locales/it.json
@@@ -170,11 -170,9 +170,11 @@@
"empty_req_name": "Nome richiesta vuoto",
"f12_details": "(F12 per i dettagli)",
"gql_prettify_invalid_query": "Impossibile abbellire una query non valida, risolvere gli errori di sintassi della query e riprovare",
- "incorrect_email": "Incorrect email",
+ "incorrect_email": "Indirizzo email errato",
+ "invalid_link": "Invalid link",
+ "invalid_link_description": "The link you clicked is invalid or expired.",
- "json_prettify_invalid_body": "Impossibile abbellire un corpo non valido, risolvere gli errori di sintassi json e riprovare",
- "network_error": "There seems to be a network error. Please try again.",
+ "json_prettify_invalid_body": "Impossibile abbellire un corpo non valido, risolvere gli errori di sintassi JSON e riprovare",
+ "network_error": "Sembra ci sia un problema di rete. Per favore prova di nuovo.",
"network_fail": "Impossibile inviare la richiesta",
"no_duration": "Nessuna durata",
"something_went_wrong": "Qualcosa è andato storto"