From de78da2d47f7e2fd1eab8b4984a56b8e15513d21 Mon Sep 17 00:00:00 2001 From: Viet An Date: Sat, 6 Jun 2026 16:26:26 +0700 Subject: [PATCH] fix: remove redundant aliases --- app/components/Modal.vue | 2 +- app/components/SearchBox.vue | 2 +- app/components/TopMenu.vue | 2 +- app/components/common/CountdownTimer.vue | 2 +- app/components/common/QRcode.vue | 2 +- app/components/customer/Company.vue | 2 +- app/components/customer/Customer.vue | 4 +- app/components/customer/CustomerForm.vue | 10 +- app/components/customer/CustomerQuickAdd.vue | 4 +- .../customer/CustomerTypeSelector.vue | 2 +- app/components/customer/CustomerView.vue | 2 +- app/components/dashboard/Dashboard.vue | 14 +- app/components/dashboard/Delivery.vue | 4 +- app/components/dashboard/Driver.vue | 2 +- app/components/dashboard/OrderStatus.vue | 2 +- app/components/dashboard/TopCustomer.vue | 2 +- app/components/dashboard/TopCustomers.vue | 2 +- app/components/dashboard/TopProducts.vue | 2 +- app/components/dashboard/Warnings.vue | 2 +- app/components/datatable/ContextMenu.vue | 4 +- app/components/datatable/CreateTemplate.vue | 2 +- app/components/datatable/DataModel.vue | 2 +- app/components/datatable/FormatOption.vue | 6 +- app/components/datatable/MenuSave.vue | 2 +- app/components/datatable/ModelInfo.vue | 2 +- app/components/datatable/NewField.vue | 2 +- app/components/datatable/TableOption.vue | 2 +- app/components/datatable/TimeOption.vue | 2 +- app/components/datepicker/Datepicker.vue | 2 +- app/components/datepicker/EventMultiMonth.vue | 4 +- app/components/datepicker/EventOneMonth.vue | 4 +- app/components/datepicker/EventSummary.vue | 4 +- app/components/datepicker/PickDay.vue | 4 +- app/components/dialog/Confirm.vue | 2 +- app/components/dialog/NoteInput.vue | 2 +- app/components/imports/AddProduct.vue | 4 +- app/components/imports/AddProductVariant.vue | 4 +- app/components/imports/DeleteProduct.vue | 2 +- .../imports/DeleteProductVariant.vue | 2 +- app/components/imports/EditProduct.vue | 4 +- app/components/imports/IMEIs.vue | 6 +- app/components/imports/Imports.vue | 2 +- app/components/imports/ProductVariantForm.vue | 4 +- .../imports/ProductVariantFormNew.vue | 4 +- app/components/imports/Products.vue | 2 +- .../imports/addons/AddInternalStorage.vue | 2 +- app/components/imports/addons/AddRAM.vue | 2 +- app/components/imports/addons/AddSIM.vue | 2 +- app/components/inventory/Inventory.vue | 4 +- app/components/inventory/InventoryTable.vue | 4 +- app/components/marketing/email/Email.vue | 8 +- .../marketing/email/JobConfigurator.vue | 2 +- .../marketing/email/dataGmail/EmailSent.vue | 2 +- .../email/dataGmail/SaveListGmail.vue | 2 +- .../marketing/email/forms/EmailForm1.vue | 8 +- .../marketing/email/viewEmail/ViewEmail.vue | 2 +- app/components/media/ImageCard.vue | 2 +- app/components/media/ImageGallery.vue | 2 +- app/components/media/ImageLayout.vue | 4 +- app/components/menu/MenuAdd.vue | 2 +- app/components/menu/MenuApp.vue | 2 +- app/components/menu/MenuCollab.vue | 2 +- app/components/menu/MenuCust.vue | 2 +- app/components/menu/MenuNote.vue | 2 +- app/components/menu/MenuParam.vue | 2 +- app/components/modal/InternalEntry.vue | 2 +- app/components/modal/UserMainTab.vue | 4 +- app/components/orders/OrderPipeline.vue | 2 +- app/components/orders/Orders.vue | 6 +- app/components/orders/OrdersKanban.vue | 2 +- app/components/orders/OrdersTable.vue | 4 +- app/components/orders/SelectedOrder.vue | 10 +- app/components/pos/ChooseIMEIButton.vue | 2 +- app/components/pos/ChooseIMEIModal.vue | 4 +- app/components/pos/POS.vue | 6 +- app/components/pos/ProductSelection.vue | 2 +- app/components/snackbar/SnackBar.vue | 8 +- app/components/user/Profile.vue | 8 +- app/components/user/UserInfo.vue | 2 +- app/layouts/default.vue | 4 +- app/lib/email/templates/Template1.vue | 2 +- app/plugins/00-datatable.js | 1 - app/plugins/04-components.js | 177 +++++++++--------- tsconfig.json | 22 ++- 84 files changed, 237 insertions(+), 233 deletions(-) diff --git a/app/components/Modal.vue b/app/components/Modal.vue index f5c9ab8..2fc3d20 100644 --- a/app/components/Modal.vue +++ b/app/components/Modal.vue @@ -62,7 +62,7 @@ const props = defineProps({ title: String, }); -const componentFiles = import.meta.glob("@/components/**/*.vue"); +const componentFiles = import.meta.glob("~/components/**/*.vue"); const resolvedComponent = shallowRef(null); function loadDynamicComponent() { diff --git a/app/components/SearchBox.vue b/app/components/SearchBox.vue index 9e3bfdb..afca68b 100644 --- a/app/components/SearchBox.vue +++ b/app/components/SearchBox.vue @@ -136,7 +136,7 @@