v2.4: 响应式布局 + 借款按钮优化

- 所有页面添加响应式CSS,支持手机/电脑自适应
- index.html: 导航栏active状态、表单、统计、借款列表响应式
- analysis.html: 图表、统计卡片响应式
- admin.html: 表格、搜索栏响应式
- reset-password.html: 登录卡片响应式
- 修复导航栏active类:analysis.html的分析标签高亮
- 非本人借款:隐藏修改按钮,快速还款改为快速查看
- 修复main.py重复函数
- 添加debt-manager.sh管理脚本
This commit is contained in:
OP
2026-07-01 22:50:09 +08:00
parent f18cdf5249
commit 056c4defec
7 changed files with 597 additions and 41 deletions

View File

@@ -94,16 +94,6 @@ async def migrate_debt_data():
await db.commit()
async def migrate_account_names():
async with async_session() as db:
result = await db.execute(select(User))
users = result.scalars().all()
for u in users:
if "@" in u.email:
u.email = u.email.split("@")[0]
await db.commit()
@asynccontextmanager
async def lifespan(app: FastAPI):
await seed_admin()