全局美化 v3
This commit is contained in:
@@ -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 换成可直连的镜像、钉死主题,仅用于本地预览。
|
||||
|
||||
Reference in New Issue
Block a user