feat: 添加项目区域 - Coolbuy PaaS 作为项目展示

- 新增"项目"标签页,使用紫色主题
- Coolbuy PaaS 包含4个模块:租户端、平台端、Auth API、Foundation API
- 支持模块状态检测和搜索过滤
- 统计信息包含项目模块数量
- 修复加密脚本正则匹配问题

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
qiudl
2026-01-04 20:38:54 +10:30
parent 76388f885c
commit 9e4ed2622d
3 changed files with 322 additions and 7 deletions

View File

@@ -11,9 +11,11 @@ const encrypted = CryptoJS.AES.encrypt(originalHtml, password).toString();
// 读取模板
let template = fs.readFileSync('nav-home-encrypted.html', 'utf8');
// 替换占位符
template = template.replace('const ENCRYPTED_CONTENT = "ENCRYPTED_PLACEHOLDER";',
`const ENCRYPTED_CONTENT = "${encrypted}";`);
// 使用正则替换已有的加密内容(匹配 const ENCRYPTED_CONTENT = "..." 格式)
template = template.replace(
/const ENCRYPTED_CONTENT = "[^"]*";/,
`const ENCRYPTED_CONTENT = "${encrypted}";`
);
// 写入最终文件
fs.writeFileSync('nav-home-encrypted.html', template);