Parcourir la source

🔧 chore(claude): add typecheck script to allowed commands
- 添加"npm run typecheck:*"到Claude设置的允许命令列表

💄 style(sdk-test): adjust page layout and scrolling
- 将min-height改为height: 100vh确保页面占满视口
- 添加overflow-y: auto使内容超出时可滚动

✨ feat(sdk-test): update transcription language settings
- 修改语音转写语言配置为仅中文(zh-CN)
- 注释掉原有的中英文双语转换配置

yourname il y a 2 mois
Parent
commit
f15beda655

+ 2 - 1
.claude/settings.local.json

@@ -8,7 +8,8 @@
       "Bash(npm run test)",
       "Bash(npm run test)",
       "Bash(npm run build)",
       "Bash(npm run build)",
       "Bash(npm test:*)",
       "Bash(npm test:*)",
-      "Bash(npx vitest:*)"
+      "Bash(npx vitest:*)",
+      "Bash(npm run typecheck:*)"
     ],
     ],
     "deny": [],
     "deny": [],
     "ask": []
     "ask": []

+ 2 - 1
src/pages/sdk-test/index.module.scss

@@ -1,7 +1,8 @@
 .sdkTestPage {
 .sdkTestPage {
-  min-height: 100vh;
+  height: 100vh;
   background: #f5f5f5;
   background: #f5f5f5;
   padding: 24px;
   padding: 24px;
+  overflow-y: auto;
 
 
   .header {
   .header {
     text-align: center;
     text-align: center;

+ 2 - 1
src/pages/sdk-test/index.tsx

@@ -128,7 +128,8 @@ const SdkTestPage = () => {
       setTranscriptionStatus("starting")
       setTranscriptionStatus("starting")
 
 
       await sttManager.startTranscription({
       await sttManager.startTranscription({
-        languages: [{ source: "en-US", target: ["zh-CN"] }],
+        // languages: [{ source: "en-US", target: ["zh-CN"] }],
+        languages: [{ source: "zh-CN" }],
       })
       })
 
 
       setIsTranscriptionActive(true)
       setIsTranscriptionActive(true)