From f5ea2a8d5e5913ae42d26fb901f426e94614e65d Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 5 Sep 2025 04:38:51 +0200 Subject: [PATCH] Refactor market components for improved structure and functionality - Update imports in DashboardOverview.vue to use relative paths for better module organization. - Modify OrderHistory.vue to replace 'lightningInvoice' with 'paymentRequest' for consistency in payment handling. - Enhance order event handling in useMarket.ts by adding subscription and decryption logic for order-related DMs. - Update nostrmarketService.ts to use relative imports, ensuring consistency across the module. - Introduce error handling and logging for order updates, improving the robustness of the market module. --- .../market/components/DashboardOverview.vue | 6 +- .../market/components/OrderHistory.vue | 20 ++-- src/modules/market/composables/useMarket.ts | 92 ++++++++++++++++++- .../market/services/nostrmarketService.ts | 4 +- 4 files changed, 110 insertions(+), 12 deletions(-) diff --git a/src/modules/market/components/DashboardOverview.vue b/src/modules/market/components/DashboardOverview.vue index c575a0a..c6b52f0 100644 --- a/src/modules/market/components/DashboardOverview.vue +++ b/src/modules/market/components/DashboardOverview.vue @@ -215,11 +215,11 @@