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 --- .../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 +++++++++ 7 files changed, 440 insertions(+) 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 (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 new file mode 100644 index 0000000..8c8ce2b --- /dev/null +++ b/viewer/src/components/item_handlers/LdAudioViewer.vue @@ -0,0 +1,58 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdDirectory.vue b/viewer/src/components/item_handlers/LdDirectory.vue new file mode 100644 index 0000000..f7fa33f --- /dev/null +++ b/viewer/src/components/item_handlers/LdDirectory.vue @@ -0,0 +1,43 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdDownload.vue b/viewer/src/components/item_handlers/LdDownload.vue new file mode 100644 index 0000000..7b09dab --- /dev/null +++ b/viewer/src/components/item_handlers/LdDownload.vue @@ -0,0 +1,57 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdPdfViewer.vue b/viewer/src/components/item_handlers/LdPdfViewer.vue new file mode 100644 index 0000000..6471aac --- /dev/null +++ b/viewer/src/components/item_handlers/LdPdfViewer.vue @@ -0,0 +1,46 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdPicture.vue b/viewer/src/components/item_handlers/LdPicture.vue new file mode 100644 index 0000000..3809e4d --- /dev/null +++ b/viewer/src/components/item_handlers/LdPicture.vue @@ -0,0 +1,127 @@ + + + + + + + diff --git a/viewer/src/components/item_handlers/LdPlainTextViewer.vue b/viewer/src/components/item_handlers/LdPlainTextViewer.vue new file mode 100644 index 0000000..cd26d9d --- /dev/null +++ b/viewer/src/components/item_handlers/LdPlainTextViewer.vue @@ -0,0 +1,55 @@ + + +