aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
authorZero~Informatique2020-01-30 17:04:09 +0100
committerZero~Informatique2020-01-30 17:24:08 +0100
commit76af6cffce939ef3c9a0952e6f7adc234e92f782 (patch)
tree3b9ae6aa0f5b64b49c58904b670c9df34cbdd12e /viewer/src/@types
parent234d0d13c767786393494810526a77d3d89b0e83 (diff)
downloadldgallery-76af6cffce939ef3c9a0952e6f7adc234e92f782.tar.gz
viewer: directories first and sorted by title in the navigation mode
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/gallery/index.d.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts
index 25407e8..b112b6d 100644
--- a/viewer/src/@types/gallery/index.d.ts
+++ b/viewer/src/@types/gallery/index.d.ts
@@ -18,6 +18,9 @@
18*/ 18*/
19 19
20declare namespace Gallery { 20declare namespace Gallery {
21 interface Other extends Item {
22 properties: OtherProperties,
23 }
21 interface Picture extends Item { 24 interface Picture extends Item {
22 properties: PictureProperties, 25 properties: PictureProperties,
23 } 26 }
@@ -31,7 +34,10 @@ declare namespace Gallery {
31 tags: RawTag[], 34 tags: RawTag[],
32 path: string, 35 path: string,
33 thumbnail?: string, 36 thumbnail?: string,
34 properties: PictureProperties | DirectoryProperties, 37 properties: OtherProperties | PictureProperties | DirectoryProperties,
38 }
39 interface OtherProperties {
40 type: "other",
35 } 41 }
36 interface PictureProperties { 42 interface PictureProperties {
37 type: "picture", 43 type: "picture",
@@ -42,4 +48,5 @@ declare namespace Gallery {
42 items: Item[] 48 items: Item[]
43 } 49 }
44 type RawTag = string; 50 type RawTag = string;
51 type ItemType = "other" | "picture" | "directory";
45} \ No newline at end of file 52} \ No newline at end of file