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>
135 lines
8.6 KiB
CSS
135 lines
8.6 KiB
CSS
/* 消息管理原生页。共享卡片 / 表单 / 筛选沿用 native-ui.css 的 --an-* 令牌。 */
|
|
.jio-messages-admin [hidden] { display: none; }
|
|
.jio-messages-admin__muted { color: var(--an-muted); }
|
|
.jio-messages-admin__sub { margin-top: 3px; color: var(--an-muted); font-size: 12px; }
|
|
.jio-messages-admin__sub code { padding: 0 4px; font-size: 12px; background: var(--an-bg-soft); }
|
|
.jio-messages-admin .jio-native-header__actions .button { display: inline-flex; align-items: center; gap: 4px; }
|
|
.jio-messages-admin .jio-native-header__actions .button .dashicons { margin: 0; line-height: 1; vertical-align: middle; }
|
|
.jio-messages-admin .jio-native-stat:focus-visible { outline: 2px solid var(--an-primary); outline-offset: 2px; }
|
|
|
|
/* ---- 列表内的筛选与批量工具栏 ---- */
|
|
.jio-messages-admin__toolbar { padding: 14px 20px; border-bottom: 1px solid var(--an-border-soft); }
|
|
.jio-messages-admin__toolbar .subsubsub { margin: 0 0 12px; }
|
|
.jio-messages-admin__toolbar .jio-native-filters { margin: 0; }
|
|
.jio-messages-admin__bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; }
|
|
.jio-messages-admin__selection { margin-right: auto; color: var(--an-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
.jio-messages-admin .button:disabled,
|
|
.jio-messages-admin .button:disabled:hover { color: var(--an-muted) !important; background: var(--an-bg-soft) !important; border-color: var(--an-border-soft) !important; cursor: not-allowed; }
|
|
.jio-messages-admin__danger.button { color: var(--an-danger); border-color: var(--an-danger); }
|
|
.jio-messages-admin__danger.button:hover,
|
|
.jio-messages-admin__danger.button:focus { color: #fff; background: var(--an-danger); border-color: var(--an-danger); }
|
|
|
|
.jio-messages-admin__table .column-title { width: 32%; }
|
|
.jio-messages-admin__table .column-type { width: 10%; }
|
|
.jio-messages-admin__table .column-user { width: 16%; }
|
|
.jio-messages-admin__table .column-read { width: 8%; }
|
|
.jio-messages-admin__table .column-time { width: 16%; }
|
|
.jio-messages-admin .jio-messages-admin__table .column-actions { width: 18%; padding-left: 20px; padding-right: 20px; text-align: center; }
|
|
.jio-messages-admin__table td { vertical-align: middle; }
|
|
.jio-messages-admin__table .row-title { font-weight: 600; word-break: break-word; line-height: 1.5; }
|
|
.jio-messages-admin__table tr.is-unread .row-title { font-weight: 700; }
|
|
.jio-messages-admin__table tr.is-unread > th:first-child { box-shadow: inset 3px 0 0 var(--an-primary); }
|
|
.jio-messages-admin__table tr.is-selected > td,
|
|
.jio-messages-admin__table tr.is-selected > th { background: var(--an-primary-soft); }
|
|
.jio-messages-admin__desc { margin-top: 3px; color: var(--an-text-2); word-break: break-word; }
|
|
.jio-msg-row-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
|
|
.jio-msg-row-actions button { padding: 0; font-size: 12px; text-decoration: none; white-space: nowrap; }
|
|
|
|
/* 类型徽章(可点击筛选) */
|
|
.jio-msg-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
color: var(--jio-msg-tone, var(--an-muted));
|
|
background: color-mix(in srgb, var(--jio-msg-tone, var(--an-muted)) 12%, #fff);
|
|
border: 1px solid color-mix(in srgb, var(--jio-msg-tone, var(--an-muted)) 30%, #fff);
|
|
}
|
|
.jio-msg-badge:hover,
|
|
.jio-msg-badge:focus { color: var(--jio-msg-tone, var(--an-muted)); border-color: var(--jio-msg-tone, var(--an-muted)); }
|
|
.jio-msg-badge.is-info { --jio-msg-tone: var(--an-info); }
|
|
.jio-msg-badge.is-success { --jio-msg-tone: #00a32a; }
|
|
.jio-msg-badge.is-danger { --jio-msg-tone: var(--an-danger); }
|
|
.jio-msg-badge.is-social { --jio-msg-tone: #8c5bd0; }
|
|
.jio-msg-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
|
|
.jio-msg-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
|
.jio-msg-state.is-unread { color: var(--an-primary); font-weight: 600; }
|
|
.jio-msg-state.is-read { color: var(--an-muted); }
|
|
.jio-msg-user { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; text-decoration: none; }
|
|
.jio-msg-user img { flex: none; border-radius: 50%; }
|
|
.jio-msg-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* ---- 发送 / 详情 / 二次确认共用弹窗 ---- */
|
|
html.jio-msg-modal-open { overflow: hidden; }
|
|
.jio-msg-dialog {
|
|
width: min(640px, calc(100vw - 32px));
|
|
max-height: calc(100vh - 64px);
|
|
padding: 0;
|
|
overflow: hidden;
|
|
color: var(--an-text-2);
|
|
background: var(--an-card);
|
|
border: 0;
|
|
border-radius: var(--an-radius);
|
|
box-shadow: 0 12px 48px rgba(15, 23, 42, .18);
|
|
}
|
|
.jio-msg-dialog::backdrop { background: rgba(15, 23, 42, .45); }
|
|
.jio-msg-dialog--confirm { width: min(440px, calc(100vw - 32px)); }
|
|
.jio-msg-dialog__frame { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
|
|
.jio-msg-dialog__head {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--an-border-soft);
|
|
}
|
|
.jio-msg-dialog .jio-msg-dialog__title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--an-text); font-size: 16px; font-weight: 600; line-height: 1.4; }
|
|
.jio-msg-dialog__title .dashicons { flex-shrink: 0; color: var(--an-primary); }
|
|
.jio-msg-dialog__close { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: var(--an-muted); background: transparent; border: 0; border-radius: var(--an-radius-sm); cursor: pointer; }
|
|
.jio-msg-dialog__close:hover,
|
|
.jio-msg-dialog__close:focus-visible { color: var(--an-text); background: var(--an-bg-soft); }
|
|
.jio-msg-dialog__body { min-height: 0; padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
|
|
.jio-msg-dialog__note { margin: 14px 0 0; font-size: 12px; }
|
|
.jio-msg-dialog__foot { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--an-border-soft); }
|
|
.jio-msg-dialog .jio-native-form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
|
|
.jio-msg-dialog--confirm .jio-msg-dialog__body p { margin: 0; line-height: 1.8; }
|
|
|
|
/* 分段单选:保留键盘语义,隐藏 WP 默认勾选标记。 */
|
|
.jio-msg-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
|
|
.jio-msg-modes legend { margin-bottom: 8px; padding: 0; }
|
|
.jio-msg-mode { position: relative; cursor: pointer; }
|
|
.jio-msg-mode input[type="radio"] { position: absolute; width: 1px; height: 1px; min-width: 0; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; opacity: 0; appearance: none; }
|
|
.jio-msg-mode > span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; color: var(--an-text-2); border: 1px solid var(--an-border); border-radius: var(--an-radius-sm); }
|
|
.jio-msg-mode input:checked + span { color: var(--an-primary); background: var(--an-primary-soft); border-color: var(--an-primary); font-weight: 600; }
|
|
.jio-msg-mode:hover > span { border-color: var(--an-primary); }
|
|
.jio-msg-mode input:focus-visible + span { outline: 2px solid var(--an-primary); outline-offset: 2px; }
|
|
.jio-msg-counter { align-self: flex-end; color: var(--an-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
.jio-msg-counter.is-over { color: var(--an-danger); font-weight: 600; }
|
|
|
|
/* 详情原样展示纯文本,保留换行,不插入消息中的 HTML。 */
|
|
.jio-msg-detail__title { margin: 0 0 16px; color: var(--an-text); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
.jio-msg-detail__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 14px; background: var(--an-bg-soft); border-radius: var(--an-radius-sm); }
|
|
.jio-msg-detail__meta dt { color: var(--an-muted); font-size: 12px; }
|
|
.jio-msg-detail__meta dd { margin: 4px 0 0; overflow-wrap: anywhere; }
|
|
.jio-msg-detail__content { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
.jio-msg-detail__link { display: block; margin-top: 16px; overflow-wrap: anywhere; }
|
|
|
|
@media (max-width: 782px) {
|
|
.jio-messages-admin__toolbar,
|
|
.jio-messages-admin__bulk { padding: 12px 14px; }
|
|
.jio-messages-admin__table .column-type,
|
|
.jio-messages-admin__table .column-read { display: none; }
|
|
}
|
|
@media (max-width: 480px) {
|
|
.jio-msg-dialog { max-height: calc(100dvh - 32px); }
|
|
.jio-msg-dialog__head,
|
|
.jio-msg-dialog__body,
|
|
.jio-msg-dialog__foot { padding-left: 14px; padding-right: 14px; }
|
|
.jio-msg-detail__meta { grid-template-columns: 1fr; }
|
|
}
|