Comment out debug prints
This commit is contained in:
@@ -22,7 +22,7 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
function createNostrLoginLiteBundle() {
|
||||
console.log('🔧 Creating NOSTR_LOGIN_LITE bundle for two-file architecture...');
|
||||
// console.log('🔧 Creating NOSTR_LOGIN_LITE bundle for two-file architecture...');
|
||||
|
||||
const outputPath = path.join(__dirname, 'nostr-lite.js');
|
||||
|
||||
@@ -69,7 +69,7 @@ if (typeof window !== 'undefined') {
|
||||
`;
|
||||
|
||||
// Embed CSS themes
|
||||
console.log('🎨 Adding CSS-Only Theme System...');
|
||||
// console.log('🎨 Adding CSS-Only Theme System...');
|
||||
|
||||
const defaultThemeCssPath = path.join(__dirname, '../themes/default/theme.css');
|
||||
const darkThemeCssPath = path.join(__dirname, '../themes/dark/theme.css');
|
||||
@@ -127,7 +127,7 @@ if (typeof window !== 'undefined') {
|
||||
// Add Modal UI
|
||||
const modalPath = path.join(__dirname, 'ui/modal.js');
|
||||
if (fs.existsSync(modalPath)) {
|
||||
console.log('📄 Adding Modal UI...');
|
||||
// console.log('📄 Adding Modal UI...');
|
||||
|
||||
let modalContent = fs.readFileSync(modalPath, 'utf8');
|
||||
|
||||
@@ -139,12 +139,12 @@ if (typeof window !== 'undefined') {
|
||||
try {
|
||||
const version = fs.readFileSync(versionPath, 'utf8').trim();
|
||||
versionString = 'v' + version;
|
||||
console.log('🔢 Using version: ' + version);
|
||||
// console.log('🔢 Using version: ' + version);
|
||||
} catch (error) {
|
||||
console.warn('⚠️ Could not read VERSION file, no version will be displayed');
|
||||
}
|
||||
} else {
|
||||
console.log('📋 No VERSION file found, no version will be displayed');
|
||||
// console.log('📋 No VERSION file found, no version will be displayed');
|
||||
}
|
||||
|
||||
// Keep modal title as just "Nostr Login" (no version injection)
|
||||
@@ -200,7 +200,7 @@ if (typeof window !== 'undefined') {
|
||||
}
|
||||
|
||||
// Add main library code
|
||||
console.log('📄 Adding Main Library...');
|
||||
// console.log('📄 Adding Main Library...');
|
||||
bundle += `
|
||||
// ======================================
|
||||
// FloatingTab Component (Recovered from git history)
|
||||
@@ -2284,16 +2284,16 @@ if (typeof window !== 'undefined') {
|
||||
const hasNostrLite = bundle.includes('NOSTR_LOGIN_LITE');
|
||||
const hasThemeCss = bundle.includes('THEME_CSS');
|
||||
|
||||
console.log('\n📋 Bundle contents:');
|
||||
console.log(' Modal UI: ' + (hasModal ? '✅ Included' : '❌ Missing'));
|
||||
console.log(' NOSTR_LOGIN_LITE: ' + (hasNostrLite ? '✅ Included' : '❌ Missing'));
|
||||
console.log(' CSS-Only Themes: ' + (hasThemeCss ? '✅ Included' : '❌ Missing'));
|
||||
console.log(' Extension Bridge: ✅ Included');
|
||||
console.log(' Window.nostr facade: ✅ Included');
|
||||
// console.log('\n📋 Bundle contents:');
|
||||
// console.log(' Modal UI: ' + (hasModal ? '✅ Included' : '❌ Missing'));
|
||||
// console.log(' NOSTR_LOGIN_LITE: ' + (hasNostrLite ? '✅ Included' : '❌ Missing'));
|
||||
// console.log(' CSS-Only Themes: ' + (hasThemeCss ? '✅ Included' : '❌ Missing'));
|
||||
// console.log(' Extension Bridge: ✅ Included');
|
||||
// console.log(' Window.nostr facade: ✅ Included');
|
||||
|
||||
console.log('\n📋 Two-file architecture:');
|
||||
console.log(' 1. nostr.bundle.js (official nostr-tools - 220KB)');
|
||||
console.log(' 2. nostr-lite.js (NOSTR_LOGIN_LITE with CSS-only themes - ' + sizeKB + 'KB)');
|
||||
// console.log('\n📋 Two-file architecture:');
|
||||
// console.log(' 1. nostr.bundle.js (official nostr-tools - 220KB)');
|
||||
// console.log(' 2. nostr-lite.js (NOSTR_LOGIN_LITE with CSS-only themes - ' + sizeKB + 'KB)');
|
||||
|
||||
return bundle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user