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:
28
create_homework_poster_mapping.cjs
Normal file
28
create_homework_poster_mapping.cjs
Normal file
@@ -0,0 +1,28 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// 读取文旅_作业海报.json文件
|
||||
const posterDataPath = path.join(__dirname, '网页未导入数据/文旅产业/文旅_作业海报.json');
|
||||
const posterData = JSON.parse(fs.readFileSync(posterDataPath, 'utf-8'));
|
||||
|
||||
// 创建课程名称到图片URL的映射
|
||||
const courseNameToImageUrl = {};
|
||||
|
||||
posterData.forEach(item => {
|
||||
const courseName = item['课程名称'];
|
||||
const imageUrl = item['图片url'];
|
||||
|
||||
if (courseName && imageUrl) {
|
||||
courseNameToImageUrl[courseName] = imageUrl;
|
||||
}
|
||||
});
|
||||
|
||||
// 输出映射对象
|
||||
console.log('// 课程名称到作业海报图片URL的映射');
|
||||
console.log('const homeworkPosterMapping = ' + JSON.stringify(courseNameToImageUrl, null, 2) + ';');
|
||||
console.log('\n// 总共映射了 ' + Object.keys(courseNameToImageUrl).length + ' 个课程');
|
||||
|
||||
// 将映射保存到文件
|
||||
const outputPath = path.join(__dirname, 'homework_poster_mapping.json');
|
||||
fs.writeFileSync(outputPath, JSON.stringify(courseNameToImageUrl, null, 2), 'utf-8');
|
||||
console.log('\n映射已保存到: ' + outputPath);
|
||||
Reference in New Issue
Block a user