- console: GET /api/workflows/{id}, /runs/{run_id}, /runs/{run_id}/diagnosis
(journal trace + sanitized bounded log tails, workflow/run pairing enforced)
- workbench/: dsh 宿主插件(7 个工作流工具、中文系统提示词、失败监控器、
本机回环桥接服务)+ 侧边栏面板客户端包(sidebar.footer.action 与
shell.overlay 追加插槽)+ 降级独立面板 + 一键启动脚本
- adapters/browser: 收敛 looks_like_login_url 到共享层,修复
jd_main_image_collector 对 gyxx_flow.accounts 的越层导入
- tests: 新端点覆盖;replay_policy 断言对齐已迁移的 catalog(repeatable)
472 lines
7.1 KiB
CSS
472 lines
7.1 KiB
CSS
/* GYXX 工作台面板样式 —— 以文本形式内联进客户端包,运行时注入 <style>。 */
|
|
|
|
.gyxxwb-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 70;
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
|
|
'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
|
}
|
|
|
|
.gyxxwb-panel {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 264px;
|
|
width: 380px;
|
|
display: none;
|
|
flex-direction: column;
|
|
background: #ffffff;
|
|
border-right: 1px solid #e4e4e7;
|
|
box-shadow: 8px 0 24px rgba(0, 0, 0, 0.08);
|
|
pointer-events: auto;
|
|
color: #18181b;
|
|
}
|
|
|
|
.gyxxwb-panel-open {
|
|
display: flex;
|
|
}
|
|
|
|
.gyxxwb-panel-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid #e4e4e7;
|
|
}
|
|
|
|
.gyxxwb-title {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.gyxxwb-pills {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex: 1;
|
|
}
|
|
|
|
.gyxxwb-pill {
|
|
font-size: 11px;
|
|
padding: 1px 8px;
|
|
border-radius: 999px;
|
|
background: #f4f4f5;
|
|
color: #52525b;
|
|
}
|
|
|
|
.gyxxwb-pill-failed {
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.gyxxwb-pill-running {
|
|
background: #eff6ff;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.gyxxwb-icon-btn {
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: #71717a;
|
|
padding: 4px 6px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.gyxxwb-icon-btn:hover {
|
|
background: #f4f4f5;
|
|
}
|
|
|
|
.gyxxwb-error {
|
|
margin: 10px 12px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.gyxxwb-panel-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.gyxxwb-group-label {
|
|
padding: 10px 12px 4px;
|
|
font-size: 12px;
|
|
color: #71717a;
|
|
}
|
|
|
|
.gyxxwb-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 7px 12px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.gyxxwb-row:hover {
|
|
background: #f4f4f5;
|
|
}
|
|
|
|
.gyxxwb-row-selected {
|
|
background: #eef2ff;
|
|
}
|
|
|
|
.gyxxwb-row-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.gyxxwb-row-name {
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.gyxxwb-row-id {
|
|
font-size: 11px;
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
.gyxxwb-row-meta {
|
|
font-size: 11px;
|
|
color: #71717a;
|
|
}
|
|
|
|
.gyxxwb-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #d4d4d8;
|
|
flex: none;
|
|
}
|
|
|
|
.gyxxwb-dot-success {
|
|
background: #16a34a;
|
|
}
|
|
|
|
.gyxxwb-dot-failed {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.gyxxwb-dot-running {
|
|
background: #2563eb;
|
|
animation: gyxxwb-pulse 1.2s ease-in-out infinite;
|
|
}
|
|
|
|
.gyxxwb-dot-cancelled,
|
|
.gyxxwb-dot-none {
|
|
background: #a1a1aa;
|
|
}
|
|
|
|
@keyframes gyxxwb-pulse {
|
|
50% {
|
|
opacity: 0.35;
|
|
}
|
|
}
|
|
|
|
.gyxxwb-detail {
|
|
border-top: 1px solid #e4e4e7;
|
|
padding: 12px;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.gyxxwb-detail-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.gyxxwb-status {
|
|
font-size: 11px;
|
|
padding: 1px 8px;
|
|
border-radius: 999px;
|
|
background: #f4f4f5;
|
|
}
|
|
|
|
.gyxxwb-status-failed {
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.gyxxwb-status-running {
|
|
background: #eff6ff;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.gyxxwb-status-success {
|
|
background: #f0fdf4;
|
|
color: #15803d;
|
|
}
|
|
|
|
.gyxxwb-detail-sub {
|
|
font-size: 11px;
|
|
color: #71717a;
|
|
margin: 4px 0 10px;
|
|
}
|
|
|
|
.gyxxwb-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.gyxxwb-actions button,
|
|
.gyxxwb-ask button {
|
|
border: 1px solid #e4e4e7;
|
|
background: #ffffff;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
padding: 4px 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.gyxxwb-actions button:hover,
|
|
.gyxxwb-ask button:hover {
|
|
background: #f4f4f5;
|
|
}
|
|
|
|
.gyxxwb-actions .gyxxwb-danger {
|
|
border-color: #fecaca;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.gyxxwb-ask {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.gyxxwb-ask input {
|
|
flex: 1;
|
|
border: 1px solid #e4e4e7;
|
|
border-radius: 6px;
|
|
padding: 5px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.gyxxwb-date-row {
|
|
margin-top: 8px;
|
|
font-size: 11px;
|
|
color: #71717a;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.gyxxwb-date-row input {
|
|
border: 1px solid #e4e4e7;
|
|
border-radius: 6px;
|
|
padding: 3px 6px;
|
|
font-size: 11px;
|
|
width: 110px;
|
|
}
|
|
|
|
.gyxxwb-section-label {
|
|
margin: 12px 0 4px;
|
|
font-size: 12px;
|
|
color: #71717a;
|
|
}
|
|
|
|
.gyxxwb-run {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
text-align: left;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.gyxxwb-run:hover {
|
|
background: #f4f4f5;
|
|
}
|
|
|
|
.gyxxwb-run-mode {
|
|
color: #a1a1aa;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.gyxxwb-run-error {
|
|
color: #b91c1c;
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.gyxxwb-diagnosis {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.gyxxwb-diagnosis-head {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.gyxxwb-step-fail {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.gyxxwb-step-id {
|
|
font-size: 12px;
|
|
color: #b91c1c;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.gyxxwb-log {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.gyxxwb-log-path {
|
|
font-size: 11px;
|
|
color: #71717a;
|
|
margin-bottom: 2px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.gyxxwb-pre {
|
|
font-size: 11px;
|
|
background: #18181b;
|
|
color: #e4e4e7;
|
|
border-radius: 6px;
|
|
padding: 8px;
|
|
max-height: 180px;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.gyxxwb-empty {
|
|
padding: 16px 12px;
|
|
font-size: 12px;
|
|
color: #a1a1aa;
|
|
text-align: center;
|
|
}
|
|
|
|
.gyxxwb-toasts {
|
|
position: absolute;
|
|
right: 16px;
|
|
bottom: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
pointer-events: auto;
|
|
max-width: 360px;
|
|
}
|
|
|
|
.gyxxwb-toast {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: #18181b;
|
|
color: #fafafa;
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
font-size: 12px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.gyxxwb-toast button {
|
|
border: 1px solid #3f3f46;
|
|
background: transparent;
|
|
color: #fafafa;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.gyxxwb-toast-ok {
|
|
background: #14532d;
|
|
}
|
|
|
|
.gyxxwb-toast-error,
|
|
.gyxxwb-toast-failed {
|
|
background: #7f1d1d;
|
|
}
|
|
|
|
.gyxxwb-footer-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
color: inherit;
|
|
padding: 6px 8px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.gyxxwb-footer-btn:hover,
|
|
.gyxxwb-footer-btn-active {
|
|
background: rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.gyxxwb-panel {
|
|
left: 0;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.gyxxwb-panel {
|
|
background: #18181b;
|
|
color: #fafafa;
|
|
border-right-color: #3f3f46;
|
|
}
|
|
.gyxxwb-row:hover {
|
|
background: #27272a;
|
|
}
|
|
.gyxxwb-row-selected {
|
|
background: #312e81;
|
|
}
|
|
.gyxxwb-detail {
|
|
background: #1f1f22;
|
|
border-top-color: #3f3f46;
|
|
}
|
|
.gyxxwb-actions button,
|
|
.gyxxwb-ask button {
|
|
background: #27272a;
|
|
border-color: #3f3f46;
|
|
color: #fafafa;
|
|
}
|
|
.gyxxwb-ask input,
|
|
.gyxxwb-date-row input {
|
|
background: #27272a;
|
|
border-color: #3f3f46;
|
|
color: #fafafa;
|
|
}
|
|
.gyxxwb-pill {
|
|
background: #27272a;
|
|
color: #a1a1aa;
|
|
}
|
|
.gyxxwb-footer-btn:hover,
|
|
.gyxxwb-footer-btn-active {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
}
|