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
@@ -56,14 +56,14 @@ test('user features schemas expose the canonical fields plus the migrated reward
|
||||
});
|
||||
|
||||
test('avatar, cover, signature, and upload runtime use the canonical settings', () => {
|
||||
const helpers = read('inc/helpers/aksrt-avatar.php');
|
||||
const helpers = read('inc/helpers/jio-avatar.php');
|
||||
const runtime = read('src/Settings/UserRuntime.php');
|
||||
const upload = read('src/Admin/UserControllerProfileMediaOperations.php');
|
||||
const center = read('inc/helpers/aksrt-user-center.php');
|
||||
const center = read('inc/helpers/jio-user-center.php');
|
||||
|
||||
const customAt = helpers.indexOf("$custom = aksrt_get_custom_avatar_url");
|
||||
const externalAt = helpers.indexOf("$external = aksrt_get_external_avatar_url", customAt);
|
||||
const defaultAt = helpers.indexOf('return aksrt_get_default_avatar_url();', externalAt);
|
||||
const customAt = helpers.indexOf("$custom = jio_get_custom_avatar_url");
|
||||
const externalAt = helpers.indexOf("$external = jio_get_external_avatar_url", customAt);
|
||||
const defaultAt = helpers.indexOf('return jio_get_default_avatar_url();', externalAt);
|
||||
assert.ok(customAt >= 0 && customAt < externalAt && externalAt < defaultAt);
|
||||
|
||||
const hosts = {
|
||||
@@ -80,9 +80,9 @@ test('avatar, cover, signature, and upload runtime use the canonical settings',
|
||||
}
|
||||
assert.match(helpers, /hash\('sha256', strtolower\(trim\(\$email\)\)\)/);
|
||||
assert.match(helpers, /'s'\s*=>\s*\$size/);
|
||||
assert.match(helpers, /'d'\s*=>\s*aksrt_get_default_avatar_url\(\)/);
|
||||
assert.match(helpers, /'d'\s*=>\s*jio_get_default_avatar_url\(\)/);
|
||||
|
||||
assert.match(helpers, /get_user_meta\(\$user_id, 'aksrt_background_image', true\)/);
|
||||
assert.match(helpers, /get_user_meta\(\$user_id, 'jio_background_image', true\)/);
|
||||
assert.match(helpers, /return \(string\) \$settings\['user_cover_img'\]/);
|
||||
assert.match(helpers, /get_user_meta\(\$user_id, 'description', true\)/);
|
||||
assert.match(helpers, /return \(string\) \$settings\['user_desc_std'\]/);
|
||||
@@ -92,8 +92,8 @@ test('avatar, cover, signature, and upload runtime use the canonical settings',
|
||||
assert.match(runtime, /Settings::read_domain\('users', 'features'\)/);
|
||||
assert.doesNotMatch(runtime, /user_center_tabs/);
|
||||
assert.match(runtime, /'tabs'\s*=>\s*\['profile', 'level', 'comments', 'credits', 'revenue', 'favorites', 'auth'\]/);
|
||||
assert.match(upload, /aksrt_is_avatar_upload_enabled\(\)/);
|
||||
assert.match(upload, /aksrt_is_user_cover_upload_enabled\(\)/);
|
||||
assert.match(upload, /jio_is_avatar_upload_enabled\(\)/);
|
||||
assert.match(upload, /jio_is_user_cover_upload_enabled\(\)/);
|
||||
assert.match(center, /'show_avatar_edit'\s*=>\s*\$allow_avatar_upload/);
|
||||
assert.match(center, /'allow_bg_upload'\s*=>\s*\$allow_bg_upload/);
|
||||
});
|
||||
@@ -102,21 +102,21 @@ test('public user surfaces consume the canonical cover and signature helpers', (
|
||||
for (const file of [
|
||||
'templates/parts/user/author-hero.php',
|
||||
'src/WidgetSystem/Renderers/UserRenderer.php',
|
||||
'inc/helpers/aksrt-user-dashboard.php',
|
||||
'inc/helpers/jio-user-dashboard.php',
|
||||
]) {
|
||||
assert.match(read(file), /aksrt_get_user_cover_url/);
|
||||
assert.match(read(file), /jio_get_user_cover_url/);
|
||||
}
|
||||
|
||||
for (const file of [
|
||||
'templates/parts/user/author-hero.php',
|
||||
'src/WidgetSystem/Renderers/UserRenderer.php',
|
||||
'inc/helpers/aksrt-graphic-card.php',
|
||||
'inc/helpers/aksrt-single-render.php',
|
||||
'inc/helpers/jio-graphic-card.php',
|
||||
'inc/helpers/jio-single-render.php',
|
||||
'templates/parts/single-author-bar.php',
|
||||
'templates/shortcodes/profile.php',
|
||||
'inc/helpers/header/aksrt-header-render.php',
|
||||
'inc/helpers/header/jio-header-render.php',
|
||||
]) {
|
||||
assert.match(read(file), /aksrt_get_user_description/);
|
||||
assert.match(read(file), /jio_get_user_description/);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -159,8 +159,8 @@ test('retired admin pages, schemas, APIs, and metadata chains are absent', () =>
|
||||
'users/signin',
|
||||
'email-rollback',
|
||||
'EmailRollback',
|
||||
'aksrt_email_previous',
|
||||
'aksrt_email_changed_at',
|
||||
'jio_email_previous',
|
||||
'jio_email_changed_at',
|
||||
'frontend_modal_rollout',
|
||||
'FrontendModalRuntime',
|
||||
'isRolloutEnabled',
|
||||
@@ -182,7 +182,7 @@ test('retired admin pages, schemas, APIs, and metadata chains are absent', () =>
|
||||
test('native user profile omits ledger tables and renders canonical images eagerly', () => {
|
||||
const credits = read('src/User/CreditsAdmin.php');
|
||||
const balance = read('src/User/BalanceAdmin.php');
|
||||
const avatar = read('inc/helpers/aksrt-avatar.php');
|
||||
const avatar = read('inc/helpers/jio-avatar.php');
|
||||
const profileAdmin = read('src/User/ProfileAdmin.php');
|
||||
const level = read('src/User/LevelAdmin.php');
|
||||
|
||||
@@ -191,9 +191,9 @@ test('native user profile omits ledger tables and renders canonical images eager
|
||||
assert.doesNotMatch(balance, /LedgerQuery::get_instance\(\)->history/);
|
||||
assert.doesNotMatch(balance, /近期流水/);
|
||||
assert.match(profileAdmin, /get_avatar\(\$user_id, 96, '', \$user->display_name, \['loading' => 'eager'\]\)/);
|
||||
assert.doesNotMatch(avatar, /aksrt_get_avatar_html\(\$user->ID, 96/);
|
||||
assert.doesNotMatch(avatar, /jio_get_avatar_html\(\$user->ID, 96/);
|
||||
assert.match(level, /Level::get_level_icon_url\(\$level\)/);
|
||||
assert.match(level, /<img class="aksrt-user-level-icon aksrt-user-level-icon--admin" src="/);
|
||||
assert.match(level, /<img class="jio-user-level-icon jio-user-level-icon--admin" src="/);
|
||||
assert.doesNotMatch(level, /Level::get_badge_html/);
|
||||
});
|
||||
|
||||
@@ -204,20 +204,20 @@ test('identity marker and profile are editable on the native profile while appli
|
||||
const transitions = read('src/Identity/TransitionService.php');
|
||||
|
||||
assert.match(auth, /add_action\('edit_user_profile_update', \[\$this, 'save_admin_profile'\]\)/);
|
||||
assert.match(auth, /current_user_can\('aksrt_review_identity'\)/);
|
||||
assert.match(auth, /wp_nonce_field\('aksrt_auth_profile_' \.[\s\S]*?'aksrt_auth_profile_nonce'\)/);
|
||||
assert.match(auth, /name="aksrt_auth_enabled"/);
|
||||
assert.match(auth, /name="aksrt_auth_name"/);
|
||||
assert.match(auth, /name="aksrt_auth_desc"/);
|
||||
assert.match(auth, /name="aksrt_auth_time"/);
|
||||
assert.match(auth, /current_user_can\('jio_review_identity'\)/);
|
||||
assert.match(auth, /wp_nonce_field\('jio_auth_profile_' \.[\s\S]*?'jio_auth_profile_nonce'\)/);
|
||||
assert.match(auth, /name="jio_auth_enabled"/);
|
||||
assert.match(auth, /name="jio_auth_name"/);
|
||||
assert.match(auth, /name="jio_auth_desc"/);
|
||||
assert.match(auth, /name="jio_auth_time"/);
|
||||
assert.match(auth, /update_user_meta\(\$user_id, 'auth', 1\)/);
|
||||
assert.match(auth, /update_user_meta\(\$user_id, 'auth_info'/);
|
||||
assert.doesNotMatch(auth, /name="aksrt_identity_(?:application_uuid|type|status|public_name)"/);
|
||||
assert.doesNotMatch(auth, /name="jio_identity_(?:application_uuid|type|status|public_name)"/);
|
||||
|
||||
assert.match(verify, /'general',[\s\S]*?'manual'/);
|
||||
assert.match(verify, /use UsersMenusVerifyDialogs;/);
|
||||
assert.match(verifyDialogs, /\$pending = \$row\['status'\] === 'manual_pending'/);
|
||||
assert.match(verifyDialogs, /if \(\$pending\) \{\s*echo '<form[^\n]*data-aksrt-verify-review>/);
|
||||
assert.match(verifyDialogs, /if \(\$pending\) \{\s*echo '<form[^\n]*data-jio-verify-review>/);
|
||||
assert.match(verifyDialogs, /'verified' => __\('通过申请'/);
|
||||
assert.match(verifyDialogs, /'rejected' => __\('拒绝申请'/);
|
||||
assert.match(verify, /AuthApply::review\(\$user_id, \$uuid, \$status, \$note, get_current_user_id\(\), \$fields\)/);
|
||||
|
||||
Reference in new issue
Block a user