Browse Source

feat: add homepage url to relay details

imwald
codytseng 6 months ago
parent
commit
a6baca3009
  1. 11
      src/components/RelayInfo/index.tsx
  2. 3
      src/i18n/locales/ar.ts
  3. 3
      src/i18n/locales/de.ts
  4. 3
      src/i18n/locales/en.ts
  5. 3
      src/i18n/locales/es.ts
  6. 3
      src/i18n/locales/fa.ts
  7. 3
      src/i18n/locales/fr.ts
  8. 3
      src/i18n/locales/hi.ts
  9. 3
      src/i18n/locales/it.ts
  10. 3
      src/i18n/locales/ja.ts
  11. 3
      src/i18n/locales/ko.ts
  12. 3
      src/i18n/locales/pl.ts
  13. 3
      src/i18n/locales/pt-BR.ts
  14. 3
      src/i18n/locales/pt-PT.ts
  15. 3
      src/i18n/locales/ru.ts
  16. 3
      src/i18n/locales/th.ts
  17. 3
      src/i18n/locales/zh.ts

11
src/components/RelayInfo/index.tsx

@ -50,6 +50,17 @@ export default function RelayInfo({ url, className }: { url: string; className?: @@ -50,6 +50,17 @@ export default function RelayInfo({ url, className }: { url: string; className?:
)}
</div>
<div className="space-y-2">
<div className="text-sm font-semibold text-muted-foreground">{t('Homepage')}:</div>
<a
href={normalizeHttpUrl(relayInfo.url)}
target="_blank"
className="hover:underline text-primary select-text"
>
{normalizeHttpUrl(relayInfo.url)}
</a>
</div>
{relayInfo.payments_url && (
<div className="space-y-2">
<div className="text-sm font-semibold text-muted-foreground">{t('Payment page')}:</div>

3
src/i18n/locales/ar.ts

@ -398,6 +398,7 @@ export default { @@ -398,6 +398,7 @@ export default {
'See more notifications at a glance': 'رؤية المزيد من الإشعارات بنظرة سريعة',
Detailed: 'تفصيلي',
Compact: 'مضغوط',
'Submit Relay': 'إرسال ريلاي'
'Submit Relay': 'إرسال ريلاي',
Homepage: 'الصفحة الرئيسية'
}
}

3
src/i18n/locales/de.ts

@ -408,6 +408,7 @@ export default { @@ -408,6 +408,7 @@ export default {
'See more notifications at a glance': 'Mehr Benachrichtigungen auf einen Blick sehen',
Detailed: 'Detailliert',
Compact: 'Kompakt',
'Submit Relay': 'Relay einreichen'
'Submit Relay': 'Relay einreichen',
Homepage: 'Homepage'
}
}

3
src/i18n/locales/en.ts

@ -397,6 +397,7 @@ export default { @@ -397,6 +397,7 @@ export default {
'See more notifications at a glance': 'See more notifications at a glance',
Detailed: 'Detailed',
Compact: 'Compact',
'Submit Relay': 'Submit Relay'
'Submit Relay': 'Submit Relay',
Homepage: 'Homepage'
}
}

3
src/i18n/locales/es.ts

@ -403,6 +403,7 @@ export default { @@ -403,6 +403,7 @@ export default {
'See more notifications at a glance': 'Ver más notificaciones de un vistazo',
Detailed: 'Detallado',
Compact: 'Compacto',
'Submit Relay': 'Enviar relé'
'Submit Relay': 'Enviar relé',
Homepage: 'Página principal'
}
}

3
src/i18n/locales/fa.ts

@ -399,6 +399,7 @@ export default { @@ -399,6 +399,7 @@ export default {
'See more notifications at a glance': 'مشاهده اعلانهای بیشتر در یک نگاه',
Detailed: 'تفصیلی',
Compact: 'فشرده',
'Submit Relay': 'ارسال رله'
'Submit Relay': 'ارسال رله',
Homepage: 'صفحه اصلی'
}
}

3
src/i18n/locales/fr.ts

@ -408,6 +408,7 @@ export default { @@ -408,6 +408,7 @@ export default {
'See more notifications at a glance': "Voir plus de notifications en un coup d'œil",
Detailed: 'Détaillé',
Compact: 'Compact',
'Submit Relay': 'Soumettre un relais'
'Submit Relay': 'Soumettre un relais',
Homepage: 'Page d’accueil'
}
}

3
src/i18n/locales/hi.ts

@ -402,6 +402,7 @@ export default { @@ -402,6 +402,7 @@ export default {
'See more notifications at a glance': 'एक नजर म अधिक सचन',
Detailed: 'वित',
Compact: 'सित',
'Submit Relay': 'रि सबमिट कर'
'Submit Relay': 'रि सबमिट कर',
Homepage: 'हमपज'
}
}

3
src/i18n/locales/it.ts

@ -403,6 +403,7 @@ export default { @@ -403,6 +403,7 @@ export default {
'See more notifications at a glance': "Visualizza più notifiche a colpo d'occhio",
Detailed: 'Dettagliato',
Compact: 'Compatto',
'Submit Relay': 'Invia Relay'
'Submit Relay': 'Invia Relay',
Homepage: 'Homepage'
}
}

3
src/i18n/locales/ja.ts

@ -400,6 +400,7 @@ export default { @@ -400,6 +400,7 @@ export default {
'See more notifications at a glance': '一目でより多くの通知を確認',
Detailed: '詳細',
Compact: 'コンパクト',
'Submit Relay': 'リレーを提出'
'Submit Relay': 'リレーを提出',
Homepage: 'ホームページ'
}
}

3
src/i18n/locales/ko.ts

@ -400,6 +400,7 @@ export default { @@ -400,6 +400,7 @@ export default {
'See more notifications at a glance': '한눈에 더 많은 알림 보기',
Detailed: '상세',
Compact: '간단',
'Submit Relay': '릴레이 제출'
'Submit Relay': '릴레이 제출',
Homepage: '홈페이지'
}
}

3
src/i18n/locales/pl.ts

@ -404,6 +404,7 @@ export default { @@ -404,6 +404,7 @@ export default {
'See more notifications at a glance': 'Zobacz więcej powiadomień na pierwszy rzut oka',
Detailed: 'Szczegółowy',
Compact: 'Zwięzły',
'Submit Relay': 'Prześlij przekaźnik'
'Submit Relay': 'Prześlij przekaźnik',
Homepage: 'Strona główna'
}
}

3
src/i18n/locales/pt-BR.ts

@ -400,6 +400,7 @@ export default { @@ -400,6 +400,7 @@ export default {
'See more notifications at a glance': 'Ver mais notificações rapidamente',
Detailed: 'Detalhado',
Compact: 'Compacto',
'Submit Relay': 'Enviar Relay'
'Submit Relay': 'Enviar Relay',
Homepage: 'Página inicial'
}
}

3
src/i18n/locales/pt-PT.ts

@ -403,6 +403,7 @@ export default { @@ -403,6 +403,7 @@ export default {
'See more notifications at a glance': 'Ver mais notificações rapidamente',
Detailed: 'Detalhado',
Compact: 'Compacto',
'Submit Relay': 'Enviar Relay'
'Submit Relay': 'Enviar Relay',
Homepage: 'Página inicial'
}
}

3
src/i18n/locales/ru.ts

@ -405,6 +405,7 @@ export default { @@ -405,6 +405,7 @@ export default {
'See more notifications at a glance': 'Увидеть больше уведомлений с первого взгляда',
Detailed: 'Подробный',
Compact: 'Компактный',
'Submit Relay': 'Отправить релей'
'Submit Relay': 'Отправить релей',
Homepage: 'Домашняя страница'
}
}

3
src/i18n/locales/th.ts

@ -395,6 +395,7 @@ export default { @@ -395,6 +395,7 @@ export default {
'See more notifications at a glance': 'ดการแจงเตอนเพมเตมในแวบเดยว',
Detailed: 'รายละเอยด',
Compact: 'กะทดรด',
'Submit Relay': 'สงรเลย'
'Submit Relay': 'สงรเลย',
Homepage: 'หนาแรก'
}
}

3
src/i18n/locales/zh.ts

@ -393,6 +393,7 @@ export default { @@ -393,6 +393,7 @@ export default {
'See more notifications at a glance': '一目了然地查看更多通知',
Detailed: '详细',
Compact: '紧凑',
'Submit Relay': '提交服务器'
'Submit Relay': '提交服务器',
Homepage: '主页'
}
}

Loading…
Cancel
Save