9b13c95e8a
♻️ refactor(reinfo): 重构 diff 解析逻辑并支持多格式
...
- 将原本分散在 `parse_diff_side_by_side` 与 `parse_pipe_diff_table` 的两套解析逻辑合并,新增统一的 `parse_one_diff_line` 工具函数
- `parse_one_diff_line` 同时识别 `|a|b`、`a | b`、`a<b` / `a>b` 等多种 diff 输出格式,便于后续扩展
- 简化 `parse_diff_blocks` 中 full mode / simple mode 的内联解析流程,消除代码重复
- 优化 `raw_error` 换行符归一化处理,兼容 `\r\n` 与单独 `\r` 结尾的情况
2026-07-08 21:24:08 +08:00
0e5cac3d4e
♻️ refactor(reinfo): 调整 diff 解析函数定义位置
...
- 将 parse_diff_blocks、parse_pipe_diff_table、parse_diff_side_by_side 移至 dedup_runtimeinfo 之后
- 与相邻辅助函数保持一致的位置,便于阅读和维护
- 精简部分冗余注释
2026-07-08 21:15:49 +08:00
c22c788cfa
✨ feat(ui): 判题结果页新增输出对比视图
...
- 新增 parse_diff_blocks 系列函数,将 runtimeinfo 解析为结构化的测试点对比块,支持 simple 表格和 diff -y 两种格式
- 在判题结果页插入"输出对比"区块,逐测试点并列展示期望输出与用户输出,差异行高亮
- 补充 diff-section 相关样式,移动端切换为单列布局
2026-07-08 21:13:13 +08:00
90010113dd
✨ feat(ui): 判题结果页 AI 点评区支持折叠
...
- 为 LLM 点评标题增加点击折叠/展开交互,减少页面占用空间
- 新增标题悬停反馈与图标旋转动画样式
- 移除快捷操作区中的"下载测试数据"按钮入口
2026-07-08 21:07:56 +08:00
2b699a185b
♻️ refactor(reinfo): 简化判错提示并新增自动刷新
...
- 移除 PHP 中冗余的 verdict_hints 数组及其填充逻辑
- 移除模板中 friendly-explain 区与 errexp-list 错误模式匹配脚本(28 条规则)
- 标题提示简化为单行 verdict-tip,详细的修复建议交由 AI 点评
- 调整页面顺序:AI 点评区提前,原始错误折叠下移
- 新增判题中自动刷新状态指示:轮询 status-ajax.php,完成后自动 reload,并加入后台标签暂停与退避策略
2026-07-08 21:04:50 +08:00
6c462655b9
✨ feat(ui): 重新设计判题结果页与提交页
...
- 判题结果页引入友好错误解释面板,按 verdict 类型给出提示与改进建议
- 新增 dedup_runtimeinfo() 函数将重复 RE 测试点折叠为区间汇总
- 区分管理员/源浏览者与普通用户视图,原始错误默认折叠
- 错误模式匹配扩展至 28 条,覆盖 glibc/Java/Python/Go 等常见运行时异常
- 提交页改用卡片式布局,编辑器工具栏与测试运行区交互优化
- 中英文语言文件补充相关文案与快捷操作标签
- 切换 LLM 点评 API 至 newapi.klarkxy.xyz,模型改为 minimax-m3
- 新增 .codegraph/.gitignore 忽略本地调试数据
2026-07-08 20:56:17 +08:00
c4e0f104b4
修复ai控制
2026-06-14 14:11:03 +08:00
752105e55c
Merge branch 'master' of http://klarkxy.xyz:3000/hustoj/hustoj
2026-06-05 18:45:40 +08:00
c55b010d6f
♻️ refactor(syzoj-header): restructure navigation menu and upgrade LLM model
...
- Remove "来源/分类" (category.php) link from main navigation
- Relocate "cppreference" to end of menu, after contest-related items
- Add conditional "AI 聊天" section using `$OJ_AI_HTML` variable
- Update LLM model from `MiniMax-M2.7` to `MiniMax-M3` in db_info.inc.php
- Fix trailing whitespace in header.php template
2026-06-05 18:40:45 +08:00
jieer
88706f5d78
feat(llm): 启用AI点评功能并新增AI聊天API接口,自动创建相关数据库表
2026-05-29 17:16:26 +08:00
d60458ad35
feat: 切换 AI 点评至 Anthropic 兼容 API(MiniMax)
...
- 将默认 LLM API 地址改为 MiniMax Anthropic 兼容格式
- 更新默认模型为 MiniMax-M2.7,max_tokens 改为 65536,超时改为 60 秒
- 请求体改为 Anthropic 格式:system prompt 提到顶层,temperature 调整为 1.0
- HTTP 头改用 x-api-key 和 anthropic-version
- 响应解析适配 Anthropic 返回的 content 数组结构
2026-05-29 16:10:50 +08:00
b95ede457e
feat: 新增 LLM AI 错误点评功能,支持通过 OpenAI 兼容 API 对提交代码进行智能分析
2026-05-29 16:04:42 +08:00
606e0855f9
feat: 支持分类标签使用逗号分隔
2026-05-29 15:52:19 +08:00
2f18fac0c4
♻️ refactor: 优化流程图结构以增强可读性
2026-04-17 17:50:21 +08:00
bfa8083727
♻️ refactor: 优化流程图文本格式以增强可读性
2026-04-17 17:47:50 +08:00
ff359b936a
📝 docs: 更新自定义函数章节,增加示例和流程图以增强理解
2026-04-17 17:43:17 +08:00
0d9274ba3e
📝 docs: 更新流程图讲义,简化内容并增强可读性
2026-04-17 17:40:07 +08:00
145ad7b8ff
♻️ refactor: 优化问题标题样式和响应式设计
2026-04-17 17:17:18 +08:00
687093a134
♻️ refactor: 优化全局字体大小设置
2026-04-17 15:50:01 +08:00
b29a9395f8
📝 docs: 添加调试说明文档
2026-04-17 15:43:33 +08:00
c6df6d16c8
♻️ refactor: 移除全局字体大小和标题大小设置,优化样式
2026-04-17 15:36:56 +08:00
80ac276e17
♻️ refactor: 优化管理员页面字体大小设置
2026-04-17 15:32:04 +08:00
16e678d924
✨ feat: 优化样例复制功能,增加成功和失败提示
2026-04-12 15:06:21 +08:00
bae46aef77
✨ feat: 调整全局和管理员字体大小,优化样式
2026-04-12 13:59:18 +08:00
af78359d94
✨ feat: 添加 Sarasa Mono 字体支持并优化样式
2026-04-12 13:29:17 +08:00
c0c0cc19b2
✨ feat: 优化样例输入输出处理逻辑并增强复制功能
2026-04-12 12:59:35 +08:00
7334f3a368
✨ feat: 优化问题页面工具栏样式和标签显示
2026-04-12 12:55:45 +08:00
e5aadba7fd
✨ feat: 优化评测状态页面表单和样式
2026-04-11 20:57:47 +08:00
917ea78c66
✨ feat: 添加 Ace 编辑器支持并优化样式
2026-04-11 20:42:59 +08:00
31c676fc3a
✨ feat: 添加 MathJax 字体文件并优化代码加载逻辑
2026-04-11 20:37:53 +08:00
ab2a3ca65f
✨ feat: 优化问题页面样式并添加复制功能
2026-04-11 19:44:27 +08:00
5a39432029
✨ feat: 添加对 Ace 编辑器的支持和样式优化
2026-04-11 19:43:30 +08:00
7bae6d487d
✨ feat: 添加流程图和甘特图的字体样式支持
2026-04-11 19:09:28 +08:00
007425ce81
✨ feat: 添加全局单一字体样式以统一界面字体
2026-04-10 20:56:35 +08:00
5baab4da11
✨ feat: 优化代码编辑器样式和增强预览功能
2026-04-10 20:45:24 +08:00
96b9eb57e2
✨ feat: 添加语言模式映射和获取函数以支持代码编辑器
2026-04-10 19:39:06 +08:00
6abef02001
📝 docs: 删除不必要的说明,简化流程图讲解内容
2026-04-10 18:36:34 +08:00
630142288b
📝 docs: 优化流程图文档内容和结构
2026-04-10 18:34:54 +08:00
470b6ad776
✨ feat: 添加文档标题规范化功能和优化文档显示逻辑
2026-04-10 18:16:03 +08:00
d1cd73ccdb
✨ feat: 添加文档功能和页面模板
2026-04-10 18:09:36 +08:00
f5e00f1f35
✨ feat: 优化管理员操作按钮样式和交互逻辑
2026-04-10 17:14:55 +08:00
d30311e9bb
✨ feat: 优化管理员菜单样式和交互逻辑
2026-04-10 17:05:28 +08:00
c33c28794d
修复dist问题
2026-04-10 16:55:59 +08:00
addada1823
移除多余的无用代码
2026-04-10 16:36:57 +08:00
f20b7aa61c
✨ feat: 新增 WYSIWYG 编辑器功能和相关工具栏事件处理
2026-04-10 16:18:01 +08:00
40b77471b5
✨ feat: 更新问题页面和提交页面,集成Vditor适配器,优化Markdown渲染
2026-04-10 15:47:26 +08:00
0c7297afd7
✨ feat: 添加管理员操作功能以支持重判和删除提交
2026-04-05 13:55:10 +08:00
489f11ce35
feat: re-enable nickname editing in user profile
...
- Restore nickname field in modify.php SQL update query
- Remove disabled attribute from nickname input in modifypage.php template
- Allow users to update their nickname through profile modification
- Maintain existing HTML entity encoding for security
2026-03-15 13:15:09 +08:00
055223bfdf
feat(problem): add copy button to markdown code blocks
...
Add a copy button to markdown code blocks in the problem view for easier code snippet copying. The button appears in the top-right corner of code blocks and provides visual feedback on copy success or failure. This improves user experience by eliminating the need to manually select and copy code.
2026-03-13 19:32:38 +08:00
3256c00dcd
feat(ui): adjust hardness dropdown styling for better vertical alignment
...
- Increase min-height and line-height to 32px for consistent sizing
- Remove top and bottom padding to improve vertical centering
- Maintain existing width and margin properties
2026-03-13 15:55:40 +08:00