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

@ -14,7 +14,7 @@ const props = defineProps<{
feedType?: 'all' | 'announcements' | 'events' | 'general'
}>()
const relayHub = injectService(SERVICE_TOKENS.RELAY_HUB)
const relayHub = injectService(SERVICE_TOKENS.RELAY_HUB) as any
// Reactive state
const notes = ref<any[]>([])
@ -97,7 +97,7 @@ async function loadNotes() {
const events = await relayHub.queryEvents(filters)
// Process and filter events
let processedNotes = events.map(event => ({
let processedNotes = events.map((event: any) => ({
id: event.id,
pubkey: event.pubkey,
content: event.content,
@ -111,11 +111,11 @@ async function loadNotes() {
}))
// Sort by creation time (newest first)
processedNotes.sort((a, b) => b.created_at - a.created_at)
processedNotes.sort((a: any, b: any) => b.created_at - a.created_at)
// For general feed, exclude admin posts
if (props.feedType === 'general' && hasAdminPubkeys.value) {
processedNotes = processedNotes.filter(note => !isAdminPost(note.pubkey))
processedNotes = processedNotes.filter((note: any) => !isAdminPost(note.pubkey))
}
notes.value = processedNotes
@ -153,7 +153,7 @@ async function startRealtimeSubscription() {
unsubscribe = relayHub.subscribe({
id: `feed-${props.feedType || 'all'}`,
filters,
onEvent: (event) => {
onEvent: (event: any) => {
// Add new note to the beginning of the list
const newNote = {
id: event.id,