refactor: Rename Relay Hub Demo to Relay Hub Status and update routing

- Change the title and content of the RelayHubDemo component to reflect its new purpose as Relay Hub Status.
- Update routing paths and component names in the Navbar and router configuration to align with the new naming convention.
- Enhance user navigation by ensuring consistent terminology across the application.
This commit is contained in:
padreug 2025-08-10 19:00:03 +02:00
parent 260806e690
commit 355fb6e94b
3 changed files with 9 additions and 10 deletions

View file

@ -33,7 +33,6 @@ const navigation = computed<NavigationItem[]>(() => [
{ name: t('nav.events'), href: '/events' },
{ name: t('nav.market'), href: '/market' },
{ name: t('nav.chat'), href: '/chat' },
{ name: 'Relay Hub', href: '/relay-hub-demo' },
])
// Compute total wallet balance
@ -150,9 +149,9 @@ const handleLogout = async () => {
<Ticket class="h-4 w-4" />
My Tickets
</DropdownMenuItem>
<DropdownMenuItem @click="() => router.push('/relay-hub-demo')" class="gap-2">
<DropdownMenuItem @click="() => router.push('/relay-hub-status')" class="gap-2">
<MessageSquare class="h-4 w-4" />
Relay Hub Demo
Relay Hub Status
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem @click="handleLogout" class="gap-2 text-destructive">
@ -235,10 +234,10 @@ const handleLogout = async () => {
<Ticket class="h-4 w-4" />
My Tickets
</Button>
<Button variant="ghost" size="sm" @click="() => router.push('/relay-hub-demo')"
<Button variant="ghost" size="sm" @click="() => router.push('/relay-hub-status')"
class="w-full justify-start gap-2">
<MessageSquare class="h-4 w-4" />
Relay Hub Demo
Relay Hub Status
</Button>
<Button variant="ghost" size="sm" @click="handleLogout"
class="w-full justify-start gap-2 text-destructive">

View file

@ -2,9 +2,9 @@
<div class="min-h-screen bg-gray-50 dark:bg-gray-900 py-8">
<div class="max-w-6xl mx-auto px-4">
<div class="mb-8">
<h1 class="text-3xl font-bold text-gray-900 dark:text-white mb-2">Relay Hub Demo</h1>
<h1 class="text-3xl font-bold text-gray-900 dark:text-white mb-2">Relay Hub Status</h1>
<p class="text-gray-600 dark:text-gray-300">
Test and monitor the centralized Nostr relay hub functionality
Monitor and test the centralized Nostr relay hub functionality
</p>
</div>

View file

@ -59,11 +59,11 @@ const router = createRouter({
}
},
{
path: '/relay-hub-demo',
name: 'relay-hub-demo',
path: '/relay-hub-status',
name: 'relay-hub-status',
component: () => import('@/pages/RelayHubDemo.vue'),
meta: {
title: 'Relay Hub Demo',
title: 'Relay Hub Status',
requiresAuth: true
}
},