From e618090c7c67e7b98177b3b4881173b0661b369e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 16 Jan 2025 12:58:04 +0100 Subject: [PATCH 1/3] feat: show only isActive --- src/pages/Admin/ItemsView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Admin/ItemsView.vue b/src/pages/Admin/ItemsView.vue index 8fedd306..4580b3d4 100644 --- a/src/pages/Admin/ItemsView.vue +++ b/src/pages/Admin/ItemsView.vue @@ -22,8 +22,8 @@ const query = `SELECT i.id, i.longName, i.size, i.category, LEFT JOIN image im ON im.collectionFk = 'catalog' AND im.name = i.image - WHERE i.longName LIKE CONCAT('%', #search, '%') - OR i.id = #search + WHERE (i.longName LIKE CONCAT('%', #search, '%') + OR i.id = #search ) AND i.isActive = 1 ORDER BY i.longName LIMIT 50`; const onSearch = data => (items.value = data || []); -- 2.40.1 From 2392f8c8d72cf2a08a7dffd06c50b9fd79004b45 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 16 Jan 2025 12:58:48 +0100 Subject: [PATCH 2/3] feat: sql style --- src/pages/Admin/ItemsView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Admin/ItemsView.vue b/src/pages/Admin/ItemsView.vue index 4580b3d4..e43ebc0b 100644 --- a/src/pages/Admin/ItemsView.vue +++ b/src/pages/Admin/ItemsView.vue @@ -23,7 +23,7 @@ const query = `SELECT i.id, i.longName, i.size, i.category, ON im.collectionFk = 'catalog' AND im.name = i.image WHERE (i.longName LIKE CONCAT('%', #search, '%') - OR i.id = #search ) AND i.isActive = 1 + OR i.id = #search) AND i.isActive = 1 ORDER BY i.longName LIMIT 50`; const onSearch = data => (items.value = data || []); -- 2.40.1 From 3eb191d2d1627deff9edec65a4bee52284ec7125 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 16 Jan 2025 13:29:00 +0100 Subject: [PATCH 3/3] feat: zoom image home --- src/pages/Cms/HomeView.vue | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/pages/Cms/HomeView.vue b/src/pages/Cms/HomeView.vue index 8bc5e166..a9931ca9 100644 --- a/src/pages/Cms/HomeView.vue +++ b/src/pages/Cms/HomeView.vue @@ -1,6 +1,5 @@ @@ -22,7 +30,14 @@ onMounted(async () => await fetchData());
- +
@@ -46,7 +61,7 @@ onMounted(async () => await fetchData()); >
- + -- 2.40.1