Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98b87de736 |
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
rsync -avz --chmod=644 --progress lite/{nostr-lite.js,nostr.bundle.js} ubuntu@laantungir.net:WWW/nostr-login-lite/
|
rsync -avz --chmod=644 --progress lite/{nostr-lite.js,nostr.bundle.js} ubuntu@laantungir.net:html/nostr-login-lite/
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.1.8
|
0.1.9
|
||||||
|
|||||||
@@ -56,10 +56,10 @@ if (typeof window !== 'undefined') {
|
|||||||
throw new Error('Missing dependency: nostr.bundle.js');
|
throw new Error('Missing dependency: nostr.bundle.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('NOSTR_LOGIN_LITE: Dependencies verified ✓');
|
// console.log('NOSTR_LOGIN_LITE: Dependencies verified ✓');
|
||||||
console.log('NOSTR_LOGIN_LITE: NostrTools available with keys:', Object.keys(window.NostrTools));
|
// console.log('NOSTR_LOGIN_LITE: NostrTools available with keys:', Object.keys(window.NostrTools));
|
||||||
console.log('NOSTR_LOGIN_LITE: NIP-06 available:', !!window.NostrTools.nip06);
|
// console.log('NOSTR_LOGIN_LITE: NIP-06 available:', !!window.NostrTools.nip06);
|
||||||
console.log('NOSTR_LOGIN_LITE: NIP-46 available:', !!window.NostrTools.nip46);
|
// console.log('NOSTR_LOGIN_LITE: NIP-46 available:', !!window.NostrTools.nip46);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======================================
|
// ======================================
|
||||||
@@ -109,7 +109,7 @@ if (typeof window !== 'undefined') {
|
|||||||
bundle += ` style.id = 'nl-theme-css';\n`;
|
bundle += ` style.id = 'nl-theme-css';\n`;
|
||||||
bundle += ` style.textContent = themeCss;\n`;
|
bundle += ` style.textContent = themeCss;\n`;
|
||||||
bundle += ` document.head.appendChild(style);\n`;
|
bundle += ` document.head.appendChild(style);\n`;
|
||||||
bundle += ` console.log('NOSTR_LOGIN_LITE: ' + themeName + ' theme CSS injected');\n`;
|
bundle += ` // console.log('NOSTR_LOGIN_LITE: ' + themeName + ' theme CSS injected');\n`;
|
||||||
bundle += ` }\n`;
|
bundle += ` }\n`;
|
||||||
bundle += `}\n\n`;
|
bundle += `}\n\n`;
|
||||||
|
|
||||||
@@ -2260,9 +2260,9 @@ if (typeof window !== 'undefined') {
|
|||||||
_instance: nostrLite
|
_instance: nostrLite
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('NOSTR_LOGIN_LITE: Library loaded and ready');
|
// console.log('NOSTR_LOGIN_LITE: Library loaded and ready');
|
||||||
console.log('NOSTR_LOGIN_LITE: Use window.NOSTR_LOGIN_LITE.init(options) to initialize');
|
// console.log('NOSTR_LOGIN_LITE: Use window.NOSTR_LOGIN_LITE.init(options) to initialize');
|
||||||
console.log('NOSTR_LOGIN_LITE: Detected', nostrLite.extensionBridge.getExtensionCount(), 'browser extensions');
|
// console.log('NOSTR_LOGIN_LITE: Detected', nostrLite.extensionBridge.getExtensionCount(), 'browser extensions');
|
||||||
console.warn('🔐 SECURITY: Unified plaintext storage enabled for maximum developer usability');
|
console.warn('🔐 SECURITY: Unified plaintext storage enabled for maximum developer usability');
|
||||||
} else {
|
} else {
|
||||||
// Node.js environment
|
// Node.js environment
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
* Two-file architecture:
|
* Two-file architecture:
|
||||||
* 1. Load nostr.bundle.js (official nostr-tools bundle)
|
* 1. Load nostr.bundle.js (official nostr-tools bundle)
|
||||||
* 2. Load nostr-lite.js (this file - NOSTR_LOGIN_LITE library with CSS-only themes)
|
* 2. Load nostr-lite.js (this file - NOSTR_LOGIN_LITE library with CSS-only themes)
|
||||||
* Generated on: 2025-11-14T17:32:27.512Z
|
* Generated on: 2025-11-14T17:45:29.274Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Verify dependencies are loaded
|
// Verify dependencies are loaded
|
||||||
@@ -18,10 +18,10 @@ if (typeof window !== 'undefined') {
|
|||||||
throw new Error('Missing dependency: nostr.bundle.js');
|
throw new Error('Missing dependency: nostr.bundle.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('NOSTR_LOGIN_LITE: Dependencies verified ✓');
|
// console.log('NOSTR_LOGIN_LITE: Dependencies verified ✓');
|
||||||
console.log('NOSTR_LOGIN_LITE: NostrTools available with keys:', Object.keys(window.NostrTools));
|
// console.log('NOSTR_LOGIN_LITE: NostrTools available with keys:', Object.keys(window.NostrTools));
|
||||||
console.log('NOSTR_LOGIN_LITE: NIP-06 available:', !!window.NostrTools.nip06);
|
// console.log('NOSTR_LOGIN_LITE: NIP-06 available:', !!window.NostrTools.nip06);
|
||||||
console.log('NOSTR_LOGIN_LITE: NIP-46 available:', !!window.NostrTools.nip46);
|
// console.log('NOSTR_LOGIN_LITE: NIP-46 available:', !!window.NostrTools.nip46);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======================================
|
// ======================================
|
||||||
@@ -282,7 +282,7 @@ function injectThemeCSS(themeName = 'default') {
|
|||||||
style.id = 'nl-theme-css';
|
style.id = 'nl-theme-css';
|
||||||
style.textContent = themeCss;
|
style.textContent = themeCss;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
console.log('NOSTR_LOGIN_LITE: ' + themeName + ' theme CSS injected');
|
// console.log('NOSTR_LOGIN_LITE: ' + themeName + ' theme CSS injected');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -436,7 +436,7 @@ class Modal {
|
|||||||
modalContent.appendChild(modalHeader);
|
modalContent.appendChild(modalHeader);
|
||||||
// Add version element in bottom-right corner aligned with modal body
|
// Add version element in bottom-right corner aligned with modal body
|
||||||
const versionElement = document.createElement('div');
|
const versionElement = document.createElement('div');
|
||||||
versionElement.textContent = 'v0.1.8';
|
versionElement.textContent = 'v0.1.9';
|
||||||
versionElement.style.cssText = `
|
versionElement.style.cssText = `
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 8px;
|
bottom: 8px;
|
||||||
@@ -4271,9 +4271,9 @@ if (typeof window !== 'undefined') {
|
|||||||
_instance: nostrLite
|
_instance: nostrLite
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('NOSTR_LOGIN_LITE: Library loaded and ready');
|
// console.log('NOSTR_LOGIN_LITE: Library loaded and ready');
|
||||||
console.log('NOSTR_LOGIN_LITE: Use window.NOSTR_LOGIN_LITE.init(options) to initialize');
|
// console.log('NOSTR_LOGIN_LITE: Use window.NOSTR_LOGIN_LITE.init(options) to initialize');
|
||||||
console.log('NOSTR_LOGIN_LITE: Detected', nostrLite.extensionBridge.getExtensionCount(), 'browser extensions');
|
// console.log('NOSTR_LOGIN_LITE: Detected', nostrLite.extensionBridge.getExtensionCount(), 'browser extensions');
|
||||||
console.warn('🔐 SECURITY: Unified plaintext storage enabled for maximum developer usability');
|
console.warn('🔐 SECURITY: Unified plaintext storage enabled for maximum developer usability');
|
||||||
} else {
|
} else {
|
||||||
// Node.js environment
|
// Node.js environment
|
||||||
|
|||||||
Reference in New Issue
Block a user