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,7 +1,9 @@
import { type RouteConfig, index, route } from '@react-router/dev/routes';
import { type RouteConfig, index, layout, route } from '@react-router/dev/routes';
export default [
index('routes/home.tsx'),
route('login', 'routes/auth/login.tsx'),
layout('routes/layout.tsx', [index('routes/home.tsx')]),
// route('init', 'routes/init.tsx'),
// catch-all 404 route
route('*', 'routes/404.tsx'),
] satisfies RouteConfig;