Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 152x 152x 152x 152x 152x 152x 152x 152x 152x 152x 148x 147x 152x | import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App'
import { useUiStore } from './layouts/uiStore'
import { useAuthStore } from './features/auth/authStore'
import './index.css'
const persistedTheme = useUiStore.getState().theme
document.documentElement.classList.remove('dark', 'light', 'high-contrast')
if (persistedTheme === 'high-contrast') {
I document.documentElement.classList.add('dark', 'high-contrast')
} else {
document.documentElement.classList.add(persistedTheme)
}
Eif (import.meta.env.DEV) {
window.__uiStore = useUiStore
window.__authStore = useAuthStore
}
aEsync function bootstrap() {
if (import.meta.env.DEV) {
const { worker } = await import('./msw/browser')
await worker.start({ onUnhandledRequest: 'bypass' })
}
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
)
}
bootstrap()
|