feat(boot): 静态启动层 + 授权提示(v3.25.90)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m28s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m28s
This commit is contained in:
1 parent
f4e4ca5649
commit
8dc01708dc
12 files changed
+74
-19
No files matched your search
@@ -215,6 +215,18 @@ const html = `<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="style.css?v=${version}">
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
/* v3.25.90:静态启动层 —— app.js 顶部会 await 资料目录(首次会弹 macOS 授权),
|
||||
那段时间 React 还没挂载,这里先给一个可见的启动画面 + 授权提示,避免纯白屏。 */
|
||||
#iwb-boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
|
||||
background: #f4f5f7; color: #1c2333; font: 13px/1.6 -apple-system, "PingFang SC", sans-serif; z-index: 9999; transition: opacity .2s ease; }
|
||||
#iwb-boot .t { font-size: 16px; font-weight: 700; }
|
||||
#iwb-boot .s { font-size: 12px; color: #6b7280; }
|
||||
#iwb-boot .h { margin-top: 6px; font-size: 12px; color: #b45309; max-width: 460px; text-align: center; padding: 0 24px; }
|
||||
</style>
|
||||
|
||||
<div id="iwb-boot"><div class="t">生图工作台</div><div class="s">正在加载…</div><div class="h">若系统弹出「访问文稿文件夹」请求,请点「允许」;点「不允许」会一直停在这里。</div></div>
|
||||
|
||||
<div id="root"></div>
|
||||
<script src="vendor/react.production.min.js"></script>
|
||||
<script src="vendor/react-dom.production.min.js"></script>
|
||||
|
||||
Reference in new issue
Block a user