aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/@types
diff options
context:
space:
mode:
authorZero~Informatique2019-12-28 04:52:30 +0100
committerZero~Informatique2019-12-28 04:53:01 +0100
commita681accaa7617892bb7c53248aa9030a4eb47f50 (patch)
tree0d04aee1ef36ffaae1b0fac0a61ef7dad8d38e7c /viewer/src/@types
parentdeaed8a6737edc6e28c08e9c6734dde6e37a4016 (diff)
downloadldgallery-a681accaa7617892bb7c53248aa9030a4eb47f50.tar.gz
viewer: Tag propositions. Disabled directory indexation.
Note: The propositions are not based on the current search results, but on the searched tags, which doesn't seem to be the correct way. We'll probably have to move the search results to a store for global visibility.
Diffstat (limited to 'viewer/src/@types')
-rw-r--r--viewer/src/@types/gallery/index.d.ts3
-rw-r--r--viewer/src/@types/tag/index.d.ts2
2 files changed, 3 insertions, 2 deletions
diff --git a/viewer/src/@types/gallery/index.d.ts b/viewer/src/@types/gallery/index.d.ts
index b47c812..310c865 100644
--- a/viewer/src/@types/gallery/index.d.ts
+++ b/viewer/src/@types/gallery/index.d.ts
@@ -9,7 +9,7 @@ declare namespace Gallery {
9 title: string, 9 title: string,
10 date: string, 10 date: string,
11 description: string, 11 description: string,
12 tags: string[], 12 tags: RawTag[],
13 path: string, 13 path: string,
14 thumbnail: { 14 thumbnail: {
15 path: string, 15 path: string,
@@ -28,4 +28,5 @@ declare namespace Gallery {
28 type: "directory", 28 type: "directory",
29 items: Item[] 29 items: Item[]
30 } 30 }
31 type RawTag = string;
31} \ No newline at end of file 32} \ No newline at end of file
diff --git a/viewer/src/@types/tag/index.d.ts b/viewer/src/@types/tag/index.d.ts
index 6a0c605..181f47a 100644
--- a/viewer/src/@types/tag/index.d.ts
+++ b/viewer/src/@types/tag/index.d.ts
@@ -1,6 +1,6 @@
1declare namespace Tag { 1declare namespace Tag {
2 interface Node { 2 interface Node {
3 tag: string; 3 tag: Gallery.RawTag;
4 items: Gallery.Item[]; 4 items: Gallery.Item[];
5 children: Index; 5 children: Index;
6 } 6 }