feat: 添加用户认证功能,包括登录、注册、GitHub/Gitee OAuth集成及相关路由配置。

This commit is contained in:
2026-01-29 19:07:23 +08:00
parent 842257165b
commit 0b3a7b1d79
6 changed files with 135 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ import TaxCalculatorPage from '../pages/TaxCalculatorPage';
import Login from '../pages/Login/Login';
import Profile from '../pages/Profile';
import GitHubCallback from '../pages/GitHubCallback';
import GiteeCallback from '../pages/GiteeCallback';
import Notifications from '../pages/Notifications';
import Layout from '../components/common/Layout';
import ProtectedRoute from '../components/common/ProtectedRoute';
@@ -36,6 +37,10 @@ export const router = createBrowserRouter([
path: '/auth/github/callback',
element: <GitHubCallback />,
},
{
path: '/auth/gitee/callback',
element: <GiteeCallback />,
},
{
path: '/',
element: <ProtectedRoute><Layout /></ProtectedRoute>,