Remove LEGACY Nostr client services and related components to streamline the codebase

- Delete Nostr client hub and associated files, including the Nostr store, to eliminate unused functionality.
- Update service tokens and dependency injections to reflect the removal of Nostr client services.
- Adjust notification settings in NotificationSettings.vue to prepare for future implementation of notifications.
This commit is contained in:
padreug 2025-09-06 10:55:10 +02:00
parent 92c33aa0a3
commit 7e4b64b831
8 changed files with 7 additions and 661 deletions

View file

@ -44,7 +44,6 @@ export abstract class BaseService {
// Core dependencies with proper typing
protected relayHub: any = null
protected authService: any = null
protected nostrClientHub: any = null
protected visibilityService: any = null
// Service state
@ -134,7 +133,6 @@ export abstract class BaseService {
// Try to inject core dependencies
this.relayHub = tryInjectService(SERVICE_TOKENS.RELAY_HUB)
this.authService = tryInjectService(SERVICE_TOKENS.AUTH_SERVICE)
this.nostrClientHub = tryInjectService(SERVICE_TOKENS.NOSTR_CLIENT_HUB)
this.visibilityService = tryInjectService(SERVICE_TOKENS.VISIBILITY_SERVICE)
// Check if all required dependencies are available
@ -180,9 +178,6 @@ export abstract class BaseService {
if (deps.includes('AuthService') && !this.authService) {
missing.push('AuthService')
}
if (deps.includes('NostrClientHub') && !this.nostrClientHub) {
missing.push('NostrClientHub')
}
if (deps.includes('VisibilityService') && !this.visibilityService) {
missing.push('VisibilityService')
}
@ -269,7 +264,6 @@ export abstract class BaseService {
this.isInitialized.value = false
this.relayHub = null
this.authService = null
this.nostrClientHub = null
console.log(`♻️ ${this.metadata.name} disposed`)

View file

@ -109,7 +109,6 @@ export const SERVICE_TOKENS = {
// Nostr services
RELAY_HUB: Symbol('relayHub'),
NOSTR_CLIENT_HUB: Symbol('nostrClientHub'),
// Auth services
AUTH_SERVICE: Symbol('authService'),