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:
padreug 2025-03-09 13:05:33 +01:00
parent 3d356225cd
commit c1f32c0ea6
9 changed files with 114 additions and 561 deletions

View file

@ -1,6 +1,6 @@
export default {
nav: {
title: 'Atitlán Directory',
title: 'Title Here',
home: 'Home',
directory: 'Directory',
faq: 'FAQ',
@ -8,92 +8,4 @@ export default {
login: 'Login',
logout: 'Logout'
},
auth: {
logout: {
title: 'Backup Required',
description: 'If you haven\'t saved your private key, you will permanently lose access to this chat history. Make sure to copy and securely store your private key before logging out.',
copyKey: 'Copy Private Key',
copied: 'Copied!',
cancel: 'Cancel',
confirm: 'Logout'
}
},
login: {
title: 'Nostr Login',
description: 'Login with your Nostr private key or generate a new one',
placeholder: 'Enter your private key',
error: 'Invalid private key',
buttons: {
login: 'Login',
generate: 'Generate New Key',
copy: 'Copy private key'
},
recovery: {
message: 'Make sure to save your private key in a secure location. You can use it to recover your chat history on any device.'
}
},
home: {
title: 'Find Bitcoin Lightning Acceptors',
subtitle: 'Discover local businesses, services, and venues that accept Bitcoin Lightning payments.',
browse: 'Browse Directory',
learnMore: 'Learn More',
selectTown: 'Location',
selectTownPlaceholder: 'Select your location...'
},
directory: {
title: 'Lightning Payment Directory',
subtitle: 'Find local businesses and services that accept Bitcoin Lightning payments',
search: 'Search...',
categories: {
all: 'All',
restaurant: 'Restaurants',
lodging: 'Lodging',
goods: 'Goods',
services: 'Services',
taxi: 'Taxis',
lancha: 'Lanchas',
other: 'Other',
tuktuk: 'Tuk-tuk'
},
towns: {
all: 'All',
},
contact: 'Contact',
location: 'Location',
viewMap: 'View on Map',
lightning: 'Lightning Address',
itemNotFound: 'Directory Item Not Found',
itemNotFoundDesc: 'The directory item you are looking for could not be found.',
backToDirectory: 'Back to Directory',
share: 'Share',
shareTitle: 'Share this listing',
copyLink: 'Copy Link',
linkCopied: 'Link copied to clipboard!',
onlinePresence: 'Online Presence',
},
footer: {
poweredBy: 'Powered by',
donate: 'Donate',
},
faq: {
title: 'Frequently Asked Questions',
items: [
{
question: "What is Bitcoin Lightning?",
answer: "Bitcoin Lightning is a layer 2 payment protocol that operates on top of the Bitcoin blockchain. It enables instant, low-cost transactions between participating nodes, making it ideal for everyday purchases."
},
{
question: "How do I pay with Lightning?",
answer: "To pay with Lightning, you'll need a Lightning-enabled Bitcoin wallet. When making a purchase, simply scan the merchant's QR code with your wallet and confirm the payment. The transaction is nearly instant!"
},
{
question: "Is Lightning safe to use?",
answer: "Yes, Lightning is secure as it inherits Bitcoin's security model. While it operates differently from base-layer Bitcoin transactions, it maintains high security standards through smart contract technology."
},
{
question: "How can I list my business?",
answer: "If you're a business accepting Lightning payments and would like to be listed in our directory, please contact us through our submission form [coming soon]."
}
]
}
}

View file

@ -3,97 +3,9 @@ export default {
home: 'Inicio',
directory: 'Directorio',
faq: 'Preguntas',
title: 'Directorio Atitlán',
title: 'Titulo Aqui',
support: 'Soporte',
login: 'Iniciar Sesión',
logout: 'Cerrar Sesión'
},
home: {
title: 'Encuentra Aceptadores de Bitcoin Lightning',
subtitle: 'Descubre negocios locales, servicios y lugares que aceptan pagos Bitcoin Lightning.',
browse: 'Explorar Directorio',
learnMore: 'Más Información',
selectTown: 'Ubicación',
selectTownPlaceholder: 'Selecciona tu ubicación...'
},
directory: {
title: 'Directorio de Pagos Lightning',
subtitle: 'Encuentra lugares que aceptan pagos Bitcoin Lightning',
search: 'Buscar...',
categories: {
all: 'Todo',
restaurant: 'Restaurante',
lodging: 'Hospedaje',
goods: 'Productos',
services: 'Servicios',
taxi: 'Taxi',
tuktuk: 'Tuk-tuk',
lancha: 'Lancha',
other: 'Otro'
},
towns: {
all: 'Todos',
},
contact: 'Contacto',
location: 'Ubicación',
viewMap: 'Ver en Mapa',
lightning: 'Dirección Lightning',
itemNotFound: 'Elemento del Directorio No Encontrado',
itemNotFoundDesc: 'No se pudo encontrar el elemento del directorio que estás buscando.',
backToDirectory: 'Volver al Directorio',
share: 'Compartir',
shareTitle: 'Compartir este listado',
copyLink: 'Copiar enlace',
linkCopied: '¡Enlace copiado al portapapeles!',
onlinePresence: 'Presencia en Línea',
},
footer: {
poweredBy: 'Alimentado por',
donate: 'Donar',
},
faq: {
title: 'Preguntas Frecuentes',
items: [
{
question: "¿Qué es Bitcoin Lightning?",
answer: "Bitcoin Lightning es un protocolo de pago de capa 2 que opera sobre la blockchain de Bitcoin. Permite transacciones instantáneas y de bajo costo entre nodos participantes, haciéndolo ideal para compras cotidianas."
},
{
question: "¿Cómo pago con Lightning?",
answer: "Para pagar con Lightning, necesitarás una billetera Bitcoin habilitada para Lightning. Al realizar una compra, simplemente escanea el código QR del comerciante con tu billetera y confirma el pago. ¡La transacción es casi instantánea!"
},
{
question: "¿Es seguro usar Lightning?",
answer: "Sí, Lightning es seguro ya que hereda el modelo de seguridad de Bitcoin. Si bien opera de manera diferente a las transacciones de capa base de Bitcoin, mantiene altos estándares de seguridad a través de la tecnología de contratos inteligentes."
},
{
question: "¿Cómo puedo listar mi negocio?",
answer: "Si eres un negocio que acepta pagos Lightning y te gustaría aparecer en nuestro directorio, contáctanos a través de nuestro formulario de envío [próximamente]."
}
]
},
auth: {
logout: {
title: 'Respaldo Requerido',
description: 'Si no has guardado tu llave privada, perderás permanentemente el acceso a este historial de chat. Asegúrate de copiar y almacenar de forma segura tu llave privada antes de cerrar sesión.',
copyKey: 'Copiar Llave Privada',
copied: '¡Copiado!',
cancel: 'Cancelar',
confirm: 'Cerrar Sesión'
}
},
login: {
title: 'Iniciar Sesión Nostr',
description: 'Inicia sesión con tu llave privada Nostr o genera una nueva',
placeholder: 'Ingresa tu llave privada',
error: 'Llave privada inválida',
buttons: {
login: 'Iniciar Sesión',
generate: 'Generar Nueva Llave',
copy: 'Copiar llave privada'
},
recovery: {
message: 'Asegúrate de guardar tu llave privada en un lugar seguro. Puedes usarla para recuperar tu historial de chat en cualquier dispositivo.'
}
}
}