From c4a51940295d514dd52f48b6f18638ac554224f4 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 29 Jan 2020 05:35:35 +0100 Subject: viewer: Tag auto-completion should be more flexible. Resolves #38 --- viewer/src/@types/tag/index.d.ts | 1 + viewer/src/components/LdTagInput.vue | 7 +++++-- viewer/src/store/galleryStore.ts | 3 ++- viewer/src/tools.ts | 30 ++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 viewer/src/tools.ts (limited to 'viewer/src') diff --git a/viewer/src/@types/tag/index.d.ts b/viewer/src/@types/tag/index.d.ts index c77fc3b..1d5df88 100644 --- a/viewer/src/@types/tag/index.d.ts +++ b/viewer/src/@types/tag/index.d.ts @@ -20,6 +20,7 @@ declare namespace Tag { interface Node { tag: Gallery.RawTag; + tagfiltered: Gallery.RawTag; items: Gallery.Item[]; children: Index; } diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue index 71131e6..7c9981f 100644 --- a/viewer/src/components/LdTagInput.vue +++ b/viewer/src/components/LdTagInput.vue @@ -42,6 +42,7 @@