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

+117 -117
View File
@@ -1,5 +1,5 @@
/**
* AKSRT download / cashier modal.
* Jio download / cashier modal.
*
* 下载弹窗走主题 design token(core/tokens.css);收银台沿用参考实现的
* colorful-header 结构(pay-card 契约测试锁定的类名不可改动)。
@@ -8,34 +8,34 @@
/* ============================================================
* 弹窗外壳
* ============================================================ */
.aksrt-dl-modal {
.jio-dl-modal {
position: fixed;
inset: 0;
z-index: 10000;
display: none;
}
.aksrt-dl-modal.is-open {
.jio-dl-modal.is-open {
display: flex;
align-items: center;
justify-content: center;
}
.aksrt-dl-modal__backdrop {
.jio-dl-modal__backdrop {
position: absolute;
inset: 0;
background: rgb(15 23 42 / 55%);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
.aksrt-dl-modal__backdrop {
.jio-dl-modal__backdrop {
background: rgb(15 23 42 / 38%);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
}
.aksrt-dl-modal__dialog {
.jio-dl-modal__dialog {
position: relative;
z-index: 1;
width: 420px;
@@ -43,7 +43,7 @@
margin: 0 auto;
}
.aksrt-dl-modal__panel {
.jio-dl-modal__panel {
position: relative;
width: 100%;
max-height: calc(100vh - 20px);
@@ -55,11 +55,11 @@
box-shadow: var(--shadow-lg, 0 12px 32px rgba(18, 18, 18, 0.1));
}
.aksrt-dl-modal.is-open .aksrt-dl-modal__dialog {
animation: aksrt-dl-modal-in 0.2s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
.jio-dl-modal.is-open .jio-dl-modal__dialog {
animation: jio-dl-modal-in 0.2s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
@keyframes aksrt-dl-modal-in {
@keyframes jio-dl-modal-in {
from {
transform: translateY(10px) scale(0.97);
opacity: 0;
@@ -72,8 +72,8 @@
}
/* 关闭按钮:下载视图中悬浮在渐变头部上 */
.aksrt-dl-modal__close,
.aksrt-cashier__close {
.jio-dl-modal__close,
.jio-cashier__close {
appearance: none;
position: absolute;
z-index: 9;
@@ -94,21 +94,21 @@
cursor: pointer;
}
.aksrt-dl-modal:not(.is-cashier) .aksrt-dl-modal__close {
.jio-dl-modal:not(.is-cashier) .jio-dl-modal__close {
color: #fff;
background: rgb(255 255 255 / 22%);
}
.aksrt-dl-modal:not(.is-cashier) .aksrt-dl-modal__close:hover {
.jio-dl-modal:not(.is-cashier) .jio-dl-modal__close:hover {
background: rgb(255 255 255 / 34%);
}
.aksrt-dl-modal:not(.is-cashier) .aksrt-dl-modal__close:focus-visible {
.jio-dl-modal:not(.is-cashier) .jio-dl-modal__close:focus-visible {
outline: 2px solid rgb(255 255 255 / 70%);
outline-offset: 1px;
}
.aksrt-dl-modal.is-cashier > .aksrt-dl-modal__dialog > .aksrt-dl-modal__panel > .aksrt-dl-modal__close {
.jio-dl-modal.is-cashier > .jio-dl-modal__dialog > .jio-dl-modal__panel > .jio-dl-modal__close {
display: none;
}
@@ -119,7 +119,7 @@
* 会自动切换到 html.dark 下的暗色主题色,无需本地另设配色。
* ============================================================ */
.aksrt-dl-modal__hero {
.jio-dl-modal__hero {
position: relative;
display: flex;
flex-direction: column;
@@ -133,22 +133,22 @@
}
/* 装饰光斑(对应 pay-widget 的 orb 语言) */
.aksrt-dl-modal__hero::before,
.aksrt-dl-modal__hero::after {
.jio-dl-modal__hero::before,
.jio-dl-modal__hero::after {
position: absolute;
border-radius: 100%;
background: rgb(255 255 255 / 14%);
content: '';
}
.aksrt-dl-modal__hero::before {
.jio-dl-modal__hero::before {
top: -46px;
right: -34px;
width: 150px;
height: 150px;
}
.aksrt-dl-modal__hero::after {
.jio-dl-modal__hero::after {
bottom: -60px;
left: -40px;
width: 130px;
@@ -156,7 +156,7 @@
opacity: 0.55;
}
.aksrt-dl-modal__hero-icon {
.jio-dl-modal__hero-icon {
display: flex;
align-items: center;
justify-content: center;
@@ -168,24 +168,24 @@
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%);
}
.aksrt-dl-modal__title {
.jio-dl-modal__title {
margin: 0;
color: inherit;
font: 800 20px/1.3 inherit;
}
.aksrt-dl-modal__subtitle {
.jio-dl-modal__subtitle {
margin: -2px 0 0;
font-size: 12.5px;
line-height: 1.55;
opacity: 0.82;
}
.aksrt-dl-modal__content {
.jio-dl-modal__content {
padding: 18px 22px 22px;
}
.aksrt-dl-modal__msg {
.jio-dl-modal__msg {
margin: 0 0 14px;
color: var(--muted-color, #777);
font-size: 14px;
@@ -193,7 +193,7 @@
}
/* 提取码卡片 */
.aksrt-dl-modal__code-card {
.jio-dl-modal__code-card {
padding: 13px 15px;
margin: 0 0 14px;
background: var(--surface-2, rgba(0, 0, 0, 0.04));
@@ -201,7 +201,7 @@
border-radius: 10px;
}
.aksrt-dl-modal__code-caption {
.jio-dl-modal__code-caption {
margin-bottom: 7px;
color: var(--muted-color, #777);
font-size: 11px;
@@ -209,7 +209,7 @@
letter-spacing: 0.08em;
}
.aksrt-dl-modal__code {
.jio-dl-modal__code {
display: block;
min-width: 0;
overflow: hidden;
@@ -220,7 +220,7 @@
white-space: nowrap;
}
.aksrt-dl-modal__code--wrap {
.jio-dl-modal__code--wrap {
font-size: 14px;
font-weight: 500;
letter-spacing: 0.02em;
@@ -229,13 +229,13 @@
}
/* 操作按钮 */
.aksrt-dl-modal__actions {
.jio-dl-modal__actions {
display: flex;
flex-direction: column;
gap: 10px;
}
.aksrt-dl-modal__btn {
.jio-dl-modal__btn {
appearance: none;
display: flex;
align-items: center;
@@ -257,17 +257,17 @@
transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.aksrt-dl-modal__btn:hover {
.jio-dl-modal__btn:hover {
background: var(--color-primary-hover, #e0307e);
transform: translateY(-1px);
}
.aksrt-dl-modal__btn:active {
.jio-dl-modal__btn:active {
background: var(--color-primary-active, #c9206d);
transform: scale(0.98);
}
.aksrt-dl-modal__btn:focus-visible {
.jio-dl-modal__btn:focus-visible {
outline: 2px solid var(--focus-color, #f04494);
outline-offset: 2px;
}
@@ -275,14 +275,14 @@
/* ============================================================
* 收银台(参考实现契约结构)
* ============================================================ */
.aksrt-dl-modal.is-cashier .aksrt-dl-modal__body {
.jio-dl-modal.is-cashier .jio-dl-modal__body {
position: relative;
min-height: 120px;
padding-top: 120px;
}
.aksrt-dl-modal .modal-colorful-header,
.aksrt-dl-modal .colorful-bg {
.jio-dl-modal .modal-colorful-header,
.jio-dl-modal .colorful-bg {
position: relative;
overflow: hidden;
color: var(--this-color);
@@ -290,7 +290,7 @@
background-size: 120%;
}
.aksrt-dl-modal .modal-colorful-header {
.jio-dl-modal .modal-colorful-header {
position: absolute;
top: 0;
right: 0;
@@ -302,9 +302,9 @@
border-radius: var(--radius-xl, 12px) var(--radius-xl, 12px) 0 0;
}
.aksrt-dl-modal .colorful-bg > .colorful-make,
.aksrt-dl-modal .colorful-bg > .colorful-make::before,
.aksrt-dl-modal .colorful-bg > .colorful-make::after {
.jio-dl-modal .colorful-bg > .colorful-make,
.jio-dl-modal .colorful-bg > .colorful-make::before,
.jio-dl-modal .colorful-bg > .colorful-make::after {
position: absolute;
color: var(--this-color);
background: var(--this-bg);
@@ -312,15 +312,15 @@
content: '';
}
.aksrt-dl-modal .colorful-bg > .colorful-make {
.jio-dl-modal .colorful-bg > .colorful-make {
top: 60%;
bottom: 0;
width: 323px;
height: 290px;
animation: aksrt-cashier-colorful 120s linear infinite;
animation: jio-cashier-colorful 120s linear infinite;
}
.aksrt-dl-modal .colorful-bg > .colorful-make::before {
.jio-dl-modal .colorful-bg > .colorful-make::before {
top: -325px;
right: -558px;
bottom: 0;
@@ -330,7 +330,7 @@
transform: rotate(341deg);
}
.aksrt-dl-modal .colorful-bg > .colorful-make::after {
.jio-dl-modal .colorful-bg > .colorful-make::after {
top: -170px;
bottom: 0;
left: -262px;
@@ -340,22 +340,22 @@
transform: rotate(326deg);
}
.aksrt-dl-modal .colorful-bg > .colorful-make + * {
.jio-dl-modal .colorful-bg > .colorful-make + * {
position: relative;
}
.aksrt-dl-modal .aksrt-cashier__close {
.jio-dl-modal .jio-cashier__close {
color: var(--this-color, #fff);
font-size: 18px;
opacity: 0.6;
}
.aksrt-dl-modal .modal-pay-body {
.jio-dl-modal .modal-pay-body {
padding: 15px;
margin-top: 0;
}
.aksrt-cashier__loading {
.jio-cashier__loading {
min-height: 70px;
margin: 0;
line-height: 70px;
@@ -363,144 +363,144 @@
}
/* 收银台内部使用的工具类作用域 */
.aksrt-dl-modal .text-center {
.jio-dl-modal .text-center {
text-align: center;
}
.aksrt-dl-modal .em2x {
.jio-dl-modal .em2x {
font-size: 2em;
}
.aksrt-dl-modal .em09 {
.jio-dl-modal .em09 {
font-size: 0.9em;
}
.aksrt-dl-modal .em12 {
.jio-dl-modal .em12 {
font-size: 1.2em;
}
.aksrt-dl-modal .em14 {
.jio-dl-modal .em14 {
font-size: 1.4em;
}
.aksrt-dl-modal .mt6 {
.jio-dl-modal .mt6 {
margin-top: 6px;
}
.aksrt-dl-modal .mt10 {
.jio-dl-modal .mt10 {
margin-top: 10px;
}
.aksrt-dl-modal .mb6 {
.jio-dl-modal .mb6 {
margin-bottom: 6px;
}
.aksrt-dl-modal .mb10 {
.jio-dl-modal .mb10 {
margin-bottom: 10px;
}
.aksrt-dl-modal .mb20 {
.jio-dl-modal .mb20 {
margin-bottom: 20px;
}
.aksrt-dl-modal .mr6 {
.jio-dl-modal .mr6 {
margin-right: 6px;
}
.aksrt-dl-modal .ml6 {
.jio-dl-modal .ml6 {
margin-left: 6px;
}
.aksrt-dl-modal .ml10 {
.jio-dl-modal .ml10 {
margin-left: 10px;
}
.aksrt-dl-modal .px12 {
.jio-dl-modal .px12 {
font-size: 12px;
}
.aksrt-dl-modal .padding-h6 {
.jio-dl-modal .padding-h6 {
padding-top: 6px;
padding-bottom: 6px;
}
.aksrt-dl-modal .padding-h10 {
.jio-dl-modal .padding-h10 {
padding-top: 10px;
padding-bottom: 10px;
}
.aksrt-dl-modal .padding-w10 {
.jio-dl-modal .padding-w10 {
padding-right: 10px;
padding-left: 10px;
}
.aksrt-dl-modal .line-16 {
.jio-dl-modal .line-16 {
line-height: 1.6;
}
.aksrt-dl-modal .flex {
.jio-dl-modal .flex {
display: flex;
}
.aksrt-dl-modal .flex.jsb {
.jio-dl-modal .flex.jsb {
justify-content: space-between;
}
.aksrt-dl-modal .flex.jc {
.jio-dl-modal .flex.jc {
justify-content: center;
}
.aksrt-dl-modal .flex.ac {
.jio-dl-modal .flex.ac {
align-items: center;
}
.aksrt-dl-modal .flex.ab {
.jio-dl-modal .flex.ab {
align-items: baseline;
}
.aksrt-dl-modal .flex.hh {
.jio-dl-modal .flex.hh {
flex-direction: column;
}
.aksrt-dl-modal .flex-auto {
.jio-dl-modal .flex-auto {
flex: auto;
}
.aksrt-dl-modal .pointer {
.jio-dl-modal .pointer {
cursor: pointer;
}
.aksrt-dl-modal .font-bold {
.jio-dl-modal .font-bold {
font-weight: 700;
}
.aksrt-dl-modal .muted-2-color {
.jio-dl-modal .muted-2-color {
color: var(--muted-2-color, #8b93a7);
}
.aksrt-dl-modal .muted-3-color {
.jio-dl-modal .muted-3-color {
color: var(--muted-3-color, #a9afbe);
}
.aksrt-dl-modal .c-red {
.jio-dl-modal .c-red {
color: #ff5473;
}
.aksrt-dl-modal .c-green {
.jio-dl-modal .c-green {
color: #20b759;
}
.aksrt-dl-modal .c-blue-2 {
.jio-dl-modal .c-blue-2 {
color: #5c7cff;
}
.aksrt-dl-modal .muted-box {
.jio-dl-modal .muted-box {
padding: 10px;
background: var(--muted-border-color, rgb(132 145 165 / 10%));
border-radius: var(--radius-sm, 4px);
}
.aksrt-dl-modal .pay-tag {
.jio-dl-modal .pay-tag {
display: inline-block;
padding: 2px 7px;
color: #2997f7;
@@ -510,18 +510,18 @@
border-radius: var(--radius-sm, 4px);
}
.aksrt-cashier__price-row {
.jio-cashier__price-row {
gap: 12px;
min-height: 27px;
}
.aksrt-cashier__regular-price {
.jio-cashier__regular-price {
display: flex;
gap: 10px;
align-items: baseline;
}
.aksrt-dl-modal .original-price {
.jio-dl-modal .original-price {
position: relative;
display: inline-flex;
align-items: baseline;
@@ -531,7 +531,7 @@
font-size: 14px;
}
.aksrt-dl-modal .original-price::before {
.jio-dl-modal .original-price::before {
position: absolute;
top: 50%;
left: 0;
@@ -543,7 +543,7 @@
content: '';
}
.aksrt-cashier__vip-mark {
.jio-cashier__vip-mark {
display: inline-block;
padding: 0 4px;
margin-left: 3px;
@@ -556,14 +556,14 @@
border-radius: var(--radius-sm, 4px);
}
.aksrt-cashier__asset-icon {
.jio-cashier__asset-icon {
width: 1.2em;
margin-right: 6px;
color: #5c7cff;
text-align: center;
}
.aksrt-dl-modal .payment-method-radio {
.jio-dl-modal .payment-method-radio {
min-width: 0;
padding: 5px;
text-align: center;
@@ -571,37 +571,37 @@
border-radius: var(--radius-sm, 4px);
}
.aksrt-dl-modal .payment-method-radio > * {
.jio-dl-modal .payment-method-radio > * {
margin: 3px;
}
.aksrt-dl-modal .payment-method-radio img {
.jio-dl-modal .payment-method-radio img {
width: auto;
max-width: 68px;
height: 35px;
object-fit: contain;
}
.aksrt-dl-modal .payment-method-radio + .payment-method-radio {
.jio-dl-modal .payment-method-radio + .payment-method-radio {
margin-left: 10px;
}
.aksrt-dl-modal .hollow-radio.active {
.jio-dl-modal .hollow-radio.active {
color: var(--focus-color, #2997f7);
background: var(--focus-color-opacity1, rgb(41 151 247 / 10%));
border-color: var(--focus-color, #2997f7);
}
.aksrt-dl-modal .payment-method-radio:focus {
.jio-dl-modal .payment-method-radio:focus {
outline: 0;
box-shadow: none;
}
.aksrt-cashier__balance[hidden] {
.jio-cashier__balance[hidden] {
display: none;
}
.aksrt-dl-modal .form-control {
.jio-dl-modal .form-control {
display: block;
width: 100%;
min-height: 36px;
@@ -613,33 +613,33 @@
border-radius: var(--radius-sm, 4px);
}
.aksrt-dl-modal .relative {
.jio-dl-modal .relative {
position: relative;
}
.aksrt-dl-modal .abs-right {
.jio-dl-modal .abs-right {
position: absolute;
top: 50%;
right: 3px;
transform: translateY(-50%);
}
.aksrt-dl-modal .coupon-submit {
.jio-dl-modal .coupon-submit {
padding: 0.3em 0.8em;
}
.aksrt-cashier__coupon-desc,
.aksrt-cashier__coupon-ok {
.jio-cashier__coupon-desc,
.jio-cashier__coupon-ok {
margin-top: 6px;
font-size: 12px;
line-height: 1.5;
}
.aksrt-cashier__coupon-ok {
.jio-cashier__coupon-ok {
color: #20b759;
}
.aksrt-cashier__warn {
.jio-cashier__warn {
padding: 8px 10px;
color: #ff5473;
font-size: 13px;
@@ -649,17 +649,17 @@
border-radius: var(--radius-sm, 4px);
}
.aksrt-dl-modal .but.initiate-pay {
.jio-dl-modal .but.initiate-pay {
padding: 0.6em 1em;
}
.aksrt-dl-modal .modal-buts.but-average {
.jio-dl-modal .modal-buts.but-average {
overflow: hidden;
border-top: 1px solid var(--main-border-color, #e5e7eb);
border-radius: 0 0 var(--main-radius, 8px) var(--main-radius, 8px);
}
.aksrt-dl-modal .modal-buts.but-average > .but {
.jio-dl-modal .modal-buts.but-average > .but {
flex: auto;
padding: 0.8em;
margin: 0 !important;
@@ -667,11 +667,11 @@
border-radius: 0;
}
.aksrt-dl-modal .modal-buts.but-average > .but + .but {
.jio-dl-modal .modal-buts.but-average > .but + .but {
border-left: 1px solid var(--main-border-color, #e5e7eb);
}
.aksrt-cashier__recharge {
.jio-cashier__recharge {
display: block;
text-decoration: none;
}
@@ -721,11 +721,11 @@
border-radius: 10px;
}
body.aksrt-dl-modal-open {
body.jio-dl-modal-open {
overflow: hidden;
}
@keyframes aksrt-cashier-colorful {
@keyframes jio-cashier-colorful {
from {
transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}
@@ -744,25 +744,25 @@ body.aksrt-dl-modal-open {
}
@media (max-width: 480px) {
.aksrt-dl-modal__hero {
.jio-dl-modal__hero {
padding: 24px 44px 20px;
}
.aksrt-dl-modal__content {
.jio-dl-modal__content {
padding: 16px 16px 18px;
}
.aksrt-dl-modal__code {
.jio-dl-modal__code {
font-size: 18px;
}
}
@media (prefers-reduced-motion: reduce) {
.aksrt-dl-modal.is-open .aksrt-dl-modal__dialog {
.jio-dl-modal.is-open .jio-dl-modal__dialog {
animation: none;
}
.aksrt-dl-modal .colorful-bg > .colorful-make {
.jio-dl-modal .colorful-bg > .colorful-make {
animation: none;
}
}