From 17a519e2ee8e53806b9ce4a55446a1e0d7754675 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Sun, 18 Aug 2024 20:10:57 -0300 Subject: [PATCH] Small changes --- src/components/common/VnForm.vue | 8 ++++++-- src/components/ui/VnImg.vue | 21 ++++++++++++++++++++- src/components/ui/VnSearchBar.vue | 4 ++-- src/i18n/ca-ES/index.js | 3 ++- src/i18n/en-US/index.js | 1 + src/i18n/es-ES/index.js | 1 + src/i18n/fr-FR/index.js | 3 ++- src/i18n/pt-PT/index.js | 3 ++- src/lib/filters.js | 29 ++++++++++++++++++++--------- src/pages/Admin/ConnectionsView.vue | 17 +++++++++++++++-- src/pages/Admin/LinksView.vue | 4 ++-- src/pages/Admin/NewsDetails.vue | 11 +++++++---- src/pages/Admin/NewsView.vue | 12 ++++++++---- src/pages/Admin/VisitsView.vue | 16 ++++++++++++---- 14 files changed, 100 insertions(+), 33 deletions(-) diff --git a/src/components/common/VnForm.vue b/src/components/common/VnForm.vue index fd34e8ac..71f36fd3 100644 --- a/src/components/common/VnForm.vue +++ b/src/components/common/VnForm.vue @@ -227,7 +227,9 @@ defineExpose({ no-caps flat v-close-popup - /> + > + {{ t('cancel') }} + + > + {{ t('save') }} + diff --git a/src/components/ui/VnImg.vue b/src/components/ui/VnImg.vue index af078d6a..8bc1abee 100644 --- a/src/components/ui/VnImg.vue +++ b/src/components/ui/VnImg.vue @@ -4,6 +4,8 @@ import { useAppStore } from 'stores/app'; import ImageEditor from 'src/components/ui/ImageEditor.vue'; +import { useI18n } from 'vue-i18n'; + const props = defineProps({ baseURL: { type: String, @@ -60,6 +62,8 @@ const props = defineProps({ } }); +const { t } = useI18n(); + const app = useAppStore(); const showZoom = ref(false); const showEditForm = ref(false); @@ -77,7 +81,9 @@ const url = computed(() => { round text-color="black" @click.stop.prevent="showEditForm = !showEditForm" - /> + > + {{ t('addOrEditImage') }} + +en-US: + addOrEditImage: Add or update an image +es-ES: + addOrEditImage: Añadir o actualizar imagen +ca-ES: + addOrEditImage: Afegir o actualitzar Imatge +fr-FR: + addOrEditImage: Ajouter our mettre à jour l'image +pt-PT: + addOrEditImage: Adicionar ou atualizar imagem + diff --git a/src/components/ui/VnSearchBar.vue b/src/components/ui/VnSearchBar.vue index 3c31465d..0d65a5f1 100644 --- a/src/components/ui/VnSearchBar.vue +++ b/src/components/ui/VnSearchBar.vue @@ -68,10 +68,10 @@ onMounted(() => { @keyup.enter="search()" :placeholder="props.placeholder || t('search')" bg-color="white" - isOutlined + is-outlined :clearable="false" > - @@ -132,16 +140,21 @@ onBeforeUnmount(() => clearInterval(intervalId.value)); en-US: refresh: Refresh connections: Connections + supplantUser: Supplant user es-ES: refresh: Actualizar connections: Conexiones + supplantUser: Suplantar usuario ca-ES: refresh: Actualitzar connections: Connexions + supplantUser: Suplantar usuari fr-FR: refresh: Rafraîchir connections: Connexions + supplantUser: Supplanter l'utilisateur pt-PT: refresh: Atualizar connections: Conexões + supplantUser: Suplantar usuário diff --git a/src/pages/Admin/LinksView.vue b/src/pages/Admin/LinksView.vue index 3e884b58..60cb0bc5 100644 --- a/src/pages/Admin/LinksView.vue +++ b/src/pages/Admin/LinksView.vue @@ -21,13 +21,13 @@ onMounted(async () => getLinks());