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:
kate522andClaude Opus 5 committed 2026-11-01 20:05:04 +08:00
1 parent 5b16bc6e15
commit 35bb96e82f
997 files changed
+28216 -28188

No files matched your search

+8 -8
View File
@@ -1,8 +1,8 @@
/**
* AKSRT 文章导航页 — admin settings modal + HTML5 drag-sort (no SortableJS dependency).
* Jio 文章导航页 — admin settings modal + HTML5 drag-sort (no SortableJS dependency).
* TOC generation is handled by section-navs.js via [data-nav] + .posts-nav-box.
*
* @package AKSRT
* @package Jio
*/
(function () {
'use strict';
@@ -16,7 +16,7 @@
}
function ajaxUrl() {
if (window.aksrtData && window.aksrtData.ajaxUrl) return window.aksrtData.ajaxUrl;
if (window.jioData && window.jioData.ajaxUrl) return window.jioData.ajaxUrl;
if (window.ajaxurl) return window.ajaxurl;
return '/wp-admin/admin-ajax.php';
}
@@ -124,7 +124,7 @@
}
function initSave() {
var form = qs('#aksrt-posts-navs-settings');
var form = qs('#jio-posts-navs-settings');
if (!form) return;
form.addEventListener('submit', function (e) {
@@ -140,7 +140,7 @@
}
var fd = new FormData(form);
fd.set('action', 'aksrt_post_navs_settings');
fd.set('action', 'jio_post_navs_settings');
// PHP accepts array; append each.
fd.delete('navs_show_cat_id');
ids.forEach(function (id) {
@@ -183,7 +183,7 @@
var box = qs('.posts-nav-box');
var root = qs('.posts-navs[data-nav]');
if (!box || !root) return;
if (box.querySelector('.posts-nav-lists, .aksrt-section-nav, .toc-list')) return;
if (box.querySelector('.posts-nav-lists, .jio-section-nav, .toc-list')) return;
var headings = qsa('.title-theme h2, h2', root);
if (headings.length < 1) return;
@@ -197,7 +197,7 @@
box.innerHTML =
'<div class="box-body notop"><div class="title-theme">' + title + '</div></div>' +
'<div class="aksrt-panel"><div class="posts-nav-lists scroll-y mini-scrollbar list-unstyled">' +
'<div class="jio-panel"><div class="posts-nav-lists scroll-y mini-scrollbar list-unstyled">' +
'<ul class="bl relative nav">' + list + '</ul></div></div>';
qsa('a[href^="#"]', box).forEach(function (a) {
@@ -238,5 +238,5 @@
window.setTimeout(initFallbackToc, 50);
}
jQuery(document).off('auto_fun.aksrt-posts-navs-page').on('auto_fun.aksrt-posts-navs-page', function () { init(document); });
jQuery(document).off('auto_fun.jio-posts-navs-page').on('auto_fun.jio-posts-navs-page', function () { init(document); });
})();