浏览代码

🔧 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 2 月之前
父节点
当前提交
f15beda655
共有 3 个文件被更改,包括 6 次插入3 次删除
  1. 2 1
      .claude/settings.local.json
  2. 2 1
      src/pages/sdk-test/index.module.scss
  3. 2 1
      src/pages/sdk-test/index.tsx

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

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

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

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

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

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