From 9e4ed2622dde385af3d9ca479b297986f702ba95 Mon Sep 17 00:00:00 2001 From: qiudl Date: Sun, 4 Jan 2026 20:38:54 +1030 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=20-=20Coolbuy=20PaaS=20=E4=BD=9C=E4=B8=BA?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增"项目"标签页,使用紫色主题 - Coolbuy PaaS 包含4个模块:租户端、平台端、Auth API、Foundation API - 支持模块状态检测和搜索过滤 - 统计信息包含项目模块数量 - 修复加密脚本正则匹配问题 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- generate-encrypted.js | 8 +- nav-home-encrypted.html | 2 +- nav-home.html | 319 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 322 insertions(+), 7 deletions(-) diff --git a/generate-encrypted.js b/generate-encrypted.js index 4c08870..30d4927 100644 --- a/generate-encrypted.js +++ b/generate-encrypted.js @@ -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); diff --git a/nav-home-encrypted.html b/nav-home-encrypted.html index 58eefeb..b9262dc 100644 --- a/nav-home-encrypted.html +++ b/nav-home-encrypted.html @@ -170,7 +170,7 @@