更新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,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);