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:
parent
92c33aa0a3
commit
7e4b64b831
8 changed files with 7 additions and 661 deletions
|
|
@ -151,15 +151,13 @@ import { Button } from '@/components/ui/button'
|
|||
import { Label } from '@/components/ui/label'
|
||||
import { Badge } from '@/components/ui/badge'
|
||||
import { Bell, BellOff, TestTube, AlertCircle } from 'lucide-vue-next'
|
||||
import { useNostrStore } from '@/stores/nostr'
|
||||
import { notificationManager } from '@/lib/notifications/manager'
|
||||
import { pushService } from '@/lib/notifications/push'
|
||||
import { configUtils } from '@/lib/config'
|
||||
import { toast } from 'vue-sonner'
|
||||
import { storeToRefs } from 'pinia'
|
||||
|
||||
const nostrStore = useNostrStore()
|
||||
const { notificationsEnabled } = storeToRefs(nostrStore)
|
||||
// Placeholder for notifications - will be implemented later
|
||||
const notificationsEnabled = ref(false)
|
||||
|
||||
const isLoading = ref(false)
|
||||
const isTestLoading = ref(false)
|
||||
|
|
@ -174,14 +172,14 @@ onMounted(async () => {
|
|||
|
||||
async function checkStatus() {
|
||||
isBlocked.value = pushService.getPermission() === 'denied'
|
||||
await nostrStore.checkPushNotificationStatus()
|
||||
// TODO: Implement push notification status checking when notifications are re-added
|
||||
}
|
||||
|
||||
async function enableNotifications() {
|
||||
try {
|
||||
isLoading.value = true
|
||||
await nostrStore.enablePushNotifications()
|
||||
toast.success('Push notifications enabled!')
|
||||
// TODO: Implement push notification enabling when notifications are re-added
|
||||
toast.success('Push notifications will be implemented later')
|
||||
await checkStatus()
|
||||
} catch (error) {
|
||||
const message = error instanceof Error ? error.message : 'Failed to enable notifications'
|
||||
|
|
@ -193,7 +191,7 @@ async function enableNotifications() {
|
|||
|
||||
async function disableNotifications() {
|
||||
try {
|
||||
await nostrStore.disablePushNotifications()
|
||||
// TODO: Implement push notification disabling when notifications are re-added
|
||||
toast.success('Push notifications disabled')
|
||||
await checkStatus()
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue