From 04d5cb917f4288c26a308dfda4ba788d77fda8fd Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 13 May 2020 00:18:16 +0200 Subject: compiler: add plain text file format support through simple copy --- viewer/src/@types/gallery.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'viewer') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 3246894..04df1bb 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -37,6 +37,9 @@ declare namespace Gallery { interface Picture extends Item { properties: PictureProperties, } + interface PlainText extends Item { + properties: PlainTextProperties, + } interface Directory extends Item { properties: DirectoryProperties, } @@ -47,7 +50,7 @@ declare namespace Gallery { tags: RawTag[], path: string, thumbnail?: Thumbnail - properties: OtherProperties | PictureProperties | DirectoryProperties, + properties: OtherProperties | PictureProperties | PlainTextProperties | DirectoryProperties, } interface Resolution { width: number, @@ -62,6 +65,10 @@ declare namespace Gallery { resource: string, resolution: Resolution } + interface PlainTextProperties { + type: "plaintext", + resource: string, + } interface DirectoryProperties { type: "directory", items: Item[] @@ -71,5 +78,5 @@ declare namespace Gallery { resolution: Resolution } type RawTag = string; - type ItemType = "other" | "picture" | "directory"; + type ItemType = "other" | "picture" | "plaintext" | "directory"; } -- cgit v1.2.3