mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-06 08:03:47 +00:00
feat(webui): theme toggle, paged ledger, working refresh status, and collapsed proxy chips
- Dark theme: an auto/light/dark cycle in the topbar, persisted per browser and applied before first paint by an inline head script; the dark palette moves behind data-theme so the runtime choice wins over the media query (#122). - Request routing and upstream attempts tables are paged (50/100/200/500 rows per page) instead of a hard last-100 cap, with translated pager controls (#122). - Free-model refresh status now calls POST /api/models/probe, which marks every automatic model due and wakes the probe loop, then reloads the snapshot; the button re-probes instead of only rereading the cache (#122). - The config page renders long key/proxy lists collapsed behind a 100-chip cap with an expand toggle, so a large proxy pool no longer freezes the page (#146). - New strings translated for en/vi/it; READMEs document the new admin endpoint.
This commit is contained in:
1 parent
2bf547c0d9
commit
58f56676ba
16 files changed
+370
-80
No files matched your search
@@ -290,6 +290,30 @@ textarea {
|
||||
color: var(--bad);
|
||||
}
|
||||
|
||||
.chip.chip-toggle {
|
||||
cursor: pointer;
|
||||
color: var(--text-2);
|
||||
border-style: dashed;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.chip.chip-toggle:hover {
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.pager {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--sp-3);
|
||||
margin-top: var(--sp-3);
|
||||
}
|
||||
|
||||
.pager-info {
|
||||
color: var(--text-2);
|
||||
font-size: var(--fs-sm);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.code-card {
|
||||
margin: var(--sp-3) 0;
|
||||
border: 1px solid var(--border-1);
|
||||
|
||||
Reference in new issue
Block a user