Add hub settings tabs and account password change UI.
Restructure manual-trading-hub settings with CSS tabs matching instance layout; add password API writing HUB_USERNAME/HUB_PASSWORD to hub .env. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2989,6 +2989,125 @@ button.btn-sm {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* 中控系统设置 · CSS Tab(与实例 env 配置同方案) */
|
||||
.hub-config-body {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.hub-tab-radio {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.hub-config-tabs {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
gap: 0;
|
||||
overflow-x: auto;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
padding: 0 8px;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.hub-tab-btn {
|
||||
flex: 0 0 auto;
|
||||
display: inline-block;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font-size: 0.8rem;
|
||||
padding: 10px 14px;
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
margin-bottom: -1px;
|
||||
white-space: nowrap;
|
||||
transition: color 0.15s, border-color 0.15s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.hub-tab-btn:hover {
|
||||
color: color-mix(in srgb, var(--text) 80%, var(--muted));
|
||||
}
|
||||
|
||||
.hub-config-panels .hub-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#hub-sec-0:checked ~ .hub-config-tabs label[for="hub-sec-0"],
|
||||
#hub-sec-1:checked ~ .hub-config-tabs label[for="hub-sec-1"],
|
||||
#hub-sec-2:checked ~ .hub-config-tabs label[for="hub-sec-2"],
|
||||
#hub-sec-3:checked ~ .hub-config-tabs label[for="hub-sec-3"],
|
||||
#hub-sec-4:checked ~ .hub-config-tabs label[for="hub-sec-4"],
|
||||
#hub-sec-5:checked ~ .hub-config-tabs label[for="hub-sec-5"] {
|
||||
color: var(--text);
|
||||
border-bottom-color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#hub-sec-0:checked ~ .hub-config-panels .hub-panel--0,
|
||||
#hub-sec-1:checked ~ .hub-config-panels .hub-panel--1,
|
||||
#hub-sec-2:checked ~ .hub-config-panels .hub-panel--2,
|
||||
#hub-sec-3:checked ~ .hub-config-panels .hub-panel--3,
|
||||
#hub-sec-4:checked ~ .hub-config-panels .hub-panel--4,
|
||||
#hub-sec-5:checked ~ .hub-config-panels .hub-panel--5 {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hub-config-panels {
|
||||
padding: 14px 16px 16px;
|
||||
}
|
||||
|
||||
.hub-settings-tab-panel {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hub-settings-tab-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hub-settings-tab-title {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.hub-settings-tab-head-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.hub-settings-tab-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.hub-password-grid {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.settings-status-line {
|
||||
font-size: 0.8rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.settings-status-line.is-err {
|
||||
color: var(--danger, #f87171);
|
||||
}
|
||||
|
||||
.settings-section {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user