feat: Update app configuration and enhance identity management

- Change app manifest details to reflect new branding for "Ario - Nostr Community Hub".
- Add new properties to the manifest, including categories and language support.
- Refactor identity handling in IdentityDialog and PasswordDialog components for improved profile initialization.
- Update event creation functions in events.ts to use the correct event type from nostr-tools.
This commit is contained in:
padreug 2025-07-03 08:34:26 +02:00
parent c05f40f1ec
commit cc6ba2612d
4 changed files with 46 additions and 23 deletions

View file

@ -7,7 +7,6 @@ import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label'
import { Textarea } from '@/components/ui/textarea'
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
import { Badge } from '@/components/ui/badge'
import { Key, Download, Upload, Copy, Check } from 'lucide-vue-next'
import { identity } from '@/composables/useIdentity'
import { toast } from 'vue-sonner'
@ -20,7 +19,7 @@ interface Emits {
(e: 'update:isOpen', value: boolean): void
}
const props = defineProps<Props>()
defineProps<Props>()
const emit = defineEmits<Emits>()
@ -64,7 +63,14 @@ async function handleGenerate() {
// Initialize profile form with current data
const profile = identity.currentProfile.value
if (profile) {
profileForm.value = { ...profile }
profileForm.value = {
name: profile.name || '',
display_name: profile.display_name || '',
about: profile.about || '',
picture: profile.picture || '',
website: profile.website || '',
lud16: profile.lud16 || ''
}
}
toast.success('Identity generated successfully!')
@ -82,7 +88,14 @@ async function handleImport() {
// Initialize profile form with current data
const profile = identity.currentProfile.value
if (profile) {
profileForm.value = { ...profile }
profileForm.value = {
name: profile.name || '',
display_name: profile.display_name || '',
about: profile.about || '',
picture: profile.picture || '',
website: profile.website || '',
lud16: profile.lud16 || ''
}
}
toast.success('Identity imported successfully!')