4 Commits

Author SHA1 Message Date
Claude Code
6e9be01a09 security: 增强 server.js 和 view-doc.html 的安全性与性能
server.js 改进:
- 使用标准 URL API 代替简单的 split('?')[0]
- 添加路径遍历攻击防护(path.normalize + 路径检查)
- 改进错误处理,不暴露内部错误详情
- 添加 try-catch 保护 URL 解析

view-doc.html 改进:
- markdown-it 配置 html: false 防止 XSS 攻击
- 添加文档路径安全验证(检查 .. / \ 字符)
- 使用并行请求代替串行(Promise.all)
- 使用 textContent 设置标题防止 XSS
- 优化错误提示信息

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-29 04:27:18 +00:00
Claude Code
3e02f2c7a2 fix: 修复 server.js URL 解析,支持查询参数
- 修改 server.js 第48行,使用 req.url.split('?')[0] 剥离查询参数
- 修复 view-doc.html?doc=xxx 无法访问的问题
- 更新文档链接从模态框改为独立页面展示
- 前端 Markdown 渲染,不使用后端 API

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-29 04:14:01 +00:00
Claude Sonnet 4.6
9a5eb793e8 feat: 添加 Markdown 文档渲染功能
- 在文档中心和首页添加内嵌 Markdown 渲染器
- 使用 markdown-it 库在前端渲染 Markdown 内容
- 添加模态框展示渲染后的文档
- 重命名 {output_folder} 为 planning-artifacts
- 修改 server.js 支持父目录文件服务
- 文档链接现在可以正确显示格式化的 HTML

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-29 02:54:37 +00:00
yourname
cde556863a feat: 添加 AI 智能抽背助手原型系统
- 基于完整 PRD(1082行)和 UX 设计(1094行)生成
- 9 个 HTML 页面(174KB)
- 桌面端管理后台原型(6个管理页面)
- 平铺展示架构:所有页面同时显示在 iframe 网格中
- 使用 Tailwind CSS + Font Awesome
- 包含本地预览服务器(server.js)

页面列表:
- index.html: 统一入口
- admin-index.html: 平铺展示入口
- docs-index.html: 文档中心
- dashboard.html: 数据概览
- quiz-records.html: 抽背记录查询
- student-management.html: 学生管理
- knowledge-management.html: 知识点管理
- task-management.html: 学习任务管理
- settings.html: 系统设置

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 15:38:24 +00:00