From e169a031fd1f743a66290304a01b7acf228792fc Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 12 Dec 2025 20:04:35 +0100 Subject: [PATCH] chore(split): SourceView from ViewerComponent Signed-off-by: Max --- src/components/SourceView.vue | 148 +++++++++++++++++++++++++++++ src/components/ViewerComponent.vue | 114 ++++------------------ 2 files changed, 164 insertions(+), 98 deletions(-) create mode 100644 src/components/SourceView.vue diff --git a/src/components/SourceView.vue b/src/components/SourceView.vue new file mode 100644 index 00000000000..b702fdb6606 --- /dev/null +++ b/src/components/SourceView.vue @@ -0,0 +1,148 @@ + + + + + + diff --git a/src/components/ViewerComponent.vue b/src/components/ViewerComponent.vue index d7a9837d185..feb3efa3745 100644 --- a/src/components/ViewerComponent.vue +++ b/src/components/ViewerComponent.vue @@ -14,46 +14,27 @@ :class="{ 'text-editor--embedding': isEmbedded }" :mime="mime" :show-outline-outside="showOutlineOutside" /> -
- - - {{ t('text', 'Edit') }} - - -
+ :fileid="fileid" + :filename="filename" + :mime="mime" + :source="source" + v-bind="$attrs" + @loaded="onLoaded"> + @edit="toggleEdit"> +