From 5043606701c80281adc1c8db1378947452b6c013 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 20 Jan 2022 23:55:23 +0530 Subject: [PATCH] refactor: move collection data structures and utility functions to hopp/data --- .../components/collections/ImportExport.vue | 10 +- .../components/collections/graphql/Add.vue | 4 +- .../hoppscotch-app/helpers/fb/collections.ts | 6 +- .../helpers/import-export/export/hopp.ts | 5 +- .../helpers/import-export/export/index.ts | 5 +- .../helpers/import-export/import/gist.ts | 7 +- .../helpers/import-export/import/hopp.ts | 2 +- .../helpers/import-export/import/insomnia.ts | 5 +- .../helpers/import-export/import/openapi.ts | 5 +- .../helpers/import-export/import/postman.ts | 5 +- .../hoppscotch-app/newstore/collections.ts | 112 +++++------------- .../newstore/localpersistence.ts | 4 +- packages/hoppscotch-app/package.json | 2 +- packages/hoppscotch-data/package.json | 2 +- .../hoppscotch-data/src/collection/index.ts | 85 +++++++++++++ packages/hoppscotch-data/src/index.ts | 1 + pnpm-lock.yaml | 20 ++-- 17 files changed, 156 insertions(+), 124 deletions(-) create mode 100644 packages/hoppscotch-data/src/collection/index.ts diff --git a/packages/hoppscotch-app/components/collections/ImportExport.vue b/packages/hoppscotch-app/components/collections/ImportExport.vue index d6d5895d8..1f6d4a05c 100644 --- a/packages/hoppscotch-app/components/collections/ImportExport.vue +++ b/packages/hoppscotch-app/components/collections/ImportExport.vue @@ -164,7 +164,7 @@