feat: 维护台 maintain(巡检/补号/日志)+ 配置与 .gitignore

- Flask 控制台:Cliproxy 巡检、批量补号、流水线、运行日志
- codex_stats_oauth_dir 支持统计 Cliproxy auth 目录
- 忽略 accounts/oauth、.venv、本地 DB/日志与 new.py

Made-with: Cursor
This commit is contained in:
xiaobai committed 2026-03-21 20:51:55 +08:00
1 parent ebef9acd7c
commit a089da31cd
23 files changed
+3719 -631

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>登录 — Codex 自动维护</title>
<style>
* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; background: #0f1419; color: #e6edf3; min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0; }
.card { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 2rem; width: 100%; max-width: 360px; }
h1 { margin: 0 0 1rem; font-size: 1.25rem; }
input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #30363d; background: #0d1117; color: #e6edf3; margin-bottom: 1rem; }
button { width: 100%; padding: 10px; border: 0; border-radius: 8px; background: #238636; color: #fff; font-weight: 600; cursor: pointer; }
button:hover { background: #2ea043; }
.err { color: #f85149; font-size: 0.875rem; margin-top: 0.5rem; display: none; }
</style>
</head>
<body>
<div class="card">
<h1>Codex 自动维护</h1>
<input type="password" id="pw" placeholder="密码" autocomplete="current-password" />
<button type="button" id="go">登录</button>
<p class="err" id="err"></p>
</div>
<script>
document.getElementById('go').onclick = async () => {
const err = document.getElementById('err');
err.style.display = 'none';
const r = await fetch('/api/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ password: document.getElementById('pw').value }) });
if (r.ok) location.href = '/';
else { err.textContent = '密码错误'; err.style.display = 'block'; }
};
document.getElementById('pw').addEventListener('keydown', e => { if (e.key === 'Enter') document.getElementById('go').click(); });
</script>
</body>
</html>