@@ -62,10 +62,10 @@ export default class LdThumbnail extends Vue {
}
-
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 7714815396b4e86afc5db1af3726fab4edf0ca35 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sat, 3 Jul 2021 23:07:09 +0200
Subject: viewer: add markdown rendering component
Extracted from b170f49 (GH PR #304)
---
viewer/src/components/async/Markdown.vue | 123 +++++++++++++++++++++++++++++++
viewer/src/components/async/index.ts | 4 +
2 files changed, 127 insertions(+)
create mode 100644 viewer/src/components/async/Markdown.vue
create mode 100644 viewer/src/components/async/index.ts
(limited to 'viewer/src/components')
diff --git a/viewer/src/components/async/Markdown.vue b/viewer/src/components/async/Markdown.vue
new file mode 100644
index 0000000..c4e282b
--- /dev/null
+++ b/viewer/src/components/async/Markdown.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
diff --git a/viewer/src/components/async/index.ts b/viewer/src/components/async/index.ts
new file mode 100644
index 0000000..5a7d9a6
--- /dev/null
+++ b/viewer/src/components/async/index.ts
@@ -0,0 +1,4 @@
+// Declare async constants for internal components
+// Their name can't start with 'Ld'
+
+export const Markdown = () => import(/* webpackChunkName: "markdown" */ "./Markdown.vue");
--
cgit v1.2.3
From 9328223589fac14327223eb38c988cb32b781cbd Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sat, 3 Jul 2021 23:07:09 +0200
Subject: viewer/LdInformation: use markdown rendering component
Extracted from b170f49 (GH PR #304)
---
viewer/src/components/LdInformation.vue | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
(limited to 'viewer/src/components')
diff --git a/viewer/src/components/LdInformation.vue b/viewer/src/components/LdInformation.vue
index b161485..68e1817 100644
--- a/viewer/src/components/LdInformation.vue
+++ b/viewer/src/components/LdInformation.vue
@@ -21,16 +21,20 @@
{{ item.title }}
-
+
--
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')
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')
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
---
viewer/src/components/LdBreadcrumb.vue | 129 --------------
viewer/src/components/LdCommand.vue | 98 -----------
viewer/src/components/LdCommandSearch.vue | 56 -------
viewer/src/components/LdCommandSort.vue | 60 -------
viewer/src/components/LdError.vue | 58 -------
viewer/src/components/LdGallery.vue | 59 -------
viewer/src/components/LdInformation.vue | 84 ----------
viewer/src/components/LdInput.vue | 60 +++++++
viewer/src/components/LdKeyPress.vue | 49 ------
viewer/src/components/LdLink.vue | 75 +++++++++
viewer/src/components/LdLoading.vue | 51 ++++++
viewer/src/components/LdNotice.vue | 57 +++++++
viewer/src/components/LdProposition.vue | 186 ---------------------
viewer/src/components/LdTagInput.vue | 96 -----------
viewer/src/components/LdThumbnail.vue | 91 ----------
viewer/src/components/LdTitle.vue | 47 ------
viewer/src/components/async/AsyncLdMarkdown.vue | 125 ++++++++++++++
viewer/src/components/async/Markdown.vue | 123 --------------
viewer/src/components/async/index.ts | 24 ++-
viewer/src/components/index.ts | 44 -----
.../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 -----
28 files changed, 389 insertions(+), 1688 deletions(-)
delete mode 100644 viewer/src/components/LdBreadcrumb.vue
delete mode 100644 viewer/src/components/LdCommand.vue
delete mode 100644 viewer/src/components/LdCommandSearch.vue
delete mode 100644 viewer/src/components/LdCommandSort.vue
delete mode 100644 viewer/src/components/LdError.vue
delete mode 100644 viewer/src/components/LdGallery.vue
delete mode 100644 viewer/src/components/LdInformation.vue
create mode 100644 viewer/src/components/LdInput.vue
delete mode 100644 viewer/src/components/LdKeyPress.vue
create mode 100644 viewer/src/components/LdLink.vue
create mode 100644 viewer/src/components/LdLoading.vue
create mode 100644 viewer/src/components/LdNotice.vue
delete mode 100644 viewer/src/components/LdProposition.vue
delete mode 100644 viewer/src/components/LdTagInput.vue
delete mode 100644 viewer/src/components/LdThumbnail.vue
delete mode 100644 viewer/src/components/LdTitle.vue
create mode 100644 viewer/src/components/async/AsyncLdMarkdown.vue
delete mode 100644 viewer/src/components/async/Markdown.vue
delete mode 100644 viewer/src/components/index.ts
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')
diff --git a/viewer/src/components/LdBreadcrumb.vue b/viewer/src/components/LdBreadcrumb.vue
deleted file mode 100644
index d518365..0000000
--- a/viewer/src/components/LdBreadcrumb.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-