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 @@
+
+
+
+
+ dragScrollClickFix.onClickCapture(e)"
+ @dblclick="$uiStore.toggleFullscreen()"
+ @dragstart.prevent
+ @dragscrollstart="dragScrollClickFix.onDragScrollStart()"
+ @dragscrollend="dragScrollClickFix.onDragScrollEnd()"
+ >
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/viewer/src/components/item_handlers/LdVideoViewer.vue b/viewer/src/components/item_handlers/LdVideoViewer.vue
new file mode 100644
index 0000000..67203a5
--- /dev/null
+++ b/viewer/src/components/item_handlers/LdVideoViewer.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.2.3
From 170d7a61f720ece9dc4b347b19f5a8213f1d8984 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sat, 20 Jun 2020 16:50:49 +0200
Subject: viewer: prettier formatting based on eslint-prettier plugin
---
viewer/src/components/item_handlers/LdAudioViewer.vue | 5 +----
viewer/src/components/item_handlers/LdDirectory.vue | 3 +--
viewer/src/components/item_handlers/LdPdfViewer.vue | 3 +--
viewer/src/components/item_handlers/LdPicture.vue | 2 +-
viewer/src/components/item_handlers/LdVideoViewer.vue | 11 ++---------
5 files changed, 6 insertions(+), 18 deletions(-)
(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 8c8ce2b..2e0f8dc 100644
--- a/viewer/src/components/item_handlers/LdAudioViewer.vue
+++ b/viewer/src/components/item_handlers/LdAudioViewer.vue
@@ -22,10 +22,7 @@
diff --git a/viewer/src/components/item_handlers/LdDirectory.vue b/viewer/src/components/item_handlers/LdDirectory.vue
index f7fa33f..eec8011 100644
--- a/viewer/src/components/item_handlers/LdDirectory.vue
+++ b/viewer/src/components/item_handlers/LdDirectory.vue
@@ -39,5 +39,4 @@ export default class LdDirectory extends Vue {
}
-
+
diff --git a/viewer/src/components/item_handlers/LdPdfViewer.vue b/viewer/src/components/item_handlers/LdPdfViewer.vue
index 6471aac..462c463 100644
--- a/viewer/src/components/item_handlers/LdPdfViewer.vue
+++ b/viewer/src/components/item_handlers/LdPdfViewer.vue
@@ -42,5 +42,4 @@ export default class LdPdfViewer extends Vue {
}
-
+
diff --git a/viewer/src/components/item_handlers/LdPicture.vue b/viewer/src/components/item_handlers/LdPicture.vue
index 3809e4d..e652afc 100644
--- a/viewer/src/components/item_handlers/LdPicture.vue
+++ b/viewer/src/components/item_handlers/LdPicture.vue
@@ -33,7 +33,7 @@
ref="imageElement"
:src="pictureSrc(item.properties.resource)"
class="ld-picture-element"
- :class="{'slow-loading': Boolean(slowLoadingStyle)}"
+ :class="{ 'slow-loading': Boolean(slowLoadingStyle) }"
:style="slowLoadingStyle"
@load="clearSlowLoading"
/>
diff --git a/viewer/src/components/item_handlers/LdVideoViewer.vue b/viewer/src/components/item_handlers/LdVideoViewer.vue
index 67203a5..2e3a43c 100644
--- a/viewer/src/components/item_handlers/LdVideoViewer.vue
+++ b/viewer/src/components/item_handlers/LdVideoViewer.vue
@@ -21,13 +21,7 @@
-
@@ -50,5 +44,4 @@ export default class LdVideoViewer extends Vue {
}
-
+
--
cgit v1.2.3