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
+14
-14
@@ -1,18 +1,18 @@
|
||||
/**
|
||||
* AKSRT Page Edit — 前台编辑增强
|
||||
* Jio Page Edit — 前台编辑增强
|
||||
*
|
||||
* 提供前台编辑页面的增强功能:
|
||||
* - 自动保存草稿
|
||||
* - 标签建议
|
||||
* - 快捷键支持
|
||||
*
|
||||
* @package AKSRT
|
||||
* @package Jio
|
||||
*/
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var DRAFT_KEY_PREFIX = 'aksrt_draft_';
|
||||
var DRAFT_KEY_PREFIX = 'jio_draft_';
|
||||
|
||||
/**
|
||||
* 初始化页面编辑增强
|
||||
@@ -21,7 +21,7 @@
|
||||
*/
|
||||
function PageEdit(options) {
|
||||
this.options = Object.assign({
|
||||
formSelector: 'form[data-aksrt-edit]',
|
||||
formSelector: 'form[data-jio-edit]',
|
||||
titleSelector: 'input[name="title"], input[name="topic_title"]',
|
||||
contentSelector: 'textarea[name="content"], textarea[name="topic_content"]',
|
||||
tagsSelector: 'input[name="tags"], input[name="topic_tags"]',
|
||||
@@ -102,20 +102,20 @@
|
||||
this.lastSavedContent = content;
|
||||
|
||||
// 显示保存提示
|
||||
var toast = document.getElementById('aksrt-draft-toast');
|
||||
var toast = document.getElementById('jio-draft-toast');
|
||||
if (!toast) {
|
||||
toast = document.createElement('div');
|
||||
toast.id = 'aksrt-draft-toast';
|
||||
toast.className = 'aksrt-page-edit__toast';
|
||||
toast.id = 'jio-draft-toast';
|
||||
toast.className = 'jio-page-edit__toast';
|
||||
document.body.appendChild(toast);
|
||||
}
|
||||
toast.textContent = '草稿已自动保存';
|
||||
toast.classList.add('aksrt-page-edit__toast--visible');
|
||||
toast.classList.add('jio-page-edit__toast--visible');
|
||||
setTimeout(function () {
|
||||
toast.classList.remove('aksrt-page-edit__toast--visible');
|
||||
toast.classList.remove('jio-page-edit__toast--visible');
|
||||
}, 2000);
|
||||
} catch (e) {
|
||||
console.error('[AKSRT PageEdit] 保存草稿失败:', e);
|
||||
console.error('[Jio PageEdit] 保存草稿失败:', e);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
this.lastSavedContent = saved;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('[AKSRT PageEdit] 恢复草稿失败:', e);
|
||||
console.error('[Jio PageEdit] 恢复草稿失败:', e);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -190,13 +190,13 @@
|
||||
|
||||
// 自动初始化
|
||||
function autoInit() {
|
||||
var form = document.querySelector('form[data-aksrt-edit]');
|
||||
var form = document.querySelector('form[data-jio-edit]');
|
||||
if (form) {
|
||||
new PageEdit();
|
||||
}
|
||||
}
|
||||
|
||||
jQuery(document).off('auto_fun.aksrt-page-edit').on('auto_fun.aksrt-page-edit', autoInit);
|
||||
jQuery(document).off('auto_fun.jio-page-edit').on('auto_fun.jio-page-edit', autoInit);
|
||||
|
||||
window.AksrtPageEdit = PageEdit;
|
||||
window.JioPageEdit = PageEdit;
|
||||
})();
|
||||
Reference in new issue
Block a user