feat(platform): add realtime service overview

This commit is contained in:
lingniu
2026-07-06 02:50:14 +08:00
parent 268c350e63
commit 22f945e0aa
3 changed files with 232 additions and 0 deletions

View File

@@ -4112,6 +4112,109 @@ body {
gap: 8px;
}
.vp-realtime-service-overview {
margin-bottom: 16px;
border: 1px solid rgba(22, 100, 255, 0.18);
border-radius: var(--vp-radius);
background: #ffffff;
display: grid;
grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.36fr) minmax(190px, 0.58fr);
overflow: hidden;
}
.vp-realtime-service-overview-copy {
padding: 18px;
border-right: 1px solid var(--vp-border);
background: #f7fbff;
display: grid;
gap: 10px;
align-content: start;
}
.vp-realtime-service-overview-metrics {
padding: 14px;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.vp-realtime-service-overview-metric {
min-height: 116px;
padding: 12px;
border: 1px solid rgba(22, 100, 255, 0.13);
border-radius: 8px;
background: #fbfcff;
color: inherit;
cursor: pointer;
font: inherit;
text-align: left;
display: grid;
gap: 8px;
align-content: start;
}
.vp-realtime-service-overview-metric:hover,
.vp-realtime-service-overview-metric:focus-visible,
.vp-realtime-service-overview-action:hover,
.vp-realtime-service-overview-action:focus-visible {
border-color: rgba(22, 100, 255, 0.42);
background: #f5f9ff;
box-shadow: var(--vp-shadow-sm);
outline: none;
}
.vp-realtime-service-overview-metric strong {
color: var(--vp-text);
font-size: 19px;
line-height: 24px;
word-break: break-word;
}
.vp-realtime-service-overview-metric span {
color: var(--vp-text-muted);
font-size: 12px;
line-height: 18px;
word-break: break-word;
}
.vp-realtime-service-overview-actions {
padding: 14px;
border-left: 1px solid var(--vp-border);
background: #fafcff;
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
.vp-realtime-service-overview-action {
min-height: 46px;
padding: 8px 10px;
border: 1px solid rgba(22, 100, 255, 0.13);
border-radius: 8px;
background: #fff;
color: inherit;
cursor: pointer;
font: inherit;
text-align: left;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.vp-realtime-service-overview-action:disabled {
cursor: not-allowed;
opacity: 0.62;
}
.vp-realtime-service-overview-action span {
color: var(--vp-primary);
font-size: 12px;
font-weight: 700;
line-height: 18px;
white-space: nowrap;
}
.vp-realtime-command-center {
margin-bottom: 16px;
border: 1px solid rgba(22, 100, 255, 0.16);
@@ -13321,6 +13424,8 @@ button.vp-realtime-command-item:focus-visible {
.vp-time-audit-grid,
.vp-time-delivery-strip,
.vp-time-delivery-grid,
.vp-realtime-service-overview,
.vp-realtime-service-overview-metrics,
.vp-realtime-command-center,
.vp-realtime-command-center-grid,
.vp-realtime-priority-board,
@@ -13560,6 +13665,13 @@ button.vp-realtime-command-item:focus-visible {
border-bottom: 1px solid var(--vp-border);
}
.vp-realtime-service-overview-copy,
.vp-realtime-service-overview-actions {
border-left: 0;
border-right: 0;
border-bottom: 1px solid var(--vp-border);
}
.vp-customer-cockpit-workflow {
grid-template-columns: 1fr;
}