aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-05-24 11:10:48 +0200
committerGitHub <noreply@github.com>2022-05-24 11:10:48 +0200
commitd4001281d926bf3b004f1af5f9c0eeacee07325e (patch)
treecfe1cb7acc5323bf2f00cdfd3ebfa3a8237c774d
parent889cdc0fcca20aca0fc2acef63fccb19a5a9f1b8 (diff)
parent7f4130fd047c34159911b72057b1de521541631b (diff)
downloadhomer-d4001281d926bf3b004f1af5f9c0eeacee07325e.tar.gz
homer-d4001281d926bf3b004f1af5f9c0eeacee07325e.tar.zst
homer-d4001281d926bf3b004f1af5f9c0eeacee07325e.zip
Merge pull request #451 from GRMrGecko/main
Add support for search keywords to solve issue #372
-rw-r--r--docs/configuration.md1
-rw-r--r--public/assets/config.yml.dist1
-rw-r--r--src/App.vue3
3 files changed, 4 insertions, 1 deletions
diff --git a/docs/configuration.md b/docs/configuration.md
index 84a7ea7..bb41948 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" # optional keyword used for searching purpose
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) {