Squash of recent dev work: return_session login, backend switcher, line detail timeline, overview strips, node platform/country/ISP info with flags and icons, build info (version, tag, time) behind site.show_build, and the acrylic display theme.
28 lines
784 B
TypeScript
28 lines
784 B
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import { BrowserRouter } from 'react-router-dom'
|
|
import '@shared/theme/base.css'
|
|
import { configureSource } from '@shared/api/source'
|
|
import { applyStoredTheme } from '@shared/hooks'
|
|
import { ErrorBoundary, ToastProvider } from '@shared/ui'
|
|
import { App } from './App'
|
|
import { AuthProvider } from './auth'
|
|
import './admin.css'
|
|
|
|
configureSource('admin')
|
|
applyStoredTheme()
|
|
|
|
createRoot(document.getElementById('root')!).render(
|
|
<StrictMode>
|
|
<BrowserRouter basename={import.meta.env.BASE_URL}>
|
|
<ErrorBoundary>
|
|
<ToastProvider>
|
|
<AuthProvider>
|
|
<App />
|
|
</AuthProvider>
|
|
</ToastProvider>
|
|
</ErrorBoundary>
|
|
</BrowserRouter>
|
|
</StrictMode>,
|
|
)
|