2024-01-27 17:07:38 +00:00
|
|
|
import "solid-devtools";
|
|
|
|
|
2024-01-27 16:05:19 +00:00
|
|
|
/* @refresh reload */
|
|
|
|
import { render } from "solid-js/web";
|
|
|
|
|
|
|
|
import "./index.css";
|
|
|
|
import "./assets/fonts/fonts.css";
|
2024-01-28 16:32:39 +00:00
|
|
|
import { lazy } from "solid-js";
|
2024-01-27 16:05:19 +00:00
|
|
|
import { Route, Router } from "@solidjs/router";
|
|
|
|
|
|
|
|
import RootLayout from "./layouts/RootLayout.tsx";
|
2024-01-29 08:11:59 +00:00
|
|
|
import { UserinfoProvider } from "./stores/userinfo.tsx";
|
|
|
|
import { WellKnownProvider } from "./stores/wellKnown.tsx";
|
2024-01-27 16:05:19 +00:00
|
|
|
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
|
|
|
|
render(() => (
|
2024-01-29 08:11:59 +00:00
|
|
|
<WellKnownProvider>
|
|
|
|
<UserinfoProvider>
|
|
|
|
<Router root={RootLayout}>
|
|
|
|
<Route path="/" component={lazy(() => import("./pages/dashboard.tsx"))} />
|
|
|
|
<Route path="/auth/login" component={lazy(() => import("./pages/auth/login.tsx"))} />
|
|
|
|
<Route path="/auth/register" component={lazy(() => import("./pages/auth/register.tsx"))} />
|
|
|
|
<Route path="/users/me/confirm" component={lazy(() => import("./pages/users/confirm.tsx"))} />
|
|
|
|
</Router>
|
|
|
|
</UserinfoProvider>
|
|
|
|
</WellKnownProvider>
|
2024-01-27 16:05:19 +00:00
|
|
|
), root!);
|