feat(creator-studio): icon toolbar with block tools, drop author strip

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Opus 5 committed 2026-11-06 22:30:08 +08:00
1 parent 7bdf7cf018
commit 7c33482be7
19 files changed
+600 -241

No files matched your search

@@ -43,7 +43,10 @@ test('TOC script enqueue follows article visibility settings and per-post overri
assert.match(scripts, /\$article_nav_enabled = !array_key_exists\('article_nav', \$settings\) \|\| !empty\(\$settings\['article_nav'\]\)/);
assert.match(scripts, /get_post_meta\(\$post_id, DomainModel::POST_META_KEY, true\)/);
assert.match(scripts, /empty\(\$extension_meta\['no_article-navs'\]\)/);
assert.match(scripts, /\$requirements\['has_toc'\] = \$is_article && \$article_nav_enabled/);
// 正文里插入目录块时也要加载脚本,因此条件是「设置开启」或「正文含占位」。
assert.match(scripts, /\$has_inline_toc = class_exists\(/);
assert.match(scripts, /ContentBlocks::has_toc_placeholder\(\$content\)/);
assert.match(scripts, /\$requirements\['has_toc'\] = \$is_article && \(\$article_nav_enabled \|\| \$has_inline_toc\)/);
assert.doesNotMatch(scripts, /preg_match_all\('\/<h\[1-4\]/);
assert.match(scripts, /\$singular_assets\['has_toc'\][\s\S]*?'jio-section-navs'/);