Refactor imports and enhance type handling across components

- Update import paths for useTicketPurchase in PurchaseTicketDialog.vue to reflect new module structure.
- Adjust type handling in Navbar.vue and various market components to use 'any' for improved compatibility with existing data structures.
- Enhance useLightningPayment composable to include shipping zone details, ensuring better order management.
- Remove unused pages (events.vue, MyTickets.vue, OrderHistory.vue) to streamline the codebase and improve maintainability.
This commit is contained in:
padreug 2025-09-05 05:42:44 +02:00
parent 18f48581cd
commit 861c032300
12 changed files with 37 additions and 1217 deletions

View file

@ -4,7 +4,7 @@ import { onUnmounted } from 'vue'
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription } from '@/components/ui/dialog'
import { Button } from '@/components/ui/button'
import { Badge } from '@/components/ui/badge'
import { useTicketPurchase } from '@/composables/useTicketPurchase'
import { useTicketPurchase } from '@/modules/events/composables/useTicketPurchase'
import { useAuth } from '@/composables/useAuth'
import { User, Wallet, CreditCard, Zap, Ticket } from 'lucide-vue-next'
import { formatEventPrice, formatWalletBalance } from '@/lib/utils/formatting'

View file

@ -43,7 +43,7 @@ const totalBalance = computed(() => {
})
// Try to get chat service from DI (may not be available if chat module not loaded)
const chatService = tryInjectService(SERVICE_TOKENS.CHAT_SERVICE)
const chatService = tryInjectService(SERVICE_TOKENS.CHAT_SERVICE) as any
// Compute total unread messages (reactive)
const totalUnreadMessages = computed(() => {