This commit is contained in:
2026-04-18 23:11:35 +02:00
commit f7cfd2a86e
196 changed files with 35538 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import { setCryptoBackend } from '@chat-app/shared/crypto';
import React from 'react';
import ReactDOM from 'react-dom/client';
import { App } from './App';
import { createLibsodiumBackend } from './lib/cryptoBackend';
import { bootstrapI18n } from './lib/i18n';
import './styles/globals.css';
async function boot(): Promise<void> {
bootstrapI18n();
setCryptoBackend(await createLibsodiumBackend());
const rootEl = document.getElementById('root');
if (!rootEl) throw new Error('Root element #root not found');
ReactDOM.createRoot(rootEl).render(
<React.StrictMode>
<App />
</React.StrictMode>,
);
}
void boot().catch((err: unknown) => {
console.error('boot failed', err);
const rootEl = document.getElementById('root');
if (rootEl) {
rootEl.innerHTML =
'<pre style="padding:2rem;color:#f88;font-family:monospace">Boot failed. Check the browser console.</pre>';
}
});