From d777474b6723ebcc4320068b848cbcbc1ae06064 Mon Sep 17 00:00:00 2001 From: "sagargurung1001@gmail.com" Date: Tue, 4 Jun 2024 16:43:08 +0545 Subject: [PATCH] Enhance search by filters Signed-off-by: sagargurung1001@gmail.com --- src/helpers/constants.js | 1 + src/views/HomeView.vue | 32 +++++++++++++++++++++++++------- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/src/helpers/constants.js b/src/helpers/constants.js index 8d3871f..a69a0d4 100644 --- a/src/helpers/constants.js +++ b/src/helpers/constants.js @@ -22,6 +22,7 @@ export const SORT_OPTIONS = [ ] export const FILTER_OPTIONS = [ + { key: "title", label: "Title" }, { key: "author", label: "Author" }, { key: "tag", label: "Tags" } ] diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 2413eeb..924f7de 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -14,7 +14,7 @@ id="search" class="home-view--search--input" v-model="search" - placeholder="Search..." + :placeholder="getSearchPlaceHolder" @keyup.enter="makeSearch" >
@@ -107,7 +107,7 @@