From 58b805d783fd04091aff418f87aa47c4c65fcdfd Mon Sep 17 00:00:00 2001 From: valere Date: Mon, 23 Dec 2024 23:00:00 +0100 Subject: [PATCH] feat(wip): composabel viewer --- ...toryArticle.vue => StoryArticleBottom.vue} | 0 src/components/StoryArticleTop.vue | 8 ++ src/components/StoryContainer.vue | 8 +- src/components/player/StoryEditor.vue | 77 +++++++++---------- src/composables/Viewer.ts | 66 +++++++++++++++- 5 files changed, 112 insertions(+), 47 deletions(-) rename src/components/{StoryArticle.vue => StoryArticleBottom.vue} (100%) create mode 100644 src/components/StoryArticleTop.vue diff --git a/src/components/StoryArticle.vue b/src/components/StoryArticleBottom.vue similarity index 100% rename from src/components/StoryArticle.vue rename to src/components/StoryArticleBottom.vue diff --git a/src/components/StoryArticleTop.vue b/src/components/StoryArticleTop.vue new file mode 100644 index 0000000..76cf23e --- /dev/null +++ b/src/components/StoryArticleTop.vue @@ -0,0 +1,8 @@ + + + diff --git a/src/components/StoryContainer.vue b/src/components/StoryContainer.vue index 82adce6..9770b3c 100644 --- a/src/components/StoryContainer.vue +++ b/src/components/StoryContainer.vue @@ -1,13 +1,14 @@ @@ -17,7 +18,8 @@ import '@/assets/plugins/openseadragon-scalebar.js' import '@/assets/plugins/openseadragon-bookmark-url.js' import { onMounted, ref, provide, onUnmounted } from 'vue' import type { Story, ViewerConfiguration } from '@/types/virages' -import Article from './StoryArticle.vue' +import ArticleTop from './StoryArticleTop.vue' +import ArticleBottom from './StoryArticleBottom.vue' import Editor from './player/StoryEditor.vue' const props = defineProps<{ story: Story }>() diff --git a/src/components/player/StoryEditor.vue b/src/components/player/StoryEditor.vue index 7398769..485103c 100644 --- a/src/components/player/StoryEditor.vue +++ b/src/components/player/StoryEditor.vue @@ -1,7 +1,7 @@