From 3d7a76bced3e935280dbbd26d693f1606136e262 Mon Sep 17 00:00:00 2001 From: James George Date: Tue, 19 Dec 2023 17:37:35 +0530 Subject: [PATCH] chore(common): Gist export flow updates (#3665) --- packages/hoppscotch-common/locales/en.json | 6 ++- .../components/collections/ImportExport.vue | 36 ++++++++++++---- .../collections/graphql/ImportExport.vue | 43 ++++++++++++------- .../components/environments/ImportExport.vue | 33 ++++++++++---- .../export/environmentsGistExport.ts | 18 -------- .../src/helpers/import-export/export/gist.ts | 19 ++++++++ .../import-export/export/gistExport.ts | 22 ---------- .../export/gqlCollectionsGistExporter.ts | 18 -------- 8 files changed, 102 insertions(+), 93 deletions(-) delete mode 100644 packages/hoppscotch-common/src/helpers/import-export/export/environmentsGistExport.ts create mode 100644 packages/hoppscotch-common/src/helpers/import-export/export/gist.ts delete mode 100644 packages/hoppscotch-common/src/helpers/import-export/export/gistExport.ts delete mode 100644 packages/hoppscotch-common/src/helpers/import-export/export/gqlCollectionsGistExporter.ts diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 8852e6741..629c4d1c2 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -313,10 +313,12 @@ "export": { "as_json": "Export as JSON", "create_secret_gist": "Create secret Gist", + "create_secret_gist_tooltip_text": "Export as secret Gist", "failed": "Something went wrong while exporting", - "gist_created": "Gist created", + "secret_gist_success": "Successfully exported as secret Gist", "require_github": "Login with GitHub to create secret gist", - "title": "Export" + "title": "Export", + "success": "Successfully exported" }, "filter": { "all": "All", diff --git a/packages/hoppscotch-common/src/components/collections/ImportExport.vue b/packages/hoppscotch-common/src/components/collections/ImportExport.vue index 6413d310a..64ae1d361 100644 --- a/packages/hoppscotch-common/src/components/collections/ImportExport.vue +++ b/packages/hoppscotch-common/src/components/collections/ImportExport.vue @@ -9,7 +9,10 @@