diff --git a/src/App.tsx b/src/App.tsx
index e25a22a..3ea35ed 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -10,6 +10,7 @@ import PageLoading from './components/PageLoading'
import AdminLayout from './layouts/AdminLayout'
const Login = lazy(() => import('./pages/Login'))
+const GiteaEmbed = lazy(() => import('./pages/GiteaEmbed'))
const ServersPage = lazy(() => import("./pages/Servers"))
const AuditLogPage = lazy(() => import("./pages/AuditLog"))
const Dashboard = lazy(() => import('./pages/Dashboard'))
@@ -81,6 +82,12 @@ function App() {
}
/>
+ }>
+ }
+ />
},
{ path: '/files', name: '文件与 COS', icon: },
{ path: '/settings', name: '系统配置', icon: , requiredRole: 'ADMIN' },
+ { path: '/git', name: '代码仓库', icon: },
{ path: '/servers', name: '服务器运维', icon: , requiredRole: 'SUPER_ADMIN' },
{ path: '/audit', name: '审计日志', icon: , requiredRole: 'ADMIN' },
]
diff --git a/src/layouts/AdminLayout.tsx b/src/layouts/AdminLayout.tsx
index 3c60799..f39cab8 100644
--- a/src/layouts/AdminLayout.tsx
+++ b/src/layouts/AdminLayout.tsx
@@ -21,6 +21,7 @@ const breadcrumbMap: Record = {
'/ai-costs': 'AI 调用与成本',
'/files': '文件与 COS',
'/settings': '系统配置',
+ '/git': '代码仓库',
'/servers': '服务器运维',
'/audit': '审计日志',
}
diff --git a/src/pages/GiteaEmbed.tsx b/src/pages/GiteaEmbed.tsx
new file mode 100644
index 0000000..d3bb4c6
--- /dev/null
+++ b/src/pages/GiteaEmbed.tsx
@@ -0,0 +1,11 @@
+export default function GiteaEmbed() {
+ return (
+
+
+
+ )
+}