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:
kate522andClaude Opus 5 committed 2026-11-02 00:06:54 +08:00
1 parent 42cc64106d
commit 427968a721
188 files changed
+915 -967

No files matched your search

+21 -21
View File
@@ -1,20 +1,20 @@
/**
* Jio User Ban — 前台“禁封/解封用户”弹窗
*
* 1:1 复刻参考主题 Zibll 前台禁封能力:
* - zib_get_edit_user_ban_link → [data-jio-ban] 委托入口(三点菜单内)
* - zib_get_set_user_ban_modal → REST /user-ban/modal 拉取弹窗内容
* - zib_ajax_set_user_ban → REST /user-ban/set 提交
* - zib_get_ban_info_modal → [data-jio-ban-info](查看禁封状态)
* - zib_get_user_ban_appeal_modal → [data-jio-ban-appeal](禁封申诉)
* - zib_get_ban_log_modal → [data-jio-ban-log](禁封记录)
* - zib_user_ban_appeal(wp-ajax) → admin-ajax jio_ban_appeal_submit 提交
* 前台用户禁封能力:
* - 编辑禁封链接 → [data-jio-ban] 委托入口(三点菜单内)
* - 禁封弹窗内容 → REST /user-ban/modal 拉取
* - 禁封提交 → REST /user-ban/set
* - 查看禁封状态弹窗 → [data-jio-ban-info]
* - 禁封申诉弹窗 → [data-jio-ban-appeal]
* - 禁封记录弹窗 → [data-jio-ban-log]
* - 禁封申诉提交 → admin-ajax jio_ban_appeal_submit
*
* 弹窗经 JioModalRuntime.openRemote 打开(与参考主题 refresh_modal 每次刷新
* 同语义):桌面 600px 宽(参考主题未传 data-class → Bootstrap .modal-dialog
* 弹窗经 JioModalRuntime.openRemote 打开(每次刷新同语义):桌面 600px 宽
* (未传 data-class → Bootstrap .modal-dialog
* 默认宽 600px)/ min-height 360px(data-height=360 → .modal-content 初始高度),
* 移动端底部抽屉(mobileBottom)。提交成功语义与参考主题 zib_ajax_set_user_ban
* 返回值一致:禁封 → reload:true(整页刷新),解封 → hide_modal:true(仅关闭弹窗)。
* 移动端底部抽屉(mobileBottom)。提交成功语义:
* 禁封 → reload:true(整页刷新),解封 → hide_modal:true(仅关闭弹窗)。
*
* @package Jio
*/
@@ -33,7 +33,7 @@
|| '/wp-admin/admin-ajax.php';
var MODAL_HEIGHT = 360;
// 参考主题 data_class='modal-mini' + data-height=240:400px 宽、初始高 240。
// data_class='modal-mini' + data-height=240:400px 宽、初始高 240。
var MINI_MODAL_HEIGHT = 240;
function ajaxUrl() {
@@ -64,7 +64,7 @@
});
}
// 查看禁封状态弹窗(参考主题 zib_get_ban_info_modal / user_ban_info_modal)。
// 查看禁封状态弹窗。
function openInfoModal(userId) {
openRemoteModal({
url: API_ROOT + '/user-ban/info-modal',
@@ -78,7 +78,7 @@
});
}
// 禁封申诉弹窗(参考主题 zib_get_user_ban_appeal_modal;表单走 admin-ajax)。
// 禁封申诉弹窗(表单走 admin-ajax)。
function openAppealModal(userId) {
openRemoteModal({
url: API_ROOT + '/user-ban/appeal-modal',
@@ -95,7 +95,7 @@
});
}
// 禁封记录弹窗(参考主题 zib_get_ban_log_modal)。
// 禁封记录弹窗。
function openLogModal(userId) {
openRemoteModal({
url: API_ROOT + '/user-ban/log-modal',
@@ -114,7 +114,7 @@
if (!form || form.dataset.jioAppealBound === '1') return;
form.dataset.jioAppealBound = '1';
// autoHeight 仅对显式声明 autoHeight/maxHeight 的文本框生效:
// 申诉说明框(1:1 参考主题)为 rows=3 自然高度 + 容器滚动,
// 申诉说明框为 rows=3 自然高度 + 容器滚动,
// 无 maxHeight 时执行 grow 会被压成 0px。
Array.prototype.forEach.call(
form.querySelectorAll('textarea[autoHeight], textarea[maxHeight]'),
@@ -219,7 +219,7 @@
.then(function (result) {
if (result && result.success) {
notyf(result.message || '操作成功', 'success');
// 参考主题 zib_ajax_set_user_ban 返回值语义:
// 提交返回值语义:
// 禁封 → reload:true(整页刷新,入口按钮状态随页面重渲染);
// 解封 → hide_modal:true(仅关闭弹窗)。
if (window.JioModalRuntime && typeof window.JioModalRuntime.close === 'function') {
@@ -242,9 +242,9 @@
}
function bindAutoHeight(textarea) {
// 1:1 复刻参考主题 textarea[autoHeight] 行为(input/focus 触发):
// textarea[autoHeight] 行为(input/focus 触发):
// 高度 = scrollHeight + 上下边框;超过 maxHeight 属性则锁定 maxHeight 并
// 打开自身滚动条(参考主题 main.js autoHeight 同语义)。
// 打开自身滚动条(main.js autoHeight 同语义)。
if (!textarea || textarea.dataset.jioAutoHeight === '1') return;
textarea.dataset.jioAutoHeight = '1';
var grow = function () {
@@ -291,7 +291,7 @@
}
/**
* 收起封面三点菜单面板(参考主题 author_header_drop_lists 菜单项点击后
* 收起封面三点菜单面板(作者头部下拉菜单项点击后
* 不自动收起,需手动关闭;评论区与文章作者下拉由各自脚本点击项后自动收起)。
*/
function closeCoverMenu(trigger) {