From bbaa6d87ff28cb5a98042f5ce19bec059e591133 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Sun, 22 Sep 2024 17:50:24 -0300 Subject: [PATCH 01/12] WIP --- src/components/ui/VnImg.vue | 37 +- src/i18n/ca-ES/index.js | 1 + src/i18n/en-US/index.js | 1 + src/i18n/es-ES/index.js | 1 + src/i18n/fr-FR/index.js | 1 + src/i18n/pt-PT/index.js | 1 + src/pages/Admin/ItemsView.vue | 10 +- src/pages/Ecomerce/Catalog.vue | 706 ---------------- src/pages/Ecomerce/CatalogView.vue | 1133 ++++++++++++++++++++++++++ src/pages/Ecomerce/OrdersView.vue | 5 - src/pages/Ecomerce/TicketDetails.vue | 2 +- src/router/routes.js | 2 +- 12 files changed, 1170 insertions(+), 730 deletions(-) delete mode 100644 src/pages/Ecomerce/Catalog.vue create mode 100644 src/pages/Ecomerce/CatalogView.vue diff --git a/src/components/ui/VnImg.vue b/src/components/ui/VnImg.vue index 6a459020..fb468dc1 100644 --- a/src/components/ui/VnImg.vue +++ b/src/components/ui/VnImg.vue @@ -28,13 +28,9 @@ const props = defineProps({ type: Number, required: true }, - rounded: { - type: Boolean, - default: false - }, - fullRounded: { - type: Boolean, - default: false + roundedBorders: { + type: String, + default: 'none' }, width: { type: String, @@ -70,6 +66,17 @@ const showEditForm = ref(false); const url = computed(() => { return `${props.baseURL ?? app.imageUrl}/${props.storage}/${props.size}/${props.id}`; }); + +const rounded = computed(() => { + const roundedMap = { + none: '', + default: 'rounded', + full: 'full-rounded', + top: 'top-rounded', + bottom: 'bottom-rounded' + }; + return roundedMap[props.roundedBorders]; +});