From f21c2299565ab32f97811690417a89d256614e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Fri, 31 Mar 2023 12:49:45 +0200 Subject: [PATCH] refactor: search page * Memoize previous search queries * Use computed for data filters * Fix old results temporarily appearing when clearing the query --- frontend/src/pages/search.vue | 195 ++++++++++++---------------------- 1 file changed, 68 insertions(+), 127 deletions(-) diff --git a/frontend/src/pages/search.vue b/frontend/src/pages/search.vue index f92faed2c69..51f9893d1ed 100644 --- a/frontend/src/pages/search.vue +++ b/frontend/src/pages/search.vue @@ -2,25 +2,25 @@
- + {{ $t('movies') }} - + {{ $t('shows') }} - + {{ $t('albums') }} - + {{ $t('songs') }} - + {{ $t('books') }} - + {{ $t('people') }} - + {{ $t('artists') }} @@ -30,46 +30,25 @@ - + - + - + - + - + - + - + @@ -79,7 +58,8 @@