From a33ce5699e0b54a25a2cf6ea3f9e39baeb140122 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 18 Jun 2024 15:26:48 +0200 Subject: [PATCH 01/26] feat: refs #7030 translation proposal --- src/components/common/VnBreadcrumbs.vue | 1 + src/i18n/locale/en.yml | 322 ++++++++--------------- src/i18n/locale/es.yml | 329 ++++++++---------------- 3 files changed, 228 insertions(+), 424 deletions(-) diff --git a/src/components/common/VnBreadcrumbs.vue b/src/components/common/VnBreadcrumbs.vue index 337507233..75fd6d499 100644 --- a/src/components/common/VnBreadcrumbs.vue +++ b/src/components/common/VnBreadcrumbs.vue @@ -37,6 +37,7 @@ function getBreadcrumb(param) { locale: t(`globals.pageTitles.${param.meta.title}`), }; + //TODO modificar para que funcione títulos de página if (screen.gt.sm) { breadcrumb.name = param.name; breadcrumb.title = useCamelCase(param.meta.title); diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 5ef3a5472..9bf272d61 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -107,6 +107,119 @@ globals: aliasUsers: Users subRoles: Subroles inheritedRoles: Inherited Roles + customers: Customers + list: List + webPayments: Web Payments + extendedList: Extended list + notifications: Notifications + defaulter: Defaulter + customerCreate: New customer + fiscalData: Fiscal data + billingData: Billing data + consignees: Consignees + notes: Notes + credits: Credits + greuges: Greuges + balance: Balance + recoveries: Recoveries + webAccess: Web access + sms: Sms + creditManagement: Credit management + creditContracts: Credit contracts + creditOpinion: Credit opinion + others: Others + samples: Samples + consumption: Consumption + mandates: Mandates + contacts: Contacts + webPayment: Web payment + fileManagement: File management + unpaid: Unpaid + entries: Entries + buys: Buys + dms: File management + entryCreate: New entry + latestBuys: Latest buys + tickets: Tickets + ticketCreate: New Tickets + boxing: Boxing + sale: Sale + claims: Claims + claimCreate: New claim + lines: Lines + photos: Photos + development: Development + action: Action + invoiceOuts: Invoice out + negativeBases: Negative Bases + globalInvoicing: Global invoicing + invoiceOutCreate: Create invoice out + shelving: Shelving + shelvingList: Shelving List + shelvingCreate: New shelving + invoiceIns: Invoices In + invoiceInCreate: Create invoice in + vat: VAT + dueDay: Due day + intrastat: Intrastat + corrective: Corrective + order: Orders + orderList: List + orderCreate: New order + catalog: Catalog + volume: Volume + workers: Workers + workerCreate: New worker + department: Department + pda: PDA + pbx: Private Branch Exchange + calendar: Calendar + timeControl: Time control + locker: Locker + wagons: Wagons + wagonsList: Wagons List + wagonCreate: Create wagon + wagonEdit: Edit wagon + typesList: Types List + typeCreate: Create type + typeEdit: Edit type + wagonCounter: Trolley counter + roadmap: Roadmap + stops: Stops + routes: Routes + cmrsList: CMRs list + RouteList: List + routeCreate: New route + RouteRoadmap: Roadmaps + RouteRoadmapCreate: Create roadmap + autonomous: Autonomous + suppliers: Suppliers + supplier: Supplier + supplierCreate: New supplier + accounts: Accounts + addresses: Addresses + agencyTerm: Agency agreement + travel: Travels + extraCommunity: Extra community + travelCreate: New travel + history: Log + thermographs: Thermograph + items: Items + diary: Diary + tags: Tags + create: Create + buyRequest: Buy requests + fixedPrice: Fixed prices + wasteBreakdown: Waste breakdown + itemCreate: New item + barcode: Barcodes + tax: Tax + botanical: Botanical + itemTypeCreate: New item type + family: Item Type + lastEntries: Last entries + itemType: Item type + monitors: Monitors created: Created worker: Worker now: Now @@ -149,38 +262,6 @@ dashboard: pageTitles: dashboard: Dashboard customer: - pageTitles: - customers: Customers - list: List - webPayments: Web Payments - extendedList: Extended list - notifications: Notifications - defaulter: Defaulter - customerCreate: New customer - summary: Summary - basicData: Basic data - fiscalData: Fiscal data - billingData: Billing data - consignees: Consignees - notes: Notes - credits: Credits - greuges: Greuges - balance: Balance - recoveries: Recoveries - webAccess: Web access - log: Log - sms: Sms - creditManagement: Credit management - creditContracts: Credit contracts - creditOpinion: Credit opinion - others: Others - samples: Samples - consumption: Consumption - mandates: Mandates - contacts: Contacts - webPayment: Web payment - fileManagement: File management - unpaid: Unpaid list: phone: Phone email: Email @@ -310,17 +391,6 @@ customer: hasCoreVnl: VNL core received hasSepaVnl: VNL B2B received entry: - pageTitles: - entries: Entries - list: List - summary: Summary - basicData: Basic data - buys: Buys - notes: Notes - dms: File management - log: Log - entryCreate: New entry - latestBuys: Latest buys list: newEntry: New entry landed: Landed @@ -432,16 +502,6 @@ entry: packingOut: Package out landing: Landing ticket: - pageTitles: - tickets: Tickets - list: List - ticketCreate: New ticket - summary: Summary - basicData: Basic Data - boxing: Boxing - sms: Sms - notes: Notes - sale: Sale list: nickname: Nickname state: State @@ -516,18 +576,6 @@ ticket: warehouse: Warehouse agency: Agency claim: - pageTitles: - claims: Claims - list: List - claimCreate: New claim - summary: Summary - basicData: Basic Data - lines: Lines - photos: Photos - development: Development - log: Audit logs - notes: Notes - action: Action list: customer: Customer assignedTo: Assigned @@ -591,14 +639,6 @@ claim: noData: 'There are no images/videos, click here or drag and drop the file' dragDrop: Drag and drop it here invoiceOut: - pageTitles: - invoiceOuts: Invoice out - list: List - negativeBases: Negative Bases - globalInvoicing: Global invoicing - invoiceOutCreate: Create invoice out - summary: Summary - basicData: Basic Data list: ref: Reference issued: Issued @@ -666,13 +706,6 @@ invoiceOut: errors: downloadCsvFailed: CSV download failed shelving: - pageTitles: - shelving: Shelving - shelvingList: Shelving List - shelvingCreate: New shelving - summary: Summary - basicData: Basic Data - log: Logs list: parking: Parking priority: Priority @@ -699,17 +732,6 @@ parking: info: You can search by parking code label: Search parking... invoiceIn: - pageTitles: - invoiceIns: Invoices In - list: List - invoiceInCreate: Create invoice in - summary: Summary - basicData: Basic data - vat: VAT - dueDay: Due day - intrastat: Intrastat - corrective: Corrective - log: Logs list: ref: Reference supplier: Supplier @@ -760,15 +782,6 @@ invoiceIn: stems: Stems country: Country order: - pageTitles: - order: Orders - orderList: List - orderCreate: New order - summary: Summary - basicData: Basic Data - catalog: Catalog - volume: Volume - lines: Lines field: salesPersonFk: Sales Person clientFk: Client @@ -827,23 +840,6 @@ department: hasToSendMail: Send check-ins by email departmentRemoved: Department removed worker: - pageTitles: - workers: Workers - list: List - basicData: Basic data - summary: Summary - notifications: Notifications - workerCreate: New worker - department: Department - pda: PDA - notes: Notas - dms: My documentation - pbx: Private Branch Exchange - log: Log - calendar: Calendar - timeControl: Time control - locker: Locker - list: name: Name email: Email @@ -915,15 +911,6 @@ worker: bankEntity: Swift / BIC imageNotFound: Image not found wagon: - pageTitles: - wagons: Wagons - wagonsList: Wagons List - wagonCreate: Create wagon - wagonEdit: Edit wagon - typesList: Types List - typeCreate: Create type - typeEdit: Edit type - wagonCounter: Trolley counter type: name: Name submit: Submit @@ -952,31 +939,7 @@ wagon: minHeightBetweenTrays: 'The minimum height between trays is ' maxWagonHeight: 'The maximum height of the wagon is ' uncompleteTrays: There are incomplete trays -route/roadmap: - pageTitles: - roadmap: Roadmap - summary: Summary - basicData: Basic Data - stops: Stops -roadmap: - pageTitles: - roadmap: Roadmap - summary: Summary - basicData: Basic Data - stops: Stops route: - pageTitles: - routes: Routes - cmrsList: CMRs list - RouteList: List - routeCreate: New route - basicData: Basic Data - summary: Summary - RouteRoadmap: Roadmaps - RouteRoadmapCreate: Create roadmap - tickets: Tickets - log: Log - autonomous: Autonomous cmr: list: results: results @@ -992,22 +955,6 @@ route: viewCmr: View CMR downloadCmrs: Download CMRs supplier: - pageTitles: - suppliers: Suppliers - supplier: Supplier - list: List - supplierCreate: New supplier - summary: Summary - basicData: Basic data - fiscalData: Fiscal data - billingData: Billing data - log: Log - accounts: Accounts - contacts: Contacts - addresses: Addresses - consumption: Consumption - agencyTerm: Agency agreement - dms: File management list: payMethod: Pay method payDeadline: Pay deadline @@ -1099,15 +1046,6 @@ supplier: date: Date reference: Reference travel: - pageTitles: - travel: Travels - list: List - summary: Summary - extraCommunity: Extra community - travelCreate: New travel - basicData: Basic data - history: Log - thermographs: Thermograph summary: confirmed: Confirmed entryId: Entry Id @@ -1154,24 +1092,6 @@ travel: travelFileDescription: 'Travel id { travelId }' file: File item: - pageTitles: - items: Items - list: List - diary: Diary - tags: Tags - create: Create - buyRequest: Buy requests - fixedPrice: Fixed prices - wasteBreakdown: Waste breakdown - itemCreate: New item - barcode: Barcodes - tax: Tax - log: Log - botanical: Botanical - shelving: Shelving - itemTypeCreate: New item type - family: Item Type - lastEntries: Last entries descriptor: item: Item buyer: Buyer @@ -1257,22 +1177,6 @@ item: minSalesQuantity: 'Cantidad mínima de venta' genus: 'Genus' specie: 'Specie' -item/itemType: - pageTitles: - itemType: Item type - basicData: Basic data - summary: Summary -monitor: - pageTitles: - monitors: Monitors - list: List -zone: - pageTitles: - zones: Zones - zonesList: Zones - deliveryList: Delivery days - upcomingList: Upcoming deliveries - components: topbar: {} itemsFilterPanel: diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index cfadd57b3..f33cc8543 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -107,6 +107,120 @@ globals: aliasUsers: Usuarios subRoles: Subroles inheritedRoles: Roles heredados + customers: Clientes + customerCreate: Nuevo cliente + list: Listado + webPayments: Pagos Web + extendedList: Listado extendido + notifications: Notificaciones + defaulter: Morosos + createCustomer: Crear cliente + fiscalData: Datos fiscales + billingData: Forma de pago + consignees: Consignatarios + notes: Notas + credits: Créditos + greuges: Greuges + balance: Balance + recoveries: Recobros + webAccess: Acceso web + sms: Sms + creditManagement: Gestión de crédito + creditContracts: Contratos de crédito + creditOpinion: Opinión de crédito + others: Otros + samples: Plantillas + consumption: Consumo + mandates: Mandatos + contacts: Contactos + webPayment: Pago web + fileManagement: Gestión documental + unpaid: Impago + entries: Entradas + buys: Compras + dms: Gestión documental + entryCreate: Nueva entrada + latestBuys: Últimas compras + tickets: Tickets + ticketCreate: Nuevo ticket + boxing: Encajado + sale: Lineas del pedido + claims: Reclamaciones + claimCreate: Crear reclamación + lines: Líneas + development: Trazabilidad + photos: Fotos + action: Acción + invoiceOuts: Fact. emitidas + negativeBases: Bases Negativas + globalInvoicing: Facturación global + invoiceOutCreate: Crear fact. emitida + order: Cesta + orderList: Listado + orderCreate: Nueva orden + catalog: Catálogo + volume: Volumen + shelving: Carros + shelvingList: Listado de carros + shelvingCreate: Nuevo carro + invoiceIns: Fact. recibidas + invoiceInCreate: Crear fact. recibida + vat: IVA + dueDay: Vencimiento + intrastat: Intrastat + corrective: Rectificativa + workers: Trabajadores + workerCreate: Nuevo trabajador + department: Departamentos + pda: PDA + pbx: Centralita + calendar: Calendario + timeControl: Control de horario + locker: Taquilla + wagons: Vagones + wagonsList: Listado vagones + wagonCreate: Crear tipo + wagonEdit: Editar tipo + typesList: Listado tipos + typeCreate: Crear tipo + typeEdit: Editar tipo + wagonCounter: Contador de carros + roadmap: Troncales + stops: Paradas + routes: Rutas + cmrsList: Listado de CMRs + RouteList: Listado + routeCreate: Nueva ruta + RouteRoadmap: Troncales + RouteRoadmapCreate: Crear troncal + autonomous: Autónomos + suppliers: Proveedores + supplier: Proveedor + supplierCreate: Nuevo proveedor + accounts: Cuentas + addresses: Direcciones + agencyTerm: Acuerdo agencia + travel: Envíos + create: Crear + extraCommunity: Extra comunitarios + travelCreate: Nuevo envío + history: Historial + thermographs: Termógrafos + items: Artículos + diary: Histórico + tags: Etiquetas + fixedPrice: Precios fijados + buyRequest: Peticiones de compra + wasteBreakdown: Deglose de mermas + itemCreate: Nuevo artículo + tax: 'IVA' + botanical: 'Botánico' + barcode: 'Código de barras' + itemTypeCreate: Nueva familia + family: Familia + lastEntries: Últimas entradas + itemType: Familia + monitors: Monitores created: Fecha creación worker: Trabajador now: Ahora @@ -147,39 +261,6 @@ dashboard: pageTitles: dashboard: Tablón customer: - pageTitles: - customers: Clientes - customerCreate: Nuevo cliente - list: Listado - webPayments: Pagos Web - extendedList: Listado extendido - notifications: Notificaciones - defaulter: Morosos - createCustomer: Crear cliente - summary: Resumen - basicData: Datos básicos - fiscalData: Datos fiscales - billingData: Forma de pago - consignees: Consignatarios - notes: Notas - credits: Créditos - greuges: Greuges - balance: Balance - recoveries: Recobros - webAccess: Acceso web - log: Historial - sms: Sms - creditManagement: Gestión de crédito - creditContracts: Contratos de crédito - creditOpinion: Opinión de crédito - others: Otros - samples: Plantillas - consumption: Consumo - mandates: Mandatos - contacts: Contactos - webPayment: Pago web - fileManagement: Gestión documental - unpaid: Impago list: phone: Teléfono email: Email @@ -308,17 +389,6 @@ customer: hasCoreVnl: Recibido core VNL hasSepaVnl: Recibido B2B VNL entry: - pageTitles: - entries: Entradas - list: Listado - summary: Resumen - basicData: Datos básicos - buys: Compras - notes: Notas - dms: Gestión documental - log: Historial - entryCreate: Nueva entrada - latestBuys: Últimas compras list: newEntry: Nueva entrada landed: F. entrega @@ -430,16 +500,6 @@ entry: packingOut: Embalaje envíos landing: Llegada ticket: - pageTitles: - tickets: Tickets - list: Listado - ticketCreate: Nuevo ticket - summary: Resumen - basicData: Datos básicos - boxing: Encajado - sms: Sms - notes: Notas - sale: Lineas del pedido list: nickname: Alias state: Estado @@ -514,18 +574,6 @@ ticket: warehouse: Almacén agency: Agencia claim: - pageTitles: - claims: Reclamaciones - list: Listado - claimCreate: Crear reclamación - summary: Resumen - basicData: Datos básicos - lines: Líneas - development: Trazabilidad - photos: Fotos - log: Historial - notes: Notas - action: Acción list: customer: Cliente assignedTo: Asignada a @@ -589,14 +637,6 @@ claim: noData: No hay imágenes/videos haz click aquí o arrastra y suelta el archivo dragDrop: Arrástralo y sueltalo aquí invoiceOut: - pageTitles: - invoiceOuts: Fact. emitidas - list: Listado - negativeBases: Bases Negativas - globalInvoicing: Facturación global - invoiceOutCreate: Crear fact. emitida - summary: Resumen - basicData: Datos básicos list: ref: Referencia issued: Fecha emisión @@ -664,15 +704,6 @@ invoiceOut: errors: downloadCsvFailed: Error al descargar CSV order: - pageTitles: - order: Cesta - orderList: Listado - orderCreate: Nueva orden - summary: Resumen - basicData: Datos básicos - catalog: Catálogo - volume: Volumen - lines: Líneas field: salesPersonFk: Comercial clientFk: Cliente @@ -714,13 +745,6 @@ order: price: Precio amount: Monto shelving: - pageTitles: - shelving: Carros - shelvingList: Listado de carros - shelvingCreate: Nuevo carro - summary: Resumen - basicData: Datos básicos - log: Historial list: parking: Parking priority: Prioridad @@ -746,17 +770,6 @@ parking: info: Puedes buscar por código de parking label: Buscar parking... invoiceIn: - pageTitles: - invoiceIns: Fact. recibidas - list: Listado - invoiceInCreate: Crear fact. recibida - summary: Resumen - basicData: Datos básicos - vat: IVA - dueDay: Vencimiento - intrastat: Intrastat - corrective: Rectificativa - log: Historial list: ref: Referencia supplier: Proveedor @@ -822,22 +835,6 @@ department: hasToSendMail: Enviar fichadas por mail departmentRemoved: Departamento eliminado worker: - pageTitles: - workers: Trabajadores - list: Listado - basicData: Datos básicos - summary: Resumen - notifications: Notificaciones - workerCreate: Nuevo trabajador - department: Departamentos - pda: PDA - notes: Notas - dms: Mi documentación - pbx: Centralita - log: Historial - calendar: Calendario - timeControl: Control de horario - locker: Taquilla list: name: Nombre email: Email @@ -900,15 +897,6 @@ worker: bankEntity: Swift / BIC imageNotFound: No se ha encontrado la imagen wagon: - pageTitles: - wagons: Vagones - wagonsList: Listado vagones - wagonCreate: Crear tipo - wagonEdit: Editar tipo - typesList: Listado tipos - typeCreate: Crear tipo - typeEdit: Editar tipo - wagonCounter: Contador de carros type: name: Nombre submit: Guardar @@ -937,31 +925,7 @@ wagon: minHeightBetweenTrays: 'La distancia mínima entre bandejas es ' maxWagonHeight: 'La altura máxima del vagón es ' uncompleteTrays: Hay bandejas sin completar -route/roadmap: - pageTitles: - roadmap: Troncales - summary: Resumen - basicData: Datos básicos - stops: Paradas -roadmap: - pageTitles: - roadmap: Troncales - summary: Resumen - basicData: Datos básicos - stops: Paradas route: - pageTitles: - routes: Rutas - cmrsList: Listado de CMRs - RouteList: Listado - routeCreate: Nueva ruta - basicData: Datos básicos - summary: Resumen - RouteRoadmap: Troncales - RouteRoadmapCreate: Crear troncal - tickets: Tickets - log: Historial - autonomous: Autónomos cmr: list: results: resultados @@ -977,22 +941,6 @@ route: viewCmr: Ver CMR downloadCmrs: Descargar CMRs supplier: - pageTitles: - suppliers: Proveedores - supplier: Proveedor - list: Listado - supplierCreate: Nuevo proveedor - summary: Resumen - basicData: Datos básicos - fiscalData: Datos fiscales - billingData: Forma de pago - log: Historial - accounts: Cuentas - contacts: Contactos - addresses: Direcciones - consumption: Consumo - agencyTerm: Acuerdo agencia - dms: Gestión documental list: payMethod: Método de pago payDeadline: Plazo de pago @@ -1084,16 +1032,6 @@ supplier: date: Fecha reference: Referencia travel: - pageTitles: - travel: Envíos - list: Listado - create: Crear - summary: Resumen - extraCommunity: Extra comunitarios - travelCreate: Nuevo envío - basicData: Datos básicos - history: Historial - thermographs: Termógrafos summary: confirmed: Confirmado entryId: Id entrada @@ -1140,24 +1078,6 @@ travel: travelFileDescription: 'Id envío { travelId }' file: Fichero item: - pageTitles: - items: Artículos - list: Listado - diary: Histórico - tags: Etiquetas - fixedPrice: Precios fijados - buyRequest: Peticiones de compra - wasteBreakdown: Deglose de mermas - itemCreate: Nuevo artículo - basicData: 'Datos básicos' - tax: 'IVA' - botanical: 'Botánico' - barcode: 'Código de barras' - log: Historial - shelving: Carros - itemTypeCreate: Nueva familia - family: Familia - lastEntries: Últimas entradas descriptor: item: Artículo buyer: Comprador @@ -1243,27 +1163,6 @@ item: achieved: 'Conseguido' concept: 'Concepto' state: 'Estado' -item/itemType: - pageTitles: - itemType: Familia - basicData: Datos básicos - summary: Resumen -zone: - pageTitles: - zones: Zonas - list: Zonas - deliveryList: Días de entrega - upcomingList: Próximos repartos -role: - pageTitles: - zones: Zonas - list: Zonas - deliveryList: Días de entrega - upcomingList: Próximos repartos -monitor: - pageTitles: - monitors: Monitores - list: Listado components: topbar: {} itemsFilterPanel: From 42c58296acea1071ed890092b2acade504d50319 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 19 Jun 2024 08:44:40 +0200 Subject: [PATCH 02/26] refafctor: changed titles errors --- src/components/common/VnBreadcrumbs.vue | 1 - src/i18n/locale/en.yml | 8 +++++--- src/i18n/locale/es.yml | 8 +++++--- src/pages/Claim/Card/ClaimSummary.vue | 2 +- src/pages/InvoiceIn/Card/InvoiceInSummary.vue | 8 ++++---- src/pages/Travel/Card/TravelSummary.vue | 8 ++++---- src/pages/Travel/ExtraCommunity.vue | 2 +- src/pages/Travel/ExtraCommunityFilter.vue | 2 +- src/router/index.js | 7 ++----- src/router/modules/item.js | 9 --------- src/stores/useNavigationStore.js | 4 ++-- 11 files changed, 25 insertions(+), 34 deletions(-) diff --git a/src/components/common/VnBreadcrumbs.vue b/src/components/common/VnBreadcrumbs.vue index 75fd6d499..337507233 100644 --- a/src/components/common/VnBreadcrumbs.vue +++ b/src/components/common/VnBreadcrumbs.vue @@ -37,7 +37,6 @@ function getBreadcrumb(param) { locale: t(`globals.pageTitles.${param.meta.title}`), }; - //TODO modificar para que funcione títulos de página if (screen.gt.sm) { breadcrumb.name = param.name; breadcrumb.title = useCamelCase(param.meta.title); diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 9bf272d61..3cf929f82 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -100,8 +100,8 @@ globals: modes: Modes zones: Zones zonesList: Zones - deliveryList: Delivery days - upcomingList: Upcoming deliveries + deliveryDays: Delivery days + upcomingDeliveries: Upcoming deliveries role: Role alias: Alias aliasUsers: Users @@ -220,6 +220,8 @@ globals: lastEntries: Last entries itemType: Item type monitors: Monitors + dashboard: Dashboard + users: Users created: Created worker: Worker now: Now @@ -260,7 +262,7 @@ verifyEmail: verifyEmail: Email verification dashboard: pageTitles: - dashboard: Dashboard + customer: list: phone: Phone diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f33cc8543..2b4498ced 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -100,8 +100,8 @@ globals: modes: Modos zones: Zonas zonesList: Zonas - deliveryList: Días de entrega - upcomingList: Próximos repartos + deliveryDays: Días de entrega + upcomingDeliveries: Próximos repartos role: Role alias: Alias aliasUsers: Usuarios @@ -221,6 +221,8 @@ globals: lastEntries: Últimas entradas itemType: Familia monitors: Monitores + dashboard: Tablón + users: Usuarios created: Fecha creación worker: Trabajador now: Ahora @@ -259,7 +261,7 @@ verifyEmail: verifyEmail: Verificación de correo dashboard: pageTitles: - dashboard: Tablón + customer: list: phone: Teléfono diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index 36a26008e..241709bdd 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -223,7 +223,7 @@ async function changeState(value) { `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; `#/invoice-in/${entityId.value}/${param}`; diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index 91b36f0cf..f0785cff1 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -49,7 +49,7 @@ const entriesTableColumns = computed(() => { showValue: false, }, { - label: t('supplier.pageTitles.supplier'), + label: t('globals.pageTitles.supplier'), field: 'supplierName', name: 'supplierName', align: 'left', @@ -247,7 +247,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; @@ -265,7 +265,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; @@ -283,7 +283,7 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`; diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue index 607ecb560..eb410a489 100644 --- a/src/pages/Travel/ExtraCommunity.vue +++ b/src/pages/Travel/ExtraCommunity.vue @@ -132,7 +132,7 @@ const columns = computed(() => [ sortable: true, }, { - label: t('supplier.pageTitles.supplier'), + label: t('globals.pageTitles.supplier'), field: 'cargoSupplierNickname', name: 'cargoSupplierNickname', align: 'left', diff --git a/src/pages/Travel/ExtraCommunityFilter.vue b/src/pages/Travel/ExtraCommunityFilter.vue index 7fe628180..5f9adedfa 100644 --- a/src/pages/Travel/ExtraCommunityFilter.vue +++ b/src/pages/Travel/ExtraCommunityFilter.vue @@ -182,7 +182,7 @@ const decrement = (paramsObj, key) => { 1) { const module = matches[1]; const moduleTitle = module.meta && module.meta.title; - moduleName = toLowerCamel(module.name); if (moduleTitle) { - title = t(`${moduleName}.pageTitles.${moduleTitle}`); + title = t(`globals.pageTitles.${moduleTitle}`); } } @@ -94,7 +91,7 @@ export default route(function (/* { store, ssrContext } */) { if (childPageTitle && matches.length > 2) { if (title != '') title += ': '; - const moduleLocale = `${moduleName}.pageTitles.${childPageTitle}`; + const moduleLocale = `globals.pageTitles.${childPageTitle}`; const pageTitle = te(moduleLocale) ? t(moduleLocale) : t(`globals.pageTitles.${childPageTitle}`); diff --git a/src/router/modules/item.js b/src/router/modules/item.js index 6e8659747..06fe680eb 100644 --- a/src/router/modules/item.js +++ b/src/router/modules/item.js @@ -201,15 +201,6 @@ export default { }, component: () => import('src/pages/Item/Card/ItemLog.vue'), }, - { - path: 'botanical', - name: 'ItemBotanical', - meta: { - title: 'botanical', - icon: 'vn:botanical', - }, - component: () => import('src/pages/Item/Card/ItemBotanical.vue'), - }, ], }, ], diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js index 4dd5ed2ae..51f266800 100644 --- a/src/stores/useNavigationStore.js +++ b/src/stores/useNavigationStore.js @@ -60,7 +60,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { menuChildren = menuChildren.map(({ name, title, icon }) => ({ name, icon, - title: `${module}.pageTitles.${title}`, + title: `globals.pageTitles.${title}`, })); if (meta && meta.roles && role.hasAny(meta.roles) === false) return; @@ -70,7 +70,7 @@ export const useNavigationStore = defineStore('navigationStore', () => { children: menuChildren, }; if (meta) { - item.title = `${module}.pageTitles.${meta.title}`; + item.title = `globals.pageTitles.${meta.title}`; item.icon = meta.icon; } From 5712b4789a9a5ac07b8d355cf40930d66afbe01a Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 19 Jun 2024 08:47:14 +0200 Subject: [PATCH 03/26] fix: leftMenu test --- test/vitest/__tests__/components/Leftmenu.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vitest/__tests__/components/Leftmenu.spec.js b/test/vitest/__tests__/components/Leftmenu.spec.js index ea1c51f8d..10d9d66fb 100644 --- a/test/vitest/__tests__/components/Leftmenu.spec.js +++ b/test/vitest/__tests__/components/Leftmenu.spec.js @@ -78,13 +78,13 @@ describe('Leftmenu', () => { { children: null, name: 'CustomerList', - title: 'customer.pageTitles.list', + title: 'globals.pageTitles.list', icon: 'view_list', }, { children: null, name: 'CustomerCreate', - title: 'customer.pageTitles.createCustomer', + title: 'globals.pageTitles.createCustomer', icon: 'vn:addperson', }, ]; From ec6b54cf13c93729d2d337e25159a098417b6de3 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 19 Jun 2024 08:55:03 +0200 Subject: [PATCH 04/26] refactor: refs #7030 shelving translation --- src/pages/Shelving/Card/ShelvingSummary.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Shelving/Card/ShelvingSummary.vue b/src/pages/Shelving/Card/ShelvingSummary.vue index 168552832..05ff55292 100644 --- a/src/pages/Shelving/Card/ShelvingSummary.vue +++ b/src/pages/Shelving/Card/ShelvingSummary.vue @@ -46,7 +46,7 @@ const filter = { class="header header-link" :to="{ name: 'ShelvingBasicData', params: { id: entityId } }" > - {{ t('shelving.pageTitles.basicData') }} + {{ t('globals.pageTitles.basicData') }} From 369cb9dc75fb0918d82047e030017b8d4f3654f0 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 28 Jun 2024 10:56:09 +0200 Subject: [PATCH 05/26] refactor: refs #7030 added translations --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 3cf929f82..a3570ae82 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -222,6 +222,7 @@ globals: monitors: Monitors dashboard: Dashboard users: Users + createTicket: Create ticket created: Created worker: Worker now: Now diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 2b4498ced..58e095038 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -223,6 +223,7 @@ globals: monitors: Monitores dashboard: Tablón users: Usuarios + createTicket: Crear ticket created: Fecha creación worker: Trabajador now: Ahora From 93c109b70dcb169dc4bcdcb43ae37b51fdb6f68c Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 28 Jun 2024 11:25:38 +0200 Subject: [PATCH 06/26] refactor: new translations --- src/i18n/locale/en.yml | 18 +++++++++++++----- src/i18n/locale/es.yml | 18 +++++++++++++----- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index bc0fca88b..8fbc1a797 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -223,6 +223,19 @@ globals: dashboard: Dashboard users: Users createTicket: Create ticket + ticketAdvance: Advance tickets + futureTickets: Future tickets + purchaseRequest: Purchase request + weeklyTickets: Weekly tickets + formation: Formation + locations: Locations + warehouses: Warehouses + roles: Roles + connections: Connections + acls: ACLs + mailForwarding: Mail forwarding + mailAlias: Mail alias + privileges: Privileges created: Created worker: Worker now: Now @@ -517,10 +530,6 @@ ticket: sms: Sms notes: Notes sale: Sale - ticketAdvance: Advance tickets - futureTickets: Future tickets - purchaseRequest: Purchase request - weeklyTickets: Weekly tickets list: nickname: Nickname state: State @@ -876,7 +885,6 @@ worker: timeControl: Time control locker: Locker balance: Balance - formation: Formation list: name: Name email: Email diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 911e8b29f..f09f8e2ce 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -224,6 +224,19 @@ globals: dashboard: Tablón users: Usuarios createTicket: Crear ticket + ticketAdvance: Adelantar tickets + futureTickets: Tickets a futuro + purchaseRequest: Petición de compra + weeklyTickets: Tickets programados + formation: Formación + locations: Ubicaciones + warehouses: Almacenes + roles: Roles + connections: Conexiones + acls: ACLs + mailForwarding: Reenvío de correo + mailAlias: Alias de correo + privileges: Privilegios created: Fecha creación worker: Trabajador now: Ahora @@ -515,10 +528,6 @@ ticket: sms: Sms notes: Notas sale: Lineas del pedido - ticketAdvance: Adelantar tickets - futureTickets: Tickets a futuro - purchaseRequest: Petición de compra - weeklyTickets: Tickets programados list: nickname: Alias state: Estado @@ -871,7 +880,6 @@ worker: timeControl: Control de horario locker: Taquilla balance: Balance - formation: Formación list: name: Nombre email: Email From e418a647be3e502f6abdc28e235750df733d9db4 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sat, 29 Jun 2024 00:06:49 +0200 Subject: [PATCH 07/26] feat: #7648 handle NavBar --- public/no-image-dark.png | Bin 0 -> 7038 bytes public/no-image.png | Bin 0 -> 2181 bytes public/no-user.png | Bin 0 -> 10119 bytes src/components/NavBar.vue | 12 +++--- src/components/UserPanel.vue | 11 ++++- src/components/ui/VnImg.vue | 78 +++++++++++++++++++++++++++++++++++ src/composables/useRole.js | 4 ++ 7 files changed, 98 insertions(+), 7 deletions(-) create mode 100644 public/no-image-dark.png create mode 100644 public/no-image.png create mode 100644 public/no-user.png create mode 100644 src/components/ui/VnImg.vue diff --git a/public/no-image-dark.png b/public/no-image-dark.png new file mode 100644 index 0000000000000000000000000000000000000000..2a20d7eb4970509bc5f8e9a2bb2b5d33fee3c260 GIT binary patch literal 7038 zcmV-^8-e7BP)3 z6uuZigsii3XWsGnzx|CWk(ed=u#3ldXhm*=wCi0sdzSWM1j#|TG)ATS%fY7AwyVZ4 zHE_xYReyrCngpm_n@!j4tnL`EI`dG(s>;bJkT&;h2y#ljj3f*;T|%DGLmv(6AePF= z;&%5P7VmWeXF-Al94+KK)(s|=n~Z%gxeSXM;imZ5V;PikQ9iUcFjh`4d2-NYKQTeo8e%VgUYyj1sB>d#sR^02x43sb3kd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(vI^fm|acEyX>%z{9wf}qJ zCDr2^kg)$5Tt(DA7&tE{2z00F&77V^o?=ySvSx!N%mT1V}Pgu39^7rJT$6I+uvnlSi+^Vj@&cB$<@D5y9l - - + {{ t('globals.userPanel') }} diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 691d3db8f..38e66d67d 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -11,12 +11,15 @@ import VnSelect from 'src/components/common/VnSelect.vue'; import VnRow from 'components/ui/VnRow.vue'; import FetchData from 'components/FetchData.vue'; import { useClipboard } from 'src/composables/useClipboard'; +import VnImg from 'src/components/ui/VnImg.vue'; +import { useRole } from 'src/composables/useRole'; const state = useState(); const session = useSession(); const router = useRouter(); const { t, locale } = useI18n(); const { copyText } = useClipboard(); + const userLocale = computed({ get() { return locale.value; @@ -99,6 +102,7 @@ function saveUserData(param, value) { axios.post('UserConfigs/setUserConfig', { [param]: value }); localUserData(); } +const isEmployee = computed(() => useRole().hasAny(['employee'])); From 666cb519c5c99ddf52ee3a0f6d08e9b1166520eb Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Sat, 29 Jun 2024 00:08:35 +0200 Subject: [PATCH 10/26] feat: #7648 handle EntryBuys --- src/components/UserPanel.vue | 2 +- src/components/ui/VnImg.vue | 2 +- src/pages/Entry/EntryBuysTableDialog.vue | 184 +++++++++++++++++++++++ src/pages/Entry/EntryFilter.vue | 14 +- 4 files changed, 195 insertions(+), 7 deletions(-) create mode 100644 src/pages/Entry/EntryBuysTableDialog.vue diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index 38e66d67d..0247bb4d6 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -102,7 +102,7 @@ function saveUserData(param, value) { axios.post('UserConfigs/setUserConfig', { [param]: value }); localUserData(); } -const isEmployee = computed(() => useRole().hasAny(['employee'])); +const isEmployee = computed(() => useRole().isEmployee()); @@ -181,4 +188,5 @@ onBeforeMount(() => {}); es: + Print buys: Imprimir compras diff --git a/src/pages/Entry/EntryList.vue b/src/pages/Entry/EntryList.vue index c6c99a651..0933eb88a 100644 --- a/src/pages/Entry/EntryList.vue +++ b/src/pages/Entry/EntryList.vue @@ -125,7 +125,7 @@ const printBuys = (rowId) => { type="submit" /> { es: + Print buys: Imprimir compras Inventory entry: Es inventario Virtual entry: Es una redada Search entries: Buscar entradas From 71900b15a6d6b6ec908ec7258b88de49e7b4f6f9 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 12:18:58 +0200 Subject: [PATCH 12/26] feat: newsection and i18n --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Entry/EntryBuysTableDialog.vue | 52 ++------ src/pages/Entry/EntryList.vue | 23 ---- src/pages/Entry/MyEntries.vue | 149 +++++++++++++++++++++++ src/pages/Entry/locale/en.yml | 1 + src/pages/Entry/locale/es.yml | 1 + src/router/modules/entry.js | 11 +- 8 files changed, 171 insertions(+), 68 deletions(-) create mode 100644 src/pages/Entry/MyEntries.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 645e12b7a..e6d323708 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -314,6 +314,7 @@ entry: pageTitles: entries: Entries list: List + eti: Labeler summary: Summary basicData: Basic data buys: Buys diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 29373efd0..a14318a60 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -312,6 +312,7 @@ entry: pageTitles: entries: Entradas list: Listado + eti: Etiquetar summary: Resumen basicData: Datos básicos buys: Compras diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index 4cec9a04b..80fcfc516 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -38,15 +38,15 @@ const entityId = computed(() => $props.id || route.params.id); const entriesTableColumns = computed(() => [ { align: 'left', - name: 'item', - label: t('entry.summary.item'), - field: (row) => row.item.name, + name: 'itemFk', + field: 'itemFk', + label: t('globals.id'), }, { align: 'left', - name: 'quantity', - label: t('entry.summary.quantity'), - field: 'quantity', + name: 'item', + label: t('entry.summary.item'), + field: (row) => row.item.name, }, { align: 'left', @@ -60,18 +60,6 @@ const entriesTableColumns = computed(() => [ label: t('entry.summary.stickers'), field: 'stickers', }, - { - align: 'left', - name: 'printedStickers', - label: t('entry.buys.printedStickers'), - field: 'printedStickers', - }, - { - align: 'left', - name: 'weight', - label: t('entry.summary.weight'), - field: 'weight', - }, { align: 'left', name: 'packing', @@ -84,36 +72,12 @@ const entriesTableColumns = computed(() => [ label: t('entry.summary.grouping'), field: 'grouping', }, - { - align: 'left', - name: 'buyingValue', - label: t('entry.summary.buyingValue'), - field: ({ buyingValue }) => toCurrency(buyingValue), - }, - { - align: 'left', - name: 'price2', - label: t('entry.buys.groupingPrice'), - field: 'price2', - }, - { - align: 'left', - name: 'price3', - label: t('entry.buys.packingPrice'), - field: 'price3', - }, - { - align: 'left', - name: 'import', - label: t('entry.summary.import'), - field: (row) => toCurrency(row.buyingValue * row.quantity), - }, ]); diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue new file mode 100644 index 000000000..32cc871ee --- /dev/null +++ b/src/pages/Entry/MyEntries.vue @@ -0,0 +1,149 @@ + + + + +es: + Print buys: Imprimir compras + Inventory entry: Es inventario + Virtual entry: Es una redada + Search entries: Buscar entradas + You can search by entry reference: Puedes buscar por referencia de la entrada + diff --git a/src/pages/Entry/locale/en.yml b/src/pages/Entry/locale/en.yml index 9a476c80c..e4ad5ea62 100644 --- a/src/pages/Entry/locale/en.yml +++ b/src/pages/Entry/locale/en.yml @@ -1,4 +1,5 @@ entryList: + eti: eti list: inventoryEntry: Inventory entry virtualEntry: Virtual entry diff --git a/src/pages/Entry/locale/es.yml b/src/pages/Entry/locale/es.yml index fba6c5460..d3fe60c7a 100644 --- a/src/pages/Entry/locale/es.yml +++ b/src/pages/Entry/locale/es.yml @@ -1,6 +1,7 @@ Search entries: Buscar entradas You can search by entry reference: Puedes buscar por referencia de la entrada entryList: + eti: Etiquetas list: inventoryEntry: Es inventario virtualEntry: Es una redada diff --git a/src/router/modules/entry.js b/src/router/modules/entry.js index 67fc41824..9bdda0bb5 100644 --- a/src/router/modules/entry.js +++ b/src/router/modules/entry.js @@ -11,7 +11,7 @@ export default { component: RouterView, redirect: { name: 'EntryMain' }, menus: { - main: ['EntryList', 'EntryLatestBuys'], + main: ['EntryList', 'MyEntries', 'EntryLatestBuys'], card: ['EntryBasicData', 'EntryBuys', 'EntryNotes', 'EntryDms', 'EntryLog'], }, children: [ @@ -30,6 +30,15 @@ export default { }, component: () => import('src/pages/Entry/EntryList.vue'), }, + { + path: 'list', + name: 'MyEntries', + meta: { + title: 'eti', + icon: 'sell', + }, + component: () => import('src/pages/Entry/MyEntries.vue'), + }, { path: 'create', name: 'EntryCreate', From eeab4ed91566abdcbabda343f617cd59f1eac1db Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 13:18:19 +0200 Subject: [PATCH 13/26] updates --- src/pages/Entry/MyEntries.vue | 135 ++++++++++++++-------------------- src/router/modules/entry.js | 2 +- 2 files changed, 58 insertions(+), 79 deletions(-) diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue index 32cc871ee..8ab61bc13 100644 --- a/src/pages/Entry/MyEntries.vue +++ b/src/pages/Entry/MyEntries.vue @@ -1,5 +1,5 @@ es: - Print buys: Imprimir compras + Print buys: Imprimir etiquetas Inventory entry: Es inventario Virtual entry: Es una redada Search entries: Buscar entradas From 814056d92060671fd1ab6c204adc8dbb68cb9fbb Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 14:20:31 +0200 Subject: [PATCH 15/26] feat: showLabelerDialog --- src/pages/Entry/EntryBuysTableDialog.vue | 42 +++++++----------------- src/pages/Entry/MyEntries.vue | 7 ++-- src/pages/Entry/locale/en.yml | 1 + src/pages/Entry/locale/es.yml | 2 ++ 4 files changed, 18 insertions(+), 34 deletions(-) diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index 80fcfc516..c6ab4033c 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -1,30 +1,15 @@