From 9506ed53c8ae78488aadff030366186af3cbd1ec Mon Sep 17 00:00:00 2001 From: James Coleman Date: Thu, 12 May 2022 17:30:24 -0500 Subject: Add support for search keywords to solve issue #372 --- docs/configuration.md | 1 + public/assets/config.yml.dist | 1 + src/App.vue | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 84a7ea7..6eb54c0 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -127,6 +127,7 @@ services: # icon: "fab fa-jenkins" subtitle: "Bookmark example" tag: "app" + keywords: "self hosted reddit" url: "https://www.reddit.com/r/selfhosted/" target: "_blank" # optional html tag target attribute - name: "Another one" diff --git a/public/assets/config.yml.dist b/public/assets/config.yml.dist index 03a8682..bbfd0af 100644 --- a/public/assets/config.yml.dist +++ b/public/assets/config.yml.dist @@ -75,6 +75,7 @@ services: logo: "assets/tools/sample.png" subtitle: "Bookmark example" tag: "app" + keywords: "self hosted reddit" url: "https://www.reddit.com/r/selfhosted/" target: "_blank" # optional html a tag target attribute - name: "Another one" diff --git a/src/App.vue b/src/App.vue index 515177e..c58fca1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -264,7 +264,8 @@ export default { return ( item.name.toLowerCase().includes(this.filter) || (item.subtitle && item.subtitle.toLowerCase().includes(this.filter)) || - (item.tag && item.tag.toLowerCase().includes(this.filter)) + (item.tag && item.tag.toLowerCase().includes(this.filter)) || + (item.keywords && item.keywords.toLowerCase().includes(this.filter)) ); }, navigateToFirstService: function (target) { -- cgit v1.2.3 From 7f4130fd047c34159911b72057b1de521541631b Mon Sep 17 00:00:00 2001 From: "Mr. Gecko" Date: Mon, 23 May 2022 16:58:53 -0500 Subject: Update docs/configuration.md Add comment to describe keywords Co-authored-by: Bastien Wirtz --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 6eb54c0..bb41948 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -127,7 +127,7 @@ services: # icon: "fab fa-jenkins" subtitle: "Bookmark example" tag: "app" - keywords: "self hosted reddit" + keywords: "self hosted reddit" # optional keyword used for searching purpose url: "https://www.reddit.com/r/selfhosted/" target: "_blank" # optional html tag target attribute - name: "Another one" -- cgit v1.2.3