全局美化 v3

This commit is contained in:
tamakyi
2026-10-19 11:43:24 +08:00
parent b165995a1c
commit 5c7707ec0d
28 changed files with 16249 additions and 4577 deletions
+14
View File
@@ -99,6 +99,20 @@ func TestGenPreview(t *testing.T) {
}
writePreview(t, outDir, "preview-explore-"+theme+".html", page, theme, "../static")
}
// 设置页「内容防护」面板:核对是否与其它面板同样是白底卡片
profile := profileBaseData()
profile["ActiveProfileTab"] = "security"
profile["FeatureQuestion"] = nil
profile["FeatureChat"] = nil
profile["FeatureVote"] = nil
for _, theme := range []string{"light", "dark"} {
page, err := renderToString(t, "user/profile", profile)
if err != nil {
t.Fatalf("render profile: %v", err)
}
writePreview(t, outDir, "preview-profile-"+theme+".html", page, theme, "../static")
}
}
// writePreview 把 CDN 换成可直连的镜像、钉死主题,仅用于本地预览。