diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..96d00a9 --- /dev/null +++ b/.env.example @@ -0,0 +1,20 @@ +# Nostr Configuration +VITE_NOSTR_RELAYS=["wss://relay.damus.io","wss://relay.snort.social"] +VITE_ADMIN_PUBKEYS=["your-admin-pubkey-here"] + +# API Configuration +VITE_API_BASE_URL=http://localhost:5000 +VITE_API_KEY=your-api-key-here + +# Push Notifications +VITE_VAPID_PUBLIC_KEY=your-vapid-public-key +VITE_PUSH_NOTIFICATIONS_ENABLED=true + +# Support +VITE_SUPPORT_NPUB=your-support-npub + +# Market Configuration +VITE_MARKET_NADDR=naddr1qqjxgdp4vv6rydej943n2dny956rwwf4943xzwfc95ekyd3evenrsvrrvc6r2qf8waehxw309akxucnfw3ejuct5d96xcctw9e5k7tmwdaehgunjv4kxz7f0v96xjmczyqrfrfkxv3m8t4elpe28x065z30zszaaqa4u0744qcmadsz3y50cjqcyqqq82scmcafla +VITE_MARKET_RELAYS=["wss://relay.damus.io","wss://relay.snort.social","wss://nostr-pub.wellorder.net"] +VITE_LIGHTNING_ENABLED=true +VITE_MARKET_DEFAULT_CURRENCY=sat diff --git a/src/components/layout/Navbar.vue b/src/components/layout/Navbar.vue index fc6fc1c..77afc2e 100644 --- a/src/components/layout/Navbar.vue +++ b/src/components/layout/Navbar.vue @@ -28,6 +28,7 @@ const showProfileDialog = ref(false) const navigation = computed(() => [ { name: t('nav.home'), href: '/' }, { name: t('nav.events'), href: '/events' }, + { name: t('nav.market'), href: '/market' }, ]) // Compute total wallet balance diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index ebfbeae..9dba2f5 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -7,6 +7,7 @@ const messages: LocaleMessages = { directory: 'Directory', faq: 'FAQ', events: 'Events', + market: 'Market', login: 'Login', logout: 'Logout' }, diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index abcccab..9ded000 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -7,6 +7,7 @@ const messages: LocaleMessages = { directory: 'Directorio', faq: 'Preguntas Frecuentes', events: 'Eventos', + market: 'Mercado', login: 'Iniciar Sesión', logout: 'Cerrar Sesión' }, diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index 60a871c..b88d758 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -7,6 +7,7 @@ const messages: LocaleMessages = { directory: 'Répertoire', faq: 'FAQ', events: 'Événements', + market: 'Marché', login: 'Connexion', logout: 'Déconnexion' }, diff --git a/src/i18n/types.ts b/src/i18n/types.ts index f6b0c52..ebfeabb 100644 --- a/src/i18n/types.ts +++ b/src/i18n/types.ts @@ -5,6 +5,7 @@ export interface LocaleMessages { directory: string faq: string events: string + market: string login: string logout: string } diff --git a/src/stores/market.ts b/src/stores/market.ts index 19004e2..7255363 100644 --- a/src/stores/market.ts +++ b/src/stores/market.ts @@ -1,5 +1,5 @@ import { defineStore } from 'pinia' -import { ref, computed } from 'vue' +import { ref, computed, readonly } from 'vue' import { config } from '@/lib/config' // Types