From ff0d2db8fe1875d34b716a906078a46ed1fdbb3b Mon Sep 17 00:00:00 2001 From: wbuezas Date: Sun, 22 Sep 2024 18:47:06 -0300 Subject: [PATCH] Filters changes and create card component --- 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/Ecomerce/CatalogCard.vue | 129 +++++++++++++++++ src/pages/Ecomerce/CatalogView.vue | 216 ++++++++++------------------- 7 files changed, 205 insertions(+), 145 deletions(-) create mode 100644 src/pages/Ecomerce/CatalogCard.vue diff --git a/src/i18n/ca-ES/index.js b/src/i18n/ca-ES/index.js index 711a1cdf..9cf1aba3 100644 --- a/src/i18n/ca-ES/index.js +++ b/src/i18n/ca-ES/index.js @@ -104,6 +104,7 @@ export default { password: 'Contrasenya', modify: 'Modificar', shoppingCart: 'Cistella de la compra', + available: 'Disponible', // Image related translations 'Cant lock cache': 'No es pot bloquejar la memòria cau', 'Bad file format': 'Format de fitxer no reconegut', diff --git a/src/i18n/en-US/index.js b/src/i18n/en-US/index.js index 5e2e8019..20105461 100644 --- a/src/i18n/en-US/index.js +++ b/src/i18n/en-US/index.js @@ -137,6 +137,7 @@ export default { password: 'Password', modify: 'Modify', shoppingCart: 'Shopping cart', + available: 'Available', // Image related translations 'Cant lock cache': 'The cache could not be blocked', 'Bad file format': 'Unrecognized file format', diff --git a/src/i18n/es-ES/index.js b/src/i18n/es-ES/index.js index dc8ad61d..bbfaa58d 100644 --- a/src/i18n/es-ES/index.js +++ b/src/i18n/es-ES/index.js @@ -136,6 +136,7 @@ export default { of: 'de', modify: 'Modificar', shoppingCart: 'Cesta de la compra', + available: 'Disponible', // Image related translations 'Cant lock cache': 'La caché no pudo ser bloqueada', 'Bad file format': 'Formato de archivo no reconocido', diff --git a/src/i18n/fr-FR/index.js b/src/i18n/fr-FR/index.js index b6d4c61b..af4dbf43 100644 --- a/src/i18n/fr-FR/index.js +++ b/src/i18n/fr-FR/index.js @@ -104,6 +104,7 @@ export default { password: 'Mot de passe', modify: 'Modifier', shoppingCart: 'Panier', + available: 'Disponible', // Image related translations 'Cant lock cache': "Le cache n'a pas pu être verrouillé", 'Bad file format': 'Format de fichier non reconnu', diff --git a/src/i18n/pt-PT/index.js b/src/i18n/pt-PT/index.js index 7f748303..9b6f8f96 100644 --- a/src/i18n/pt-PT/index.js +++ b/src/i18n/pt-PT/index.js @@ -102,6 +102,7 @@ export default { password: 'Senha', modify: 'Modificar', shoppingCart: 'Cesta da compra', + available: 'Disponível', // Image related translations 'Cant lock cache': 'O cache não pôde ser bloqueado', 'Bad file format': 'Formato de arquivo inválido', diff --git a/src/pages/Ecomerce/CatalogCard.vue b/src/pages/Ecomerce/CatalogCard.vue new file mode 100644 index 00000000..be18d160 --- /dev/null +++ b/src/pages/Ecomerce/CatalogCard.vue @@ -0,0 +1,129 @@ + + + + + + + +en-US: + groupingPrice: Price per group +es-ES: + groupingPrice: Precio por grupo +ca-ES: + groupingPrice: Preu per grup +fr-FR: + groupingPrice: Prix par groupe +pt-PT: + groupingPrice: Preço por grupo + diff --git a/src/pages/Ecomerce/CatalogView.vue b/src/pages/Ecomerce/CatalogView.vue index a84f4330..75a2c94a 100644 --- a/src/pages/Ecomerce/CatalogView.vue +++ b/src/pages/Ecomerce/CatalogView.vue @@ -222,109 +222,19 @@ :thickness="2" />
{{ t('pleaseSetFilter') }}
- - -
- -
-
-
-
- {{ _item.item }} -
-
- - {{ _item.subName }} - - #{{ _item.id }} -
-
-
- - {{ _item.tag5 }} - - {{ _item.value5 }} -
-
- - {{ _item.tag6 }} - - {{ _item.value6 }} -
-
- - {{ _item.tag7 }} - - {{ _item.value7 }} -
-
- - {{ _item.tag8 }} - - {{ _item.value8 }} -
-
-
-
- - - {{ t('minGrouping') }} - - - - - {{ t('available') }} - - - - - {{ t('groupingPrice') }} - - -
-
-
+ /> @@ -417,11 +327,12 @@ @@ -1015,14 +959,6 @@ onMounted(async () => { } } } - -.my-card { - display: flex; - flex-direction: column; - width: 210px; - overflow: hidden; - cursor: pointer; -} @@ -1041,9 +977,7 @@ en-US: higherSize: Higher size lowerPrice: Lower price higherPrice: Higher price - available: Available minGrouping: Minimum packing - groupingPrice: Price per group add: Add added: Added es-ES: @@ -1068,9 +1002,7 @@ es-ES: higherSize: Medida más grande lowerPrice: Precio más bajo higherPrice: Precio más alto - available: Disponible minGrouping: Cantidad mínima - groupingPrice: Precio por grupo add: Añadir added: Añadido ca-ES: @@ -1088,9 +1020,7 @@ ca-ES: higherSize: Mida més gran lowerPrice: Preu més baix higherPrice: Preu més alt - available: Disponible minGrouping: Empaquetament mínim - groupingPrice: Preu per grup add: Afegir fr-FR: category: Catégorie @@ -1107,9 +1037,7 @@ fr-FR: higherSize: Taille le plus élevé lowerPrice: Prix le plus bas higherPrice: Prix le plus élevé - available: Disponible minGrouping: Emballage minimum - groupingPrice: Prix par groupe add: Ajouter pt-PT: category: Categoria @@ -1126,8 +1054,6 @@ pt-PT: higherSize: Tamanho maior lowerPrice: Preço mais baixo higherPrice: Preço mais alto - available: Disponível minGrouping: Embalagem mínima - groupingPrice: Preço por grupo add: Adicionar