更新12个教务系统并优化项目大小

主要更新:
- 更新所有12个产业的教务系统数据和功能
- 删除所有 node_modules 文件夹(节省3.7GB)
- 删除所有 .yoyo 缓存文件夹(节省1.2GB)
- 删除所有 dist 构建文件(节省55MB)

项目优化:
- 项目大小从 8.1GB 减少到 3.2GB(节省60%空间)
- 保留完整的源代码和配置文件
- .gitignore 已配置,防止再次提交大文件

启动脚本:
- start-industry.sh/bat/ps1 脚本会自动检测并安装依赖
- 首次启动时自动运行 npm install
- 支持单个或批量启动产业系统

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
KQL
2025-10-17 14:36:25 +08:00
parent 60921dbfb9
commit 38350dca36
792 changed files with 470498 additions and 11589 deletions

View File

@@ -0,0 +1,64 @@
const fs = require('fs');
// 读取文件
const content = fs.readFileSync('src/mocks/resumeInterviewMock.js', 'utf8');
// 使用eval来执行JS代码仅用于调试
try {
// 移除export语句
const cleanContent = content
.replace(/export\s+function/g, 'function')
.replace(/export\s+const/g, 'const')
.replace(/export\s+\{[^}]+\};?/g, '');
// 执行代码
eval(cleanContent);
// 检查数据
console.log('=== 数据完整性检查 ===\n');
console.log('Industries数量:', industries.length);
console.log('ResumeTemplates键数量:', Object.keys(resumeTemplates).length);
console.log('\n=== Industries列表 ===');
industries.forEach(ind => {
console.log(`- ${ind.name} (${ind.positions.length}个岗位, ${ind.questions.length}个面试题组)`);
});
console.log('\n=== ResumeTemplates键列表 ===');
Object.keys(resumeTemplates).forEach(key => {
const templates = resumeTemplates[key];
console.log(`- ${key}: ${templates.length}个模板`);
});
console.log('\n=== 数据匹配检查 ===');
industries.forEach(ind => {
const hasTemplate = resumeTemplates.hasOwnProperty(ind.name);
if (!hasTemplate) {
console.log(`${ind.name} 没有对应的resumeTemplates`);
} else {
console.log(`${ind.name}${resumeTemplates[ind.name].length} 个简历模板`);
}
});
console.log('\n=== 简历模板数据结构检查 ===');
Object.keys(resumeTemplates).forEach(key => {
const templates = resumeTemplates[key];
templates.forEach((template, idx) => {
const hasContent = !!template.content;
const hasOriginal = !!template.content?.original;
const hasModified = !!template.content?.modified;
const hasStudentInfo = !!template.studentInfo;
if (!hasContent) {
console.log(`${key}[${idx}] (${template.position}) 缺少content字段`);
} else if (!hasOriginal || !hasModified) {
console.log(`⚠️ ${key}[${idx}] (${template.position}) content缺少original或modified`);
}
});
});
} catch (error) {
console.error('执行错误:', error.message);
console.error('错误位置:', error.stack);
}