From 4d8fb8eb5beaa82573170c8d278f4c351fff4d2f Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 13 Mar 2025 09:01:15 +0100 Subject: [PATCH] refactor: refs #8463 simplify creating VnDescriptor --- src/components/common/VnCard.vue | 26 +- src/components/ui/CardDescriptorBeta.vue | 256 ++----------------- src/components/ui/VnDescriptor.vue | 298 +++++++++++++++++++++++ src/pages/Order/Card/OrderDescriptor.vue | 9 +- 4 files changed, 333 insertions(+), 256 deletions(-) create mode 100644 src/components/ui/VnDescriptor.vue diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue index 620dc2ad2..dfa51c8c4 100644 --- a/src/components/common/VnCard.vue +++ b/src/components/common/VnCard.vue @@ -1,12 +1,15 @@ diff --git a/src/components/ui/CardDescriptorBeta.vue b/src/components/ui/CardDescriptorBeta.vue index b2bac234d..86f756a7b 100644 --- a/src/components/ui/CardDescriptorBeta.vue +++ b/src/components/ui/CardDescriptorBeta.vue @@ -1,262 +1,38 @@ - - - - + " + /> + + + + diff --git a/src/components/ui/VnDescriptor.vue b/src/components/ui/VnDescriptor.vue new file mode 100644 index 000000000..0aad35448 --- /dev/null +++ b/src/components/ui/VnDescriptor.vue @@ -0,0 +1,298 @@ + + + + + + + + + en: + globals: + copyId: Copy ID + es: + globals: + copyId: Copiar ID + diff --git a/src/pages/Order/Card/OrderDescriptor.vue b/src/pages/Order/Card/OrderDescriptor.vue index 133d328c0..15e8cf070 100644 --- a/src/pages/Order/Card/OrderDescriptor.vue +++ b/src/pages/Order/Card/OrderDescriptor.vue @@ -4,8 +4,6 @@ import { useRoute } from 'vue-router'; import { useI18n } from 'vue-i18n'; import { toCurrency, toDate } from 'src/filters'; import { useState } from 'src/composables/useState'; -import filter from './OrderFilter.js'; -import CardDescriptor from 'components/ui/CardDescriptor.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import FetchData from 'components/FetchData.vue'; import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; @@ -57,14 +55,11 @@ const getConfirmationValue = (isConfirmed) => { />