feat(splash): 启动加载改成真实进度条(局域网资料目录也能看到进度)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m0s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m0s
用户把资料目录放在局域网/NAS 上,启动要逐个读 canvases/*.json,原来是无限跑马灯, 不知道在读什么、还要多久。 - src/runtime-boot-progress.js(新增):进度总线,按阶段分配权重 prepare 0-6 / data 6-10 / canvases 10-70 / library 70-80 / finalize 80-96,完成收口 100; 百分比单调不减,并发分支晚回来不会回退 - src/storage-file.js:loadInto 读 data.json / 逐个画布 / 资源库文件时按文件数上报 - src/runtime-boot-load.js:进入"恢复会话"阶段上报一次 - src/ui-splash.js(新增):启动屏搬到独立模块(app.js 由 8327 行降到 8322), 细进度条 + 流光 + 阶段文字 + 右侧百分比 + aria progressbar - style.css:进度条重做(圆角全用 token、渐变语义色、流光动画、减少动效时关闭动画) - tests/boot-progress-test.js:16 项钉住换算规则(起点/中途/收口/单调/订阅)
This commit is contained in:
1 parent
64b6652bb1
commit
e3c7a3ff9b
14 files changed
+223
-18
No files matched your search
@@ -24,6 +24,7 @@
|
||||
if (!curOk) lsRawSet('iwb_web_workspaces', legacy)
|
||||
}
|
||||
} catch (e) { /* ignore */ }
|
||||
if (window.IWBBootProgress) window.IWBBootProgress.report('finalize', 1, 1)
|
||||
api('config').then((r) => { if (r && Array.isArray(r.providers)) setConfig(r) }).catch(() => setServer({ ok: false }))
|
||||
api('prompts').then((r) => {
|
||||
if (r && Array.isArray(r.prompts)) setPrompts(r.prompts)
|
||||
|
||||
Reference in new issue
Block a user