mirror of
https://github.com/zhang-pu/tpanel.git
synced 2026-10-02 16:29:29 +08:00
-
v1.3.9 (super release) Stable
released this
2026-06-01 14:09:29 +08:00 | -2 commits to main since this release[1.3.9] - 2026-06-06(super release)
🐛 修复
- 登录后必须强制刷新才能看到后台:showLogin() 之前用 document.body.innerHTML = '...' 把后台骨架整个重写,导致 initApp() → setupNav() 找不到 .nav-item[data-page],loadDashboard() 静默失败。改为 display 切换两个独立 div(#loginScreen / #appShell)。
✨ 新增
- 仪表盘显示 CPU 核心数:os.cpu_count()
- 仪表盘显示 CPU 型号:4 级兜底(lscpu → /proc/cpuinfo → platform.processor() → "Unknown CPU")
- 负载颜色按核心数判断:1 核机器 1.0 算满,N 核机器 N.0 才算满
- load/cores > 0.8 → 红色
- load/cores > 0.5 → 黄色
- 否则 → 蓝色
🔧 内部(继承自 v1.3.8)
- install.sh 自动安装 MariaDB + 配置 sudoers
- system.py create_mysql_db 改用 sudo + list 参数 + regex 校验(防 SQL 注入)
- PHP-FPM 改用 TCP 127.0.0.1:9000
- install.sh 自动安装并启动 PHP-FPM
- systemd ExecStart 传端口参数
- 创建 /etc/nginx/tpanel 并授权 tpanel 用户
- 修复解压步骤漏复制根目录 requirements.txt
- 修复 zip 魔数校验永远失败的 bug
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
1 download
-
install.sh
0 downloads · 11 KiB
-
tpanel-v1.3.9-source.zip
1 download · 50 KiB