From 89bcb2dbe5b5e6eb8e8ba13ceecee2770dfe4cd4 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 9 Jan 2020 02:10:35 +0100 Subject: viewer: Changed "image" type to "picture". Adapted the code to the current compiler output format. The currentItem and currentPath are calculated in the store for easier multi-component access. Breadcrumb for current's position and navigation. --- viewer/src/@types/gallery/index.d.ts | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts index 310c865..97cc207 100644 --- a/viewer/src/@types/gallery/index.d.ts +++ b/viewer/src/@types/gallery/index.d.ts @@ -1,28 +1,22 @@ declare namespace Gallery { - interface Image extends Item { - properties: ImageProperties, + interface Picture extends Item { + properties: PictureProperties, } interface Directory extends Item { properties: DirectoryProperties, } interface Item { title: string, - date: string, + datetime: string, description: string, tags: RawTag[], path: string, - thumbnail: { - path: string, - }, - properties: ImageProperties | DirectoryProperties, + thumbnail?: string, + properties: PictureProperties | DirectoryProperties, } - interface ImageProperties { - type: "image", - filesize: number, - resolution: { - width: number, - height: number, - } + interface PictureProperties { + type: "picture", + resource: string, } interface DirectoryProperties { type: "directory", -- cgit v1.2.3