From 9165cc1efcf7791f78b61b2c51a9de651b1b09aa Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 2 Jul 2021 22:53:16 +0200 Subject: viewer: types normalization - gallery.d.ts GitHub: closes #301 --- .../src/components/item_handlers/LdAudioViewer.vue | 5 +- .../src/components/item_handlers/LdDirectory.vue | 42 ------- .../components/item_handlers/LdDirectoryViewer.vue | 43 +++++++ viewer/src/components/item_handlers/LdDownload.vue | 57 --------- .../components/item_handlers/LdDownloadViewer.vue | 58 ++++++++++ .../src/components/item_handlers/LdPdfViewer.vue | 3 +- viewer/src/components/item_handlers/LdPicture.vue | 127 -------------------- .../components/item_handlers/LdPictureViewer.vue | 128 +++++++++++++++++++++ .../components/item_handlers/LdPlainTextViewer.vue | 3 +- .../src/components/item_handlers/LdVideoViewer.vue | 3 +- 10 files changed, 238 insertions(+), 231 deletions(-) delete mode 100644 viewer/src/components/item_handlers/LdDirectory.vue create mode 100644 viewer/src/components/item_handlers/LdDirectoryViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdDownload.vue create mode 100644 viewer/src/components/item_handlers/LdDownloadViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdPicture.vue create mode 100644 viewer/src/components/item_handlers/LdPictureViewer.vue (limited to 'viewer/src/components/item_handlers') diff --git a/viewer/src/components/item_handlers/LdAudioViewer.vue b/viewer/src/components/item_handlers/LdAudioViewer.vue index 2e0f8dc..559b10a 100644 --- a/viewer/src/components/item_handlers/LdAudioViewer.vue +++ b/viewer/src/components/item_handlers/LdAudioViewer.vue @@ -28,12 +28,13 @@ - - diff --git a/viewer/src/components/item_handlers/LdDirectoryViewer.vue b/viewer/src/components/item_handlers/LdDirectoryViewer.vue new file mode 100644 index 0000000..7440f54 --- /dev/null +++ b/viewer/src/components/item_handlers/LdDirectoryViewer.vue @@ -0,0 +1,43 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdDownload.vue b/viewer/src/components/item_handlers/LdDownload.vue deleted file mode 100644 index 7b09dab..0000000 --- a/viewer/src/components/item_handlers/LdDownload.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/item_handlers/LdDownloadViewer.vue b/viewer/src/components/item_handlers/LdDownloadViewer.vue new file mode 100644 index 0000000..60c7c49 --- /dev/null +++ b/viewer/src/components/item_handlers/LdDownloadViewer.vue @@ -0,0 +1,58 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdPdfViewer.vue b/viewer/src/components/item_handlers/LdPdfViewer.vue index 462c463..e55989a 100644 --- a/viewer/src/components/item_handlers/LdPdfViewer.vue +++ b/viewer/src/components/item_handlers/LdPdfViewer.vue @@ -30,11 +30,12 @@ - - diff --git a/viewer/src/components/item_handlers/LdPictureViewer.vue b/viewer/src/components/item_handlers/LdPictureViewer.vue new file mode 100644 index 0000000..003ffe9 --- /dev/null +++ b/viewer/src/components/item_handlers/LdPictureViewer.vue @@ -0,0 +1,128 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdPlainTextViewer.vue b/viewer/src/components/item_handlers/LdPlainTextViewer.vue index cd26d9d..79465d5 100644 --- a/viewer/src/components/item_handlers/LdPlainTextViewer.vue +++ b/viewer/src/components/item_handlers/LdPlainTextViewer.vue @@ -27,11 +27,12 @@ - - diff --git a/viewer/src/components/item_handlers/LdPdfViewer.vue b/viewer/src/components/item_handlers/LdPdfViewer.vue index c6999bf..04cba0c 100644 --- a/viewer/src/components/item_handlers/LdPdfViewer.vue +++ b/viewer/src/components/item_handlers/LdPdfViewer.vue @@ -42,5 +42,3 @@ export default class LdPdfViewer extends Vue { } } - - diff --git a/viewer/src/components/item_handlers/LdVideoViewer.vue b/viewer/src/components/item_handlers/LdVideoViewer.vue index be44922..ed95bc2 100644 --- a/viewer/src/components/item_handlers/LdVideoViewer.vue +++ b/viewer/src/components/item_handlers/LdVideoViewer.vue @@ -44,5 +44,3 @@ export default class LdVideoViewer extends Vue { } } - - -- cgit v1.2.3 From 2f9e51b5cd7dfafadac90ec896edd365da12a1c8 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 3 Jul 2021 23:07:09 +0200 Subject: viewer: add markdown item handler Extracted from b170f49 (GH PR #304) --- .../components/item_handlers/LdMarkdownViewer.vue | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 viewer/src/components/item_handlers/LdMarkdownViewer.vue (limited to 'viewer/src/components/item_handlers') diff --git a/viewer/src/components/item_handlers/LdMarkdownViewer.vue b/viewer/src/components/item_handlers/LdMarkdownViewer.vue new file mode 100644 index 0000000..ecebbcf --- /dev/null +++ b/viewer/src/components/item_handlers/LdMarkdownViewer.vue @@ -0,0 +1,82 @@ + + + + + + + -- cgit v1.2.3 From 581029f1b15b51f90812a47b20bce454014da32a Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 12 Apr 2022 21:35:24 +0200 Subject: viewer: add markdown item handler Minor CSS fixes Comment for future upgrade to Vue3 --- viewer/src/components/item_handlers/LdMarkdownViewer.vue | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'viewer/src/components/item_handlers') diff --git a/viewer/src/components/item_handlers/LdMarkdownViewer.vue b/viewer/src/components/item_handlers/LdMarkdownViewer.vue index ecebbcf..3b9a8d6 100644 --- a/viewer/src/components/item_handlers/LdMarkdownViewer.vue +++ b/viewer/src/components/item_handlers/LdMarkdownViewer.vue @@ -20,7 +20,7 @@ -- cgit v1.2.3 From 00510820a2794efcadbc83f7f8b54318fe198ecb Mon Sep 17 00:00:00 2001 From: Zéro~Informatique Date: Tue, 26 Jul 2022 08:44:34 +0200 Subject: viewer: migrate to vue 3, general refactoring and cleanup Non-exhaustive list of fixes and improvements done at the same time: - html default background to grey (avoids white flash during init) - unified links behavior - added more theme variables - removed the flex-expand transition (it wasn't working) and replaced it with a slide - fixed LdLoading not centered on the content - title on removable tags - fixed an issue with encoded URI from vue-router - unified Item resource URLs - removed the iframe for PlainTextViewer (it wasn't working properly) and replaced it with a pre - fixed clear and search buttons tabindex - fixed the information panel bumping up during the fade animation of tag's dropdown - fixed some focus outlines not appearing correctly - moved CSS variables to the :root context - Code cleaning GitHub: closes #217 GitHub: closes #300 GitHub: closes #297 GitHub: closes #105 GitHub: closes #267 GitHub: closes #275 GitHub: closes #228 GitHub: closes #215 GitHub: closes #112 --- .../src/components/item_handlers/LdAudioViewer.vue | 56 --------- .../components/item_handlers/LdDirectoryViewer.vue | 41 ------- .../components/item_handlers/LdDownloadViewer.vue | 58 ---------- .../components/item_handlers/LdMarkdownViewer.vue | 76 ------------ .../src/components/item_handlers/LdPdfViewer.vue | 44 ------- .../components/item_handlers/LdPictureViewer.vue | 128 --------------------- .../components/item_handlers/LdPlainTextViewer.vue | 56 --------- .../src/components/item_handlers/LdVideoViewer.vue | 46 -------- 8 files changed, 505 deletions(-) delete mode 100644 viewer/src/components/item_handlers/LdAudioViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdDirectoryViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdDownloadViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdMarkdownViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdPdfViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdPictureViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdPlainTextViewer.vue delete mode 100644 viewer/src/components/item_handlers/LdVideoViewer.vue (limited to 'viewer/src/components/item_handlers') diff --git a/viewer/src/components/item_handlers/LdAudioViewer.vue b/viewer/src/components/item_handlers/LdAudioViewer.vue deleted file mode 100644 index 559b10a..0000000 --- a/viewer/src/components/item_handlers/LdAudioViewer.vue +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/item_handlers/LdDirectoryViewer.vue b/viewer/src/components/item_handlers/LdDirectoryViewer.vue deleted file mode 100644 index 2259f12..0000000 --- a/viewer/src/components/item_handlers/LdDirectoryViewer.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - diff --git a/viewer/src/components/item_handlers/LdDownloadViewer.vue b/viewer/src/components/item_handlers/LdDownloadViewer.vue deleted file mode 100644 index 60c7c49..0000000 --- a/viewer/src/components/item_handlers/LdDownloadViewer.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/item_handlers/LdMarkdownViewer.vue b/viewer/src/components/item_handlers/LdMarkdownViewer.vue deleted file mode 100644 index 3b9a8d6..0000000 --- a/viewer/src/components/item_handlers/LdMarkdownViewer.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/item_handlers/LdPdfViewer.vue b/viewer/src/components/item_handlers/LdPdfViewer.vue deleted file mode 100644 index 04cba0c..0000000 --- a/viewer/src/components/item_handlers/LdPdfViewer.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/viewer/src/components/item_handlers/LdPictureViewer.vue b/viewer/src/components/item_handlers/LdPictureViewer.vue deleted file mode 100644 index 003ffe9..0000000 --- a/viewer/src/components/item_handlers/LdPictureViewer.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/item_handlers/LdPlainTextViewer.vue b/viewer/src/components/item_handlers/LdPlainTextViewer.vue deleted file mode 100644 index 79465d5..0000000 --- a/viewer/src/components/item_handlers/LdPlainTextViewer.vue +++ /dev/null @@ -1,56 +0,0 @@ - - -