Skip to content

Commit c15c8ac

Browse files
committed
fix: 补齐迁移遗漏的客户端资产与 nginx ASR 路由代理
完整性审查发现并修复三项: 1) client/public 全量 54 文件(42 音效 wav + 6 音轨 mp3 + PWA 图标 + 离线页) 与 client/src/styles 4 文件此前完全未迁移。其中 tokens.css 被 index.css @import、performance.css 被 main.tsx import,均为构建期硬依赖——此前仅跑 tsc --noEmit 无法暴露,本次首次执行完整 vite build 才发现。 2) nginx 缺 /api/v1/asr location:客户端 3 处调用 /api/v1/asr/transcribe, gateway routers/transcribe.py 有该前缀,但请求会落入 location / 静态站点 返回 404,导致生产环境语音转写完全不可用(源项目同缺,属存量缺陷)。 3) scripts 三个原样复制脚本补齐 @ai-context 中英双语注释(§3)。 验证:client 完整构建通过(PWA precache 343 条)、双 tsc 0 错、node --check 全过。
1 parent baae5e7 commit c15c8ac

65 files changed

Lines changed: 1018 additions & 308 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎client/.gitignore‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Environment variables
2+
.env
3+
.env.local
4+
.env.test
5+
.env.*.local
6+
7+
# Logs
8+
logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
lerna-debug.log*
15+
16+
node_modules
17+
dist
18+
dist-ssr
19+
*.local
20+
21+
# Editor directories and files
22+
.vscode/*
23+
!.vscode/extensions.json
24+
.idea
25+
.DS_Store
26+
*.suo
27+
*.ntvs*
28+
*.njsproj
29+
*.sln
30+
*.sw?

‎client/app-icon.png‎

Lines changed: 3 additions & 0 deletions

‎client/public/app-icon.png‎

Lines changed: 3 additions & 0 deletions

‎client/public/audio/ambient.mp3‎

1.1 MB
Binary file not shown.

‎client/public/audio/cafe.mp3‎

1.1 MB
Binary file not shown.

‎client/public/audio/forest.mp3‎

1.1 MB
Binary file not shown.

‎client/public/audio/piano.mp3‎

1.13 MB
Binary file not shown.

‎client/public/audio/rain.mp3‎

1.1 MB
Binary file not shown.

‎client/public/audio/waves.mp3‎

1.1 MB
Binary file not shown.

‎client/public/favicon.svg‎

Lines changed: 11 additions & 0 deletions

0 commit comments

Comments
 (0)