diff options
author | James Coleman <grmrgecko@gmail.com> | 2022-05-12 17:30:24 -0500 |
---|---|---|
committer | James Coleman <grmrgecko@gmail.com> | 2022-05-12 17:30:24 -0500 |
commit | 9506ed53c8ae78488aadff030366186af3cbd1ec (patch) | |
tree | 63b47a242844696a40b8b0083c19287c9b20977f | |
parent | 2ac75c05349ee4315bfdad238504e6693adc322d (diff) | |
download | homer-9506ed53c8ae78488aadff030366186af3cbd1ec.tar.gz homer-9506ed53c8ae78488aadff030366186af3cbd1ec.tar.zst homer-9506ed53c8ae78488aadff030366186af3cbd1ec.zip |
Add support for search keywords to solve issue #372
-rw-r--r-- | docs/configuration.md | 1 | ||||
-rw-r--r-- | public/assets/config.yml.dist | 1 | ||||
-rw-r--r-- | src/App.vue | 3 |
3 files changed, 4 insertions, 1 deletions
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: | |||
127 | # icon: "fab fa-jenkins" | 127 | # icon: "fab fa-jenkins" |
128 | subtitle: "Bookmark example" | 128 | subtitle: "Bookmark example" |
129 | tag: "app" | 129 | tag: "app" |
130 | keywords: "self hosted reddit" | ||
130 | url: "https://www.reddit.com/r/selfhosted/" | 131 | url: "https://www.reddit.com/r/selfhosted/" |
131 | target: "_blank" # optional html tag target attribute | 132 | target: "_blank" # optional html tag target attribute |
132 | - name: "Another one" | 133 | - 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: | |||
75 | logo: "assets/tools/sample.png" | 75 | logo: "assets/tools/sample.png" |
76 | subtitle: "Bookmark example" | 76 | subtitle: "Bookmark example" |
77 | tag: "app" | 77 | tag: "app" |
78 | keywords: "self hosted reddit" | ||
78 | url: "https://www.reddit.com/r/selfhosted/" | 79 | url: "https://www.reddit.com/r/selfhosted/" |
79 | target: "_blank" # optional html a tag target attribute | 80 | target: "_blank" # optional html a tag target attribute |
80 | - name: "Another one" | 81 | - 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 { | |||
264 | return ( | 264 | return ( |
265 | item.name.toLowerCase().includes(this.filter) || | 265 | item.name.toLowerCase().includes(this.filter) || |
266 | (item.subtitle && item.subtitle.toLowerCase().includes(this.filter)) || | 266 | (item.subtitle && item.subtitle.toLowerCase().includes(this.filter)) || |
267 | (item.tag && item.tag.toLowerCase().includes(this.filter)) | 267 | (item.tag && item.tag.toLowerCase().includes(this.filter)) || |
268 | (item.keywords && item.keywords.toLowerCase().includes(this.filter)) | ||
268 | ); | 269 | ); |
269 | }, | 270 | }, |
270 | navigateToFirstService: function (target) { | 271 | navigateToFirstService: function (target) { |