Add remote browser pages and website sync

Enable managed remote browser custom pages with login autofill and add website sync workflows so external admin surfaces can be handled inside SmartUp.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
liumangmang
2026-05-15 15:43:58 +08:00
parent a13a0070a5
commit 7adc7c00ab
43 changed files with 6615 additions and 641 deletions
+24
View File
@@ -40,6 +40,30 @@ def format_dingtalk_rate_changed(upstream_name: str, changed_at: str, changes: l
}
def format_dingtalk_website_rate_changed(
website_name: str,
target_group_name: str,
changed_at: str,
old_rate: Any,
new_rate: Any,
) -> dict[str, Any]:
group_name = target_group_name or "unknown"
lines = [
f"### 网站倍率变更:{website_name}",
"",
f"- 时间:{changed_at}",
f"- 分组:`{group_name}`",
f"- 倍率:`{old_rate}` -> `{new_rate}`",
]
return {
"msgtype": "markdown",
"markdown": {
"title": f"{website_name} 网站倍率变更",
"text": "\n".join(lines),
},
}
def format_dingtalk_status(upstream_name: str, event: str, changed_at: str, error: str = "") -> dict[str, Any]:
emoji = "🔴" if event == "upstream_unhealthy" else "🟢"
label = "服务异常" if event == "upstream_unhealthy" else "服务恢复"