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
@@ -12,10 +12,10 @@
|
||||
* post_front_content/after_content、post_related_*;
|
||||
* 3) 幻灯片 fieldset 全字段及嵌套依赖(direction/scale_height/auto_height 组合)
|
||||
* 对齐参考主题 CFS_Module::slide;
|
||||
* 4) 旧 AKSRT 私有/异名字段(阅读进度条、面包屑末项文本、作者卡片配置、收藏开关、
|
||||
* 4) 旧 Jio 私有/异名字段(阅读进度条、面包屑末项文本、作者卡片配置、收藏开关、
|
||||
* share_s 与 post_rewards_*、旧封面键)已彻底移除,无双路兼容;
|
||||
* 5) 运行时(PostDisplay::get_post_page_settings)只读取新键:幻灯片配置归一化并
|
||||
* 接线 aksrt_render_slider,p_indent 接线容器类,breadcrumbs_home_text 为
|
||||
* 接线 jio_render_slider,p_indent 接线容器类,breadcrumbs_home_text 为
|
||||
* switcher 布尔语义(true = 用「首页」替代网站名称)。
|
||||
*/
|
||||
|
||||
@@ -30,8 +30,8 @@ const js = fs.readFileSync(path.join(root, 'assets/admin/src/schema/sections/pos
|
||||
const runtime = fs.readFileSync(path.join(root, 'src/Settings/PostDisplay.php'), 'utf8');
|
||||
const facadeBulk = fs.readFileSync(path.join(root, 'src/Settings/FacadeBulk.php'), 'utf8');
|
||||
const metaBox = fs.readFileSync(path.join(root, 'src/Core/PostMetaBox.php'), 'utf8');
|
||||
const frontendTags = fs.readFileSync(path.join(root, 'inc/helpers/aksrt-frontend-tags.php'), 'utf8');
|
||||
const singleRender = fs.readFileSync(path.join(root, 'inc/helpers/aksrt-single-render.php'), 'utf8');
|
||||
const frontendTags = fs.readFileSync(path.join(root, 'inc/helpers/jio-frontend-tags.php'), 'utf8');
|
||||
const singleRender = fs.readFileSync(path.join(root, 'inc/helpers/jio-single-render.php'), 'utf8');
|
||||
const contentCss = fs.readFileSync(path.join(root, 'assets/css/frontend/single-post/content.css'), 'utf8');
|
||||
const shareJs = fs.readFileSync(path.join(root, 'assets/admin/src/schema/sections/global/share.js'), 'utf8');
|
||||
const sharePhp = fs.readFileSync(path.join(root, 'src/Admin/Schema/GlobalSchema.php'), 'utf8');
|
||||
@@ -104,7 +104,7 @@ const PAGE_FIELD_SEQUENCE = [
|
||||
'post_related_orderby',
|
||||
];
|
||||
|
||||
// 旧 AKSRT 私有/异名字段:已迁移(share_s / post_rewards_*)或无参考对应项被移除。
|
||||
// 旧 Jio 私有/异名字段:已迁移(share_s / post_rewards_*)或无参考对应项被移除。
|
||||
const LEGACY_KEYS = [
|
||||
'post_reading_progress',
|
||||
'post_author_card_limit',
|
||||
@@ -271,7 +271,7 @@ test('旧字段在 schema 与运行时中均已移除(无双路)', () => {
|
||||
assert.ok(!pagePhp.includes(`'breadcrumbs_single_text'`), 'page section 残留 breadcrumbs_single_text');
|
||||
assert.ok(!js.includes(`key: 'breadcrumbs_single_text'`), 'page.js 残留 breadcrumbs_single_text');
|
||||
assert.match(runtime, /'breadcrumbs_single_text'\s*=>\s*true/);
|
||||
// aksrt-frontend-tags 不再有 breadcrumbs_home_text 文本兼容(switcher 布尔语义)。
|
||||
// jio-frontend-tags 不再有 breadcrumbs_home_text 文本兼容(switcher 布尔语义)。
|
||||
assert.ok(!frontendTags.includes("breadcrumbs_home'] = (string) $settings['breadcrumbs_home_text'"), 'frontend-tags 残留 breadcrumbs_home_text 文本兼容');
|
||||
});
|
||||
|
||||
@@ -318,7 +318,7 @@ test('运行时只读取新键并接线封面/缩进/版权/一言', () => {
|
||||
});
|
||||
|
||||
test('前台链路:幻灯片配置接线渲染器,p_indent 接线容器与 CSS', () => {
|
||||
// 幻灯片配置接入 aksrt_render_slider(effect/direction/spaceBetween/speed/interval)。
|
||||
// 幻灯片配置接入 jio_render_slider(effect/direction/spaceBetween/speed/interval)。
|
||||
assert.match(singleRender, /article_slide_cover_option/);
|
||||
assert.match(singleRender, /'effect'\s*=>\s*\(string\) \(\$slide_option\['effect'\] \?\? 'slide'\)/);
|
||||
assert.match(singleRender, /'direction'\s*=>\s*\(string\) \(\$slide_option\['direction'\] \?\? 'horizontal'\)/);
|
||||
|
||||
Reference in new issue
Block a user