yingsa/.gitignore
ethanfly 19784bddb9 feat: Update .gitignore and enhance user management features
- Added new entries to .gitignore to exclude Vite cache, environment variable templates, and sensitive files.
- Modified user management routes to allow access for both super admins and store staff, enabling store staff to add users for their respective stores.
- Refactored dashboard navigation to include a function for routing with store context.
- Enhanced user form to display current store information for non-super admin users.
2026-02-07 02:19:04 +08:00

165 lines
3.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ============================================
# 依赖包
# ============================================
node_modules/
**/node_modules/
# 子目录下 node_modules 内的缓存/预构建(避免被跟踪)
**/node_modules/.vite/
**/node_modules/.cache/
# ============================================
# 环境变量(含敏感信息,勿提交)
# ============================================
.env
.env.*
.env.local
.env.*.local
.env.production
.env.development
.env.test
# 各子项目的环境变量(保留 env-template.txt 作为模板)
server/.env
admin/.env.local
admin/.env
miniprogram/.env
# 不忽略环境变量模板文件
!**/env-template.txt
# ============================================
# 构建产物
# ============================================
# Vue/Vite 构建输出
admin/dist/
admin/build/
# 通用构建目录
dist/
build/
*.tsbuildinfo
# ============================================
# 日志与调试
# ============================================
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# ============================================
# 缓存文件
# ============================================
.cache/
.vite/
**/.vite/
.parcel-cache/
.eslintcache
.prettiercache
*.local
# Vite 预构建与缓存
admin/.vite/
admin/node_modules/.vite/
# ============================================
# 上传文件(保留目录结构,忽略上传内容)
# ============================================
# 后端上传目录(保留 .gitkeep忽略实际文件
server/uploads/*
!server/uploads/.gitkeep
uploads/*
!uploads/.gitkeep
# ============================================
# 编辑器 / IDE
# ============================================
.idea/
.vscode/
!.vscode/extensions.json
!.vscode/settings.json.example
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.swo
*.swp
*~
.project
.classpath
.settings/
# Cursor
.cursor/
# ============================================
# 系统文件
# ============================================
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Desktop.ini
$RECYCLE.BIN/
# ============================================
# 测试与覆盖率
# ============================================
coverage/
.nyc_output/
*.lcov
.nyc_output
test-results/
playwright-report/
# ============================================
# 微信小程序
# ============================================
# 微信开发者工具本地配置含工具偏好、AppID 等,勿提交)
miniprogram/project.private.config.json
# 小程序 npm 构建产物
miniprogram/miniprogram_npm/
miniprogram/node_modules/
# 小程序本地密钥/私密配置
miniprogram/private/
# ============================================
# 临时文件
# ============================================
tmp/
temp/
*.tmp
*.temp
*.bak
*.swp
*.swo
# ============================================
# 数据库相关(如果存在本地数据库文件)
# ============================================
*.db
*.sqlite
*.sqlite3
# ============================================
# 密钥与证书
# ============================================
*.pem
*.key
*.crt
*.p12
*.pfx
secrets/
# ============================================
# 其他
# ============================================
# 可选:取消注释以忽略 lock 文件(不推荐,会影响依赖版本锁定)
# package-lock.json
# yarn.lock
# pnpm-lock.yaml
# 对话/代理生成目录(若存在)
agent-transcripts/