Normalize fullwidth punctuation to ASCII across codebase.

Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 23:42:26 +08:00
parent aaa72c7961
commit b733e551a0
392 changed files with 71522 additions and 71369 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
/**
* 中控数据看板后端 SSE 推送版本号前端拉快照刷新无轮询闪烁)。
* 中控数据看板:后端 SSE 推送版本号,前端拉快照刷新(无轮询闪烁).
*/
(function () {
const page = document.getElementById("page-dashboard");
@@ -362,9 +362,9 @@
const names = (data.accounts || [])
.filter((a) => a.loss_alert)
.map((a) => a.name)
.join("");
.join(",");
elBanner.classList.add("is-on");
elBannerText.textContent = `${alertCount} 户单日平仓亏损超过资金合计 ${threshold}%${names}`;
elBannerText.textContent = `${alertCount} 户单日平仓亏损超过资金合计 ${threshold}%:${names}`;
} else {
elBanner.classList.remove("is-on");
elBannerText.textContent = "";
@@ -426,7 +426,7 @@
});
dashEventSource.onerror = () => {
closeDashboardStream();
setStatus("SSE 断开8s 后重连…", true);
setStatus("SSE 断开,8s 后重连…", true);
dashReconnectTimer = setTimeout(() => {
if (inited) {
connectDashboardStream();