Commit Graph

5 Commits

Author SHA1 Message Date
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