Launch LaySite visual editor and MCP workspace

This commit is contained in:
2026-11-22 23:26:08 +08:00
commit 1bb0554608
159 changed files with 11103 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
use App\Content\View;
$e = View::escape(...);
?>
<header class="admin-heading"><h1>站点设计</h1><div class="actions"><a class="button button-outline" href="/admin/settings">站点设置</a><a class="button button-outline" href="/admin/backup">站点备份</a></div></header>
<div class="design-overview">
<?php foreach (['header' => '页头', 'footer' => '页脚', 'palette' => '配色方案'] as $kind => $label): ?>
<section class="admin-panel">
<div class="admin-heading compact"><h2><?= $e($label) ?></h2><a class="button button-outline" href="/admin/design/<?= $e($kind) ?>/new">新建<?= $e($label) ?></a></div>
<?php $group = array_filter($items, static fn (array $item): bool => $item['kind'] === $kind); ?>
<?php if (!$group): ?><p class="field-note">暂无自定义配置。</p><?php endif ?>
<ul class="admin-list">
<?php foreach ($group as $item): ?>
<li><strong><?= $e($item['name']) ?></strong>
<?php if (($site[$kind . '_id'] ?? null) === $item['id']): ?><small>站点默认</small><?php endif ?>
<a class="button button-outline" href="/admin/design/<?= $e($kind) ?>/<?= $e($item['id']) ?>">编辑</a>
</li>
<?php endforeach ?>
</ul>
</section>
<?php endforeach ?>
</div>