diff --git a/README.md b/README.md index a238be3..7576c78 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,8 @@ php bin/backup.php import /srv/backups/laysite-2026-11.tar --replace 可在「账户 → 关于系统」点击「检查更新」,比较本机版本与 `git.laysense.com/laysense/laysite` 的最新 `vX.Y.Z` 发布标签。已合并但尚未打标签的版本不会出现在检查结果里。检查结果缓存 5 分钟。 +维护者发布新版本时,在发布提交上创建并推送与 `VERSION` 对应的标签,例如 `v1.4.0`。 + 使用 Git 标签选择部署版本。更新命令先备份,再检出所选版本、安装锁定依赖并运行 SQLite 初始化或迁移。更新时暂停 Webman,更新结束后重新启动。保持源代码工作区干净,并将备份放到部署路径之外。 ```sh diff --git a/app/Content/UpdateCheckInProgress.php b/app/Content/UpdateCheckInProgress.php new file mode 100644 index 0000000..5116e63 --- /dev/null +++ b/app/Content/UpdateCheckInProgress.php @@ -0,0 +1,11 @@ +json(Updates::check()); + } catch (UpdateCheckInProgress $error) { + return $this->json(['message' => $error->getMessage()], 409); } catch (RuntimeException $error) { return $this->json(['message' => $error->getMessage()], 502); } diff --git a/app/view/admin-page.php b/app/view/admin-page.php index fe5130a..8bdee0b 100644 --- a/app/view/admin-page.php +++ b/app/view/admin-page.php @@ -46,7 +46,7 @@ $systemLabel = SystemPage::TYPES[$page['page_type']] ?? null; ]) ?>
-
+

页面画布

diff --git a/public/assets/site.css b/public/assets/site.css index 017790a..1f4ce26 100644 --- a/public/assets/site.css +++ b/public/assets/site.css @@ -142,9 +142,8 @@ address { font-style: normal; } } .app-frame img, .hero-service-art img { border-radius: calc(var(--radius) / 2); } .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.35rem; } -.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); } -.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; } -.crumb-divider { color: #74859d; } +.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; } +.breadcrumbs:not([class*="studio-style-color-"]) .crumb-divider { color: #74859d; } .hero-directory { display: flex; border: 1px solid var(--line); @@ -162,10 +161,12 @@ address { font-style: normal; } .hero-visual { animation-delay: 80ms; } @keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } -.section-nav { background: var(--white); border-bottom: 1px solid var(--line); } +.section-nav { background: var(--white); border-bottom: 1px solid var(--line); color: var(--muted); } .section-nav-inner { display: flex; flex-wrap: wrap; gap: .2rem clamp(1rem, 4vw, 2.8rem); padding-block: .3rem; } -.section-nav a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; text-decoration: none; } -.section-nav a:hover { color: var(--accent); text-decoration: underline; } +.section-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; text-decoration: none; } +:is(.breadcrumbs, .section-nav) a { color: inherit; } +:is(.breadcrumbs, .section-nav) a:hover { text-decoration: underline; } +:is(.breadcrumbs, .section-nav):not([class*="studio-style-color-"]) a:hover { color: var(--accent); } .section { padding-block: var(--space-section); } .section + .section { border-top: 1px solid var(--line); } diff --git a/public/assets/studio.js b/public/assets/studio.js index eab61b3..126c0a8 100644 --- a/public/assets/studio.js +++ b/public/assets/studio.js @@ -2231,6 +2231,9 @@ jQuery(function ($) { $history.on('click', function () { stepHistory(this.dataset.canvasHistory === 'undo' ? -1 : 1); }); $layout.on('keydown.canvasHistory', historyShortcut); + $studio.find('dialog').on('close.canvasHistory', () => { + if (document.activeElement === document.body) $studio.get(0).focus({preventScroll: true}); + }); $settings.on('input change', ':input', function (event) { const group = event.type === 'input' && this.matches('input:not([type=hidden]), textarea') ? this : null; captureHistory(group);