From 9e4fdd6f38853d8a4a959901ab7902569de75484 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 08:08:54 +0100 Subject: viewer: Implemented the "example" project in devServer Display loader and error messages (not translated yet) Created a "GalleryStore" to fetch the JSon data from the gallery (currently from example) --- viewer/src/@types/gallery/index.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 viewer/src/@types/gallery/index.d.ts (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts new file mode 100644 index 0000000..2dd11fb --- /dev/null +++ b/viewer/src/@types/gallery/index.d.ts @@ -0,0 +1,25 @@ +declare namespace Gallery { + interface Item { + title: string, + date: string, + description: string, + tags: string[], + path: string, + thumbnail: { + path: string, + }, + properties: Image | Directory, + } + interface Image { + type: "image", + filesize: number, + resolution: { + width: number, + height: number, + } + } + interface Directory { + type: "directory", + items: Item[] + } +} \ No newline at end of file -- cgit v1.2.3