chore: 更新数据文件和组件优化
主要更新内容: - 优化UI组件(视频播放器、HR访问模态框、岗位信息展示等) - 更新数据文件(简历、岗位、项目案例等) - 添加新的图片资源(面试状态图标等) - 新增AgentPage等页面组件 - 清理旧的备份文件,提升代码库整洁度 - 优化岗位等级和面试状态的数据结构 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
31
check_duplicates.cjs
Normal file
31
check_duplicates.cjs
Normal file
@@ -0,0 +1,31 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// 读取JSON文件
|
||||
const jsonPath = path.join(__dirname, '网页未导入数据/文旅产业/文旅_作业海报.json');
|
||||
const data = JSON.parse(fs.readFileSync(jsonPath, 'utf-8'));
|
||||
|
||||
console.log('JSON文件总数据:', data.length);
|
||||
|
||||
// 检查重复
|
||||
const names = data.map(d => d['课程名称']);
|
||||
const nameCount = {};
|
||||
|
||||
names.forEach(name => {
|
||||
nameCount[name] = (nameCount[name] || 0) + 1;
|
||||
});
|
||||
|
||||
const duplicates = Object.entries(nameCount).filter(([name, count]) => count > 1);
|
||||
|
||||
if (duplicates.length > 0) {
|
||||
console.log('\n发现重复的课程名称:');
|
||||
duplicates.forEach(([name, count]) => {
|
||||
console.log(` - "${name}": 出现 ${count} 次`);
|
||||
});
|
||||
} else {
|
||||
console.log('\n没有重复的课程名称');
|
||||
}
|
||||
|
||||
// 统计唯一课程名
|
||||
console.log('\n唯一课程名数量:', Object.keys(nameCount).length);
|
||||
console.log('差异:', data.length - Object.keys(nameCount).length);
|
||||
Reference in New Issue
Block a user