From a517b571d652c7ddcc389323c944eed44794ee4c Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Tue, 21 Dec 2021 12:57:23 +0530 Subject: [PATCH] refactor: improve import export scripting in environment and graphql --- .../components/collections/ImportExport.vue | 31 +- .../collections/graphql/ImportExport.vue | 516 ++++++++---------- .../components/environments/ImportExport.vue | 389 ++++++++----- 3 files changed, 479 insertions(+), 457 deletions(-) diff --git a/packages/hoppscotch-app/components/collections/ImportExport.vue b/packages/hoppscotch-app/components/collections/ImportExport.vue index 427387d38..eeb8f9181 100644 --- a/packages/hoppscotch-app/components/collections/ImportExport.vue +++ b/packages/hoppscotch-app/components/collections/ImportExport.vue @@ -1,7 +1,7 @@
@@ -168,7 +166,7 @@ @@ -347,6 +345,7 @@ type PostmanCollection = { }[] folders?: any } + const parsePostmanCollection = ({ info, name, item }: PostmanCollection) => { const hoppscotchCollection: Collection = makeCollection({ name: "", diff --git a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue index 0dcd087cd..749de4c2a 100644 --- a/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue +++ b/packages/hoppscotch-app/components/collections/graphql/ImportExport.vue @@ -1,7 +1,7 @@ - diff --git a/packages/hoppscotch-app/components/environments/ImportExport.vue b/packages/hoppscotch-app/components/environments/ImportExport.vue index 48dbcb7e8..5a4e2e28d 100644 --- a/packages/hoppscotch-app/components/environments/ImportExport.vue +++ b/packages/hoppscotch-app/components/environments/ImportExport.vue @@ -1,7 +1,7 @@ -