From f348023f27c9f00be5363b65d99db33c263f0d0d Mon Sep 17 00:00:00 2001 From: Forrest Date: Tue, 29 Aug 2023 20:34:07 -0400 Subject: [PATCH 1/2] feat(CurrentImageProvider): inject current image Decouples the current image from the current selection. --- src/components/CurrentImageProvider.vue | 31 +++++++ src/components/LayoutGrid.vue | 34 ++++++-- src/composables/useCurrentImage.ts | 109 ++++++++++++------------ 3 files changed, 112 insertions(+), 62 deletions(-) create mode 100644 src/components/CurrentImageProvider.vue diff --git a/src/components/CurrentImageProvider.vue b/src/components/CurrentImageProvider.vue new file mode 100644 index 000000000..30c36a965 --- /dev/null +++ b/src/components/CurrentImageProvider.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/components/LayoutGrid.vue b/src/components/LayoutGrid.vue index 4325f18df..012e27ee3 100644 --- a/src/components/LayoutGrid.vue +++ b/src/components/LayoutGrid.vue @@ -7,12 +7,14 @@
- + + +
@@ -21,6 +23,9 @@