Commit Graph

612 Commits

Author SHA1 Message Date
whyour
6200a7d2b7 修复 linux 镜像源 2025-12-11 01:53:49 +08:00
whyour
4c6d820481 修改切换 linux 镜像源 2025-12-11 01:53:49 +08:00
whyour
7a580e816f 修改获取示例文件 api path 2025-12-11 01:53:48 +08:00
whyour
c772fc9527 修复脚本调试保存文件错误 2025-12-11 01:52:47 +08:00
Copilot
ee2fbe5335
Add global SSH key configuration in system settings (#2840)
* Initial plan

* Add backend support for global SSH keys

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add frontend UI for global SSH keys management

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add SshKeyModel to database initialization

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add SSH config generation for global SSH keys

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add internationalization support for SSH key management UI

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Simplify to single global SSH key in system settings

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-20 10:09:01 +08:00
Copilot
03c7031a3c
Fix task duplication: add single/multi-instance support with UI configuration and stop all running instances (#2837)
* Initial plan

* Stop running tasks before starting new scheduled instance

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add multi-instance support and fix stop to kill all running instances

- Add allow_multiple_instances field to Crontab model (default: 0 for single instance)
- Add validation for new field in commonCronSchema
- Add getAllPids and killAllTasks utility functions
- Update stop method to kill ALL running instances of a task
- Update runCron to respect allow_multiple_instances config
- Backward compatible: defaults to single instance mode

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add UI support for allow_multiple_instances configuration

- Add allow_multiple_instances field to ICrontab interface
- Add instance mode selector in task creation/edit modal
- Add translations for instance mode in Chinese and English
- Default to single instance mode for backward compatibility

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add allow_multiple_instances column migration and optimize db.ts

- Add allow_multiple_instances column to Crontabs table migration
- Refactor migration code to use data-driven approach
- Replace 11 individual try-catch blocks with single loop
- Improve code maintainability and readability

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-19 00:10:27 +08:00
whyour
af96bd98ac 修复系统提示 2025-11-16 21:26:14 +08:00
whyour
d01ec3b310 修复 parse cron 2025-11-15 19:09:07 +08:00
whyour
c9fc9b4b45 定时任务支持订阅筛选 2025-11-11 01:24:28 +08:00
whyour
8fdc69421c 修改定时任务支持的排序顺序 2025-11-11 01:02:36 +08:00
whyour
1deb264913 升级 cron-parser 2025-11-11 00:37:03 +08:00
whyour
06aa07329f 修复日志目录逻辑 2025-11-09 21:42:45 +08:00
Copilot
4cb9f57479
环境变量支持置顶 (#2822)
* Initial plan

* Add pin to top feature for environment variables

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Format code with prettier

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add database migration for isPinned column in Envs table

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Use snake_case naming (is_pinned) for database column

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
Co-authored-by: whyour <imwhyour@gmail.com>
2025-11-09 19:43:33 +08:00
Copilot
c369514741
定时任务支持自定义日志文件或者 /dev/null (#2823)
* Initial plan

* Add log_name field to enable custom log folder naming

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add database migration for log_name column

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Add security validation to prevent path traversal attacks

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Apply prettier formatting to modified files

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Support absolute paths like /dev/null for log redirection

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

* Restrict absolute paths to log directory except /dev/null

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
2025-11-09 19:32:40 +08:00
whyour
50769c43dd 修复 command-run 接口日志绑定 2025-07-12 20:29:44 +08:00
whyour
ef9e38f167 备份数据支持选择模块,支持清除依赖缓存 2025-06-22 14:25:19 +08:00
whyour
1a185f5682 修复创建脚本可能失败 2025-05-20 01:00:08 +08:00
whyour
472a3088df 修复启动逻辑 2025-05-17 17:25:50 +08:00
whyour
d871585eee 修改服务启动逻辑 2025-05-07 09:30:00 +08:00
whyour
8009634b44 修复脚本管理增加文件夹 2025-04-19 16:34:28 +08:00
whyour
256e4e7a83 修复任务打开脚本链接 2025-03-19 23:47:51 +08:00
whyour
c0ec063333 修复删除脚本参数 2025-03-18 23:17:03 +08:00
whyour
576408de01 脚本管理增加强制打开文件操作 2025-03-16 17:57:13 +08:00
whyour
cf94ecfb11 脚本管理和日志管理支持下载 2025-03-13 00:22:24 +08:00
whyour
af3e358a6a 系统设置增加时区设置 2025-02-27 00:45:21 +08:00
whyour
64fcbff715 脚本管理增加可预览检查 2025-02-26 01:17:11 +08:00
whyour
fa83761d27 修改定时规则类型 2025-02-21 01:35:08 +08:00
whyour
8173075b67 定时任务支持 @once 和 @boot 任务 2025-02-20 02:18:59 +08:00
whyour
0d9eba4b6e 定时任务外漏标签改为 10 个 2024-10-26 14:49:02 +08:00
whyour
20c6a1e8bf 移除任务执行前后的脚本参数 2024-10-26 14:12:58 +08:00
whyour
418695c4aa 定时任务支持复制 2024-09-24 23:33:04 +08:00
whyour
66706ce150 修复任务视图过多无法选到视图管理 2024-09-10 22:50:33 +08:00
whyour
ff98c3a499 修复任务跳转脚本未显示文件大小,订阅删除未删除 repo 目录 2024-09-08 21:08:15 +08:00
whyour
c229eca315 修复依赖管理和脚本管理样式 2024-08-31 23:46:29 +08:00
whyour
b508e97dc1 修复依赖列表样式 2024-08-31 14:59:54 +08:00
whyour
a48d100b2d 修复表格样式 2024-08-30 00:30:31 +08:00
whyour
8b042d90f3 修复删除日志命令 2024-08-24 22:43:09 +08:00
whyour
4e5ad6d5f3 定时服务区分系统、订阅、脚本任务 2024-08-23 23:06:50 +08:00
whyour
f4cb3eacf8 系统日志增加时间筛选和清空 2024-08-22 00:47:24 +08:00
whyour
791cf657b5 修复更新 linux 镜像源错误 2024-06-30 15:09:17 +08:00
whyour
a45efbd69b 修复定时任务查询不存在的订阅报错 2024-06-17 23:04:47 +08:00
whyour
805a716033 修复任务详情查看脚本错误 2024-05-25 18:22:01 +08:00
whyour
b309ac7613 修复有可能手动运行任务无日志 2024-05-25 00:28:55 +08:00
whyour
f723631647 修复脚本管理上传文件文件名乱码 2024-04-22 22:39:27 +08:00
whyour
6657ff0560 修改删除日志脚本提示 2024-04-21 22:35:20 +08:00
whyour
2e7f3a1578 修复删除日志提示 2024-04-11 21:11:21 +08:00
whyour
3f54048127 修改压缩解压文件命令 2024-03-22 22:23:49 +08:00
whyour
47d2fc24bc 修改系统 reload 分支 2024-03-16 13:25:42 +08:00
whyour
7a8a8ab9b3 修改系统重启逻辑 2024-03-14 17:37:52 +08:00
whyour
68ad01e0e8 增加 update 服务 2024-03-10 22:07:06 +08:00