Passport/pkg/view/src/index.tsx

33 lines
1.4 KiB
TypeScript
Raw Normal View History

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"))} />
2024-01-31 16:33:01 +00:00
<Route path="/security" component={lazy(() => import("./pages/security.tsx"))} />
2024-01-31 13:16:54 +00:00
<Route path="/personalise" component={lazy(() => import("./pages/personalise.tsx"))} />
2024-01-29 08:11:59 +00:00
<Route path="/auth/login" component={lazy(() => import("./pages/auth/login.tsx"))} />
<Route path="/auth/register" component={lazy(() => import("./pages/auth/register.tsx"))} />
2024-01-30 07:57:49 +00:00
<Route path="/auth/oauth/connect" component={lazy(() => import("./pages/auth/connect.tsx"))} />
<Route path="/auth/oauth/callback" component={lazy(() => import("./pages/auth/callback.tsx"))} />
2024-01-29 08:11:59 +00:00
<Route path="/users/me/confirm" component={lazy(() => import("./pages/users/confirm.tsx"))} />
</Router>
</UserinfoProvider>
</WellKnownProvider>
2024-01-27 16:05:19 +00:00
), root!);