Files
kate522andClaude Opus 5 35bb96e82f 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>
2026-11-01 20:05:04 +08:00

89 lines
6.1 KiB
CSS

/* 订单明细(jio_orders):列表 + 详情。复用 native-ui.css 的 --an-* 令牌,规则限定在 .jio-orders-page 下。 */
/* ---------- 状态视图 ---------- */
.jio-orders-page .jio-orders-views { display: flex; width: fit-content; max-width: 100%; }
/* ---------- 筛选栏 ---------- */
.jio-orders-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.jio-orders-filters label { display: inline-flex; margin: 0; }
.jio-orders-filters__search { flex: 1 1 240px; }
.jio-orders-filters__search input { width: 100%; }
.jio-orders-filters__range { display: inline-flex; align-items: center; gap: 6px; color: var(--an-muted); }
.jio-orders-page .jio-orders-filters__user { width: 96px; }
.jio-orders-filters__submit { display: inline-flex; gap: 8px; }
.jio-orders-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.jio-orders-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; color: var(--an-primary); background: var(--an-primary-soft); border-radius: 999px; font-size: 12px; line-height: 20px; }
.jio-orders-chip a { display: inline-flex; color: inherit; border-radius: 50%; text-decoration: none; }
.jio-orders-chip a:hover,
.jio-orders-chip a:focus { color: var(--an-danger); }
.jio-orders-chip .dashicons { width: 16px; height: 16px; font-size: 16px; }
/* ---------- 订单表 ---------- */
.jio-orders-table { min-width: 1080px; table-layout: fixed; }
.jio-orders-table .column-order { width: 19%; }
.jio-orders-table .column-user { width: 14%; }
.jio-orders-table .column-product { width: 20%; }
.jio-orders-table .column-amount { width: 13%; }
.jio-orders-table .column-status { width: 11%; }
.jio-orders-table .column-paid { width: 11%; }
.jio-orders-table .column-actions { width: 12%; }
.jio-orders-table td { vertical-align: top; }
.jio-orders-number { color: var(--an-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 600; text-decoration: none; word-break: break-all; }
a.jio-orders-number:hover,
a.jio-orders-number:focus { color: var(--an-primary); }
.jio-orders-product { display: block; color: var(--an-text); font-weight: 500; overflow-wrap: anywhere; }
.jio-orders-sub { margin-top: 4px; color: var(--an-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
/* 行内动作:每个按钮是一个独立 POST 表单 */
.jio-orders-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.jio-orders-action { display: inline-flex; margin: 0; }
.jio-orders-actions.is-stacked { flex-direction: column; }
.jio-orders-actions.is-stacked .jio-orders-action,
.jio-orders-actions.is-stacked .button { width: 100%; justify-content: center; }
.jio-orders-action .button[disabled] { opacity: .6; cursor: progress; }
/* ---------- 详情 ---------- */
.jio-orders-detail__header .jio-native-header__desc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jio-orders-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.jio-orders-detail__main,
.jio-orders-detail__side { min-width: 0; }
.jio-orders-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; margin: 0; }
.jio-orders-dl > div { min-width: 0; }
.jio-orders-dl dt { margin: 0 0 4px; color: var(--an-muted); font-size: 12px; }
.jio-orders-dl dd { margin: 0; color: var(--an-text); overflow-wrap: anywhere; }
.jio-orders-dl.is-compact { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.jio-orders-amounts { margin-top: 18px; padding: 12px 16px; background: var(--an-bg-soft); border-radius: var(--an-radius-sm); }
.jio-orders-amounts__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.jio-orders-amounts__row.is-total { margin-top: 4px; padding-top: 10px; color: var(--an-text); border-top: 1px solid var(--an-border); }
.jio-orders-amounts__row.is-total:first-child { margin-top: 0; padding-top: 4px; border-top: 0; }
.jio-orders-amounts__row.is-total .jio-native-amount { font-size: 18px; }
.jio-orders-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.jio-orders-timeline__item { --an-tone: var(--an-muted); position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; padding: 0 0 14px 22px; }
.jio-orders-timeline__item:last-child { padding-bottom: 0; }
.jio-orders-timeline__item::before { content: ""; position: absolute; top: 5px; left: 0; width: 10px; height: 10px; background: var(--an-tone); border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--an-tone) 18%, transparent); }
.jio-orders-timeline__item:not(:last-child)::after { content: ""; position: absolute; top: 18px; bottom: 2px; left: 4px; width: 2px; background: var(--an-border-soft); }
.jio-orders-timeline__item.is-success { --an-tone: var(--an-primary); }
.jio-orders-timeline__item.is-info { --an-tone: var(--an-info); }
.jio-orders-timeline__item.is-warning { --an-tone: var(--an-warning); }
.jio-orders-timeline__item.is-planned::before { background: #fff; border: 2px dashed var(--an-tone); box-sizing: border-box; box-shadow: none; }
.jio-orders-timeline__label { color: var(--an-text); font-weight: 500; }
.jio-orders-timeline time { color: var(--an-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.jio-orders-snapshot { max-height: 360px; margin: 0; padding: 12px; overflow: auto; color: var(--an-text); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; background: var(--an-bg-soft); border-radius: var(--an-radius-sm); }
.jio-orders-buyer .jio-native-user img { width: 36px; height: 36px; }
.jio-orders-note textarea { width: 100%; }
.jio-orders-note .jio-native-form-foot { margin-top: 10px; }
.jio-orders-detail__side .jio-native-callout { margin-bottom: 12px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
.jio-orders-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
.jio-orders-filters__search { flex-basis: 100%; }
.jio-orders-filters__range { flex-wrap: wrap; }
}