From 54790c6c73d7c51ff22cf5e9722b141cdc0249df Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 29 Feb 2020 16:39:55 +0100 Subject: compiler: add tagCategories setting to gallery.yaml --- viewer/src/@types/gallery.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index 4fa544f..de1c0dd 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -23,7 +23,8 @@ declare namespace Gallery { } interface GalleryProperties { - galleryTitle: string + galleryTitle: string, + tagCategories: RawTag[] } interface Index { properties: GalleryProperties, -- cgit v1.2.3 From 577f49ab6e1fd9cd8007804a13dea1471ee2fb1f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 3 Apr 2020 03:42:35 +0200 Subject: viewer: tag categories implementation GitHub: Resolves #29 --- viewer/src/@types/tag.d.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index a390c80..425a995 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -31,4 +31,9 @@ declare namespace Tag { } type SearchByOperation = { [index: string]: Tag.Search[] }; type Index = { [index: string]: Node }; + + interface Category { + tag: string; + index: Index; + } } -- cgit v1.2.3 From ce04802f300ba627a3b9e9612d938b825045e63f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 4 Apr 2020 01:36:34 +0200 Subject: viewer: tag categories implementation fixed single tags not appearing in the "Other filters" special category, following code review GitHub: Resolves #29 --- viewer/src/@types/tag.d.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'viewer/src/@types') diff --git a/viewer/src/@types/tag.d.ts b/viewer/src/@types/tag.d.ts index 425a995..229c418 100644 --- a/viewer/src/@types/tag.d.ts +++ b/viewer/src/@types/tag.d.ts @@ -21,6 +21,7 @@ declare namespace Tag { interface Node { tag: Gallery.RawTag; tagfiltered: Gallery.RawTag; + rootPart: boolean; items: Gallery.Item[]; children: Index; } -- cgit v1.2.3