aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
authorpacien2022-04-12 22:29:29 +0200
committerGitHub2022-04-12 22:29:29 +0200
commit87f2f631aec9ffbb794b5475a16353e873dbb2b7 (patch)
tree7bd0c65e680202b8c48ed9d875b9d0c45223b9e2 /viewer/src/@types
parenta6b4a520f16092f38d8d97d5d746aa6777b8ced5 (diff)
parent581029f1b15b51f90812a47b20bce454014da32a (diff)
downloadldgallery-87f2f631aec9ffbb794b5475a16353e873dbb2b7.tar.gz
Merge pull request #307 from ldgallery/pacien-20210704-markdown-item-handler
viewer: markdown item handler
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/ItemType.ts1
-rw-r--r--viewer/src/@types/gallery.d.ts8
2 files changed, 9 insertions, 0 deletions
diff --git a/viewer/src/@types/ItemType.ts b/viewer/src/@types/ItemType.ts
index 9974d4e..5ef38d8 100644
--- a/viewer/src/@types/ItemType.ts
+++ b/viewer/src/@types/ItemType.ts
@@ -21,6 +21,7 @@ export enum ItemType {
21 OTHER = "other", 21 OTHER = "other",
22 PICTURE = "picture", 22 PICTURE = "picture",
23 PLAINTEXT = "plaintext", 23 PLAINTEXT = "plaintext",
24 MARKDOWN = "markdown",
24 PDF = "pdf", 25 PDF = "pdf",
25 VIDEO = "video", 26 VIDEO = "video",
26 AUDIO = "audio", 27 AUDIO = "audio",
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts
index 9011f19..0b4cfc4 100644
--- a/viewer/src/@types/gallery.d.ts
+++ b/viewer/src/@types/gallery.d.ts
@@ -48,6 +48,9 @@ export interface PictureItem extends Item {
48export interface PlainTextItem extends Item { 48export interface PlainTextItem extends Item {
49 properties: PlainTextProperties; 49 properties: PlainTextProperties;
50} 50}
51export interface MarkdownItem extends Item {
52 properties: MarkdownProperties;
53}
51export interface PDFItem extends Item { 54export interface PDFItem extends Item {
52 properties: PDFProperties; 55 properties: PDFProperties;
53} 56}
@@ -71,6 +74,7 @@ export interface Item {
71 | OtherProperties 74 | OtherProperties
72 | PictureProperties 75 | PictureProperties
73 | PlainTextProperties 76 | PlainTextProperties
77 | MarkdownProperties
74 | PDFProperties 78 | PDFProperties
75 | VideoProperties 79 | VideoProperties
76 | AudioProperties 80 | AudioProperties
@@ -93,6 +97,10 @@ export interface PlainTextProperties {
93 type: ItemType.PLAINTEXT; 97 type: ItemType.PLAINTEXT;
94 resource: string; 98 resource: string;
95} 99}
100export interface MarkdownProperties {
101 type: ItemType.MARKDOWN;
102 resource: string;
103}
96export interface PDFProperties { 104export interface PDFProperties {
97 type: ItemType.PDF; 105 type: ItemType.PDF;
98 resource: string; 106 resource: string;