-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitignore
More file actions
113 lines (95 loc) · 1.81 KB
/
.gitignore
File metadata and controls
113 lines (95 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# ==========================
# 1. Python / Flask 后端
# ==========================
# 字节码缓存
__pycache__/
*.py[cod]
*$py.class
# 虚拟环境
venv/
.venv/
env/
ENV/
# 分发与打包
dist/
build/
*.egg-info/
# 数据库 (如果是 SQLite)
*.sqlite
*.sqlite3
*.db
# 忽略 Docker 挂载的数据库数据目录
data/
# 环境变量 (包含敏感信息)
.env
.flaskenv
# 日志
*.log
# ==========================
# 2. Node.js / Vue 前端
# ==========================
# 依赖包 (体积巨大,绝对不要提交)
node_modules/
# 构建输出目录
frontend/dist/
# 日志
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# 临时文件
.eslintcache
# ==========================
# 3. 大文件与媒体资源 (核心修改)
# ==========================
# 忽略所有图片文件 (避免上传测试用的高清图)
*.jpg
*.jpeg
*.png
*.gif
*.svg
!frontend/src/assets/icons/
!frontend/src/assets/icons/**
*.webp
*.bmp
*.tiff
*.ico
# 忽略所有视频文件 (避免 GitHub 100MB 限制报错)
*.mp4
*.mov
*.avi
*.mkv
*.webm
*.flv
*.wmv
*.m4v
# ==========================
# 4. 项目特定上传目录
# ==========================
# 忽略用户上传的具体文件和临时分片
backend/app/static/uploads/*
backend/app/static/covers/*
backend/app/static/avatars/*
backend/app/static/subtitles/*
backend/app/static/ai_summaries/*
backend/app/static/temp/*
# 但保留文件夹本身
!backend/app/static/uploads/.gitkeep
!backend/app/static/covers/.gitkeep
!backend/app/static/avatars/.gitkeep
!backend/app/static/subtitles/.gitkeep
!backend/app/static/ai_summaries/.gitkeep
!backend/app/static/temp/.gitkeep
# ==========================
# 5. IDE 与 操作系统文件
# ==========================
# VS Code
.vscode/
# IntelliJ / PyCharm
.idea/
# Mac OS
.DS_Store
# Windows
Thumbs.db
ehthumbs.db
Desktop.ini