aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
authorZero~Informatique2020-01-09 02:10:35 +0100
committerZero~Informatique2020-01-09 02:10:35 +0100
commit89bcb2dbe5b5e6eb8e8ba13ceecee2770dfe4cd4 (patch)
tree8eb2c100707123f77ff6980c94e161d6214c648f /viewer/src/@types
parentc1e334b883e28381851fca077ff36aee0387b1db (diff)
downloadldgallery-89bcb2dbe5b5e6eb8e8ba13ceecee2770dfe4cd4.tar.gz
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.
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/gallery/index.d.ts22
1 files changed, 8 insertions, 14 deletions
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 @@
1declare namespace Gallery { 1declare namespace Gallery {
2 interface Image extends Item { 2 interface Picture extends Item {
3 properties: ImageProperties, 3 properties: PictureProperties,
4 } 4 }
5 interface Directory extends Item { 5 interface Directory extends Item {
6 properties: DirectoryProperties, 6 properties: DirectoryProperties,
7 } 7 }
8 interface Item { 8 interface Item {
9 title: string, 9 title: string,
10 date: string, 10 datetime: string,
11 description: string, 11 description: string,
12 tags: RawTag[], 12 tags: RawTag[],
13 path: string, 13 path: string,
14 thumbnail: { 14 thumbnail?: string,
15 path: string, 15 properties: PictureProperties | DirectoryProperties,
16 },
17 properties: ImageProperties | DirectoryProperties,
18 } 16 }
19 interface ImageProperties { 17 interface PictureProperties {
20 type: "image", 18 type: "picture",
21 filesize: number, 19 resource: string,
22 resolution: {
23 width: number,
24 height: number,
25 }
26 } 20 }
27 interface DirectoryProperties { 21 interface DirectoryProperties {
28 type: "directory", 22 type: "directory",