https://dev.kronoz.win/r/marzneshin.git
| 1 |
7b6fa39 |
Mrdn |
2y ago |
import { StrictMode } from 'react' |
| 2 |
88bd1b0 |
Mrdn |
2y ago |
import ReactDOM from 'react-dom/client' |
| 3 |
328298b |
Mrdn |
2y ago |
import { RouterProvider, createHashHistory, createRouter } from '@tanstack/react-router' |
| 4 |
6badc43 |
Mrdn |
2y ago |
import '@marzneshin/features/i18n' |
| 5 |
88bd1b0 |
Mrdn |
2y ago |
import './globals.css' |
| 6 |
88bd1b0 |
Mrdn |
2y ago |
|
| 7 |
88bd1b0 |
Mrdn |
2y ago |
import { routeTree } from './routeTree.gen' |
| 8 |
88bd1b0 |
Mrdn |
2y ago |
|
| 9 |
328298b |
Mrdn |
2y ago |
const hashHistory = createHashHistory() |
| 10 |
328298b |
Mrdn |
2y ago |
|
| 11 |
328298b |
Mrdn |
2y ago |
const router = createRouter({ routeTree, history: hashHistory }) |
| 12 |
88bd1b0 |
Mrdn |
2y ago |
|
| 13 |
88bd1b0 |
Mrdn |
2y ago |
declare module '@tanstack/react-router' { |
| 14 |
88bd1b0 |
Mrdn |
2y ago |
interface Register { |
| 15 |
88bd1b0 |
Mrdn |
2y ago |
router: typeof router |
| 16 |
88bd1b0 |
Mrdn |
2y ago |
} |
| 17 |
88bd1b0 |
Mrdn |
2y ago |
} |
| 18 |
88bd1b0 |
Mrdn |
2y ago |
|
| 19 |
88bd1b0 |
Mrdn |
2y ago |
const rootElement = document.getElementById('app')! |
| 20 |
88bd1b0 |
Mrdn |
2y ago |
if (!rootElement.innerHTML) { |
| 21 |
88bd1b0 |
Mrdn |
2y ago |
const root = ReactDOM.createRoot(rootElement) |
| 22 |
88bd1b0 |
Mrdn |
2y ago |
root.render( |
| 23 |
88bd1b0 |
Mrdn |
2y ago |
<StrictMode> |
| 24 |
88bd1b0 |
Mrdn |
2y ago |
<RouterProvider router={router} /> |
| 25 |
88bd1b0 |
Mrdn |
2y ago |
</StrictMode>, |
| 26 |
88bd1b0 |
Mrdn |
2y ago |
) |
| 27 |
88bd1b0 |
Mrdn |
2y ago |
} |