feat: 交付官方 Docker 运行时,外观改背景图并下线自定义 CSS/JS

站点/后台分轨背景与用户列表排序一并落地;生产 CORS 改走 SITE_URL,健康检查带版本号。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-18 05:27:33 +08:00
parent 5f7193042f
commit d784b0ea7a
68 changed files with 2588 additions and 768 deletions

View File

@@ -12,9 +12,13 @@ export type HideSegment =
body: string;
};
const HIDE_KINDS = new Set<HideKind>(["login", "reply", "points", "password"]);
const HIDE_KINDS = new Set<string>(["login", "reply", "points", "password"]);
const HIDE_OPEN_RE = /^\[hide(?:\s+(.+))?\]$/i;
function isHideKind(s: string): s is HideKind {
return HIDE_KINDS.has(s);
}
function isClose(line: string): boolean {
return line.trim().toLowerCase() === "[/hide]";
}
@@ -40,8 +44,8 @@ function parseOpen(trimmed: string): {
kind = head.slice(0, eq);
arg = head.slice(eq + 1);
}
kind = kind.toLowerCase() as HideKind;
if (!HIDE_KINDS.has(kind)) return null;
kind = kind.toLowerCase();
if (!isHideKind(kind)) return null;
let idx = 1;
let points = 0;