feat: Add prayer chains, social sharing, and testimony wall
- Add PrayerChain component for visualizing linked prayers - Add SharePrayer component with social media integration (Twitter, Facebook, WhatsApp, copy link) - Create /testimonies page for public answered prayer stories - Update Firestore rules for public testimony access - Enhance Organization tab with prayer chains - Add Testimonies navigation tab - Fix Firebase Admin SDK integration for server-side operations - Improve email system with proper server-side authentication - Update prayer form to handle optional fields correctly - Deploy updated Firestore security rules
This commit is contained in:
1 parent
7214fdb89a
commit
d9784738e4
32 files changed
+3146
-3236
No files matched your search
@@ -0,0 +1,42 @@
|
||||
// Check if SMTP config exists in Firestore
|
||||
// Run with: node check-smtp.js
|
||||
|
||||
import { initializeApp } from 'firebase/app';
|
||||
import { getFirestore, doc, getDoc } from 'firebase/firestore';
|
||||
|
||||
const firebaseConfig = {
|
||||
apiKey: "AIzaSyAHtvhdtBxNwf0UE3Fp5P0v1vITZKhLMJw",
|
||||
authDomain: "prayer-app-6701f.firebaseapp.com",
|
||||
projectId: "prayer-app-6701f",
|
||||
storageBucket: "prayer-app-6701f.firebasestorage.app",
|
||||
messagingSenderId: "555011794707",
|
||||
appId: "1:555011794707:web:a3d60bdee742578cca1ce6"
|
||||
};
|
||||
|
||||
const app = initializeApp(firebaseConfig);
|
||||
const db = getFirestore(app);
|
||||
|
||||
const checkSMTPConfig = async () => {
|
||||
try {
|
||||
console.log('🔍 Checking SMTP configuration...');
|
||||
const configDoc = await getDoc(doc(db, 'config', 'smtp'));
|
||||
|
||||
if (configDoc.exists()) {
|
||||
const config = configDoc.data();
|
||||
console.log('✅ SMTP config found:');
|
||||
console.log(' Host:', config.host);
|
||||
console.log(' Port:', config.port);
|
||||
console.log(' Secure:', config.secure);
|
||||
console.log(' User:', config.user ? 'Set' : 'Not set');
|
||||
console.log(' Pass:', config.pass ? 'Set' : 'Not set');
|
||||
console.log(' From:', config.from);
|
||||
} else {
|
||||
console.log('❌ SMTP configuration not found in Firestore!');
|
||||
console.log(' You need to add SMTP config to config/smtp document');
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('❌ Error checking SMTP config:', error);
|
||||
}
|
||||
};
|
||||
|
||||
checkSMTPConfig();
|
||||
Reference in new issue
Block a user