From 820ebe00afcf7134f943e61bd68cb8c81a9e9fee Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Thu, 30 Nov 2023 11:37:42 -0500 Subject: [PATCH] Se cambia nombre y se implementa en todos los componentes --- src/components/ui/CardList.vue | 83 ------------------------- src/i18n/en/index.js | 6 +- src/i18n/es/index.js | 2 +- src/pages/Claim/ClaimList.vue | 42 ++++++------- src/pages/Customer/CustomerList.vue | 24 +++---- src/pages/InvoiceOut/InvoiceOutList.vue | 7 +-- src/pages/Shelving/ShelvingList.vue | 10 ++- src/pages/Supplier/SupplierList.vue | 6 +- src/pages/Ticket/TicketList.vue | 10 +-- src/pages/Travel/TravelList.vue | 6 +- src/pages/Wagon/Type/WagonTypeList.vue | 7 +-- src/pages/Wagon/WagonList.vue | 7 +-- src/pages/Worker/WorkerList.vue | 22 +++---- 13 files changed, 65 insertions(+), 167 deletions(-) delete mode 100644 src/components/ui/CardList.vue diff --git a/src/components/ui/CardList.vue b/src/components/ui/CardList.vue deleted file mode 100644 index ed1df7668..000000000 --- a/src/components/ui/CardList.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index d92f11789..940e0b145 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -655,9 +655,9 @@ export default { logOut: 'Log Out', }, smartCard: { - openCard: 'View card', - openSummary: 'Open summary', - viewDescription: 'View description', + openCard: 'View', + openSummary: 'Summary', + viewDescription: 'Description', }, cardDescriptor: { mainList: 'Main list', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 3a7d09c3c..84ce5a210 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -659,7 +659,7 @@ export default { smartCard: { openCard: 'Ficha', openSummary: 'Detalles', - viewDescription: 'Ver descripciĆ³n', + viewDescription: 'DescripciĆ³n', }, cardDescriptor: { mainList: 'Listado principal', diff --git a/src/pages/Claim/ClaimList.vue b/src/pages/Claim/ClaimList.vue index b5c5616f5..b3dd64e8e 100644 --- a/src/pages/Claim/ClaimList.vue +++ b/src/pages/Claim/ClaimList.vue @@ -79,13 +79,13 @@ function viewSummary(id) { > diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue index 219ef0be3..6d450ad12 100644 --- a/src/pages/Customer/CustomerList.vue +++ b/src/pages/Customer/CustomerList.vue @@ -81,25 +81,17 @@ function viewSummary(id) { diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index 2d2fd5093..36a0af4a3 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -10,7 +10,7 @@ import { toDate, toCurrency } from 'src/filters/index'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import InvoiceOutFilter from './InvoiceOutFilter.vue'; import VnLv from 'src/components/ui/VnLv.vue'; -import CardList2 from 'src/components/ui/CardList2.vue'; +import CardList from 'src/components/ui/CardList.vue'; const { t } = useI18n(); const arrayElements = ref([]); @@ -177,7 +177,7 @@ const downloadCsv = (rows) => { @click="downloadCsv(rows)" /> - { v-for="row of rows" > - + diff --git a/src/pages/Shelving/ShelvingList.vue b/src/pages/Shelving/ShelvingList.vue index 3b7f84343..aaf0aa27a 100644 --- a/src/pages/Shelving/ShelvingList.vue +++ b/src/pages/Shelving/ShelvingList.vue @@ -3,7 +3,7 @@ import VnPaginate from 'components/ui/VnPaginate.vue'; import { useStateStore } from 'stores/useStateStore'; import { useI18n } from 'vue-i18n'; import { onMounted, onUnmounted } from 'vue'; -import CardList2 from 'components/ui/CardList2.vue'; +import CardList from 'components/ui/CardList.vue'; import VnLv from 'components/ui/VnLv.vue'; import { useQuasar } from 'quasar'; import { useRouter } from 'vue-router'; @@ -71,7 +71,7 @@ function viewSummary(id) { auto-load > - + - + {{ t('supplier.list.newSupplier') }} diff --git a/src/pages/Supplier/SupplierList.vue b/src/pages/Supplier/SupplierList.vue index 3a674a2bc..cd632a1e7 100644 --- a/src/pages/Supplier/SupplierList.vue +++ b/src/pages/Supplier/SupplierList.vue @@ -4,7 +4,7 @@ import { useStateStore } from 'stores/useStateStore'; import { useRouter } from 'vue-router'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; import VnPaginate from 'src/components/ui/VnPaginate.vue'; -import CardList2 from 'src/components/ui/CardList2.vue'; +import CardList from 'src/components/ui/CardList.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import { useQuasar } from 'quasar'; import SupplierSummaryDialog from './Card/SupplierSummaryDialog.vue'; @@ -47,7 +47,7 @@ const viewSummary = (id) => {
- +
diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index 5826423d1..7198b723a 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -120,11 +120,11 @@ function viewSummary(id) { /> diff --git a/src/pages/Travel/TravelList.vue b/src/pages/Travel/TravelList.vue index 2a4f312a1..c7f4a6df5 100644 --- a/src/pages/Travel/TravelList.vue +++ b/src/pages/Travel/TravelList.vue @@ -5,7 +5,7 @@ import { toDate } from 'src/filters/index'; import { useRouter } from 'vue-router'; import VnPaginate from 'src/components/ui/VnPaginate.vue'; -import CardList2 from 'src/components/ui/CardList2.vue'; +import CardList from 'src/components/ui/CardList.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import TravelSummaryDialog from './Card/TravelSummaryDialog.vue'; import { useTravelStore } from 'src/stores/travel.js'; @@ -62,7 +62,7 @@ onMounted(async () => { order="shipped DESC, landed DESC" > - + diff --git a/src/pages/Wagon/Type/WagonTypeList.vue b/src/pages/Wagon/Type/WagonTypeList.vue index bcc3b7ffa..504b40353 100644 --- a/src/pages/Wagon/Type/WagonTypeList.vue +++ b/src/pages/Wagon/Type/WagonTypeList.vue @@ -5,7 +5,7 @@ import VnPaginate from 'src/components/ui/VnPaginate.vue'; import { useArrayData } from 'src/composables/useArrayData'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; -import CardList2 from 'components/ui/CardList2.vue'; +import CardList from 'components/ui/CardList.vue'; import VnLv from 'components/ui/VnLv.vue'; const quasar = useQuasar(); @@ -50,7 +50,7 @@ async function remove(row) { auto-load > - + diff --git a/src/pages/Wagon/WagonList.vue b/src/pages/Wagon/WagonList.vue index e936f075b..73db61646 100644 --- a/src/pages/Wagon/WagonList.vue +++ b/src/pages/Wagon/WagonList.vue @@ -5,7 +5,7 @@ import VnPaginate from 'src/components/ui/VnPaginate.vue'; import { useArrayData } from 'src/composables/useArrayData'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; -import CardList2 from 'components/ui/CardList2.vue'; +import CardList from 'components/ui/CardList.vue'; import VnLv from 'components/ui/VnLv.vue'; const quasar = useQuasar(); @@ -57,7 +57,7 @@ async function remove(row) { auto-load > - + diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue index cb75cdee3..be679f3a4 100644 --- a/src/pages/Worker/WorkerList.vue +++ b/src/pages/Worker/WorkerList.vue @@ -85,19 +85,17 @@ function viewSummary(id) {