diff --git a/src/app.ts b/src/app.ts index 2525c16..1b5a930 100644 --- a/src/app.ts +++ b/src/app.ts @@ -4,7 +4,7 @@ import { createPinia } from 'pinia' // Core plugin system import { pluginManager } from './core/plugin-manager' import { eventBus } from './core/event-bus' -import { container, SERVICE_TOKENS } from './core/di-container' +import { container } from './core/di-container' // App configuration import appConfig from './app.config' diff --git a/src/components/layout/Navbar.vue b/src/components/layout/Navbar.vue index cc19ce0..0b6033c 100644 --- a/src/components/layout/Navbar.vue +++ b/src/components/layout/Navbar.vue @@ -18,10 +18,7 @@ import { useMarketStore } from '@/stores/market' import { tryInjectService, SERVICE_TOKENS } from '@/core/di-container' import { useModularNavigation } from '@/composables/useModularNavigation' -interface NavigationItem { - name: string - href: string -} +// NavigationItem interface removed as it's handled by useModularNavigation const router = useRouter() const { t } = useI18n() diff --git a/src/components/nostr/ChatComponent.vue b/src/components/nostr/ChatComponent.vue deleted file mode 100644 index 10aa158..0000000 --- a/src/components/nostr/ChatComponent.vue +++ /dev/null @@ -1,627 +0,0 @@ - - - \ No newline at end of file diff --git a/src/composables/useRelayHub.ts b/src/composables/useRelayHub.ts new file mode 100644 index 0000000..d20eb01 --- /dev/null +++ b/src/composables/useRelayHub.ts @@ -0,0 +1,7 @@ +// Legacy composable stub - replaced by modular base module services +export function useRelayHub() { + return { + connectedRelays: [], + status: 'disconnected' + } +} \ No newline at end of file diff --git a/src/modules/chat/services/chat-service.ts b/src/modules/chat/services/chat-service.ts index 6c922bb..8f21a92 100644 --- a/src/modules/chat/services/chat-service.ts +++ b/src/modules/chat/services/chat-service.ts @@ -1,7 +1,7 @@ import { ref, computed } from 'vue' import { eventBus } from '@/core/event-bus' import { injectService, SERVICE_TOKENS } from '@/core/di-container' -import { nip04, getEventHash, finalizeEvent, type Event, type EventTemplate } from 'nostr-tools' +import { nip04, finalizeEvent, type Event, type EventTemplate } from 'nostr-tools' import type { ChatMessage, ChatPeer, UnreadMessageData, ChatConfig } from '../types' import { getAuthToken } from '@/lib/config/lnbits' import { config } from '@/lib/config' @@ -439,7 +439,7 @@ export class ChatService { try { const isFromUs = event.pubkey === userPubkey const peerPubkey = isFromUs - ? event.tags.find(tag => tag[0] === 'p')?.[1] // Get recipient from tag + ? event.tags.find((tag: string[]) => tag[0] === 'p')?.[1] // Get recipient from tag : event.pubkey // Sender is the peer if (!peerPubkey || peerPubkey === userPubkey) continue diff --git a/src/modules/events/views/MyTicketsPage.vue b/src/modules/events/views/MyTicketsPage.vue index 6ec31e2..86bed33 100644 --- a/src/modules/events/views/MyTicketsPage.vue +++ b/src/modules/events/views/MyTicketsPage.vue @@ -1,7 +1,7 @@ \ No newline at end of file