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/tag.d.ts') 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/tag.d.ts') 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