Scope article feeds and expand canvas editing

This commit is contained in:
2026-11-21 22:55:59 +08:00
parent a2fc628f08
commit 9bc0ee0e45
32 changed files with 476 additions and 67 deletions
+13
View File
@@ -6,6 +6,19 @@ use App\Content\View;
$e = View::escape(...);
?>
<div class="studio-presets" data-canvas-presets>
<details class="studio-element-library">
<summary>基础元素</summary>
<div role="group" aria-label="添加基础元素">
<?php foreach (BlockTemplates::ELEMENTS as $key => $element): ?>
<?php [$label, $markup, $mime] = array_pad($element, 3, ''); ?>
<button type="button" disabled data-canvas-element="<?= $e($key) ?>"
<?php if ($mime): ?>data-element-mime="<?= $e($mime) ?>"<?php endif ?>
aria-label="插入<?= $e($label) ?>"><?= $e($label) ?></button>
<template data-element="<?= $e($key) ?>"><?= $markup ?></template>
<?php endforeach ?>
</div>
<p class="field-note" data-element-status role="status">选中画布正文后插入。</p>
</details>
<label class="studio-template-search">搜索模板<input type="search" data-template-search placeholder="按名称或分类搜索" autocomplete="off"></label>
<div class="studio-template-filters" role="group" aria-label="模板分类">
<button type="button" data-template-filter="" aria-pressed="true">全部</button>