From da6e1211370dffc7910b8fd8b44a0ce18d03230f Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 19 Apr 2024 13:33:29 +0200 Subject: [PATCH] refactor: refs #6480 use VnCard --- src/components/common/VnCard.vue | 15 ++-- src/css/app.scss | 4 + src/pages/Claim/Card/ClaimCard.vue | 51 +++---------- src/pages/Claim/locale/es.yml | 2 + src/pages/Customer/Card/CustomerCard.vue | 50 +++---------- src/pages/Customer/locale/es.yml | 2 + src/pages/Department/Card/DepartmentCard.vue | 29 ++------ src/pages/Entry/Card/EntryCard.vue | 53 +++---------- src/pages/Entry/locale/es.yml | 2 + src/pages/Item/Card/ItemCard.vue | 25 +------ src/pages/Order/Card/OrderCard.vue | 20 +---- src/pages/Parking/Card/ParkingCard.vue | 58 +++------------ src/pages/Route/Card/RouteCard.vue | 19 +---- src/pages/Shelving/Card/ShelvingCard.vue | 18 +---- src/pages/Supplier/Card/SupplierCard.vue | 77 +++---------------- src/pages/Supplier/locale/es.yml | 1 + src/pages/Ticket/Card/TicketCard.vue | 78 +++----------------- src/pages/Ticket/locale/es.yml | 2 + src/pages/Travel/Card/TravelCard.vue | 52 +------------ src/pages/Wagon/Card/WagonCard.vue | 30 +------- src/pages/Worker/Card/WorkerCard.vue | 49 +++--------- src/pages/Worker/locale/es.yml | 2 + 22 files changed, 114 insertions(+), 525 deletions(-) create mode 100644 src/pages/Claim/locale/es.yml create mode 100644 src/pages/Supplier/locale/es.yml create mode 100644 src/pages/Ticket/locale/es.yml create mode 100644 src/pages/Worker/locale/es.yml diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue index 6bfc7bc6c..a89350e49 100644 --- a/src/components/common/VnCard.vue +++ b/src/components/common/VnCard.vue @@ -14,10 +14,10 @@ const props = defineProps({ baseUrl: { type: String, required: true }, filter: { type: Object, default: undefined }, descriptor: { type: Object, required: true }, - searchbarDataKey: { type: String, required: true }, - searchbarUrl: { type: String, required: true }, - searchbarLabel: { type: String, required: true }, - searchbarInfo: { type: String, required: true }, + searchbarDataKey: { type: String, default: undefined }, + searchbarUrl: { type: String, default: undefined }, + searchbarLabel: { type: String, default: '' }, + searchbarInfo: { type: String, default: '' }, }); const { t } = useI18n(); @@ -39,7 +39,10 @@ onBeforeRouteUpdate(async (to, from) => { });