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>
293 lines
5.3 KiB
CSS
293 lines
5.3 KiB
CSS
/**
|
|
* Credits · 顶部余额徽章 / 积分明细 / 签到 / 邀请共用样式
|
|
*
|
|
* 仅在已登录 + cms_features.download_credit 启用时加载。
|
|
*/
|
|
|
|
/* ============ 用户下拉中的余额块 ============ */
|
|
.user-dropdown__credits {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
color: var(--color-ink);
|
|
font: 500 13px/1 var(--font-ui);
|
|
background: linear-gradient(135deg, rgba(240, 68, 148, 0.08) 0%, rgba(240, 68, 148, 0.02) 100%);
|
|
}
|
|
|
|
.user-dropdown__credits i {
|
|
color: #f59e0b;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-dropdown__credits-label {
|
|
color: var(--color-ink-2);
|
|
}
|
|
|
|
.user-dropdown__credits-value {
|
|
margin-left: auto;
|
|
font-weight: 700;
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
/* ============ 积分明细列表(profile 用) ============ */
|
|
.credits-log {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.credits-log__row {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto auto;
|
|
gap: var(--space-3, 12px);
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--color-line);
|
|
border-radius: var(--radius);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.credits-log__icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: var(--surface-2);
|
|
color: var(--color-ink-2);
|
|
}
|
|
|
|
.credits-log__icon.is-positive {
|
|
background: rgba(22, 163, 74, .1);
|
|
color: #16a34a;
|
|
}
|
|
|
|
.credits-log__icon.is-negative {
|
|
background: rgba(239, 68, 68, .1);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.credits-log__reason {
|
|
color: var(--color-ink);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.credits-log__remark {
|
|
font-weight: 400;
|
|
color: var(--color-ink-2);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.credits-log__date {
|
|
color: var(--color-ink-3);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.credits-log__delta {
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.credits-log__delta.is-positive {
|
|
color: #16a34a;
|
|
}
|
|
|
|
.credits-log__delta.is-negative {
|
|
color: #ef4444;
|
|
}
|
|
|
|
/* ============ 签到 panel ============ */
|
|
.jio-signin-status {
|
|
margin: 0 0 16px;
|
|
color: var(--color-ink-2);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.jio-signin-status strong {
|
|
color: var(--color-primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.jio-signin-tip {
|
|
margin: 0;
|
|
width: 100%;
|
|
color: var(--color-on-primary);
|
|
opacity: .85;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ============ 邀请 panel ============ */
|
|
.jio-invite-desc {
|
|
margin: 0 0 16px;
|
|
color: var(--color-ink-2);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.jio-invite-link-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.jio-invite-link {
|
|
flex: 1 1 auto;
|
|
height: 36px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--color-line);
|
|
border-radius: var(--radius);
|
|
background: var(--surface-2);
|
|
color: var(--color-ink);
|
|
font: 500 13px/1 var(--font-mono, monospace);
|
|
}
|
|
|
|
.jio-invite-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.jio-invite-stats > div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 12px;
|
|
background: var(--surface-2);
|
|
border-radius: var(--radius);
|
|
text-align: center;
|
|
}
|
|
|
|
.jio-invite-stats span {
|
|
color: var(--color-ink-3);
|
|
font: 500 12px/1 var(--font-ui);
|
|
}
|
|
|
|
.jio-invite-stats strong {
|
|
color: var(--color-primary);
|
|
font: 700 22px/1 var(--font-ui);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ============ VIP 会员卡片 ============ */
|
|
.uc-vip-card {
|
|
position: relative;
|
|
border-radius: var(--radius-lg, 12px);
|
|
overflow: hidden;
|
|
margin-bottom: 16px;
|
|
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
|
color: #fff;
|
|
}
|
|
|
|
.uc-vip-card--active {
|
|
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
|
|
}
|
|
|
|
.uc-vip-card__bg {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 120px;
|
|
height: 120px;
|
|
background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 70%);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.uc-vip-card__content {
|
|
position: relative;
|
|
padding: 20px;
|
|
}
|
|
|
|
.uc-vip-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.uc-vip-card__icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, .15);
|
|
font-size: 18px;
|
|
}
|
|
|
|
.uc-vip-card--active .uc-vip-card__icon {
|
|
background: rgba(255, 255, 255, .25);
|
|
}
|
|
|
|
.uc-vip-card__info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.uc-vip-card__label {
|
|
font: 700 16px/1 var(--font-ui);
|
|
}
|
|
|
|
.uc-vip-card__status {
|
|
font: 500 12px/1 var(--font-ui);
|
|
opacity: .8;
|
|
}
|
|
|
|
.uc-vip-card__status--active {
|
|
color: #4ade80;
|
|
opacity: 1;
|
|
}
|
|
|
|
.uc-vip-card__benefits {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.uc-vip-card__benefit {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius, 8px);
|
|
background: rgba(255, 255, 255, .1);
|
|
font: 500 12px/1 var(--font-ui);
|
|
}
|
|
|
|
.uc-vip-card__benefit i {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.uc-vip-card__btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px 24px;
|
|
border-radius: var(--radius, 8px);
|
|
background: rgba(255, 255, 255, .2);
|
|
border: 1px solid rgba(255, 255, 255, .3);
|
|
color: #fff;
|
|
font: 600 14px/1 var(--font-ui);
|
|
text-decoration: none;
|
|
transition: all .2s ease;
|
|
}
|
|
|
|
.uc-vip-card__btn:hover {
|
|
background: rgba(255, 255, 255, .3);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Configured paid-content tier icons. */
|
|
.jio-vip-level-icon {
|
|
display: block;
|
|
width: auto;
|
|
height: 1.1em;
|
|
max-width: 6em;
|
|
object-fit: contain;
|
|
}
|