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
@@ -1,14 +1,14 @@
|
||||
/**
|
||||
* AKSRT Extended Components — 时间轴 / 步骤向导 / 九宫格 / 定价卡片 /
|
||||
* Jio Extended Components — 时间轴 / 步骤向导 / 九宫格 / 定价卡片 /
|
||||
* Toggle 开关 / 自定义复选框 / 数字步进器
|
||||
* ------------------------------------------------------------
|
||||
* 全部使用 aksrt- 前缀,保持原生语义可访问性。
|
||||
* 全部使用 jio- 前缀,保持原生语义可访问性。
|
||||
*/
|
||||
|
||||
/* ============================================================
|
||||
* 1. 时间轴 — .aksrt-timeline
|
||||
* 1. 时间轴 — .jio-timeline
|
||||
* ============================================================ */
|
||||
.aksrt-timeline {
|
||||
.jio-timeline {
|
||||
position: relative;
|
||||
padding-left: 28px;
|
||||
margin: 0;
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
/* 竖线 */
|
||||
.aksrt-timeline::before {
|
||||
.jio-timeline::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
@@ -27,17 +27,17 @@
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__item {
|
||||
.jio-timeline__item {
|
||||
position: relative;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__item:last-child {
|
||||
.jio-timeline__item:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
/* 圆点 */
|
||||
.aksrt-timeline__dot {
|
||||
.jio-timeline__dot {
|
||||
position: absolute;
|
||||
left: -24px;
|
||||
top: 4px;
|
||||
@@ -51,59 +51,59 @@
|
||||
}
|
||||
|
||||
/* 空心圆点变体 */
|
||||
.aksrt-timeline__dot--outline {
|
||||
.jio-timeline__dot--outline {
|
||||
background: var(--surface-1, #fff);
|
||||
border: 2px solid var(--color-primary);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* 灰色圆点 — 已完成/已过去 */
|
||||
.aksrt-timeline__dot--muted {
|
||||
.jio-timeline__dot--muted {
|
||||
background: var(--color-ink-4, #999);
|
||||
box-shadow: 0 0 0 2px var(--surface-2, #eee);
|
||||
}
|
||||
|
||||
.aksrt-timeline__time {
|
||||
.jio-timeline__time {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: var(--color-ink-4, #999);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__title {
|
||||
.jio-timeline__title {
|
||||
font-weight: 600;
|
||||
color: var(--color-ink, #333);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.aksrt-timeline__content {
|
||||
.jio-timeline__content {
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-3, #777);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 2. 步骤向导 — .aksrt-steps
|
||||
* 2. 步骤向导 — .jio-steps
|
||||
* ============================================================ */
|
||||
.aksrt-steps {
|
||||
.jio-steps {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
counter-reset: aksrt-step;
|
||||
counter-reset: jio-step;
|
||||
}
|
||||
|
||||
.aksrt-steps__item {
|
||||
.jio-steps__item {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
counter-increment: aksrt-step;
|
||||
counter-increment: jio-step;
|
||||
}
|
||||
|
||||
/* 连接线 */
|
||||
.aksrt-steps__item:not(:last-child)::after {
|
||||
.jio-steps__item:not(:last-child)::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
@@ -113,7 +113,7 @@
|
||||
background: var(--color-line, rgba(50, 50, 50, 0.1));
|
||||
}
|
||||
|
||||
.aksrt-steps__icon {
|
||||
.jio-steps__icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -129,48 +129,48 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.aksrt-steps__item--active .aksrt-steps__icon {
|
||||
.jio-steps__item--active .jio-steps__icon {
|
||||
background: var(--color-primary);
|
||||
color: var(--color-on-primary, #fff);
|
||||
}
|
||||
|
||||
.aksrt-steps__item--done .aksrt-steps__icon {
|
||||
.jio-steps__item--done .jio-steps__icon {
|
||||
background: var(--color-success);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.aksrt-steps__item--done:not(:last-child)::after {
|
||||
.jio-steps__item--done:not(:last-child)::after {
|
||||
background: var(--color-success);
|
||||
}
|
||||
|
||||
.aksrt-steps__label {
|
||||
.jio-steps__label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--color-ink-3, #777);
|
||||
}
|
||||
|
||||
.aksrt-steps__item--active .aksrt-steps__label {
|
||||
.jio-steps__item--active .jio-steps__label {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-steps__item--done .aksrt-steps__label {
|
||||
.jio-steps__item--done .jio-steps__label {
|
||||
color: var(--color-success);
|
||||
}
|
||||
|
||||
/* 垂直模式 */
|
||||
.aksrt-steps--vertical {
|
||||
.jio-steps--vertical {
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.aksrt-steps--vertical .aksrt-steps__item {
|
||||
.jio-steps--vertical .jio-steps__item {
|
||||
text-align: left;
|
||||
padding-left: 28px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.aksrt-steps--vertical .aksrt-steps__item:not(:last-child)::after {
|
||||
.jio-steps--vertical .jio-steps__item:not(:last-child)::after {
|
||||
top: 34px;
|
||||
left: 36px;
|
||||
right: auto;
|
||||
@@ -178,16 +178,16 @@
|
||||
height: calc(100% - 34px);
|
||||
}
|
||||
|
||||
.aksrt-steps--vertical .aksrt-steps__icon {
|
||||
.jio-steps--vertical .jio-steps__icon {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 3. 九宫格 — .aksrt-img-grid
|
||||
* 3. 九宫格 — .jio-img-grid
|
||||
* ============================================================ */
|
||||
.aksrt-img-grid {
|
||||
.jio-img-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 4px;
|
||||
@@ -195,7 +195,7 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aksrt-img-grid img {
|
||||
.jio-img-grid img {
|
||||
width: 100%;
|
||||
aspect-ratio: 1;
|
||||
object-fit: cover;
|
||||
@@ -204,23 +204,23 @@
|
||||
transition: transform .2s ease;
|
||||
}
|
||||
|
||||
.aksrt-img-grid img:hover {
|
||||
.jio-img-grid img:hover {
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
/* 自适应列数 */
|
||||
.aksrt-img-grid--2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.aksrt-img-grid--4 { grid-template-columns: repeat(4, 1fr); }
|
||||
.jio-img-grid--2 { grid-template-columns: repeat(2, 1fr); }
|
||||
.jio-img-grid--4 { grid-template-columns: repeat(4, 1fr); }
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.aksrt-img-grid--4 { grid-template-columns: repeat(3, 1fr); }
|
||||
.jio-img-grid--4 { grid-template-columns: repeat(3, 1fr); }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 5. Toggle 开关 — .aksrt-toggle (纯 CSS + :checked)
|
||||
* 5. Toggle 开关 — .jio-toggle (纯 CSS + :checked)
|
||||
* 保持原生 <input> 可访问性
|
||||
* ============================================================ */
|
||||
.aksrt-toggle {
|
||||
.jio-toggle {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -229,7 +229,7 @@
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.aksrt-toggle__input {
|
||||
.jio-toggle__input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
@@ -237,23 +237,23 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.aksrt-toggle__track {
|
||||
.jio-toggle__track {
|
||||
position: relative;
|
||||
width: var(--aksrt-toggle-w, 44px);
|
||||
height: var(--aksrt-toggle-h, 24px);
|
||||
width: var(--jio-toggle-w, 44px);
|
||||
height: var(--jio-toggle-h, 24px);
|
||||
background: var(--surface-3, #e8e8e8);
|
||||
border-radius: var(--aksrt-toggle-h, 24px);
|
||||
border-radius: var(--jio-toggle-h, 24px);
|
||||
transition: background .2s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.aksrt-toggle__track::after {
|
||||
.jio-toggle__track::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: calc(var(--aksrt-toggle-h, 24px) - 4px);
|
||||
height: calc(var(--aksrt-toggle-h, 24px) - 4px);
|
||||
width: calc(var(--jio-toggle-h, 24px) - 4px);
|
||||
height: calc(var(--jio-toggle-h, 24px) - 4px);
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
|
||||
@@ -261,35 +261,35 @@
|
||||
}
|
||||
|
||||
/* Checked */
|
||||
.aksrt-toggle__input:checked + .aksrt-toggle__track {
|
||||
.jio-toggle__input:checked + .jio-toggle__track {
|
||||
background: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-toggle__input:checked + .aksrt-toggle__track::after {
|
||||
transform: translateX(calc(var(--aksrt-toggle-w, 44px) - var(--aksrt-toggle-h, 24px)));
|
||||
.jio-toggle__input:checked + .jio-toggle__track::after {
|
||||
transform: translateX(calc(var(--jio-toggle-w, 44px) - var(--jio-toggle-h, 24px)));
|
||||
}
|
||||
|
||||
/* Focus-visible */
|
||||
.aksrt-toggle__input:focus-visible + .aksrt-toggle__track {
|
||||
.jio-toggle__input:focus-visible + .jio-toggle__track {
|
||||
box-shadow: var(--focus-ring, 0 0 2px 3px rgba(253, 83, 161, 0.4));
|
||||
}
|
||||
|
||||
/* Disabled */
|
||||
.aksrt-toggle__input:disabled + .aksrt-toggle__track {
|
||||
.jio-toggle__input:disabled + .jio-toggle__track {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.aksrt-toggle__label {
|
||||
.jio-toggle__label {
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 6. 自定义复选框 — .aksrt-checkbox (纯 CSS + :checked)
|
||||
* 6. 自定义复选框 — .jio-checkbox (纯 CSS + :checked)
|
||||
* 保持原生 <input type="checkbox"> 可访问性
|
||||
* ============================================================ */
|
||||
.aksrt-checkbox {
|
||||
.jio-checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
@@ -297,7 +297,7 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input {
|
||||
.jio-checkbox__input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
@@ -305,7 +305,7 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__box {
|
||||
.jio-checkbox__box {
|
||||
position: relative;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
@@ -317,7 +317,7 @@
|
||||
}
|
||||
|
||||
/* 打勾 SVG */
|
||||
.aksrt-checkbox__box::after {
|
||||
.jio-checkbox__box::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
@@ -331,46 +331,46 @@
|
||||
transition: transform .15s ease;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:checked + .aksrt-checkbox__box {
|
||||
.jio-checkbox__input:checked + .jio-checkbox__box {
|
||||
background: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:checked + .aksrt-checkbox__box::after {
|
||||
.jio-checkbox__input:checked + .jio-checkbox__box::after {
|
||||
transform: rotate(45deg) scale(1);
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:focus-visible + .aksrt-checkbox__box {
|
||||
.jio-checkbox__input:focus-visible + .jio-checkbox__box {
|
||||
box-shadow: var(--focus-ring, 0 0 2px 3px rgba(253, 83, 161, 0.4));
|
||||
}
|
||||
|
||||
.aksrt-checkbox__input:disabled + .aksrt-checkbox__box {
|
||||
.jio-checkbox__input:disabled + .jio-checkbox__box {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.aksrt-checkbox__label {
|
||||
.jio-checkbox__label {
|
||||
font-size: 14px;
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 7. 数字步进器 — .aksrt-stepper
|
||||
* 7. 数字步进器 — .jio-stepper
|
||||
* ============================================================ */
|
||||
.aksrt-stepper {
|
||||
.jio-stepper {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
border: 1px solid var(--color-line, rgba(50, 50, 50, 0.1));
|
||||
border-radius: var(--radius, 8px);
|
||||
overflow: hidden;
|
||||
height: var(--aksrt-stepper-h, 36px);
|
||||
height: var(--jio-stepper-h, 36px);
|
||||
}
|
||||
|
||||
.aksrt-stepper__btn {
|
||||
.jio-stepper__btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: var(--aksrt-stepper-h, 36px);
|
||||
width: var(--jio-stepper-h, 36px);
|
||||
height: 100%;
|
||||
background: var(--surface-2, #eee);
|
||||
color: var(--color-ink-2, #4e5358);
|
||||
@@ -382,17 +382,17 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.aksrt-stepper__btn:hover {
|
||||
.jio-stepper__btn:hover {
|
||||
background: var(--surface-3, #e8e8e8);
|
||||
color: var(--color-ink, #333);
|
||||
}
|
||||
|
||||
.aksrt-stepper__btn:disabled {
|
||||
.jio-stepper__btn:disabled {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.aksrt-stepper__input {
|
||||
.jio-stepper__input {
|
||||
width: 48px;
|
||||
height: 100%;
|
||||
border: none;
|
||||
@@ -404,25 +404,25 @@
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
.aksrt-stepper__input::-webkit-outer-spin-button,
|
||||
.aksrt-stepper__input::-webkit-inner-spin-button {
|
||||
.jio-stepper__input::-webkit-outer-spin-button,
|
||||
.jio-stepper__input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.aksrt-stepper__input:focus {
|
||||
.jio-stepper__input:focus {
|
||||
outline: none;
|
||||
background: var(--color-primary-softer, rgba(240, 68, 148, 0.05));
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 8. 头像尺寸变量系统 — .aksrt-avatar--{size}
|
||||
* 8. 头像尺寸变量系统 — .jio-avatar--{size}
|
||||
* ============================================================ */
|
||||
.aksrt-avatar--xs { width: var(--aksrt-avatar-size-xs); height: var(--aksrt-avatar-size-xs); }
|
||||
.aksrt-avatar--sm { width: var(--aksrt-avatar-size-sm); height: var(--aksrt-avatar-size-sm); }
|
||||
.aksrt-avatar { width: var(--aksrt-avatar-size); height: var(--aksrt-avatar-size); }
|
||||
.aksrt-avatar--lg { width: var(--aksrt-avatar-size-lg); height: var(--aksrt-avatar-size-lg); }
|
||||
.aksrt-avatar--xl { width: var(--aksrt-avatar-size-xl); height: var(--aksrt-avatar-size-xl); }
|
||||
.jio-avatar--xs { width: var(--jio-avatar-size-xs); height: var(--jio-avatar-size-xs); }
|
||||
.jio-avatar--sm { width: var(--jio-avatar-size-sm); height: var(--jio-avatar-size-sm); }
|
||||
.jio-avatar { width: var(--jio-avatar-size); height: var(--jio-avatar-size); }
|
||||
.jio-avatar--lg { width: var(--jio-avatar-size-lg); height: var(--jio-avatar-size-lg); }
|
||||
.jio-avatar--xl { width: var(--jio-avatar-size-xl); height: var(--jio-avatar-size-xl); }
|
||||
|
||||
/* ============================================================
|
||||
* 8b. 头像形状统一 — 圆形基底
|
||||
@@ -441,43 +441,43 @@ img.avatar-lg,
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 9. 涟漪点击效果 — .aksrt-ripple
|
||||
* 容器加此类,点击时 JS 注入 span.aksrt-ripple__wave
|
||||
* 9. 涟漪点击效果 — .jio-ripple
|
||||
* 容器加此类,点击时 JS 注入 span.jio-ripple__wave
|
||||
* ============================================================ */
|
||||
.aksrt-ripple {
|
||||
.jio-ripple {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.aksrt-ripple__wave {
|
||||
.jio-ripple__wave {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
transform: scale(0);
|
||||
animation: aksrtRippleWave .6s ease-out forwards;
|
||||
animation: jioRippleWave .6s ease-out forwards;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@keyframes aksrtRippleWave {
|
||||
@keyframes jioRippleWave {
|
||||
to {
|
||||
transform: scale(4);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Runtime broad ripple (.aksrt-wave injected into .but/.btn).
|
||||
/* Runtime broad ripple (.jio-wave injected into .but/.btn).
|
||||
* MUST stay out of flow — missing absolute made header CTA grow on click. */
|
||||
.aksrt-wave {
|
||||
.jio-wave {
|
||||
position: absolute !important;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
pointer-events: none !important;
|
||||
z-index: 1;
|
||||
transform: scale(0);
|
||||
animation: aksrtWaveRipple 0.6s ease-out forwards;
|
||||
animation: jioWaveRipple 0.6s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes aksrtWaveRipple {
|
||||
@keyframes jioWaveRipple {
|
||||
to {
|
||||
transform: scale(1);
|
||||
opacity: 0;
|
||||
|
||||
Reference in new issue
Block a user