import { LogtoProvider } from '@logto/react'; import { adminConsoleApplicationId, managementResource } from '@logto/schemas/lib/seeds'; import { getBasename } from '@logto/shared'; import React from 'react'; import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom'; import { SWRConfig } from 'swr'; import './scss/normalized.scss'; // eslint-disable-next-line import/no-unassigned-import import '@fontsource/roboto-mono'; import AppBoundary from '@/components/AppBoundary'; import AppContent from '@/components/AppContent'; import ErrorBoundary from '@/components/ErrorBoundary'; import Toast from '@/components/Toast'; import useSwrOptions from '@/hooks/use-swr-options'; import initI18n from '@/i18n/init'; import ApiResourceDetails from '@/pages/ApiResourceDetails'; import ApiResources from '@/pages/ApiResources'; import ApplicationDetails from '@/pages/ApplicationDetails'; import Applications from '@/pages/Applications'; import AuditLogDetails from '@/pages/AuditLogDetails'; import AuditLogs from '@/pages/AuditLogs'; import Callback from '@/pages/Callback'; import ConnectorDetails from '@/pages/ConnectorDetails'; import Connectors from '@/pages/Connectors'; import Dashboard from '@/pages/Dashboard'; import GetStarted from '@/pages/GetStarted'; import NotFound from '@/pages/NotFound'; import Settings from '@/pages/Settings'; import SignInExperience from '@/pages/SignInExperience'; import UserDetails from '@/pages/UserDetails'; import Users from '@/pages/Users'; void initI18n(); const Main = () => { const swrOptions = useSwrOptions(); return ( } /> {/* TODO: add register route */} register} /> }> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> ); }; const App = () => (
); export default App;