File
Blob: src/client/app.tsx
| 1 | import { Route, Routes } from "react-router"; |
| 2 | |
| 3 | import { AppShell } from "@/client/components/app-shell"; |
| 4 | import { AccountPage } from "@/client/pages/account"; |
| 5 | import { AccountAppsPage } from "@/client/pages/account/apps"; |
| 6 | import { AccountIdentitiesPage } from "@/client/pages/account/identities"; |
| 7 | import { AccountPasswordPage } from "@/client/pages/account/password"; |
| 8 | import { AccountProfilePage } from "@/client/pages/account/profile"; |
| 9 | import { AccountSessionsPage } from "@/client/pages/account/sessions"; |
| 10 | import { AccountUserInfoPage } from "@/client/pages/account/userinfo"; |
| 11 | import { AdminClientsPage } from "@/client/pages/admin/clients"; |
| 12 | import { AdminInvitesPage } from "@/client/pages/admin/invites"; |
| 13 | import { AdminLauncherAppsPage } from "@/client/pages/admin/launcher-apps"; |
| 14 | import { AdminUsersPage } from "@/client/pages/admin/users"; |
| 15 | import { AuthErrorPage } from "@/client/pages/auth-error"; |
| 16 | import { InviteAcceptPage } from "@/client/pages/invite/accept"; |
| 17 | import { InviteConsumedPage } from "@/client/pages/invite/consumed"; |
| 18 | import { InviteExpiredPage } from "@/client/pages/invite/expired"; |
| 19 | import { LandingPage } from "@/client/pages/landing"; |
| 20 | import { NotFoundPage } from "@/client/pages/not-found"; |
| 21 | import { OauthConsentPage } from "@/client/pages/oauth/consent"; |
| 22 | import { PrivacyPage } from "@/client/pages/privacy"; |
| 23 | import { SignInPage } from "@/client/pages/sign-in"; |
| 24 | import { TermsPage } from "@/client/pages/terms"; |
| 25 | |
| 26 | export const App = () => ( |
| 27 | <Routes> |
| 28 | <Route element={<AppShell />}> |
| 29 | <Route path="/" element={<LandingPage />} /> |
| 30 | <Route path="/sign-in" element={<SignInPage />} /> |
| 31 | <Route path="/auth-error" element={<AuthErrorPage />} /> |
| 32 | <Route path="/privacy" element={<PrivacyPage />} /> |
| 33 | <Route path="/terms" element={<TermsPage />} /> |
| 34 | <Route path="/invite/expired" element={<InviteExpiredPage />} /> |
| 35 | <Route path="/invite/consumed" element={<InviteConsumedPage />} /> |
| 36 | <Route path="/invite/:token" element={<InviteAcceptPage />} /> |
| 37 | <Route path="/account" element={<AccountPage />} /> |
| 38 | <Route path="/account/profile" element={<AccountProfilePage />} /> |
| 39 | <Route path="/account/password" element={<AccountPasswordPage />} /> |
| 40 | <Route path="/account/identities" element={<AccountIdentitiesPage />} /> |
| 41 | <Route path="/account/sessions" element={<AccountSessionsPage />} /> |
| 42 | <Route path="/account/apps" element={<AccountAppsPage />} /> |
| 43 | <Route path="/account/userinfo" element={<AccountUserInfoPage />} /> |
| 44 | <Route path="/oauth/consent" element={<OauthConsentPage />} /> |
| 45 | <Route path="/admin/invites" element={<AdminInvitesPage />} /> |
| 46 | <Route path="/admin/clients" element={<AdminClientsPage />} /> |
| 47 | <Route path="/admin/launcher-apps" element={<AdminLauncherAppsPage />} /> |
| 48 | <Route path="/admin/users" element={<AdminUsersPage />} /> |
| 49 | <Route path="*" element={<NotFoundPage />} /> |
| 50 | </Route> |
| 51 | </Routes> |
| 52 | ); |