]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Add support for search keywords to solve issue #372
authorJames Coleman <grmrgecko@gmail.com>
Thu, 12 May 2022 22:30:24 +0000 (17:30 -0500)
committerJames Coleman <grmrgecko@gmail.com>
Thu, 12 May 2022 22:30:24 +0000 (17:30 -0500)
docs/configuration.md
public/assets/config.yml.dist
src/App.vue

index 84a7ea716d2dc188f42a0001edffa7fea29bf7ae..6eb54c07b2ec7d4c9e02a72d07f776a3a0bf48c4 100644 (file)
@@ -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"
index 03a86824da0fd79ca09e3ce8dc92b772449dad15..bbfd0afc4b8e7a7436fadf462bfad12cf29605e8 100644 (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"
index 515177eba13b80d096a89727781655114dadf35d..c58fca1096726f8f8d13196def444547b983dccb 100644 (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) {