From: James Coleman Date: Thu, 12 May 2022 22:30:24 +0000 (-0500) Subject: Add support for search keywords to solve issue #372 X-Git-Tag: v22.06.1~7^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9506ed53c8ae78488aadff030366186af3cbd1ec;p=github%2Fbastienwirtz%2Fhomer.git Add support for search keywords to solve issue #372 --- 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) {