Merge pull request #451 from GRMrGecko/main

Add support for search keywords to solve issue #372
This commit is contained in:
Bastien Wirtz 2022-05-24 11:10:48 +02:00 committed by GitHub
commit d4001281d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -127,6 +127,7 @@ services:
# icon: "fab fa-jenkins"
subtitle: "Bookmark example"
tag: "app"
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"

View File

@ -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"

View File

@ -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) {