后端 FastAPI 六层结构(api/services/repositories/models/schemas/core), 统一响应信封、全局异常、日志脱敏;6 张表经 Alembic 迁移建库,SQL 留存 db/migration;登录鉴权含图形验证码(Redis GETDEL 防重放)、JWT、登录限流、 登出黑名单(TTL=令牌剩余有效期)、登录日志。 前端 Vue3 + TS + Element Plus 骨架,含登录页、路由守卫、请求封装与 Vite 代理。 工程配置:uv 锁定 Python 3.12、ruff 检查与格式化、editorconfig、gitattributes。 测试 184 项(单元 155 / 集成 29)全绿,浏览器端到端 8 项通过。 Co-Authored-By: Claude Code <noreply@anthropic.com>
32 lines
808 B
Plaintext
32 lines
808 B
Plaintext
# Git 属性:统一换行符与文本/二进制判定。
|
|
#
|
|
# 现在加最省事 —— 仓库尚无提交,不会触发历史文件的重整化;
|
|
# 等有了提交再加,就要面对一次全仓库的换行符变更。
|
|
|
|
# 默认:由 Git 自动判定文本文件,仓库内一律存 LF
|
|
* text=auto eol=lf
|
|
|
|
# 明确按文本处理,避免被误判为二进制
|
|
*.py text
|
|
*.ts text
|
|
*.vue text
|
|
*.json text
|
|
*.sql text
|
|
*.yml text
|
|
*.yaml text
|
|
*.md text
|
|
|
|
# 明确按二进制处理,禁止任何换行符转换
|
|
*.png binary
|
|
*.jpg binary
|
|
*.ico binary
|
|
*.docx binary
|
|
*.xlsx binary
|
|
*.woff binary
|
|
*.woff2 binary
|
|
*.ttf binary
|
|
|
|
# 锁文件不参与 diff 统计,避免 review 界面被噪声占满
|
|
uv.lock -diff linguist-generated
|
|
pnpm-lock.yaml -diff linguist-generated
|