From 29f1e0529e7d43dc8624bdde9d6f270ad9fe1303 Mon Sep 17 00:00:00 2001 From: jedi Date: Thu, 9 Jan 2025 14:48:05 +0100 Subject: [PATCH] add UI for backend search --- web/src/components/Navbar.vue | 4 +- web/src/components/inputs/SearchBox.vue | 24 +++-- web/src/router.js | 10 +++ web/src/store.js | 31 +++++-- web/src/views/ItemSearch.vue | 114 ++++++++++++++++++++++++ web/src/views/TicketSearch.vue | 102 +++++++++++++++++++++ 6 files changed, 271 insertions(+), 14 deletions(-) create mode 100644 web/src/views/ItemSearch.vue create mode 100644 web/src/views/TicketSearch.vue diff --git a/web/src/components/Navbar.vue b/web/src/components/Navbar.vue index ccfb0f0..7f5e257 100644 --- a/web/src/components/Navbar.vue +++ b/web/src/components/Navbar.vue @@ -115,10 +115,10 @@ export default { this.$router.push(link); }, isItemView() { - return this.getActiveView === 'items' || this.getActiveView === 'item'; + return this.getActiveView === 'items' || this.getActiveView === 'item' || this.getActiveView === 'item_search'; }, isTicketView() { - return this.getActiveView === 'tickets' || this.getActiveView === 'ticket'; + return this.getActiveView === 'tickets' || this.getActiveView === 'ticket' || this.getActiveView === 'ticket_search'; }, setLayout(layout) { if (this.route.query.layout === layout) diff --git a/web/src/components/inputs/SearchBox.vue b/web/src/components/inputs/SearchBox.vue index eb32b07..79fb798 100644 --- a/web/src/components/inputs/SearchBox.vue +++ b/web/src/components/inputs/SearchBox.vue @@ -12,6 +12,7 @@ + + \ No newline at end of file diff --git a/web/src/views/TicketSearch.vue b/web/src/views/TicketSearch.vue new file mode 100644 index 0000000..35e7d07 --- /dev/null +++ b/web/src/views/TicketSearch.vue @@ -0,0 +1,102 @@ + + + + + \ No newline at end of file