aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types/gallery.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/@types/gallery.d.ts')
-rw-r--r--viewer/src/@types/gallery.d.ts89
1 files changed, 45 insertions, 44 deletions
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts
index 151ae92..1342ff9 100644
--- a/viewer/src/@types/gallery.d.ts
+++ b/viewer/src/@types/gallery.d.ts
@@ -19,90 +19,91 @@
19 19
20declare namespace Gallery { 20declare 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 PlainText extends Item { 40 interface PlainText extends Item {
41 properties: PlainTextProperties, 41 properties: PlainTextProperties;
42 } 42 }
43 interface PDF extends Item { 43 interface PDF extends Item {
44 properties: PDFProperties, 44 properties: PDFProperties;
45 } 45 }
46 interface Video extends Item { 46 interface Video extends Item {
47 properties: VideoProperties, 47 properties: VideoProperties;
48 } 48 }
49 interface Audio extends Item { 49 interface Audio extends Item {
50 properties: AudioProperties, 50 properties: AudioProperties;
51 } 51 }
52 interface Directory extends Item { 52 interface Directory extends Item {
53 properties: DirectoryProperties, 53 properties: DirectoryProperties;
54 } 54 }
55 interface Item { 55 interface Item {
56 title: string, 56 title: string;
57 datetime: string, 57 datetime: string;
58 description: string, 58 description: string;
59 tags: RawTag[], 59 tags: RawTag[];
60 path: string, 60 path: string;
61 thumbnail?: Thumbnail 61 thumbnail?: Thumbnail;
62 properties: OtherProperties 62 properties:
63 | PictureProperties 63 | OtherProperties
64 | PlainTextProperties 64 | PictureProperties
65 | PDFProperties 65 | PlainTextProperties
66 | VideoProperties 66 | PDFProperties
67 | AudioProperties 67 | VideoProperties
68 | DirectoryProperties, 68 | AudioProperties
69 | DirectoryProperties;
69 } 70 }
70 interface Resolution { 71 interface Resolution {
71 width: number, 72 width: number;
72 height: number, 73 height: number;
73 } 74 }
74 interface OtherProperties { 75 interface OtherProperties {
75 type: import("./ItemType").ItemType.OTHER, 76 type: import("./ItemType").ItemType.OTHER;
76 resource: string 77 resource: string;
77 } 78 }
78 interface PictureProperties { 79 interface PictureProperties {
79 type: import("./ItemType").ItemType.PICTURE, 80 type: import("./ItemType").ItemType.PICTURE;
80 resource: string, 81 resource: string;
81 resolution: Resolution 82 resolution: Resolution;
82 } 83 }
83 interface PlainTextProperties { 84 interface PlainTextProperties {
84 type: import("./ItemType").ItemType.PLAINTEXT, 85 type: import("./ItemType").ItemType.PLAINTEXT;
85 resource: string, 86 resource: string;
86 } 87 }
87 interface PDFProperties { 88 interface PDFProperties {
88 type: import("./ItemType").ItemType.PDF, 89 type: import("./ItemType").ItemType.PDF;
89 resource: string, 90 resource: string;
90 } 91 }
91 interface VideoProperties { 92 interface VideoProperties {
92 type: import("./ItemType").ItemType.VIDEO, 93 type: import("./ItemType").ItemType.VIDEO;
93 resource: string, 94 resource: string;
94 } 95 }
95 interface AudioProperties { 96 interface AudioProperties {
96 type: import("./ItemType").ItemType.AUDIO, 97 type: import("./ItemType").ItemType.AUDIO;
97 resource: string, 98 resource: string;
98 } 99 }
99 interface DirectoryProperties { 100 interface DirectoryProperties {
100 type: import("./ItemType").ItemType.DIRECTORY, 101 type: import("./ItemType").ItemType.DIRECTORY;
101 items: Item[] 102 items: Item[];
102 } 103 }
103 interface Thumbnail { 104 interface Thumbnail {
104 resource: string, 105 resource: string;
105 resolution: Resolution 106 resolution: Resolution;
106 } 107 }
107 type RawTag = string; 108 type RawTag = string;
108} 109}