Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: '3.8'
services:
antigravity-api:
platform: linux/amd64
image: ghcr.io/zhongruan0522/antigravity2api-node-js:latest
container_name: antigravity-api
restart: unless-stopped
Expand All @@ -11,10 +12,6 @@ services:
- PANEL_PASSWORD=设置你的密码
- API_KEY=sk-text
- IMAGE_BASE_URL=设置图像访问地址,如果是服务器部署有域名写域名,无域名写IP:8045,本地不写
# DEBUG 调试日志级别(可选,默认关闭)
# - low: 显示客户端完整请求与响应
# - high: 额外显示后端 API 请求与响应
# - DEBUG=high
volumes:
- ./data:/app/data
healthcheck:
Expand Down
91 changes: 91 additions & 0 deletions public/admin/panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,76 @@ button:disabled {
border-color: var(--info-bg);
}

/* 模型冷却样式 */
.cooldown-models {
margin-top: 12px;
padding: 10px;
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.3);
border-radius: 8px;
}

[data-theme="dark"] .cooldown-models {
background: rgba(239, 68, 68, 0.15);
border-color: rgba(239, 68, 68, 0.4);
}

.cooldown-header {
font-size: 12px;
font-weight: 600;
color: #dc2626;
margin-bottom: 8px;
}

[data-theme="dark"] .cooldown-header {
color: #fca5a5;
}

.cooldown-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
background: rgba(255, 255, 255, 0.5);
border-radius: 6px;
margin-bottom: 6px;
font-size: 12px;
}

[data-theme="dark"] .cooldown-item {
background: rgba(0, 0, 0, 0.2);
}

.cooldown-item:last-child {
margin-bottom: 0;
}

.cooldown-icon {
font-size: 14px;
}

.cooldown-model {
flex: 1;
font-weight: 500;
color: var(--text);
word-break: break-all;
}

.cooldown-timer {
font-family: 'SF Mono', Monaco, 'Courier New', monospace;
font-size: 11px;
padding: 2px 8px;
background: #fef2f2;
color: #dc2626;
border-radius: 4px;
font-weight: 600;
}

[data-theme="dark"] .cooldown-timer {
background: rgba(220, 38, 38, 0.2);
color: #fca5a5;
}

.logs {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -1204,3 +1274,24 @@ button:disabled {
gap: 8px;
}
}

/* 额度卡片中的冷却倒计时 */
.quota-cooldown {
margin-left: 8px;
padding: 2px 8px;
background: rgba(239, 68, 68, 0.2);
color: #f87171;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
}

.quota-cooldown-static {
margin-left: 8px;
padding: 2px 8px;
background: rgba(239, 68, 68, 0.2);
color: #f87171;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
}
Loading