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
@@ -8,7 +8,7 @@
|
||||
* imagelightbox / imagelightbox_type / imagelightbox_thumbs_s /
|
||||
* imagelightbox_play_s / imagelightbox_zoom_s / imagelightbox_full_s /
|
||||
* imagelightbox_down_s / post_like_s / post_default_mate(views/like);
|
||||
* 3) 旧 AKSRT 私有/异名字段(feature_print / feature_pdf_export /
|
||||
* 3) 旧 Jio 私有/异名字段(feature_print / feature_pdf_export /
|
||||
* post_lightbox* / post_like_enabled / post_default_*_min/max)已彻底移除,
|
||||
* 文章页面(page)不再承载这些字段,无双路兼容;
|
||||
* 4) 运行时(PostDisplay::get_post_page_settings)只读取新键,灯箱复选框
|
||||
@@ -27,10 +27,10 @@ const pageJs = fs.readFileSync(path.join(root, 'assets/admin/src/schema/sections
|
||||
const runtime = fs.readFileSync(path.join(root, 'src/Settings/PostDisplay.php'), 'utf8');
|
||||
const scripts1c = fs.readFileSync(path.join(root, 'src/Core/ScriptsPart1c.php'), 'utf8');
|
||||
const scripts1b = fs.readFileSync(path.join(root, 'src/Core/ScriptsPart1b.php'), 'utf8');
|
||||
const frontendTags = fs.readFileSync(path.join(root, 'inc/helpers/aksrt-frontend-tags.php'), 'utf8');
|
||||
const frontendTags = fs.readFileSync(path.join(root, 'inc/helpers/jio-frontend-tags.php'), 'utf8');
|
||||
const coreHooks = fs.readFileSync(path.join(root, 'inc/core-hooks.php'), 'utf8');
|
||||
const singleRender = fs.readFileSync(path.join(root, 'inc/helpers/aksrt-single-render.php'), 'utf8');
|
||||
const mobileHeader = fs.readFileSync(path.join(root, 'inc/helpers/header/aksrt-header-mobile.php'), 'utf8');
|
||||
const singleRender = fs.readFileSync(path.join(root, 'inc/helpers/jio-single-render.php'), 'utf8');
|
||||
const mobileHeader = fs.readFileSync(path.join(root, 'inc/helpers/header/jio-header-mobile.php'), 'utf8');
|
||||
|
||||
const REFERENCE_KEYS = [
|
||||
'article_nav',
|
||||
@@ -46,7 +46,7 @@ const REFERENCE_KEYS = [
|
||||
'post_default_mate',
|
||||
];
|
||||
|
||||
// 旧 AKSRT 私有 / 异名字段(打印与 PDF 导出、旧灯箱六开关、旧点赞与默认数值四键)。
|
||||
// 旧 Jio 私有 / 异名字段(打印与 PDF 导出、旧灯箱六开关、旧点赞与默认数值四键)。
|
||||
const LEGACY_KEYS = [
|
||||
'feature_print',
|
||||
'feature_pdf_export',
|
||||
@@ -194,7 +194,7 @@ test('旧字段在 schema 与运行时中均已移除(无双路)', () => {
|
||||
assert.ok(!runtime.includes(legacy), `PostDisplay 残留旧字段: ${legacy}`);
|
||||
assert.ok(!js.includes(legacy), `feature.js 残留旧字段: ${legacy}`);
|
||||
assert.ok(!pageJs.includes(legacy), `page.js 残留旧字段: ${legacy}`);
|
||||
assert.ok(!frontendTags.includes(legacy), `aksrt-frontend-tags 残留旧字段: ${legacy}`);
|
||||
assert.ok(!frontendTags.includes(legacy), `jio-frontend-tags 残留旧字段: ${legacy}`);
|
||||
}
|
||||
assert.ok(!scripts1b.includes('needs_print'), 'ScriptsPart1b 残留 needs_print 分支');
|
||||
assert.ok(!scripts1c.includes('needs_print'), 'ScriptsPart1c 残留 needs_print 需求');
|
||||
@@ -228,5 +228,5 @@ test('运行时只读取新键并接入灯箱/目录树/预置参数', () => {
|
||||
// 预置参数:新建文章随机填入。
|
||||
assert.match(coreHooks, /save_post/);
|
||||
assert.match(coreHooks, /POST_VIEW_COUNT_KEY/);
|
||||
assert.match(coreHooks, /_aksrt_like_count/);
|
||||
assert.match(coreHooks, /_jio_like_count/);
|
||||
});
|
||||
Reference in new issue
Block a user