sync: 同步 monkey-ai@weiyuan(ddc5b9443) 的 web/ 到 ui-optimization
- 合入 weiyuan 新功能前端:分佣 V2 / 伙伴工作台、智能路由、企业资金与分析、官网设置与预约演示等, semi-ui 已全部迁移到 antd 6 / @/components/ui,不重新引入 Semi - 分佣二级菜单与页头去重、伙伴入口探测(企业伙伴走企业中心「企业分佣」)、超管侧栏入口恢复 - 适配层 DatePicker / TimePicker 统一 onChange(Date|Date[]|null, 文本) 契约;生产构建剔除调试日志 - 图片链接刷新:同任务请求复用、后台刷新不弹全局错误、离页停止批量请求 - 恢复 bun.lock(与 package-lock.json 共存);docs 规范与 CHANGELOG 更新 - 停止跟踪 .env.playwright.local(本地登录凭据,已加入 .gitignore)
This commit is contained in:
@@ -0,0 +1,492 @@
|
||||
.commission-dashboard {
|
||||
--dash-line: var(--border-subtle, rgba(15, 23, 42, 0.12));
|
||||
--dash-muted: var(--text-tertiary, var(--text-secondary, #7b8798));
|
||||
--dash-primary: var(
|
||||
--commission-primary-solid,
|
||||
var(--commission-primary, var(--brand-primary, #165dff))
|
||||
);
|
||||
--dash-text: var(--text-primary, #1d2129);
|
||||
--dash-card: var(--surface-card, #fff);
|
||||
--dash-soft: color-mix(in srgb, var(--surface-bg-base) 52%, var(--dash-card));
|
||||
--dash-featured-bg: color-mix(
|
||||
in srgb,
|
||||
var(--commission-primary-soft, #e8f0ff) 62%,
|
||||
var(--dash-card)
|
||||
);
|
||||
--dash-featured-line: color-mix(
|
||||
in srgb,
|
||||
var(--dash-primary) 24%,
|
||||
var(--dash-line)
|
||||
);
|
||||
--dash-warning: color-mix(in srgb, #f59e0b 78%, var(--dash-text));
|
||||
--dash-danger: color-mix(in srgb, #f56c7a 82%, var(--dash-text));
|
||||
--dash-success: color-mix(in srgb, #22c55e 78%, var(--dash-text));
|
||||
--dash-warning-bg: color-mix(in srgb, #f59e0b 12%, var(--dash-card));
|
||||
--dash-danger-bg: color-mix(in srgb, #f56c7a 12%, var(--dash-card));
|
||||
--dash-grid: color-mix(in srgb, var(--dash-text) 11%, transparent);
|
||||
--dash-muted-bar: color-mix(
|
||||
in srgb,
|
||||
var(--dash-primary) 28%,
|
||||
var(--dash-card)
|
||||
);
|
||||
color: var(--dash-text);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-heading,
|
||||
.commission-dashboard-trend-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.commission-dashboard-heading {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.commission-dashboard h2 {
|
||||
margin: 0 0 6px;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.commission-dashboard h3 {
|
||||
margin: 0 0 18px;
|
||||
color: var(--dash-text);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.commission-dashboard p {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: var(--dash-muted);
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.commission-dashboard-period {
|
||||
flex-shrink: 0;
|
||||
border: 1px solid var(--dash-line);
|
||||
border-radius: 4px;
|
||||
background: var(--dash-card);
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
color: var(--dash-muted);
|
||||
}
|
||||
|
||||
.commission-dashboard-core,
|
||||
.commission-dashboard-support {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-stat,
|
||||
.commission-dashboard-card {
|
||||
border: 1px solid var(--dash-line);
|
||||
border-radius: 6px;
|
||||
background: var(--dash-card);
|
||||
box-shadow: none;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-stat {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.commission-dashboard-stat > span,
|
||||
.commission-dashboard-summary-item > span,
|
||||
.commission-dashboard-health-item > span {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
color: var(--dash-muted);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.commission-dashboard strong {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.commission-dashboard-stat > strong {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.7px;
|
||||
line-height: 1.3;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.commission-dashboard-stat > small {
|
||||
display: block;
|
||||
margin-top: 6px;
|
||||
color: var(--dash-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-stat--featured {
|
||||
background: var(--dash-featured-bg);
|
||||
border-color: var(--dash-featured-line);
|
||||
}
|
||||
|
||||
.commission-dashboard-stat--featured > strong {
|
||||
color: var(--dash-primary);
|
||||
}
|
||||
|
||||
.commission-dashboard-support {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-support .commission-dashboard-stat {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 14px 20px;
|
||||
}
|
||||
|
||||
.commission-dashboard-support .commission-dashboard-stat > strong {
|
||||
margin: 0;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.commission-dashboard p.commission-dashboard-note {
|
||||
margin-top: 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-main {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
|
||||
gap: 16px;
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-card {
|
||||
padding: 18px 20px;
|
||||
}
|
||||
|
||||
.commission-dashboard-todo-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.commission-dashboard button {
|
||||
font-family: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.commission-dashboard button:focus-visible {
|
||||
outline: 2px solid var(--dash-primary);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.commission-dashboard-summary-item {
|
||||
padding: 10px 12px;
|
||||
text-align: left;
|
||||
border: 1px solid var(--dash-line);
|
||||
border-radius: 4px;
|
||||
background: var(--dash-soft);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-summary-item > span {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-summary-item > strong {
|
||||
display: block;
|
||||
margin-top: 6px;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.commission-dashboard-primary {
|
||||
color: var(--dash-primary);
|
||||
}
|
||||
|
||||
.commission-dashboard-warning {
|
||||
color: var(--dash-warning);
|
||||
}
|
||||
|
||||
.commission-dashboard-danger {
|
||||
color: var(--dash-danger);
|
||||
}
|
||||
|
||||
.commission-dashboard-success {
|
||||
color: var(--dash-success);
|
||||
}
|
||||
|
||||
.commission-dashboard-todo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
border-bottom: 1px solid var(--dash-line);
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-todo:last-child {
|
||||
border: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-todo > div {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-tag {
|
||||
display: inline-block;
|
||||
border-radius: 4px;
|
||||
padding: 1px 7px;
|
||||
font-size: 11px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.commission-dashboard-tag--primary {
|
||||
background: var(--dash-featured-bg);
|
||||
color: var(--dash-primary);
|
||||
}
|
||||
|
||||
.commission-dashboard-tag--warning {
|
||||
background: var(--dash-warning-bg);
|
||||
color: var(--dash-warning);
|
||||
}
|
||||
|
||||
.commission-dashboard-tag--danger {
|
||||
background: var(--dash-danger-bg);
|
||||
color: var(--dash-danger);
|
||||
}
|
||||
|
||||
.commission-dashboard-todo h4 {
|
||||
margin: 5px 0 2px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.commission-dashboard-todo small {
|
||||
display: block;
|
||||
color: var(--dash-muted);
|
||||
font-size: 12px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.commission-dashboard-button {
|
||||
flex-shrink: 0;
|
||||
border: 1px solid var(--dash-line);
|
||||
border-radius: 4px;
|
||||
padding: 6px 12px;
|
||||
color: var(--text-secondary);
|
||||
background: var(--dash-card);
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.commission-dashboard-button--primary {
|
||||
border-color: var(--dash-primary);
|
||||
color: #fff;
|
||||
background: var(--dash-primary);
|
||||
}
|
||||
|
||||
.commission-dashboard-button:hover,
|
||||
.commission-dashboard-summary-item:hover,
|
||||
.commission-dashboard-health-item:hover {
|
||||
filter: brightness(0.97);
|
||||
}
|
||||
|
||||
.commission-dashboard-health h3 {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.commission-dashboard-health-item {
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
border: 0;
|
||||
border: 1px solid var(--dash-line);
|
||||
border-radius: 4px;
|
||||
padding: 16px;
|
||||
text-align: left;
|
||||
background: var(--dash-soft);
|
||||
}
|
||||
|
||||
.commission-dashboard-health-item > strong {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
font-size: 28px;
|
||||
line-height: 1.3;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.commission-dashboard-health-item > p {
|
||||
margin-top: 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-health-item > small {
|
||||
display: block;
|
||||
margin-top: 12px;
|
||||
color: var(--dash-primary);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-trend-heading {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.commission-dashboard-trend-heading h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-trend-heading > span {
|
||||
color: var(--dash-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-trend-error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin: 0 0 20px;
|
||||
border: 1px solid
|
||||
color-mix(in srgb, var(--dash-warning) 24%, var(--dash-line));
|
||||
border-radius: 4px;
|
||||
padding: 10px 12px;
|
||||
background: var(--dash-warning-bg);
|
||||
color: var(--dash-warning);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-chart {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-column {
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
text-align: center;
|
||||
color: var(--dash-muted);
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-plot {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
height: 145px;
|
||||
border-bottom: 1px solid var(--dash-line);
|
||||
background: repeating-linear-gradient(
|
||||
to top,
|
||||
transparent 0,
|
||||
transparent 47px,
|
||||
var(--dash-grid) 47px,
|
||||
var(--dash-grid) 48px
|
||||
);
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-bar {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 42%;
|
||||
max-width: 72px;
|
||||
min-height: 1px;
|
||||
border-radius: 2px 2px 0 0;
|
||||
background: var(--dash-muted-bar);
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-column--current .commission-dashboard-chart-bar {
|
||||
background: var(--dash-primary);
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-value {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: calc(100% + 8px);
|
||||
transform: translateX(-50%);
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-month {
|
||||
display: block;
|
||||
margin-top: 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-status {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
color: var(--dash-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
@media (max-width: 1150px) {
|
||||
.commission-dashboard-todo-summary {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.commission-dashboard-stat {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.commission-dashboard-stat > strong {
|
||||
font-size: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.commission-dashboard-main {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.commission-dashboard-core,
|
||||
.commission-dashboard-support {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.commission-dashboard-health-metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.commission-dashboard-heading,
|
||||
.commission-dashboard-trend-heading {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.commission-dashboard-card {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.commission-dashboard-health-metrics {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.commission-dashboard-todo {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.commission-dashboard-button {
|
||||
padding: 6px 9px;
|
||||
}
|
||||
|
||||
.commission-dashboard-chart-value {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user