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
chore: add json file extension (#1889)
Chun-Hao Lien2f91d25ed4f6
diff --git a/packages/hoppscotch-app/components/collections/ImportExport.vue b/packages/hoppscotch-app/components/collections/ImportExport.vueindex 7a686d040..e12fe5947 100644--- a/packages/hoppscotch-app/components/collections/ImportExport.vue+++ b/packages/hoppscotch-app/components/collections/ImportExport.vue@@ -412,7 +412,7 @@ export default defineComponent({const url = URL.createObjectURL(file)a.href = url// TODO get uri from meta- a.download = `${url.split("/").pop().split("#")[0].split("?")[0]}`+ a.download = `${url.split("/").pop().split("#")[0].split("?")[0]}.json`document.body.appendChild(a)a.click()this.$toast.success(this.$t("state.download_started"), {diff --git a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vueindex 925850000..cab3d4b87 100644--- a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue+++ b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue@@ -249,7 +249,7 @@ export default defineComponent({const url = URL.createObjectURL(file)a.href = url// TODO get uri from meta- a.download = `${url.split("/").pop().split("#")[0].split("?")[0]}`+ a.download = `${url.split("/").pop().split("#")[0].split("?")[0]}.json`document.body.appendChild(a)a.click()this.$toast.success(this.$t("state.download_started"), {diff --git a/packages/hoppscotch-app/components/environments/ImportExport.vue b/packages/hoppscotch-app/components/environments/ImportExport.vueindex 994fedc16..c607e7ab5 100644--- a/packages/hoppscotch-app/components/environments/ImportExport.vue+++ b/packages/hoppscotch-app/components/environments/ImportExport.vue@@ -227,7 +227,7 @@ export default defineComponent({const url = URL.createObjectURL(file)a.href = url// TODO get uri from meta- a.download = `${url.split("/").pop().split("#")[0].split("?")[0]}`+ a.download = `${url.split("/").pop().split("#")[0].split("?")[0]}.json`document.body.appendChild(a)a.click()this.$toast.success(this.$t("state.download_started"), {