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-13 11:13:11 -04:00
|
|
|
import BluetoothKeyTransfer from '../transfer/BluetoothKeyTransfer.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-10-02 01:43:32 -04:00
|
|
|
import '../components/ui/UniqueFeatureSlider.jsx';
|
2025-10-02 16:52:31 -04:00
|
|
|
import '../components/ui/SecurityFeatures.jsx';
|
2025-10-02 19:39:40 -04:00
|
|
|
import '../components/ui/Testimonials.jsx';
|
2025-10-02 01:43:32 -04:00
|
|
|
import '../components/ui/ComparisonTable.jsx';
|
|
|
|
|
import '../components/ui/Roadmap.jsx';
|
2025-09-08 16:04:58 -04:00
|
|
|
import '../components/ui/FileTransfer.jsx';
|
2025-10-13 11:13:11 -04:00
|
|
|
import '../components/ui/BluetoothKeyTransfer.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-13 11:13:11 -04:00
|
|
|
window.BluetoothKeyTransfer = BluetoothKeyTransfer;
|
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();
|
|
|
|
|
}
|