主要更新内容: - 优化UI组件(视频播放器、HR访问模态框、岗位信息展示等) - 更新数据文件(简历、岗位、项目案例等) - 添加新的图片资源(面试状态图标等) - 新增AgentPage等页面组件 - 清理旧的备份文件,提升代码库整洁度 - 优化岗位等级和面试状态的数据结构 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
879 B
Python
32 lines
879 B
Python
#!/usr/bin/env python3
|
|
import re
|
|
|
|
# 读取文件
|
|
with open('src/mocks/resumeInterviewMock.js', 'r', encoding='utf-8') as f:
|
|
content = f.read()
|
|
|
|
# 删除_end临时键
|
|
content = re.sub(r',\s*\/\/ 添加空对象以便语法正确\s*\n\s*"_end": \[\]', '', content)
|
|
|
|
# 修复第6512行的双花括号问题
|
|
lines = content.split('\n')
|
|
if len(lines) > 6511:
|
|
# 确保第6512行只有一个}
|
|
lines[6511] = ' }'
|
|
|
|
content = '\n'.join(lines)
|
|
|
|
# 写回文件
|
|
with open('src/mocks/resumeInterviewMock.js', 'w', encoding='utf-8') as f:
|
|
f.write(content)
|
|
|
|
print("修复完成")
|
|
|
|
# 验证语法
|
|
import subprocess
|
|
result = subprocess.run(['node', '-c', 'src/mocks/resumeInterviewMock.js'],
|
|
capture_output=True, text=True)
|
|
if result.returncode == 0:
|
|
print("✅ 语法验证通过!")
|
|
else:
|
|
print(f"❌ 仍有语法错误:{result.stderr}") |