chore(branding): remove leftover upstream theme identifiers
The theme was renamed Zibll/子比 → AKSRT → Jio, but upstream branding survived the sweeps in CSS classes, the SVG sprite prefix, a persisted widget field ID, JS events, admin Vue class names, test infrastructure and docblocks. Renames: - zib-widget / zib-widget-wrap / zib-slider → jio-widget-box / jio-widget-box-wrap / jio-slider-box (jio-widget is taken by the modern widget shell, jio-box-* by the card primitives) - zib-partners-scroll + zps-* → jio-partners-scroll + jps-* - zib-combo-info-card + zci-* → jio-combo-info-card + jci-* - zibsvg- → jiosvg-, including the exported picker helpers and the fa-zibsvg- family-prefix guard - zibpay_type → pay_type; the dual-read fallback in PostQuery collapses to a single key - [zibajax="submit"] dropped (no PHP emitter); zib_ajax.success → jio_ajax.success - aks-* admin Vue classes → jio-* - zib_palette() → palette() User-facing vendor traces are gone: the floating "more" button default no longer ships a zibll.com link or 子比主题 marketing copy, the notice widget ships no preset promo entries, and the four 官网教程 links are removed from the post-list admin schema. Test infrastructure renamed to neutral names (docker-compose.reference.yml, Caddyfile, article-baseline.json, modern-widgets-contract.test.cjs) with their DB/volume/env/slug identifiers following. Kept intentionally, documented in tests/fixtures/README.md: the golden fixture reference fingerprint (a SHA-256 record of an external directory, read by validate-widget-golden / generate-widget-golden-fixture / audit-widget-system), the doesNotMatch guards that prove the old tokens are gone, and the reference theme's own meta key in the visual fixtures. No backward-compat or data migration: saved widget configs holding old icon keys or the old field ID silently lose them, per the project's rewrite-over-compatibility rule. Verified: 132/132 node contract tests, php tests/widget-system/run.php (146 assertions), audit-admin-contracts, audit-psr4-paths and validate-widget-golden all green; tracked bundles regenerated and in sync. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
42cc64106d
commit
427968a721
188 files changed
+915
-967
No files matched your search
@@ -3,10 +3,10 @@
|
||||
*
|
||||
* 硬约束:
|
||||
* 1) 「我的服务 / 功能设置」两个网格使用参考主题的 icon-but-box / user-icon-but-box
|
||||
* 外壳,图标全部来自主题内置 SVG sprite(jio_icon_markup('zibsvg-*')),
|
||||
* 外壳,图标全部来自主题内置 SVG sprite(jio_icon_markup('jiosvg-*')),
|
||||
* 不再出现 Font Awesome 字形。
|
||||
* 2) 侧栏其余部件(余额/积分卡、创作/推广卡、VIP 入口、抽屉触发器)同样只使用
|
||||
* sprite 图标,箭头统一为 zibsvg-right,保证侧栏只剩一种图标族。
|
||||
* sprite 图标,箭头统一为 jiosvg-right,保证侧栏只剩一种图标族。
|
||||
* 3) 旧的 uc-service-grid 外壳、色调底色与计数角标必须已彻底移除,不得残留。
|
||||
*/
|
||||
'use strict';
|
||||
@@ -34,7 +34,7 @@ test('服务/设置网格使用参考主题 icon-but-box 外壳与 sprite 图标
|
||||
assert.match(nav, /class="flex ac hh text-center icon-but-box user-icon-but-box"/);
|
||||
assert.match(nav, /<div class="em16"><\?php echo \$icon_html;/);
|
||||
assert.match(nav, /<div class="px12 muted-color mt3">/);
|
||||
assert.match(nav, /jio_icon_markup\('zibsvg-' \. \(string\) \$item\['icon'\]\)/);
|
||||
assert.match(nav, /jio_icon_markup\('jiosvg-' \. \(string\) \$item\['icon'\]\)/);
|
||||
|
||||
// 参考主题选型:我的服务 = trend-color / user-auth / order-color。
|
||||
assert.match(nav, /'icon'\s+=>\s+'trend-color'/);
|
||||
@@ -68,14 +68,14 @@ test('侧栏部件(VIP 与创作/推广卡除外)不再出现 Font Awesome
|
||||
|
||||
test('其余侧栏部件按参考主题选型替换为 sprite 图标', () => {
|
||||
const commerce = read(sidebarDir + 'sidebar-commerce.php');
|
||||
assert.match(commerce, /jio_icon_markup\('zibsvg-money-color-2'\)/);
|
||||
assert.match(commerce, /jio_icon_markup\('zibsvg-points-color'\)/);
|
||||
assert.match(commerce, /jio_icon_markup\('zibsvg-right'\)/);
|
||||
assert.match(commerce, /jio_icon_markup\('jiosvg-money-color-2'\)/);
|
||||
assert.match(commerce, /jio_icon_markup\('jiosvg-points-color'\)/);
|
||||
assert.match(commerce, /jio_icon_markup\('jiosvg-right'\)/);
|
||||
|
||||
const creator = read(sidebarDir + 'sidebar-creator.php');
|
||||
assert.match(creator, /jio_icon_markup\('zibsvg-merchant-color', 'mr6'\)/);
|
||||
assert.match(creator, /jio_icon_markup\('zibsvg-money-color', 'mr6'\)/);
|
||||
assert.match(creator, /class="mb10-sm zib-widget padding-10 flex1 pointer"/);
|
||||
assert.match(creator, /jio_icon_markup\('jiosvg-merchant-color', 'mr6'\)/);
|
||||
assert.match(creator, /jio_icon_markup\('jiosvg-money-color', 'mr6'\)/);
|
||||
assert.match(creator, /class="mb10-sm jio-widget-box padding-10 flex1 pointer"/);
|
||||
assert.match(creator, /flex ab jsb col-ml6/);
|
||||
assert.match(creator, /<i class="ml6 fa fas fa-angle-right em12"/);
|
||||
assert.match(creator, /'创作中心'/);
|
||||
@@ -93,8 +93,8 @@ test('其余侧栏部件按参考主题选型替换为 sprite 图标', () => {
|
||||
assert.doesNotMatch(creator, /data-onclick/);
|
||||
|
||||
const vip = read(sidebarDir + 'sidebar-vip.php');
|
||||
assert.match(vip, /jio_icon_markup\('zibsvg-vip_1', 'em12 mr6'\)/);
|
||||
assert.match(vip, /jio_icon_markup\('zibsvg-time', 'mr3'\)/);
|
||||
assert.match(vip, /jio_icon_markup\('jiosvg-vip_1', 'em12 mr6'\)/);
|
||||
assert.match(vip, /jio_icon_markup\('jiosvg-time', 'mr3'\)/);
|
||||
assert.match(vip, /mb20 mb10-sm main-radius payvip-icon btn-block badg pointer/);
|
||||
assert.match(vip, /style="padding: 14px 10px;"/);
|
||||
assert.match(vip, /fa-chevron-circle-right abs-right/);
|
||||
@@ -103,7 +103,7 @@ test('其余侧栏部件按参考主题选型替换为 sprite 图标', () => {
|
||||
assert.doesNotMatch(vip, /data-onclick/);
|
||||
|
||||
const profile = read(sidebarDir + 'profile-sidebar.php');
|
||||
assert.match(profile, /jio_icon_markup\('zibsvg-menu'\)/);
|
||||
assert.match(profile, /jio_icon_markup\('jiosvg-menu'\)/);
|
||||
});
|
||||
|
||||
test('旧 uc-service-grid 外壳与色调底色已彻底移除', () => {
|
||||
@@ -125,32 +125,32 @@ test('旧 uc-service-grid 外壳与色调底色已彻底移除', () => {
|
||||
assert.doesNotMatch(shell, /\.user-icon-but-box > a\.is-active/);
|
||||
assert.match(shell, /\.user-icon-but-box > a \{[^}]*color: inherit/s);
|
||||
|
||||
// 外壳与标题 1:1 参考主题 zib-widget padding-6 / padding-6 ml3。
|
||||
// 外壳与标题 1:1 参考主题 jio-widget-box padding-6 / padding-6 ml3。
|
||||
const nav = read(sidebarDir + 'sidebar-nav.php');
|
||||
assert.match(nav, /class="uc-sidebar-iconbox zib-widget padding-6 mb10-sm"/);
|
||||
assert.match(nav, /class="uc-sidebar-iconbox zib-widget padding-6"/);
|
||||
assert.match(nav, /class="uc-sidebar-iconbox jio-widget-box padding-6 mb10-sm"/);
|
||||
assert.match(nav, /class="uc-sidebar-iconbox jio-widget-box padding-6"/);
|
||||
assert.match(nav, /<div class="padding-6 ml3"><\?php esc_html_e\('我的服务'/);
|
||||
assert.match(nav, /<div class="padding-6 ml3"><\?php esc_html_e\('功能设置'/);
|
||||
assert.doesNotMatch(nav, /uc-sidebar__heading/);
|
||||
assert.match(shell, /\.uc-sidebar-iconbox\.zib-widget \{/);
|
||||
assert.match(shell, /\.uc-sidebar-iconbox\.jio-widget-box \{/);
|
||||
|
||||
// 卡片上的 <i> 已换成 <svg>,元素选择器需覆盖两者。
|
||||
assert.match(shell, /\.uc-summary-card__body > svg/);
|
||||
// 旧的琥珀 VIP 券与 uc-center-card 已被参考主题结构替换。
|
||||
assert.doesNotMatch(shell, /uc-center-card/);
|
||||
assert.doesNotMatch(shell, /uc-sidebar-vip__/);
|
||||
assert.match(shell, /\.uc-sidebar-centers > \.zib-widget/);
|
||||
assert.match(shell, /\.uc-sidebar-centers > \.jio-widget-box/);
|
||||
|
||||
// 文章/评论/收藏/粉丝统计 1:1 参考主题 zib_user_center_page_sidebar_statistics()。
|
||||
// 文章/评论/收藏/粉丝统计。
|
||||
const stats = read(sidebarDir + 'sidebar-stats.php');
|
||||
assert.match(stats, /mb10-sm mb20 flex ac jsa zib-widget padding-10 text-center/);
|
||||
assert.match(stats, /mb10-sm mb20 flex ac jsa jio-widget-box padding-10 text-center/);
|
||||
assert.match(stats, /<a class="user-statistics-item"/);
|
||||
assert.match(stats, /<div class="em14"><\?php echo esc_html\(jio_cut_count\(/);
|
||||
assert.match(stats, /<div class="em09 opacity5 mt6">/);
|
||||
assert.doesNotMatch(stats, /uc-stats|uc-sidebar__section/);
|
||||
assert.doesNotMatch(shell, /\.uc-stats/);
|
||||
assert.doesNotMatch(read('assets/css/routes/user-center/responsive.css'), /\.uc-stats/);
|
||||
assert.match(shell, /\.uc-sidebar-statistics\.zib-widget \{/);
|
||||
assert.match(shell, /\.uc-sidebar-statistics\.jio-widget-box \{/);
|
||||
});
|
||||
|
||||
test('所用 sprite key 均在前端 sprite 中定义', () => {
|
||||
@@ -168,10 +168,10 @@ test('导航栏用户浮层的余额/积分磁贴与侧栏使用同一组 sprite
|
||||
const nav = read(sidebarDir + 'sidebar-commerce.php');
|
||||
const wallet = read('inc/helpers/jio-header-userbox.php');
|
||||
|
||||
assert.match(wallet, /jio_icon_markup\('zibsvg-money-color-2', 'em14'\)/);
|
||||
assert.match(wallet, /jio_icon_markup\('zibsvg-points-color', 'em14'\)/);
|
||||
assert.match(nav, /jio_icon_markup\('zibsvg-money-color-2'\)/);
|
||||
assert.match(nav, /jio_icon_markup\('zibsvg-points-color'\)/);
|
||||
assert.match(wallet, /jio_icon_markup\('jiosvg-money-color-2', 'em14'\)/);
|
||||
assert.match(wallet, /jio_icon_markup\('jiosvg-points-color', 'em14'\)/);
|
||||
assert.match(nav, /jio_icon_markup\('jiosvg-money-color-2'\)/);
|
||||
assert.match(nav, /jio_icon_markup\('jiosvg-points-color'\)/);
|
||||
|
||||
// 磁贴箭头沿用参考主题的 fa-angle-right,不做多余替换。
|
||||
assert.match(wallet, /fa fas fa-angle-right em12/);
|
||||
|
||||
Reference in new issue
Block a user