feat(topics): restore topic taxonomy workflow
This commit is contained in:
1 parent
f3dd1ec3b1
commit
a254cbd3e9
59 files changed
+771
-192
No files matched your search
@@ -87,8 +87,8 @@ test('settings use legacy list modes, grouped options, and destructive related k
|
||||
for (const key of legacyKeys) {
|
||||
assert.equal(source.includes(key), false, `legacy article key remains: ${key}`);
|
||||
}
|
||||
// bare `topics` is legal again: the related-posts query mirrors the legacy taxonomy OR.
|
||||
assert.doesNotMatch(source, /list_card_topics|is_topics/);
|
||||
assert.match(listSchema, /list_card_topics: false/);
|
||||
assert.match(source, /list_card_topics/);
|
||||
});
|
||||
|
||||
test('forced mode wins and thumb_if_has ignores spare and lazy placeholders', () => {
|
||||
@@ -275,7 +275,7 @@ test('related posts, author page and widgets use their dedicated renderers', ()
|
||||
|
||||
// 翻页 / 切 tab 是整页替换语义(author.js 最终就是 panel.innerHTML = html),
|
||||
// 骨架必须独占内容区。若骨架只是追加在旧卡片下方,加载期会先看到
|
||||
// 「第 1 页卡片 + 脚下一摞骨架」再换页。对齐参考主题 post_ajax() 的
|
||||
// 「第 1 页卡片 + 脚下一摞骨架」再换页。
|
||||
// beforeSend:replace 时 $item.remove() + find(pag).remove()。
|
||||
// 刻意不按 data-view 收窄:card 模式下真实卡片同样是直接子级 .posts-item,
|
||||
// 也要一起收起,否则卡片面板旧内容不会让位。
|
||||
@@ -572,7 +572,7 @@ test('profile routes load versioned leaf styles and settings dialogs use the sha
|
||||
assert.match(userCenterCreditsCss, /#panel-credits\.dashboard-panel\s*\{[^}]*background:\s*transparent;[^}]*box-shadow:\s*none;/);
|
||||
assert.match(userCenterCreditsCss, /\.uc-asset-tabs\s*\{[^}]*background:\s*var\(--surface-1,\s*#fff\);[^}]*border:[^;}]+;[^}]*box-shadow:[^;}]+;/);
|
||||
assert.doesNotMatch(profileCredits, /credits-signin\.php|data-jio-signin-calendar/);
|
||||
// 签到详情弹窗为参考主题 1:1 结构(src/Credits/Signin.php),日历已随
|
||||
// 签到详情弹窗的日历已随
|
||||
// 旧版 lite 弹窗一并移除;用户中心里的孤儿渲染器也已整包移除。
|
||||
assert.equal(fs.existsSync(path.join(root, 'inc/helpers/user-center-renderers/credits-signin.php')), false);
|
||||
assert.doesNotMatch(userCenterCreditsCss + read('assets/css/frontend/enhancements/components/custom-amount.css'), /uc-signin-calendar/);
|
||||
|
||||
Reference in new issue
Block a user