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
@@ -3,7 +3,7 @@
|
||||
* Executable VIP structured-settings contract harness.
|
||||
*
|
||||
* Builds the payment schema with WordPress stubs, normalizes a stored
|
||||
* `aksrt_settings` snapshot through PaymentRuntime, and prints the result as
|
||||
* `jio_settings` snapshot through PaymentRuntime, and prints the result as
|
||||
* JSON so the Node contract test can assert on the real shapes.
|
||||
*/
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace {
|
||||
function wp_strip_all_tags($value): string { return trim(strip_tags((string) $value)); }
|
||||
function wp_kses($value, $allowed = null): string { return (string) $value; }
|
||||
function trailingslashit($value): string { return rtrim((string) $value, '/\\') . '/'; }
|
||||
function get_template_directory_uri(): string { return 'https://example.test/wp-content/themes/aksrt'; }
|
||||
function get_template_directory_uri(): string { return 'https://example.test/wp-content/themes/jio'; }
|
||||
function absint($value): int { return max(0, (int) $value); }
|
||||
function wp_json_encode($value, int $flags = 0): string { return json_encode($value, $flags | JSON_UNESCAPED_SLASHES); }
|
||||
function is_multisite(): bool { return false; }
|
||||
@@ -37,7 +37,7 @@ namespace {
|
||||
function add_filter(...$args): void {}
|
||||
}
|
||||
|
||||
namespace AKSRT\Settings {
|
||||
namespace Jio\Settings {
|
||||
/** Test double: PaymentRuntime reads every raw settings key through this. */
|
||||
final class Settings {
|
||||
/** @var array<string,mixed> */
|
||||
@@ -70,7 +70,7 @@ namespace {
|
||||
|
||||
/** Exposes the trait's private renew-pricing math for contract assertions. */
|
||||
final class VipPricingProbe {
|
||||
use \AKSRT\Content\VipServicePackages;
|
||||
use \Jio\Content\VipServicePackages;
|
||||
|
||||
/** @param array<string,mixed> $pkg */
|
||||
public function price(array $pkg, string $action, array $renew, int $days): ?array {
|
||||
@@ -78,9 +78,9 @@ namespace {
|
||||
}
|
||||
}
|
||||
|
||||
use AKSRT\Admin\Schema\SchemaPayment;
|
||||
use AKSRT\Settings\PaymentRuntime;
|
||||
use AKSRT\Settings\Settings;
|
||||
use Jio\Admin\Schema\SchemaPayment;
|
||||
use Jio\Settings\PaymentRuntime;
|
||||
use Jio\Settings\Settings;
|
||||
|
||||
$vip = SchemaPayment::build()['sections']['vip'];
|
||||
$groups = [];
|
||||
@@ -184,7 +184,7 @@ namespace {
|
||||
// 或字符串;净化必须把值收敛回选项声明的类型,否则严格 in_array 校验会以
|
||||
// "has an invalid value" 拒绝一次完全合法的保存。
|
||||
$sanitize = (static function (): array {
|
||||
$provider = \AKSRT\Admin\SchemaProvider::get_instance();
|
||||
$provider = \Jio\Admin\SchemaProvider::get_instance();
|
||||
$cases = [
|
||||
'vip_html' => [
|
||||
'pay_user_vip_1_name' => '<b>会员</b>',
|
||||
|
||||
Reference in new issue
Block a user