diff options
author | pacien | 2022-04-12 22:29:29 +0200 |
---|---|---|
committer | GitHub | 2022-04-12 22:29:29 +0200 |
commit | 87f2f631aec9ffbb794b5475a16353e873dbb2b7 (patch) | |
tree | 7bd0c65e680202b8c48ed9d875b9d0c45223b9e2 /viewer/src/views | |
parent | a6b4a520f16092f38d8d97d5d746aa6777b8ced5 (diff) | |
parent | 581029f1b15b51f90812a47b20bce454014da32a (diff) | |
download | ldgallery-87f2f631aec9ffbb794b5475a16353e873dbb2b7.tar.gz |
Merge pull request #307 from ldgallery/pacien-20210704-markdown-item-handler
viewer: markdown item handler
Diffstat (limited to 'viewer/src/views')
-rw-r--r-- | viewer/src/views/GalleryNavigation.vue | 1 | ||||
-rw-r--r-- | viewer/src/views/SplashScreen.vue | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue index fdd3922..200637e 100644 --- a/viewer/src/views/GalleryNavigation.vue +++ b/viewer/src/views/GalleryNavigation.vue | |||
@@ -44,6 +44,7 @@ export default class GalleryNavigation extends Vue { | |||
44 | directory: "ld-directory-viewer", | 44 | directory: "ld-directory-viewer", |
45 | picture: "ld-picture-viewer", | 45 | picture: "ld-picture-viewer", |
46 | plaintext: "ld-plain-text-viewer", | 46 | plaintext: "ld-plain-text-viewer", |
47 | markdown: "ld-markdown-viewer", | ||
47 | pdf: "ld-pdf-viewer", | 48 | pdf: "ld-pdf-viewer", |
48 | video: "ld-video-viewer", | 49 | video: "ld-video-viewer", |
49 | audio: "ld-audio-viewer", | 50 | audio: "ld-audio-viewer", |
diff --git a/viewer/src/views/SplashScreen.vue b/viewer/src/views/SplashScreen.vue index dcb845d..93d84a1 100644 --- a/viewer/src/views/SplashScreen.vue +++ b/viewer/src/views/SplashScreen.vue | |||
@@ -30,6 +30,7 @@ export default class SplashScreen extends Vue { | |||
30 | this.fetchMarkdown(); | 30 | this.fetchMarkdown(); |
31 | } | 31 | } |
32 | 32 | ||
33 | // TODO: Identical to LdMarkdownViewer.vue, use composition with Vue3. | ||
33 | fetchMarkdown() { | 34 | fetchMarkdown() { |
34 | FetchWithCheck.get(`${process.env.VUE_APP_DATA_URL}${this.config.resource}?${this.config.acknowledgmentKey ?? ""}`) | 35 | FetchWithCheck.get(`${process.env.VUE_APP_DATA_URL}${this.config.resource}?${this.config.acknowledgmentKey ?? ""}`) |
35 | .then(response => response.text()) | 36 | .then(response => response.text()) |