From a0e18c34d688d91618fbcbd375a789950546531f Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 16 Sep 2025 12:40:15 -0400 Subject: [PATCH] Add comprehensive sign.html test and update documentation - Add examples/sign.html with comprehensive extension compatibility testing - Update README.md with profile fetching API documentation - Update .gitignore for better file management - Update examples/button.html and examples/modal.html with latest features This completes the single-extension architecture implementation with: - nos2x compatibility through true single-extension mode - Method switching between extension/local/NIP-46/readonly - Enhanced profile fetching for floating tab - Comprehensive debugging and testing capabilities --- .gitignore | 8 +- README.md | 5 ++ examples/button.html | 2 +- examples/modal.html | 11 ++- examples/sign.html | 184 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 196 insertions(+), 14 deletions(-) create mode 100644 examples/sign.html diff --git a/.gitignore b/.gitignore index 9b4ae14..717048a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,10 +18,4 @@ Thumbs.db log.txt Trash/ -# Environment files -.env - -# Aider files -.aider.chat.history.md -.aider.input.history -.aider.tags.cache.v3/ +nostr-login/ \ No newline at end of file diff --git a/README.md b/README.md index 491adec..03d730e 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,11 @@ await NOSTR_LOGIN_LITE.init({ enabled: true, hPosition: 0.95, // 0.0-1.0 or '95%' from left vPosition: 0.5, // 0.0-1.0 or '50%' from top + getUserInfo: true, // Fetch user profile name from relays + getUserRelay: [ // Relays for profile queries + 'wss://relay.damus.io', + 'wss://nos.lol' + ], appearance: { style: 'pill', // 'pill', 'square', 'circle', 'minimal' theme: 'auto', // 'auto' follows main theme diff --git a/examples/button.html b/examples/button.html index 7f9dd8d..e0da565 100644 --- a/examples/button.html +++ b/examples/button.html @@ -51,7 +51,7 @@ + + + + + + \ No newline at end of file