chore: Refactor project setup and remove Nostr-specific components
- Remove Nostr-related components (ConnectionStatus, Login) - Update package.json with performance and analysis tools - Configure Vite for improved build optimization - Simplify i18n locales by removing Atitlán-specific content - Add .cursorrules file with development guidelines - Update Navbar and Footer to be more generic
This commit is contained in:
parent
3d356225cd
commit
c1f32c0ea6
9 changed files with 114 additions and 561 deletions
|
|
@ -1,25 +1,19 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { Menu, X, Sun, Moon, Zap, MessageSquareText, LogIn } from 'lucide-vue-next'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { useTheme } from '@/components/theme-provider'
|
||||
import { useRouter } from 'vue-router'
|
||||
import LogoutDialog from '@/components/ui/logout-dialog/LogoutDialog.vue'
|
||||
import Login from '@/components/Login.vue'
|
||||
import { Dialog, DialogContent } from '@/components/ui/dialog'
|
||||
import ConnectionStatus from '@/components/ConnectionStatus.vue'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Zap, Sun, Moon, Menu, X } from 'lucide-vue-next'
|
||||
|
||||
const { t, locale } = useI18n()
|
||||
const { theme, setTheme } = useTheme()
|
||||
// const nostrStore = useNostrStore()
|
||||
const router = useRouter()
|
||||
const isOpen = ref(false)
|
||||
const showLoginDialog = ref(false)
|
||||
|
||||
const navigation = computed(() => [
|
||||
{ name: t('nav.home'), href: '/' },
|
||||
{ name: t('nav.support'), href: '/support', icon: MessageSquareText },
|
||||
{ name: t('nav.support'), href: '/support' },
|
||||
])
|
||||
|
||||
const toggleMenu = () => {
|
||||
|
|
@ -37,15 +31,6 @@ const toggleLocale = () => {
|
|||
// Store the preference
|
||||
localStorage.setItem('locale', newLocale)
|
||||
}
|
||||
|
||||
const handleLogout = async () => {
|
||||
// await nostrStore.logout()
|
||||
router.push('/')
|
||||
}
|
||||
|
||||
const openLogin = () => {
|
||||
showLoginDialog.value = true
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -70,7 +55,7 @@ const openLogin = () => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Theme Toggle, Language, and Auth -->
|
||||
<!-- Theme Toggle and Language -->
|
||||
<div class="flex items-center gap-2">
|
||||
<!-- Hide theme toggle on mobile -->
|
||||
<Button variant="ghost" size="icon" @click="toggleTheme" class="hidden sm:inline-flex">
|
||||
|
|
@ -85,18 +70,6 @@ const openLogin = () => {
|
|||
{{ locale === 'en' ? '🇪🇸 ES' : '🇺🇸 EN' }}
|
||||
</Button>
|
||||
|
||||
<!-- <ConnectionStatus v-if="nostrStore.isLoggedIn" /> -->
|
||||
<ConnectionStatus v-if="true" />
|
||||
|
||||
<!-- <template v-if="nostrStore.isLoggedIn"> -->
|
||||
<template v-if="true">
|
||||
<LogoutDialog :onLogout="handleLogout" />
|
||||
</template>
|
||||
<Button v-else variant="ghost" size="icon" @click="openLogin"
|
||||
class="text-muted-foreground hover:text-foreground">
|
||||
<LogIn class="h-5 w-5" />
|
||||
</Button>
|
||||
|
||||
<!-- Mobile menu button -->
|
||||
<Button variant="ghost" size="icon" class="md:hidden" @click="toggleMenu">
|
||||
<span class="sr-only">Open main menu</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue