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/' 子目录 (远端残留, 已废弃)
This commit is contained in:
@@ -93,19 +93,23 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 发送时间 -->
|
||||
<!-- 发送邮件时间 -->
|
||||
<div class="form-section">
|
||||
<div class="form-section-title">🕐 发送邮件时间</div>
|
||||
<div class="form-group form-group-small">
|
||||
<label for="cfg_send_hour">发送时间 (小时)</label>
|
||||
<input type="number" id="cfg_send_hour" placeholder="9" min="0" max="23">
|
||||
<input type="number" id="cfg_send_hour" placeholder="9" min="0" max="23" step="1">
|
||||
<span class="input-hint">0–23 (24小时制)</span>
|
||||
</div>
|
||||
<div class="form-group form-group-small">
|
||||
<label for="cfg_send_minute">发送时间 (分钟)</label>
|
||||
<input type="number" id="cfg_send_minute" placeholder="0" min="0" max="59">
|
||||
<input type="number" id="cfg_send_minute" placeholder="0" min="0" max="59" step="1">
|
||||
<span class="input-hint">0–59</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="cfg_monitor_base_url">监控服务器地址</label>
|
||||
<input type="url" id="cfg_monitor_base_url" placeholder="http://127.0.0.1:5100">
|
||||
<span class="input-hint">邮件中「查看仪表板」链接的跳转地址</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user