mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
feat: 新增模型轮转、额度看板和密钥管理
This commit is contained in:
1 parent
e5f4e3a583
commit
3440273f43
32 files changed
+2918
-32
No files matched your search
@@ -22,6 +22,77 @@
|
||||
--ok: #237056;
|
||||
--shadow: 0 12px 35px #17231f16;
|
||||
}
|
||||
.quota-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.quota-card {
|
||||
padding: 22px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--white);
|
||||
}
|
||||
.quota-card h3 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 14px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.quota-card .quota-value {
|
||||
font-size: 36px;
|
||||
font-weight: 750;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
.quota-card progress {
|
||||
width: 100%;
|
||||
height: 9px;
|
||||
accent-color: var(--forest);
|
||||
margin: 14px 0 8px;
|
||||
}
|
||||
.quota-card.quota-low progress {
|
||||
accent-color: var(--orange);
|
||||
}
|
||||
.quota-card .quota-reset {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.quota-status {
|
||||
padding: 10px 14px;
|
||||
background: var(--paper2);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.key-actions {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.key-actions button {
|
||||
padding: 5px 9px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.key-env {
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
padding: 18px;
|
||||
background: var(--forest);
|
||||
color: var(--white);
|
||||
border-radius: 6px;
|
||||
}
|
||||
#quota-model-search {
|
||||
max-width: 250px;
|
||||
}
|
||||
#quota-account {
|
||||
max-width: 360px;
|
||||
}
|
||||
#api-key-created {
|
||||
border-color: var(--ok);
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.quota-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -831,3 +902,24 @@ textarea {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.rotation-actions {
|
||||
min-width: 215px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.rotation-actions button {
|
||||
margin: 3px;
|
||||
}
|
||||
.rotation-switches {
|
||||
margin-top: 22px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
#rotation-groups .field {
|
||||
max-width: 360px;
|
||||
}
|
||||
#rotation-attempts td {
|
||||
max-width: 270px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
Reference in new issue
Block a user