Check upstream versions and label article-driven components

This commit is contained in:
2026-11-25 22:57:47 +08:00
parent 4ea5d2c133
commit 04cac36b83
14 changed files with 123 additions and 11 deletions
+4 -2
View File
@@ -1430,9 +1430,11 @@ jQuery(function ($) {
const {key, fixed, version} = entry;
const index = eligible.indexOf(entry);
const $row = $('<li>', {'data-layer-key': key}).appendTo($layers);
const $label = $('<div>').append($('<strong>', {
const $label = $('<div>').appendTo($row);
const $title = $('<div>', {class: 'studio-component-label'}).append($('<strong>', {
'data-layer-title': '', text: plainText(entry.fields.title.node) || '未命名区块'
})).appendTo($row);
})).appendTo($label);
if (entry.feed) $('<span>', {class: 'studio-dynamic-badge', text: '动态'}).appendTo($title);
if (fixed || version === null) $label.append($('<small>').text(fixed ? '首屏目录' : '待保存'));
const $actions = $('<div>', {class: 'actions studio-block-actions'}).appendTo($row);
$actions.append(button('定位', 'jump'), button('上移', 'up', fixed || index === 0),