refactor: rename the theme brand and every identifier from AKSRT to Jio
Full-project rename. `git grep -i aksrt` is now empty apart from the
DBMigrator 3.3.0 changelog note that documents the rename itself.
Code identifiers
- PHP namespace AKSRT\ -> Jio\ (composer PSR-4 + 378 declarations)
- global constants AKSRT_* -> JIO_* (VERSION/DIR/URI, PAY_TYPE_*, CAPTCHA_*)
- procedural functions, hooks, options, meta keys, table names,
cookies, query vars, ajax actions and nonces: aksrt_ -> jio_
- text domain aksrt -> jio; Theme Name -> Jio
- JS globals: aksrtData/aksrtAdminData/... -> jioData/jioAdminData/...,
window.AKSRTCaptcha & friends -> window.JioCaptcha, Aksrt* -> Jio*
- Vue components Aks*.vue -> Jio*.vue (15 files renamed + imports)
- CSS classes/data-attrs/custom properties: aksrt- -> jio-
- REST namespace aksrt/v1 -> jio/v1 (incl. payment gateway callbacks)
Storage layer
- DB tables {prefix}aksrt_* -> {prefix}jio_*; SCHEMA_VERSION 3.2.0 -> 3.3.0
so dbDelta creates the new names on install
- widget id_base aksrt_widget_* -> jio_widget_*
- uninstall.php drop list rebuilt from the actual migrator tables
(dropped 3 stale entries, added the 17 missing ones)
Removed
- hardcoded https://api.aksrt.com/version.json default update endpoint;
get_endpoint() now reads the 「更新端点」 setting and do_check() no-ops
when it is empty
Files renamed: inc/helpers/aksrt-*.php -> jio-*.php (54),
assets/admin/src/components/form/Aks*.vue -> Jio*.vue (15).
Build artifacts regenerated: assets/css/build, assets/js/runtime,
assets/admin/build.
Verified: audit-psr4-paths errors=0, audit-admin-contracts errors=0
(warnings=56, unchanged baseline), 813/813 widget-system tests,
44/44 phpunit, php -l clean across all PHP.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5b16bc6e15
commit
35bb96e82f
997 files changed
+28216
-28188
No files matched your search
@@ -27,8 +27,8 @@ const paymentRuntime = read('src', 'Settings', 'PaymentRuntime.php');
|
||||
const packagesTrait = read('src', 'Content', 'VipServicePackages.php');
|
||||
const purchaseSource = read('src', 'Content', 'VipServicePurchase.php');
|
||||
const modalSource = read('src', 'Content', 'VipServiceModal.php');
|
||||
const rendererVue = read('assets', 'admin', 'src', 'components', 'form', 'AksFormRenderer.vue');
|
||||
const fieldVue = read('assets', 'admin', 'src', 'components', 'form', 'AksField.vue');
|
||||
const rendererVue = read('assets', 'admin', 'src', 'components', 'form', 'JioFormRenderer.vue');
|
||||
const fieldVue = read('assets', 'admin', 'src', 'components', 'form', 'JioField.vue');
|
||||
const payVipJs = read('assets', 'js', 'pay-vip.js');
|
||||
const vipTabPhp = read('inc', 'helpers', 'user-center-renderers', 'vip-tab.php');
|
||||
const homeCms = read('src', 'Settings', 'HomeCms.php');
|
||||
@@ -146,12 +146,12 @@ test('等级 Tab 标题由显示名称动态驱动', () => {
|
||||
// 手风琴:所有 repeater/group 行默认收起,点击标题行展开(按行 key 记录开合)。
|
||||
assert.match(fieldVue, /useCollapsibleItems\(\)/);
|
||||
assert.match(fieldVue, /v-show="isRepeaterItemOpen\(repeaterDragKey\(element\)\)"/);
|
||||
assert.match(fieldVue, /aksrt-field__repeater-summary/);
|
||||
assert.match(fieldVue, /jio-field__repeater-summary/);
|
||||
assert.doesNotMatch(fieldVue, /schema\.collapsible|schema\.defaultCollapsed/);
|
||||
// accordion/fieldset 的 sections 分块手风琴。
|
||||
assert.match(fieldVue, /const fieldsetSections = computed\(/);
|
||||
assert.match(fieldVue, /function toggleFieldsetSection\(index\)/);
|
||||
assert.match(fieldVue, /aksrt-field__accordion-section-head/);
|
||||
assert.match(fieldVue, /jio-field__accordion-section-head/);
|
||||
});
|
||||
|
||||
test('结构化分组默认收起,标题行带摘要;升级价格按三块手风琴渲染', () => {
|
||||
@@ -416,7 +416,7 @@ test('tag_class 透传到前端套餐卡与积分兑换弹窗', () => {
|
||||
assert.match(payVipJs, /item\.tag_class \|\| "jb-yellow"/);
|
||||
// 弹窗时长行按 time/unit 渲染,Permanent 走永久。
|
||||
assert.match(modalSource, /\$is_permanent = !empty\(\$package\['is_permanent'\]\)/);
|
||||
assert.match(modalSource, /\$pkg_unit === 'month' \? __\('个月', 'aksrt'\) : __\('天', 'aksrt'\)/);
|
||||
assert.match(modalSource, /\$pkg_unit === 'month' \? __\('个月', 'jio'\) : __\('天', 'jio'\)/);
|
||||
// 用户中心档位卡消费续费/升级简介。
|
||||
assert.match(vipTabPhp, /\$renew_desc = \(string\) \(\$vip_settings\['renew'\]\['desc'\]/);
|
||||
assert.match(vipTabPhp, /\$upgrade_desc = \(string\) \(\$vip_settings\['upgrade'\]\['desc'\]/);
|
||||
@@ -514,6 +514,6 @@ test('升级价格 sections 能展开成三块手风琴,且块内字段遵循
|
||||
assert.match(fieldVue, /const fieldsetSections = computed\(\(\) => \{[\s\S]*?buildFieldsetSections\(props\.schema\)/);
|
||||
assert.match(fieldVue, /function sectionFields\(section\) \{[\s\S]*?matchDependency\(field\.dependsOn, props\.modelValue\)/);
|
||||
// 结构化分组之间留出间隔,两个分组不会上下贴在一起。
|
||||
assert.match(fieldVue, /\.aksrt-field--group,\s*\.aksrt-field--repeater,\s*\.aksrt-field--accordion,\s*\.aksrt-field--fieldset \{[\s\S]*?margin-bottom: 26px;/);
|
||||
assert.match(fieldVue, /\.aksrt-field__accordion-section \+ \.aksrt-field__accordion-section \{[\s\S]*?margin-top: 14px;/);
|
||||
assert.match(fieldVue, /\.jio-field--group,\s*\.jio-field--repeater,\s*\.jio-field--accordion,\s*\.jio-field--fieldset \{[\s\S]*?margin-bottom: 26px;/);
|
||||
assert.match(fieldVue, /\.jio-field__accordion-section \+ \.jio-field__accordion-section \{[\s\S]*?margin-top: 14px;/);
|
||||
});
|
||||
Reference in new issue
Block a user