Add boilerplate files and licenses

This commit is contained in:
2026-07-13 04:39:10 +02:00
parent 69cabda489
commit fac7e80bb7
202 changed files with 23125 additions and 0 deletions

23
src/index.tsx Normal file
View File

@@ -0,0 +1,23 @@
import * as Sentry from '@sentry/react';
import { render } from 'preact';
import App from './App';
import { swUpdateAvailableAtom } from './atoms/swUpdate';
import { store } from './lib/store';
import './styles.css';
import { registerSW } from 'virtual:pwa-register';
if (import.meta.env.VITE_SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
sendDefaultPii: true,
});
}
registerSW({
immediate: true,
onNeedRefresh() {
store.set(swUpdateAvailableAtom, true);
},
});
render(<App />, document.getElementById('app') || document.body);