feat: 按账号调度自动学习并让首页实时跟上状态
This commit is contained in:
+236
-40
@@ -432,7 +432,7 @@ select {
|
||||
.home {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
@@ -491,7 +491,9 @@ select {
|
||||
}
|
||||
|
||||
.compact-nform .n-form-item-blank {
|
||||
min-width: 0;
|
||||
min-height: 32px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.compact-nform .n-form-item-feedback-wrapper {
|
||||
@@ -521,10 +523,27 @@ select {
|
||||
}
|
||||
|
||||
.settings-stack {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.settings-stack > .panel-card {
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
max-width: 640px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.settings-stack .compact-nform {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-stack .form-hint {
|
||||
@@ -542,6 +561,7 @@ select {
|
||||
}
|
||||
|
||||
.home-summary {
|
||||
flex: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
@@ -616,18 +636,35 @@ select {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.target-control .n-input-number {
|
||||
width: 120px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.start-control .n-input-number {
|
||||
width: 88px;
|
||||
.start-control {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.start-control .day-select {
|
||||
width: 108px;
|
||||
.start-control .day-select,
|
||||
.start-control .start-time {
|
||||
flex: 1 1 8.5rem;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.start-control .start-time .n-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.worker-select {
|
||||
@@ -635,14 +672,17 @@ select {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.study-head-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
.study-start-wrap {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.start-control .n-time-picker {
|
||||
width: 148px;
|
||||
.study-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding-left: 96px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.day-warn {
|
||||
@@ -656,13 +696,12 @@ select {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.home-study-status {
|
||||
.home-study-status,
|
||||
.study-live-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding-top: 8px;
|
||||
margin-top: 4px;
|
||||
border-top: 1px solid var(--line);
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
.study-indicator {
|
||||
@@ -678,6 +717,11 @@ select {
|
||||
box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
|
||||
}
|
||||
|
||||
.study-indicator.down {
|
||||
background: var(--danger);
|
||||
box-shadow: 0 0 6px rgba(248, 81, 73, 0.5);
|
||||
}
|
||||
|
||||
.study-text {
|
||||
font-size: 13px;
|
||||
}
|
||||
@@ -687,59 +731,143 @@ select {
|
||||
}
|
||||
|
||||
.study-card {
|
||||
flex: 0 1 auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.study-card.is-busy {
|
||||
flex: 1 1 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.study-card-body {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
|
||||
gap: 16px 32px;
|
||||
align-items: start;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.study-card.is-busy .study-card-body {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.study-config {
|
||||
min-width: 0;
|
||||
max-width: 30rem;
|
||||
}
|
||||
|
||||
.study-config .compact-nform {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.study-live {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding-left: 24px;
|
||||
border-left: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.study-card.is-busy .study-live {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.study-progress {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-width: 28rem;
|
||||
}
|
||||
|
||||
.study-progress-meta {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
font-size: 13px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.study-progress-meta span:first-child {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.study-live-hint {
|
||||
margin: 0;
|
||||
max-width: 36rem;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.study-workers {
|
||||
list-style: none;
|
||||
margin: 12px 0 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.study-worker {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.study-worker-main {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.study-worker-title {
|
||||
flex: 1 1 9rem;
|
||||
min-width: 0;
|
||||
font-size: 13px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.study-worker-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
.study-worker-bar {
|
||||
flex: 1 1 10rem;
|
||||
min-width: 72px;
|
||||
}
|
||||
|
||||
.study-worker-bar .n-progress {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.study-worker-pct,
|
||||
.study-worker-count {
|
||||
flex: none;
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.study-worker-pct {
|
||||
width: 36px;
|
||||
text-align: right;
|
||||
color: var(--text);
|
||||
width: 3.25em;
|
||||
}
|
||||
|
||||
.study-worker-count {
|
||||
min-width: 3.75em;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.study-heartbeat {
|
||||
width: 36px;
|
||||
flex: none;
|
||||
width: 2.75em;
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.study-dot {
|
||||
@@ -1182,6 +1310,25 @@ select {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1099px) {
|
||||
.study-card-body,
|
||||
.study-card.is-busy .study-card-body {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.study-card.is-busy .study-card-body {
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.study-live {
|
||||
padding-left: 0;
|
||||
border-left: 0;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.page {
|
||||
padding: 16px 12px;
|
||||
@@ -1212,14 +1359,15 @@ select {
|
||||
.admin-page .page-head {
|
||||
flex: none;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.admin-page .page-head h2 {
|
||||
margin: 0;
|
||||
.admin-page .page-head:has(> :nth-child(2)) {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.admin-page .page-head p {
|
||||
margin: 4px 0 0;
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
@@ -1441,6 +1589,54 @@ select {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
body .n-input .n-input__input-el,
|
||||
body .n-input .n-input__textarea-el,
|
||||
body .n-input-number .n-input__input-el {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .n-input .n-input__placeholder {
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .n-base-selection-input,
|
||||
body .n-base-selection-input__content,
|
||||
body .n-base-selection-overlay,
|
||||
body .n-base-selection-placeholder,
|
||||
body .n-base-selection-input-tag__input {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body .n-base-selection-label,
|
||||
body .n-base-selection-placeholder,
|
||||
body .n-base-selection-overlay {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
body .n-base-selection-input__content,
|
||||
body .n-base-selection-overlay {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body .n-base-select-menu .n-base-select-option {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
body .n-base-select-menu .n-base-select-option__content {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.settings-stack {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: none;
|
||||
grid-auto-rows: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.settings-form .form-row {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
|
||||
Reference in New Issue
Block a user