diff options
Diffstat (limited to 'viewer/src/@types/gallery.d.ts')
-rw-r--r-- | viewer/src/@types/gallery.d.ts | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 956ab6b..066aedf 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts | |||
@@ -18,57 +18,57 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | declare namespace Gallery { | 20 | declare namespace Gallery { |
21 | interface Config { | 21 | interface Config { |
22 | galleryRoot: string, | 22 | galleryRoot: string, |
23 | } | 23 | } |
24 | 24 | ||
25 | interface GalleryProperties { | 25 | interface GalleryProperties { |
26 | galleryTitle: string, | 26 | galleryTitle: string, |
27 | tagCategories: RawTag[] | 27 | tagCategories: RawTag[] |
28 | } | 28 | } |
29 | interface Index { | 29 | interface Index { |
30 | properties: GalleryProperties, | 30 | properties: GalleryProperties, |
31 | tree: Directory | 31 | tree: Directory |
32 | } | 32 | } |
33 | 33 | ||
34 | interface Other extends Item { | 34 | interface Other extends Item { |
35 | properties: OtherProperties, | 35 | properties: OtherProperties, |
36 | } | 36 | } |
37 | interface Picture extends Item { | 37 | interface Picture extends Item { |
38 | properties: PictureProperties, | 38 | properties: PictureProperties, |
39 | } | 39 | } |
40 | interface Directory extends Item { | 40 | interface Directory extends Item { |
41 | properties: DirectoryProperties, | 41 | properties: DirectoryProperties, |
42 | } | 42 | } |
43 | interface Item { | 43 | interface Item { |
44 | title: string, | 44 | title: string, |
45 | datetime: string, | 45 | datetime: string, |
46 | description: string, | 46 | description: string, |
47 | tags: RawTag[], | 47 | tags: RawTag[], |
48 | path: string, | 48 | path: string, |
49 | thumbnail?: Thumbnail | 49 | thumbnail?: Thumbnail |
50 | properties: OtherProperties | PictureProperties | DirectoryProperties, | 50 | properties: OtherProperties | PictureProperties | DirectoryProperties, |
51 | } | 51 | } |
52 | interface Resolution { | 52 | interface Resolution { |
53 | width: number, | 53 | width: number, |
54 | height: number, | 54 | height: number, |
55 | } | 55 | } |
56 | interface OtherProperties { | 56 | interface OtherProperties { |
57 | type: "other", | 57 | type: "other", |
58 | } | 58 | } |
59 | interface PictureProperties { | 59 | interface PictureProperties { |
60 | type: "picture", | 60 | type: "picture", |
61 | resource: string, | 61 | resource: string, |
62 | resolution: Resolution | 62 | resolution: Resolution |
63 | } | 63 | } |
64 | interface DirectoryProperties { | 64 | interface DirectoryProperties { |
65 | type: "directory", | 65 | type: "directory", |
66 | items: Item[] | 66 | items: Item[] |
67 | } | 67 | } |
68 | interface Thumbnail { | 68 | interface Thumbnail { |
69 | resource: string, | 69 | resource: string, |
70 | resolution: Resolution | 70 | resolution: Resolution |
71 | } | 71 | } |
72 | type RawTag = string; | 72 | type RawTag = string; |
73 | type ItemType = "other" | "picture" | "directory"; | 73 | type ItemType = "other" | "picture" | "directory"; |
74 | } | 74 | } |