Hermes
|
83621cb213
|
sync: import complete app.py/mailer.py/collect.py + dev customizations
完整功能 (相对于 ac9a060):
- app.py: 1276 行 (vs 633 行) — 含 /api/email/* + /api/export + Chart 小数
- mailer.py: 645 行 — SMTP 邮件模块 + scheduler
- collect.py: 233 行 — Python 3.6 兼容 (typing.Dict 代替 dict[X,Y])
- README.md: 整合版
- templates/email_config.html: 邮件配置 Web UI
- static/style.css: 邮件状态徽章等新样式
清理:
- 删除 'palladium-monitor/' 子目录 (远端残留, 已废弃)
|
2026-07-08 15:23:24 +08:00 |
|
Your Name
|
ac9a060b46
|
feat: 新增 systemd service 文件 (palladium-monitor.service)
|
2026-07-08 14:48:35 +08:00 |
|
Your Name
|
6726524c50
|
fix: db.get_or_404 -> query.get_or_404 + rename to Palladium Monitor
- 修复删除快照时 AttributeError: SQLAlchemy.get_or_404 (低版本兼容)
- UI/标题/邮件主题从 'Palladium Z1 Monitor' 改为 'Palladium Monitor'
|
2026-07-08 14:46:18 +08:00 |
|
Your Name
|
89dc6b4449
|
feat: 邮件配置页面 + 数据库持久化
- 新增 /email 配置页面 + /api/email/config API (GET/POST)
- 新增 /api/email/test-send 测试邮件 + /api/email/reset 重置
- EmailConfig SQLite 表持久化配置,回退到环境变量
- mailer: get_config 优先读 DB,send_report 读取 DB 密码
- 修复 _send_smtp 登录使用环境变量密码的 bug
- 前端新增配置表单 (启用开关/SMTP/TLS/认证/发件人/收件人/时间)
- CSS 暗色主题样式 + 响应式适配
- 导航栏新增「设置」链接
|
2026-07-08 14:36:41 +08:00 |
|
Your Name
|
3ab73805a3
|
mail
|
2026-07-08 13:28:47 +08:00 |
|
Your Name
|
da2fd92f07
|
support python36
|
2026-07-08 13:00:06 +08:00 |
|
AI Agent
|
5250c2960c
|
Palladium Z1 Monitor - LD逻辑板监控系统
- 解析 test_server -short 输出 (Rack/Cluster/Board/D0-D7)
- 暗色主题仪表板: 逻辑板状态可视化、利用率、作业信息、T-Pod可用性
- 板级统计: 使用/空闲/离线, 利用率趋势图 (Chart.js)
- collect.sh: Shell采集脚本(cron定时推送, 无需Python)
- 历史快照管理: 查看详情/删除/清理
- systemd service 开机自启
|
2026-07-08 12:51:16 +08:00 |
|
AI Agent
|
91f52941d6
|
Merge branch 'master' of ssh://git.cnbugs.com:10022/AI-Agent/palladium-monitor
|
2026-07-08 12:13:49 +08:00 |
|
Hermes
|
187f37f8e7
|
fix: add 'from __future__ import annotations' for Python <3.10
PEP 585 内建泛型 (tuple[str, str], dict[str, int]) 在 Python 3.9 之前不支持。
PEP 563 让所有 type hint 变成字符串, 兼容 Python 3.7+。
错误: 'type' object is not subscriptable
影响: app.py:1184 start_email_scheduler() -> import mailer -> mailer.py:417
修复: mailer.py / app.py 顶部加 from __future__ import annotations
|
2026-07-08 12:13:31 +08:00 |
|
Your Name
|
8945073ec6
|
del
|
2026-07-08 11:25:50 +08:00 |
|
Hermes
|
535e5832ab
|
feat: initial commit - Palladium Z1 LD monitor
- app.py: Flask + SQLite, parse test_server -short, 3-domain board state
- collect.py: remote collector agent with retry/log/env-loading
- mailer.py: daily report email (SMTP, HTML+text, scheduler)
- install_z1_agent.sh: one-click install for Z1 host
- /api/export: CSV/JSON export with time/source filtering
- /api/email/{status,preview,send}: SMTP config and manual trigger
- Chart.js Y-axis stepSize 0.5 + toFixed(1) for utilization
- README: env-var-based deploy, troubleshooting, gunicorn hooks
|
2026-07-08 11:13:30 +08:00 |
|
AI Agent
|
26940c4574
|
feat: initial commit - lightweight ticket system with Flask+SQLite
Features:
- User authentication (login/register)
- Ticket CRUD with status/priority/category
- Rich text description with paste-to-image
- File attachment upload (images/documents)
- Multi-select CC recipients
- Role-based permission control (admin/user)
- In-app notifications
- Statistics dashboard
- Gunicorn production deployment
|
2026-07-02 15:31:27 +08:00 |
|