feat: 完善项目架构和功能
- 修复路由配置,实现根路径自动重定向到/project - 新增Gitea OAuth认证系统和相关组件 - 完善日志系统实现,包含pino日志工具和中间件 - 重构页面结构,分离项目管理和环境管理页面 - 新增CORS、Session等关键中间件 - 优化前端请求封装和类型定义 - 修复TypeScript类型错误和参数传递问题
This commit is contained in:
8
apps/web/src/pages/project/index.tsx
Normal file
8
apps/web/src/pages/project/index.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
function Project() {
|
||||
const [projects, setProjects] = useState([]);
|
||||
return <div>project page</div>;
|
||||
}
|
||||
|
||||
export default Project;
|
||||
15
apps/web/src/pages/project/types.ts
Normal file
15
apps/web/src/pages/project/types.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
enum BuildStatus {
|
||||
Idle = "Pending",
|
||||
Running = "Running",
|
||||
Stopped = "Stopped",
|
||||
}
|
||||
|
||||
export interface Project {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
git: string;
|
||||
env: Record<string, string>;
|
||||
createdAt: string;
|
||||
status: BuildStatus;
|
||||
}
|
||||
Reference in New Issue
Block a user