feat(web): 发布管理界面精简 + 系统设置审查修复
build / build (push) Successful in 1m51s

发布管理:状态卡 + 一个主按钮,准备动作与检查项分层次收纳,去掉重复入口。
系统设置:F02 停滞阈值接入活动配置;F03 分区保存边界;F05/F06 生产绑定分层与凭据说明;
F07 备份未接主机/未知证据如实显示;F09 分区独立加载与保存后重探;F10 文案精简;F11 重置密码对话框。
This commit is contained in:
dev
2026-11-17 15:23:29 +08:00
parent cbc6b981c6
commit 0fb78cfe26
20 changed files with 718 additions and 490 deletions
+8 -3
View File
@@ -35,7 +35,9 @@ type PollHandlerConfig struct {
Client PollClient
PollDelay time.Duration
StallAfter time.Duration
Now func() time.Time
// StallAfterSource 可选:返回当前生效的停滞阈值(来自活动 UI 配置)。
StallAfterSource func() time.Duration
Now func() time.Time
}
type PollHandler struct {
@@ -43,7 +45,10 @@ type PollHandler struct {
client PollClient
pollDelay time.Duration
stallAfter time.Duration
now func() time.Time
// stallAfterSource 存在时优先于 stallAfter:页面保存的“解析停滞阈值”
// 必须真的决定判定,而不是只写进数据库。
stallAfterSource func() time.Duration
now func() time.Time
}
type pollPayload struct {
@@ -60,7 +65,7 @@ func NewPollHandler(config PollHandlerConfig) (*PollHandler, error) {
}
return &PollHandler{
store: config.Store, client: config.Client, pollDelay: config.PollDelay,
stallAfter: config.StallAfter, now: config.Now,
stallAfter: config.StallAfter, stallAfterSource: config.StallAfterSource, now: config.Now,
}, nil
}