用于搭建fdulaser课题组的workspace前端
  • TypeScript 84.7%
  • Shell 8.9%
  • Python 6.1%
  • JavaScript 0.2%
查找文件
仓库文件(优先显示最新提交)
文件名 最新提交消息 最新提交日期
tjz 47a22bd612 feat(f3.1.1): add LAN reverse proxy for candidate access
- Add .env.local.example with placeholder configuration
- Add docs/deployment/lan-candidate-env-local-guide.md
- Add scripts/lan_proxy.py — Python reverse proxy (/ → frontend, /api → BFF)
- Add scripts/lan-stack.sh — orchestration with start/status/test/stop/clean
- Add scripts/test_lan_stack.py — 10 fault/mutation tests
- Proxy binds only to user-configured LAN IP (0.0.0.0 rejected)
- BFF and frontend default to 127.0.0.1 loopback
- Log sanitization (real IPs replaced with <LAN_IP>)
- Stale PID recovery, port conflict detection
- HTTPS support (fail-closed if cert missing)
- 12-point verification test suite passes

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-16 20:49:04 +08:00
docs feat(f3.1.1): add LAN reverse proxy for candidate access 2026-06-16 20:49:04 +08:00
e2e feat(f2.1): add Save/Revision/Conflict/Restore E2E tests 2026-06-15 02:56:59 +08:00
integration/backend-f2-bundle F2 Phase 0: Bundle snapshot, API facade, adapter infrastructure 2026-06-15 00:07:27 +08:00
open_project_files F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
prompts feat(f3.0): add literature vertical slice frontend 2026-06-16 00:52:18 +08:00
scripts feat(f3.1.1): add LAN reverse proxy for candidate access 2026-06-16 20:49:04 +08:00
src feat(f3.1): add PDF reader page and annotation API 2026-06-16 20:09:32 +08:00
.env.candidate.example F2 Phase 0: Bundle snapshot, API facade, adapter infrastructure 2026-06-15 00:07:27 +08:00
.env.example F2 Phase 0: Bundle snapshot, API facade, adapter infrastructure 2026-06-15 00:07:27 +08:00
.env.local.example feat(f3.1.1): add LAN reverse proxy for candidate access 2026-06-16 20:49:04 +08:00
.gitignore feat(f2.1/phase1+2): one-click dual-service orchestration + candidate E2E 2026-06-15 02:35:20 +08:00
eslint.config.js F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
index.html F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
package-lock.json F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
package.json feat(f2.1/phase1+2): one-click dual-service orchestration + candidate E2E 2026-06-15 02:35:20 +08:00
playwright.config.ts feat(f2.1/phase5): full regression, audits, F2 verdict 2026-06-15 02:43:48 +08:00
postcss.config.cjs F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
prettier.config.js F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
PROJECT_START_PROMPT.md F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
README.md F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
tsconfig.json F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
tsconfig.node.json F1.1: Fix Provider hierarchy, add E2E tests, browser verification 2026-06-10 01:33:49 +08:00
vite.config.ts F2 Phase 0: Bundle snapshot, API facade, adapter infrastructure 2026-06-15 00:07:27 +08:00

Workplace — 激光核物理科研工作台

⚠️ 前端演示版本:当前为 F0/F1 工程骨架与 Application Shell 阶段,使用 mock 数据。

技术栈

  • React 19 + TypeScript 5.7 (strict)
  • Vite 6.2
  • Mantine v7
  • TanStack Router + TanStack Query
  • Zod
  • Vitest + React Testing Library + Playwright

启动

npm install
npm run dev          # 开发服务器 http://127.0.0.1:5173

测试

npm run lint         # ESLint
npm run typecheck    # TypeScript
npm test             # 单元/组件测试
npm run build        # 生产构建

项目结构

src/
  app/router/        # 路由与 AppShell
  app/providers/     # AuthProvider, AgentSidebarProvider
  pages/             # 页面组件
  features/          # 功能模块
  components/        # 共享组件
  contracts/         # Zod schemas + TS 类型
  api/mocks/         # Mock fixtures + adapter
  theme/tokens/      # Design tokens

角色演示

登录页可选择三种角色:

  • system_owner — 系统所有者,可访问管理员和所有权转交原型
  • administrator — 管理员,可访问管理员页面但无转交能力
  • research_user — 科研用户,基础科研功能

当前范围

  • F0: 工程骨架、契约、测试基础设施
  • F1: Application Shell、浅色橙白主题、全局 Agent 栏、页面骨架
  • F2: 账户与项目完整 UI(待后端契约冻结)
  • F3: 科研主闭环(待后端契约冻结)
  • F4: 真实后端联调(待后端提供 BFF)

Mock / 真实后端边界

所有 API 当前使用 mock adapter。后端 Workplace BFF 冻结后,通过 adapter 层替换为真实 API client,无需修改组件。