forked from extern/homer
Merge pull request #451 from GRMrGecko/main
Add support for search keywords to solve issue #372
This commit is contained in:
commit
d4001281d9
@ -127,6 +127,7 @@ services:
|
|||||||
# icon: "fab fa-jenkins"
|
# icon: "fab fa-jenkins"
|
||||||
subtitle: "Bookmark example"
|
subtitle: "Bookmark example"
|
||||||
tag: "app"
|
tag: "app"
|
||||||
|
keywords: "self hosted reddit" # optional keyword used for searching purpose
|
||||||
url: "https://www.reddit.com/r/selfhosted/"
|
url: "https://www.reddit.com/r/selfhosted/"
|
||||||
target: "_blank" # optional html tag target attribute
|
target: "_blank" # optional html tag target attribute
|
||||||
- name: "Another one"
|
- name: "Another one"
|
||||||
|
@ -75,6 +75,7 @@ services:
|
|||||||
logo: "assets/tools/sample.png"
|
logo: "assets/tools/sample.png"
|
||||||
subtitle: "Bookmark example"
|
subtitle: "Bookmark example"
|
||||||
tag: "app"
|
tag: "app"
|
||||||
|
keywords: "self hosted reddit"
|
||||||
url: "https://www.reddit.com/r/selfhosted/"
|
url: "https://www.reddit.com/r/selfhosted/"
|
||||||
target: "_blank" # optional html a tag target attribute
|
target: "_blank" # optional html a tag target attribute
|
||||||
- name: "Another one"
|
- name: "Another one"
|
||||||
|
@ -264,7 +264,8 @@ export default {
|
|||||||
return (
|
return (
|
||||||
item.name.toLowerCase().includes(this.filter) ||
|
item.name.toLowerCase().includes(this.filter) ||
|
||||||
(item.subtitle && item.subtitle.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) {
|
navigateToFirstService: function (target) {
|
||||||
|
Loading…
Reference in New Issue
Block a user