Commit Graph
100 Commits
Author SHA1 Message Date
klarkxy aceaaeb272 feat(problemset): replace semantic-ui dropdown with native select for hardness filter
- Replace custom semantic-ui dropdown component with standard HTML select element
- Simplify JavaScript by using native event listener instead of semantic-ui dropdown API
- Remove unnecessary dropdown initialization and selection setting code
- Maintain same functionality while reducing complexity and dependency on semantic-ui
2026-03-13 15:54:04 +08:00
klarkxy 50692cd13a feat(web): implement async git pull with real-time status updates
- Replace synchronous git pull execution with background job system
- Add AJAX endpoints for starting and monitoring git pull operations
- Implement process tracking using PID files and exit code files
- Add real-time log display with tail reading functionality
- Improve user experience with non-blocking UI and status updates
- Maintain backward compatibility with existing sudo permissions setup
2026-03-13 15:50:14 +08:00
klarkxy eb89eeb78e feat(gitpull): replace sudo password auth with NOPASSWD sudoers config
- Remove hardcoded sudo username and password from gitpull.php
- Switch to using `sudo git pull` with NOPASSWD sudoers configuration
- Add helpful error message with setup instructions when git pull fails
- Improve security by eliminating password storage in source code
2026-03-13 15:45:54 +08:00
klarkxy 66bf57911b feat(gitpull): execute git pull on page load and add retry button
- Changed git pull execution from POST-only to always run on page load
- Replaced sudo with su for better user switching in command execution
- Removed form submission in favor of direct execution with retry button
- Simplified UI by always showing result message and conditionally showing retry button
2026-03-13 15:36:13 +08:00
klarkxy 73049b71b6 feat: add admin-only git pull interface and remove auto-pull
- Add new `gitpull.php` page for manual git pull execution by administrators
- Remove automatic git pull on homepage visit to prevent unintended updates
- Include git pull link in admin navigation menu for easy access
- Secure interface with admin-only access and sudo credentials configuration
2026-03-13 15:32:53 +08:00
klarkxy 2a41341e51 feat(problemset): move hardness filter to right side and improve UX
- Relocate hardness dropdown from left to right side of filter controls
- Change form submission behavior to update URL parameters directly
- Preserve selected hardness value on page reload
- Remove page parameter when hardness changes to reset pagination
- Improve visual alignment and spacing in filter interface
2026-03-13 15:25:34 +08:00
klarkxy 10278b55fb feat: add automatic git pull on homepage visit with rate limiting
Introduce a mechanism to automatically pull the latest changes from the git repository when the homepage is accessed. This ensures the application stays up-to-date without manual intervention. The feature includes a lock file (`/tmp/hustoj_git_pull.lock`) to prevent excessive pulls, limiting execution to at most once every 60 seconds. The git pull command runs in the background to avoid blocking the page load, with output logged to `/tmp/hustoj_git_pull.log`.
2026-03-13 15:16:29 +08:00
klarkxy 60f1532eb8 feat(problemset): add hardness filter and improve query parameter handling
- Added hardness filter dropdown in problemset UI with options 1-8
- Implemented server-side hardness parameter validation and filtering
- Refactored query parameter handling to use $filter_params array
- Updated SQL queries to use parameter binding for both search and hardness filters
- Fixed pagination to include hardness parameter in URL
- Improved code organization by centralizing filter parameter management
2026-03-13 15:03:46 +08:00
klarkxy 3f6db1935a 增加只显示未完成题目的按钮 2025-10-31 18:15:15 +08:00
klarkxy c7c1f55cd4 代码块中的尖括号处理 2025-08-04 17:59:33 +08:00
klarkxy 26e0f0fc0a 难度按钮先注释了 2025-08-01 14:03:15 +08:00
klarkxy b62fdbd18a 增加难度分类按钮 2025-08-01 14:01:36 +08:00
klarkxy 196e706fe4 上传cppreference 2025-08-01 12:57:54 +08:00
klarkxy e29892f8cd 增加一个搜索按钮 2025-06-06 16:09:05 +08:00
klarkxy 1d77722c0e 试试gemini的建议 2025-05-10 16:46:14 +08:00
klarkxy 4d65c23bdf 增加判断 2025-05-10 16:35:42 +08:00
klarkxy cdfb67fb3f 改回原来的试试 2025-05-10 16:29:56 +08:00
klarkxy 712c9fbe57 再改回html 2025-05-10 16:25:17 +08:00
klarkxy d62b005cb3 试试append 2025-05-10 16:23:38 +08:00
klarkxy 5f719c78e1 再试试 2025-05-10 16:20:42 +08:00
klarkxy b3f23cf2f0 使用text而非html保证markdown不会被修改 2025-05-10 16:14:33 +08:00
klarkxy 06b4e61de1 增加一些对markdown的判断 2025-05-10 16:02:58 +08:00
klarkxy 48fdf71836 更新markded.min.js 2025-05-10 15:54:40 +08:00
klarkxy df321c3ab1 单独进行处理 2025-05-10 15:50:23 +08:00
klarkxy f1ba072f45 移除bbcode_to_html试试 2025-05-10 15:40:44 +08:00
klarkxy 7094b36a37 增加一个开关用于调试 2025-05-09 18:34:17 +08:00
klarkxy 1997ecf591 测试转义 2025-05-09 18:31:24 +08:00
klarkxy bcb36b4ab9 换个地方再试试 2025-05-09 18:21:42 +08:00
klarkxy e22a8d8d4d trans_md中增加大于小于号转换 2025-05-09 18:12:22 +08:00
klarkxy 969f483693 ??? 2025-05-01 18:02:30 +08:00
klarkxy 01ee421d05 合并搜索框功能 2025-05-01 17:50:34 +08:00
klarkxy beb6e2778b 修改上色 2025-05-01 17:13:49 +08:00
klarkxy b99aa2411c 回滚,就这样吧 2025-05-01 17:11:44 +08:00
klarkxy 63e076a062 增加管理员显示全tag 2025-05-01 17:08:56 +08:00
klarkxy 20c8a1fdcb 修复未分类标签没显示的BUG 2025-05-01 17:05:44 +08:00
klarkxy 8612812011 修复了分类页面的显示问题 2025-05-01 17:03:08 +08:00
klarkxy a1624e5468 增加只显示有效TAG的功能 2025-05-01 16:58:17 +08:00
klarkxy 49787b8e9c 除去空tag 2025-05-01 16:54:05 +08:00
klarkxy 3f07e94063 按照默认来吧,不要颜色了 2025-05-01 16:46:21 +08:00
klarkxy 7ec34ba0fb 未生效修复 2025-05-01 16:45:05 +08:00
klarkxy 7c01920442 统一格式 2025-05-01 16:43:57 +08:00
klarkxy 36cd4dbe85 引入固定常量 2025-05-01 16:41:50 +08:00
klarkxy 3e66bc1a31 重新复原试试 2025-05-01 16:40:41 +08:00
klarkxy 222c6c395f 修复BUG 2025-05-01 16:39:54 +08:00
klarkxy a38260e0f0 修复BUG 2025-05-01 16:38:54 +08:00
klarkxy eb718de324 统一颜色 2025-05-01 16:38:10 +08:00
klarkxy d58c9c0c92 给所有tag上色 2025-05-01 16:36:20 +08:00
klarkxy e4a139b850 增加标签地图,看看能不能行 2025-05-01 16:28:33 +08:00
klarkxy 4fec8e4e7c 小修改 2025-05-01 15:50:53 +08:00
klarkxy 92d90b479a 尝试弄一个下载数据 2025-04-11 14:17:55 +08:00
klarkxy 787c7ab709 删除markdown 2025-04-11 14:15:17 +08:00
klarkxy 35c1453d9e 试试去掉markdown 2025-04-11 14:13:54 +08:00
klarkxy 19c315c772 手动转义 2025-04-11 14:11:39 +08:00
klarkxy 4464e48e90 继续 2025-04-11 14:10:19 +08:00
klarkxy 3467abe169 111 2025-04-11 14:08:55 +08:00
klarkxy 4ae936ccd3 先这样吧 2025-04-11 14:07:48 +08:00
klarkxy dbe1e5cb23 开启第一个测试点下载 2025-04-11 14:03:10 +08:00
klarkxy 72a82d8e08 改pre->div 2025-04-11 14:01:02 +08:00
klarkxy aea427bb3f 用replace强转 2025-04-11 13:59:23 +08:00
klarkxy 40896f384e 重复解两次 2025-04-11 13:57:27 +08:00
klarkxy 0c69afff98 换成htmlspecialchars_decode 2025-04-11 13:55:40 +08:00
klarkxy 84cf46b5c0 用htmlspecialchars试试 2025-04-11 13:54:06 +08:00
klarkxy 0a09151ed8 删除误加的代码 2025-04-11 13:49:36 +08:00
klarkxy 13c59eb132 修复 2025-04-11 13:48:28 +08:00
klarkxy 344554b3e2 增加reinfo里的转义 2025-04-11 13:42:58 +08:00
klarkxy 5504685bca 在错误的地方也加上markdown转义 2025-04-11 13:36:46 +08:00
klarkxy 74f712e776 移除过时警告 2025-03-09 17:17:08 +08:00
klarkxy 723430cade 增加python文档 2025-03-09 17:10:56 +08:00
klarkxy 7153217140 修复错误 2025-03-02 18:37:50 +08:00
klarkxy ef65c15c2a 111 2025-03-02 18:34:33 +08:00
klarkxy 687c751929 111 2025-03-02 18:33:37 +08:00
klarkxy 1823f7c88d 修改set 2025-03-02 18:31:24 +08:00
klarkxy 16e5f00a72 增加列表 2025-03-02 18:29:22 +08:00
klarkxy 6565cd9afb 重新整理结构 2025-03-02 17:50:32 +08:00
klarkxy 91f3aca7b5 调整react加载位置 2025-03-02 17:44:10 +08:00
klarkxy 80a7ad6748 增加一个筛选器 2025-03-02 17:39:58 +08:00
klarkxy 809a64d2a5 引入数据库头文件 2025-03-02 17:32:42 +08:00
klarkxy 85685525a1 调整位置试一下 2025-03-02 17:19:14 +08:00
klarkxy 8385feed72 提交一个测试版 2025-03-02 17:09:25 +08:00
klarkxy 0049aa538c 增加从demos文件夹导入所有教程 2025-03-02 16:55:28 +08:00
klarkxy 9cbdfef40f 增加react 2025-03-01 18:32:33 +08:00
klarkxy 323d5202e2 加一个换行符 2025-01-25 18:37:05 +08:00
klarkxy 664e6b7682 把reinfo放入代码块中 2025-01-25 18:35:42 +08:00
klarkxy 7d36cb747d 移除图片替换相关内容 2024-12-07 18:19:59 +08:00
klarkxy ed45e281ec 直接写死路径试试 2024-12-07 18:13:21 +08:00
klarkxy 1e4cf03967 多了一级 2024-12-07 18:11:44 +08:00
klarkxy aa6fd6db64 增加一个图片文件转存的功能 2024-12-07 18:07:29 +08:00
klarkxy d7aa8ef257 删除代码块中的<br /> 2024-12-07 17:52:09 +08:00
klarkxy c5600b7244 修复md格式错误的问题 2024-12-07 17:50:09 +08:00
klarkxy fea3ec456d 显示的时候也会重新转会html字符 2024-12-07 17:46:23 +08:00
klarkxy 09be84c02e 少一个换行 2024-12-07 17:43:48 +08:00
klarkxy b011e37b4d 增加一个函数统一处理markdown的问题 2024-12-07 17:39:58 +08:00
klarkxy 6f20a9ef73 默认起用markdown-it的所有配置 2024-12-06 18:16:12 +08:00
klarkxy 24eabfbf3d 最后尝试一遍 2024-12-06 18:09:00 +08:00
klarkxy b2087a5664 最后在转markdown 2024-12-06 18:00:52 +08:00
klarkxy 8d3adf194d 修改判断错误的逻辑 2024-12-06 17:55:44 +08:00
klarkxy 9af73feb7b 修改markdown 2024-12-06 17:48:57 +08:00
klarkxy e2c7cfb999 回滚 2024-12-06 17:38:32 +08:00
klarkxy 7f8f1dbf84 移除at 2024-12-06 17:31:57 +08:00
klarkxy 006822c9bb 增加markdown-it的选项 2024-12-06 17:12:45 +08:00