From d694f9b645ae3ba0fafe7e42ce709f380dfeace5 Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 12 Feb 2025 02:19:32 +0100 Subject: [PATCH] lots of login dialog and nostr subsription relate updates --- dev-dist/sw.js | 2 +- src/components/Login.vue | 96 ++++++++---- src/i18n/locales/en.ts | 14 ++ src/i18n/locales/es.ts | 14 ++ src/lib/nostr.ts | 15 ++ src/locales/en.json | 21 --- src/locales/es.json | 21 --- src/stores/nostr.ts | 329 +++++++++++++++++++++++++-------------- 8 files changed, 323 insertions(+), 189 deletions(-) delete mode 100644 src/locales/en.json delete mode 100644 src/locales/es.json diff --git a/dev-dist/sw.js b/dev-dist/sw.js index a0afe47..f51d9ea 100644 --- a/dev-dist/sw.js +++ b/dev-dist/sw.js @@ -79,7 +79,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict'; */ workbox.precacheAndRoute([{ "url": "index.html", - "revision": "0.i6hkd1cnpb" + "revision": "0.dc5rn1lchj8" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/src/components/Login.vue b/src/components/Login.vue index 0f93450..e8b83fb 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -14,10 +14,10 @@
- Nostr Login + {{ t('login.title') }} - Login with your Nostr private key or generate a new one + {{ t('login.description') }}
@@ -26,43 +26,53 @@
- +
+ + +

{{ error }}

-

- Make sure to save your private key in a secure location. You can use it to recover your chat history on any device. -

+

{{ t('login.recovery.message') }}

-
@@ -71,12 +81,15 @@