aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 08:08:54 +0100
committerZero~Informatique2019-12-21 08:08:54 +0100
commit9e4fdd6f38853d8a4a959901ab7902569de75484 (patch)
tree3255e7fc08a6767ce8c333a42388f6398d2b460e /viewer/src/@types
parent40e8303d6b37a062754fdfbe824a153b8e5e2ddf (diff)
downloadldgallery-9e4fdd6f38853d8a4a959901ab7902569de75484.tar.gz
viewer:
Implemented the "example" project in devServer Display loader and error messages (not translated yet) Created a "GalleryStore" to fetch the JSon data from the gallery (currently from example)
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/gallery/index.d.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts
new file mode 100644
index 0000000..2dd11fb
--- /dev/null
+++ b/viewer/src/@types/gallery/index.d.ts
@@ -0,0 +1,25 @@
1declare namespace Gallery {
2 interface Item {
3 title: string,
4 date: string,
5 description: string,
6 tags: string[],
7 path: string,
8 thumbnail: {
9 path: string,
10 },
11 properties: Image | Directory,
12 }
13 interface Image {
14 type: "image",
15 filesize: number,
16 resolution: {
17 width: number,
18 height: number,
19 }
20 }
21 interface Directory {
22 type: "directory",
23 items: Item[]
24 }
25} \ No newline at end of file