From c7025b648c21c479dd89076057e579547381a062 Mon Sep 17 00:00:00 2001 From: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> Date: Sat, 9 Sep 2023 12:32:59 -0400 Subject: [PATCH] Search: Add hashtags to results (#3780) * Add hashtags to search results * add global count , implement changes from code review Co-Authored-By: absidue <48293849+absidue@users.noreply.github.com> * use h3 for title of hashtag element * implement suggestions from code review * use hashtag.text, move url update logic * encodeURI for hashtag url --------- Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> --- .../ft-element-list/ft-element-list.vue | 2 +- .../ft-list-hashtag/ft-list-hashtag.js | 44 ++++++++++++++++ .../ft-list-hashtag/ft-list-hashtag.scss | 6 +++ .../ft-list-hashtag/ft-list-hashtag.vue | 51 +++++++++++++++++++ .../ft-list-lazy-wrapper.js | 4 +- .../ft-list-lazy-wrapper.vue | 5 ++ src/renderer/helpers/api/local.js | 13 ++++- src/renderer/main.js | 2 + src/renderer/views/Search/Search.js | 2 +- static/locales/en-US.yaml | 3 ++ 10 files changed, 128 insertions(+), 4 deletions(-) create mode 100644 src/renderer/components/ft-list-hashtag/ft-list-hashtag.js create mode 100644 src/renderer/components/ft-list-hashtag/ft-list-hashtag.scss create mode 100644 src/renderer/components/ft-list-hashtag/ft-list-hashtag.vue diff --git a/src/renderer/components/ft-element-list/ft-element-list.vue b/src/renderer/components/ft-element-list/ft-element-list.vue index 22c4a343fadad..5bdb836059ef1 100644 --- a/src/renderer/components/ft-element-list/ft-element-list.vue +++ b/src/renderer/components/ft-element-list/ft-element-list.vue @@ -4,7 +4,7 @@ > +
+
+ +
+
+ +

+ {{ title }} +

+
+
+ + {{ $tc('Global.Counts.Channel Count', channelCount, {count: parsedChannelCount}) }} + + + + {{ $tc('Global.Counts.Video Count', videoCount, {count: parsedVideosCount}) }} + +
+
+
+ + +