From d1d654ebac2d51e3841675faeb56480e440f622f Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 5 Mar 2024 18:08:09 +0100 Subject: Initial commit --- frontend/src/lib/toolbar/DeleteSelection.svelte | 26 +++++++++ frontend/src/lib/toolbar/EditSelection.svelte | 29 ++++++++++ frontend/src/lib/toolbar/FilterBookmarked.svelte | 24 +++++++++ frontend/src/lib/toolbar/FilterFavourites.svelte | 24 +++++++++ frontend/src/lib/toolbar/FilterOrganized.svelte | 30 +++++++++++ frontend/src/lib/toolbar/MarkBookmark.svelte | 27 ++++++++++ frontend/src/lib/toolbar/MarkFavourite.svelte | 27 ++++++++++ frontend/src/lib/toolbar/MarkOrganized.svelte | 27 ++++++++++ frontend/src/lib/toolbar/MarkSelection.svelte | 24 +++++++++ frontend/src/lib/toolbar/Search.svelte | 21 ++++++++ frontend/src/lib/toolbar/SelectItems.svelte | 19 +++++++ frontend/src/lib/toolbar/SelectSort.svelte | 61 ++++++++++++++++++++++ frontend/src/lib/toolbar/SelectionControls.svelte | 57 ++++++++++++++++++++ .../src/lib/toolbar/ToggleAdvancedFilters.svelte | 40 ++++++++++++++ frontend/src/lib/toolbar/Toolbar.svelte | 42 +++++++++++++++ 15 files changed, 478 insertions(+) create mode 100644 frontend/src/lib/toolbar/DeleteSelection.svelte create mode 100644 frontend/src/lib/toolbar/EditSelection.svelte create mode 100644 frontend/src/lib/toolbar/FilterBookmarked.svelte create mode 100644 frontend/src/lib/toolbar/FilterFavourites.svelte create mode 100644 frontend/src/lib/toolbar/FilterOrganized.svelte create mode 100644 frontend/src/lib/toolbar/MarkBookmark.svelte create mode 100644 frontend/src/lib/toolbar/MarkFavourite.svelte create mode 100644 frontend/src/lib/toolbar/MarkOrganized.svelte create mode 100644 frontend/src/lib/toolbar/MarkSelection.svelte create mode 100644 frontend/src/lib/toolbar/Search.svelte create mode 100644 frontend/src/lib/toolbar/SelectItems.svelte create mode 100644 frontend/src/lib/toolbar/SelectSort.svelte create mode 100644 frontend/src/lib/toolbar/SelectionControls.svelte create mode 100644 frontend/src/lib/toolbar/ToggleAdvancedFilters.svelte create mode 100644 frontend/src/lib/toolbar/Toolbar.svelte (limited to 'frontend/src/lib/toolbar') diff --git a/frontend/src/lib/toolbar/DeleteSelection.svelte b/frontend/src/lib/toolbar/DeleteSelection.svelte new file mode 100644 index 0000000..7459a87 --- /dev/null +++ b/frontend/src/lib/toolbar/DeleteSelection.svelte @@ -0,0 +1,26 @@ + + + diff --git a/frontend/src/lib/toolbar/EditSelection.svelte b/frontend/src/lib/toolbar/EditSelection.svelte new file mode 100644 index 0000000..50e6656 --- /dev/null +++ b/frontend/src/lib/toolbar/EditSelection.svelte @@ -0,0 +1,29 @@ + + + diff --git a/frontend/src/lib/toolbar/FilterBookmarked.svelte b/frontend/src/lib/toolbar/FilterBookmarked.svelte new file mode 100644 index 0000000..bcbe295 --- /dev/null +++ b/frontend/src/lib/toolbar/FilterBookmarked.svelte @@ -0,0 +1,24 @@ + + + diff --git a/frontend/src/lib/toolbar/FilterFavourites.svelte b/frontend/src/lib/toolbar/FilterFavourites.svelte new file mode 100644 index 0000000..6591cef --- /dev/null +++ b/frontend/src/lib/toolbar/FilterFavourites.svelte @@ -0,0 +1,24 @@ + + + diff --git a/frontend/src/lib/toolbar/FilterOrganized.svelte b/frontend/src/lib/toolbar/FilterOrganized.svelte new file mode 100644 index 0000000..754e663 --- /dev/null +++ b/frontend/src/lib/toolbar/FilterOrganized.svelte @@ -0,0 +1,30 @@ + + + diff --git a/frontend/src/lib/toolbar/MarkBookmark.svelte b/frontend/src/lib/toolbar/MarkBookmark.svelte new file mode 100644 index 0000000..792b84f --- /dev/null +++ b/frontend/src/lib/toolbar/MarkBookmark.svelte @@ -0,0 +1,27 @@ + + + + diff --git a/frontend/src/lib/toolbar/MarkFavourite.svelte b/frontend/src/lib/toolbar/MarkFavourite.svelte new file mode 100644 index 0000000..42eaa39 --- /dev/null +++ b/frontend/src/lib/toolbar/MarkFavourite.svelte @@ -0,0 +1,27 @@ + + + + diff --git a/frontend/src/lib/toolbar/MarkOrganized.svelte b/frontend/src/lib/toolbar/MarkOrganized.svelte new file mode 100644 index 0000000..4dc3a83 --- /dev/null +++ b/frontend/src/lib/toolbar/MarkOrganized.svelte @@ -0,0 +1,27 @@ + + + + diff --git a/frontend/src/lib/toolbar/MarkSelection.svelte b/frontend/src/lib/toolbar/MarkSelection.svelte new file mode 100644 index 0000000..27eb2c7 --- /dev/null +++ b/frontend/src/lib/toolbar/MarkSelection.svelte @@ -0,0 +1,24 @@ + + +
+ + + +
+ +
+
+
diff --git a/frontend/src/lib/toolbar/Search.svelte b/frontend/src/lib/toolbar/Search.svelte new file mode 100644 index 0000000..f033258 --- /dev/null +++ b/frontend/src/lib/toolbar/Search.svelte @@ -0,0 +1,21 @@ + + + $filter.apply($page.url.searchParams) }} + use:accelerator={'F'} +/> diff --git a/frontend/src/lib/toolbar/SelectItems.svelte b/frontend/src/lib/toolbar/SelectItems.svelte new file mode 100644 index 0000000..7ff339e --- /dev/null +++ b/frontend/src/lib/toolbar/SelectItems.svelte @@ -0,0 +1,19 @@ + + + diff --git a/frontend/src/lib/toolbar/SelectSort.svelte b/frontend/src/lib/toolbar/SelectSort.svelte new file mode 100644 index 0000000..fdcb057 --- /dev/null +++ b/frontend/src/lib/toolbar/SelectSort.svelte @@ -0,0 +1,61 @@ + + +
+ + + {#if $sort.on === 'RANDOM'} + + {/if} +
diff --git a/frontend/src/lib/toolbar/SelectionControls.svelte b/frontend/src/lib/toolbar/SelectionControls.svelte new file mode 100644 index 0000000..4d309df --- /dev/null +++ b/frontend/src/lib/toolbar/SelectionControls.svelte @@ -0,0 +1,57 @@ + + +
+ + {#if $selection.active} +
+ + +
+ {/if} +
+{#if $selection.size > 0} +
+ +
+{/if} diff --git a/frontend/src/lib/toolbar/ToggleAdvancedFilters.svelte b/frontend/src/lib/toolbar/ToggleAdvancedFilters.svelte new file mode 100644 index 0000000..2e7869f --- /dev/null +++ b/frontend/src/lib/toolbar/ToggleAdvancedFilters.svelte @@ -0,0 +1,40 @@ + + +
+ + {#if $filter.include.size + $filter.exclude.size > 0} + + {/if} +
diff --git a/frontend/src/lib/toolbar/Toolbar.svelte b/frontend/src/lib/toolbar/Toolbar.svelte new file mode 100644 index 0000000..e87d731 --- /dev/null +++ b/frontend/src/lib/toolbar/Toolbar.svelte @@ -0,0 +1,42 @@ + + + + +
+
+
+ +
+
+ +
+
+ +
+
+ {#if $toolbar.expand} +
+ +
+ {/if} +
-- cgit v1.2.3-2-gb3c3