From 0cce777f15fe0eb4dbd76e6e0602fb5185a8d515 Mon Sep 17 00:00:00 2001 From: Robert Goniszewski Date: Thu, 31 Oct 2024 22:11:34 +0100 Subject: [PATCH] feat(import): refactor bookmark import to handle file content directly Signed-off-by: Robert Goniszewski --- src/lib/components/BulkList/BulkList.svelte | 12 +-------- .../components/Pagination/Pagination.svelte | 4 +-- src/lib/stores/import-bookmarks.store.ts | 4 ++- src/lib/types/BookmarkImport.type.ts | 1 + src/lib/types/common/BulkList.type.ts | 2 +- .../bookmark-import/netscape.importer.ts | 27 ++++++------------- src/lib/utils/import-bookmarks.ts | 6 ++--- 7 files changed, 19 insertions(+), 37 deletions(-) diff --git a/src/lib/components/BulkList/BulkList.svelte b/src/lib/components/BulkList/BulkList.svelte index 12e36c5..4ba2c89 100644 --- a/src/lib/components/BulkList/BulkList.svelte +++ b/src/lib/components/BulkList/BulkList.svelte @@ -11,19 +11,9 @@ const selectAllItems = ({ target }: Event) => { importBookmarkStore.setSelectStatusForAll(target.checked); } }; - -const removeSelectedItems = () => { - importBookmarkStore.removeSelected(); -}; -
-
- -
+
diff --git a/src/lib/components/Pagination/Pagination.svelte b/src/lib/components/Pagination/Pagination.svelte index 886715a..ece99e7 100644 --- a/src/lib/components/Pagination/Pagination.svelte +++ b/src/lib/components/Pagination/Pagination.svelte @@ -1,6 +1,5 @@