优化 CK 导入和监控配置

This commit is contained in:
yml2213
2026-07-06 20:30:09 +08:00
parent f78c731f32
commit 6d8be28225
11 changed files with 2305 additions and 568 deletions
+357 -107
View File
@@ -11,59 +11,368 @@ body,
}
body {
color: #1f2937;
background: #eef2f7;
color: #1f2933;
background: #edf2f7;
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell {
display: grid;
grid-template-columns: 380px minmax(0, 1fr);
gap: 12px;
grid-template-columns: 300px minmax(0, 1fr);
width: 100%;
height: 100vh;
padding: 12px;
overflow: hidden;
background: #f5f8fb;
}
.side-panel,
.main-panel {
.product-sidebar {
display: flex;
min-height: 0;
border: 1px solid #d9e1ea;
flex-direction: column;
gap: 14px;
border-right: 1px solid #d8e0e8;
background: #ffffff;
padding: 18px 16px;
}
.sidebar-head,
.panel-head,
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.sidebar-head h4,
.panel-head h5 {
margin: 0 0 2px;
}
.product-search {
width: 100%;
}
.current-product {
display: grid;
gap: 8px;
border: 1px solid #bdd2ff;
border-radius: 8px;
background: #edf4ff;
padding: 14px;
}
.current-product > span,
.muted {
color: #697586;
font-size: 12px;
}
.current-product strong {
font-size: 16px;
}
.inventory-line {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
color: #2f8f50;
font-size: 12px;
}
.product-list {
display: flex;
min-height: 0;
flex: 1;
flex-direction: column;
gap: 8px;
overflow: auto;
padding-right: 2px;
}
.product-empty {
display: grid;
min-height: 120px;
place-content: center;
gap: 6px;
border: 1px dashed #cbd5e1;
border-radius: 8px;
color: #697586;
text-align: center;
}
.product-empty strong {
color: #344054;
}
.product-empty span {
font-size: 12px;
}
.product-row {
display: grid;
grid-template-columns: 46px minmax(0, 1fr);
gap: 10px;
width: 100%;
border: 1px solid transparent;
border-radius: 8px;
background: transparent;
padding: 8px;
text-align: left;
cursor: pointer;
}
.product-row:hover,
.product-row.selected {
border-color: #a8c5ff;
background: #eef5ff;
}
.product-thumb {
display: grid;
width: 42px;
height: 42px;
place-items: center;
overflow: hidden;
border: 1px solid #d5dde7;
border-radius: 8px;
background: #f8fafc;
color: #2563eb;
font-weight: 700;
}
.product-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.product-meta {
min-width: 0;
}
.product-meta strong {
display: block;
overflow: hidden;
margin-bottom: 5px;
text-overflow: ellipsis;
white-space: nowrap;
}
.desk {
display: grid;
min-width: 0;
min-height: 0;
grid-template-rows: 64px 48px 72px minmax(0, 1fr) auto auto;
background: #f7fafc;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
border-bottom: 1px solid #d8e0e8;
background: #fff;
padding: 0 20px;
}
.tab-strip {
display: flex;
gap: 12px;
}
.transport-select {
width: 96px;
}
.statusbar {
display: flex;
align-items: center;
gap: 12px;
border-bottom: 1px solid #d8e0e8;
background: #fff;
padding: 0 20px;
}
.statusbar span {
color: #697586;
}
.statusbar strong {
font-size: 16px;
}
.green {
color: #16803d;
}
.red {
color: #d92d20;
}
.actionbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
border-bottom: 1px solid #d8e0e8;
background: #fff;
padding: 12px 20px;
}
.green-button {
background: #16803d;
border-color: #16803d;
}
.green-button:hover {
background: #117233 !important;
border-color: #117233 !important;
}
.target-time {
width: 190px;
}
.main-grid {
display: grid;
min-height: 0;
grid-template-columns: minmax(560px, 1.35fr) minmax(380px, 0.95fr);
gap: 14px;
padding: 14px 20px;
}
.account-panel,
.side-log-panel {
min-width: 0;
min-height: 0;
overflow: hidden;
border: 1px solid #d8e0e8;
border-radius: 8px;
background: #fff;
}
.side-panel {
.account-panel {
display: flex;
flex-direction: column;
padding: 14px;
}
.panel-head {
min-height: 50px;
border-bottom: 1px solid #e6edf3;
padding: 0 14px;
}
.panel-head h5 {
margin: 0;
}
.side-log-panel {
padding: 0 12px 12px;
}
.panel-tools,
.panel-tools .ant-tabs,
.panel-tools .ant-tabs-content-holder,
.panel-tools .ant-tabs-content,
.panel-tools .ant-tabs-tabpane {
height: 100%;
min-height: 0;
}
.panel-tools .ant-tabs-nav {
margin-bottom: 8px;
}
.log-view {
height: calc(100% - 2px);
min-height: 300px;
overflow: auto;
border: 1px solid #e6edf3;
border-radius: 6px;
background: #ffffff;
padding: 10px;
}
.main-panel {
display: flex;
flex-direction: column;
.log-line {
display: grid;
grid-template-columns: 88px 54px minmax(0, 1fr);
align-items: start;
gap: 6px;
min-height: 23px;
color: #4b5565;
font-size: 12px;
line-height: 1.55;
}
.log-line code {
color: #1677ff;
white-space: pre-wrap;
word-break: break-word;
}
.log-line.level-error code {
color: #d92d20;
}
.log-line.level-debug code {
color: #667085;
}
.stats-pane {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
padding: 8px 2px;
}
.stats-pane .ant-statistic,
.bottom-config,
.advanced-config {
border: 1px solid #e6edf3;
border-radius: 8px;
background: #fff;
}
.stats-pane .ant-statistic {
padding: 14px;
overflow: hidden;
}
.brand-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
.bottom-config {
display: grid;
grid-template-columns: minmax(280px, 1fr) repeat(6, max-content);
gap: 10px;
margin-bottom: 14px;
align-items: end;
margin: 0 20px 10px;
padding: 10px 12px;
}
.brand-row h4 {
margin: 0 0 2px;
.bottom-config .ant-form-item,
.advanced-config .ant-form-item {
margin-bottom: 0;
}
.config-form .ant-form-item {
margin-bottom: 10px;
}
.full {
.target-select {
width: 100%;
margin-top: 6px;
}
.advanced-config {
display: grid;
grid-template-columns: 180px minmax(220px, 0.8fr) minmax(220px, 1fr) minmax(320px, 1.2fr);
gap: 10px;
align-items: end;
margin: 0 20px 14px;
padding: 10px 12px;
}
.switch-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.cookie-box textarea,
@@ -71,99 +380,40 @@ body {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.action-bar {
display: flex;
margin-top: 2px;
.ant-table-wrapper {
min-height: 0;
}
.run-row {
width: 100%;
}
.run-row .ant-btn-primary {
flex: 1;
}
.account-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
min-height: 30px;
padding-top: 12px;
}
.stats-row {
margin-bottom: 12px;
}
.stats-row .ant-statistic {
padding: 10px 12px;
border: 1px solid #e5ebf2;
border-radius: 6px;
background: #f8fafc;
}
.main-panel .ant-tabs {
.account-panel .ant-table-wrapper,
.account-panel .ant-spin-nested-loading,
.account-panel .ant-spin-container {
min-height: 0;
flex: 1;
}
.main-panel .ant-tabs-content,
.main-panel .ant-tabs-tabpane {
height: 100%;
@media (max-width: 1180px) {
.app-shell {
grid-template-columns: 280px minmax(0, 1fr);
}
.main-grid {
grid-template-columns: 1fr;
}
.bottom-config,
.advanced-config {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.log-view {
height: calc(100vh - 170px);
min-height: 360px;
overflow: auto;
border: 1px solid #e5ebf2;
border-radius: 6px;
background: #0f172a;
padding: 10px;
}
.log-line {
display: grid;
grid-template-columns: 92px 64px minmax(0, 1fr);
align-items: start;
gap: 8px;
min-height: 24px;
color: #cbd5e1;
font-size: 12px;
line-height: 1.6;
}
.log-line code {
white-space: pre-wrap;
word-break: break-word;
color: inherit;
}
.log-line.level-error {
color: #fecaca;
}
.log-line.level-debug {
color: #93c5fd;
}
.ant-table-wrapper {
height: 100%;
}
@media (max-width: 980px) {
@media (max-width: 880px) {
.app-shell {
grid-template-columns: 1fr;
overflow: auto;
}
.side-panel,
.main-panel {
overflow: visible;
}
.log-view {
height: 420px;
.product-sidebar,
.desk {
min-height: 720px;
}
}