2025-09-08 16:04:58 -04:00
|
|
|
import { EnhancedSecureCryptoUtils } from '../crypto/EnhancedSecureCryptoUtils.js';
|
|
|
|
|
import { EnhancedSecureWebRTCManager } from '../network/EnhancedSecureWebRTCManager.js';
|
|
|
|
|
import { EnhancedSecureFileTransfer } from '../transfer/EnhancedSecureFileTransfer.js';
|
2025-10-15 19:58:28 -04:00
|
|
|
import { NotificationIntegration } from '../notifications/NotificationIntegration.js';
|
2025-09-08 16:04:58 -04:00
|
|
|
|
|
|
|
|
// Import UI components (side-effect: they attach themselves to window.*)
|
|
|
|
|
import '../components/ui/Header.jsx';
|
|
|
|
|
import '../components/ui/DownloadApps.jsx';
|
2025-12-30 04:16:41 -04:00
|
|
|
import '../components/ui/BecomePartner.jsx';
|
2025-10-02 01:43:32 -04:00
|
|
|
import '../components/ui/UniqueFeatureSlider.jsx';
|
|
|
|
|
import '../components/ui/Roadmap.jsx';
|
2026-06-23 16:52:30 -04:00
|
|
|
import '../components/ui/CommunityCTA.jsx';
|
2025-09-08 16:04:58 -04:00
|
|
|
import '../components/ui/FileTransfer.jsx';
|
2026-06-15 15:39:13 -04:00
|
|
|
import '../components/ui/IceServerSettings.jsx';
|
2026-07-23 12:43:06 -04:00
|
|
|
import '../components/ui/CallUI.jsx';
|
2025-09-08 16:04:58 -04:00
|
|
|
|
|
|
|
|
// Expose to global for legacy usage inside app code
|
|
|
|
|
window.EnhancedSecureCryptoUtils = EnhancedSecureCryptoUtils;
|
|
|
|
|
window.EnhancedSecureWebRTCManager = EnhancedSecureWebRTCManager;
|
|
|
|
|
window.EnhancedSecureFileTransfer = EnhancedSecureFileTransfer;
|
2025-10-15 19:58:28 -04:00
|
|
|
window.NotificationIntegration = NotificationIntegration;
|
2025-10-15 01:46:36 -04:00
|
|
|
|
2025-09-08 16:04:58 -04:00
|
|
|
// Mount application once DOM and modules are ready
|
|
|
|
|
const start = () => {
|
|
|
|
|
if (typeof window.initializeApp === 'function') {
|
|
|
|
|
window.initializeApp();
|
|
|
|
|
} else if (window.DEBUG_MODE) {
|
|
|
|
|
console.error('initializeApp is not defined on window');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (document.readyState === 'loading') {
|
|
|
|
|
document.addEventListener('DOMContentLoaded', start);
|
|
|
|
|
} else {
|
|
|
|
|
start();
|
|
|
|
|
}
|