更新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,59 @@
#!/usr/bin/env node
const fs = require('fs');
const content = fs.readFileSync('src/mocks/resumeInterviewMock.js', 'utf-8');
const industries = [
'UI设计', '包装设计', '插画设计', '灯光', '动画设计',
'后期特效', '剪辑', '品牌设计', '平面设计', '三维设计',
'摄影/摄像', '室内设计', '调色', '新媒体运营', '音频处理',
'影视节目策划', '直播'
];
console.log('=== Verification of Interview Questions Update ===\n');
let allSuccess = true;
industries.forEach(industry => {
const regex = new RegExp('"name":\\s*"' + industry.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '"[\\s\\S]*?"questions":\\s*\\[([\\s\\S]*?)\\]', 'g');
const match = regex.exec(content);
if (match) {
const questionsContent = match[1];
const hasGroupQ1 = questionsContent.includes('group_q1');
const hasSubQuestions = questionsContent.includes('subQuestions');
const questionCount = (questionsContent.match(/"q1_\d+"/g) || []).length;
// Extract first question to verify content
const firstQuestionMatch = questionsContent.match(/"question":\s*"([^"]+)"/);
const firstQuestion = firstQuestionMatch ? firstQuestionMatch[1].substring(0, 30) : '';
if (hasGroupQ1 && hasSubQuestions && questionCount > 0) {
console.log(`${industry.padEnd(15)} : Updated (${questionCount} questions) - "${firstQuestion}..."`);
} else {
console.log(`⚠️ ${industry.padEnd(15)} : Structure issue`);
allSuccess = false;
}
} else {
console.log(`${industry.padEnd(15)} : Not found`);
allSuccess = false;
}
});
console.log('\n' + '='.repeat(50));
if (allSuccess) {
console.log('✅ All 17 industry groups have been successfully updated!');
} else {
console.log('⚠️ Some industry groups may need attention');
}
// Check if the file is syntactically valid
const { execSync } = require('child_process');
try {
execSync('node -c src/mocks/resumeInterviewMock.js', { encoding: 'utf-8' });
console.log('✅ File syntax is valid');
} catch (error) {
console.error('❌ Syntax error in file');
}