feat: implement frontend login functionality with form handling and error management

This commit is contained in:
GW_MC
2025-12-19 18:33:34 +08:00
parent 5060c84f28
commit 227256e0e0
17 changed files with 765 additions and 27 deletions

View File

@@ -1,8 +1,11 @@
import { isRouteErrorResponse, Links, Meta, Outlet, Scripts, ScrollRestoration } from 'react-router';
import type { Route } from './+types/root';
import '@radix-ui/themes/styles.css';
import './app.css';
import { Theme } from '@radix-ui/themes';
import AppTheme from './components/theme';
import { ApiProvider } from './providers/ApiProvider';
import { LayoutProvider } from './providers/LayoutProvider';
// import { LayoutContainer } from './routes/layout';
export const links: Route.LinksFunction = () => [];
@@ -26,11 +29,13 @@ export function Layout({ children }: { children: React.ReactNode }) {
export default function App() {
return (
<Theme>
<AppTheme>
<ApiProvider>
<Outlet />
<LayoutProvider>
<Outlet />
</LayoutProvider>
</ApiProvider>
</Theme>
</AppTheme>
);
}