From 4393f8f25025ea600dae30be2d6ad9067496ba40 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 20 Jun 2020 06:04:39 +0200 Subject: viewer: component dispatch (no functional change) a cleaner way to add new components to LdGallery --- viewer/src/components/LdAudioViewer.vue | 58 ---------- viewer/src/components/LdDownload.vue | 57 --------- viewer/src/components/LdPdfViewer.vue | 46 -------- viewer/src/components/LdPicture.vue | 121 -------------------- viewer/src/components/LdPlainTextViewer.vue | 55 --------- viewer/src/components/LdVideoViewer.vue | 54 --------- viewer/src/components/index.ts | 2 +- .../src/components/item_handlers/LdAudioViewer.vue | 58 ++++++++++ .../src/components/item_handlers/LdDirectory.vue | 43 +++++++ viewer/src/components/item_handlers/LdDownload.vue | 57 +++++++++ .../src/components/item_handlers/LdPdfViewer.vue | 46 ++++++++ viewer/src/components/item_handlers/LdPicture.vue | 127 +++++++++++++++++++++ .../components/item_handlers/LdPlainTextViewer.vue | 55 +++++++++ .../src/components/item_handlers/LdVideoViewer.vue | 54 +++++++++ viewer/src/views/GalleryDirectory.vue | 43 ------- viewer/src/views/GalleryNavigation.vue | 44 +++---- 16 files changed, 465 insertions(+), 455 deletions(-) delete mode 100644 viewer/src/components/LdAudioViewer.vue delete mode 100644 viewer/src/components/LdDownload.vue delete mode 100644 viewer/src/components/LdPdfViewer.vue delete mode 100644 viewer/src/components/LdPicture.vue delete mode 100644 viewer/src/components/LdPlainTextViewer.vue delete mode 100644 viewer/src/components/LdVideoViewer.vue create mode 100644 viewer/src/components/item_handlers/LdAudioViewer.vue create mode 100644 viewer/src/components/item_handlers/LdDirectory.vue create mode 100644 viewer/src/components/item_handlers/LdDownload.vue create mode 100644 viewer/src/components/item_handlers/LdPdfViewer.vue create mode 100644 viewer/src/components/item_handlers/LdPicture.vue create mode 100644 viewer/src/components/item_handlers/LdPlainTextViewer.vue create mode 100644 viewer/src/components/item_handlers/LdVideoViewer.vue delete mode 100644 viewer/src/views/GalleryDirectory.vue (limited to 'viewer') diff --git a/viewer/src/components/LdAudioViewer.vue b/viewer/src/components/LdAudioViewer.vue deleted file mode 100644 index 739d36a..0000000 --- a/viewer/src/components/LdAudioViewer.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/LdDownload.vue b/viewer/src/components/LdDownload.vue deleted file mode 100644 index 7b09dab..0000000 --- a/viewer/src/components/LdDownload.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/LdPdfViewer.vue b/viewer/src/components/LdPdfViewer.vue deleted file mode 100644 index b1f6c64..0000000 --- a/viewer/src/components/LdPdfViewer.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/LdPicture.vue b/viewer/src/components/LdPicture.vue deleted file mode 100644 index 78829ec..0000000 --- a/viewer/src/components/LdPicture.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - diff --git a/viewer/src/components/LdPlainTextViewer.vue b/viewer/src/components/LdPlainTextViewer.vue deleted file mode 100644 index 5c32470..0000000 --- a/viewer/src/components/LdPlainTextViewer.vue +++ /dev/null @@ -1,55 +0,0 @@ - - -