diff --git a/.dockerignore b/.dockerignore index ba02b8a..81ece16 100644 --- a/.dockerignore +++ b/.dockerignore @@ -15,6 +15,8 @@ pnpm-debug.log* # Exclude all docs and scripts from production image docs/** scripts/** +# 但保留 docker-entrypoint.sh +!scripts/docker-entrypoint.sh # Exclude local uploads and temp files uploads/** @@ -115,7 +117,9 @@ CONTRIBUTING.md # 脚本文件(不部署脚本) scripts +!scripts/docker-entrypoint.sh *.sh +!scripts/docker-entrypoint.sh *.ps1 *.bat *.py diff --git a/.kiro/settings/user-preferences.md b/.kiro/settings/user-preferences.md new file mode 100644 index 0000000..02c5c72 --- /dev/null +++ b/.kiro/settings/user-preferences.md @@ -0,0 +1,75 @@ +# 用户偏好设置 + +## 🌏 语言规范 + +**所有内容使用中文** +- AI 回复、对话、文档、代码注释使用中文 +- 文档文件名使用中文(如 `部署指南.md`) +- 用户界面、错误消息、日志使用中文 + +**例外** +- 代码变量名/函数名用英文(编程规范) +- 配置文件名保持英文(`package.json` 等) +- API 端点、数据库字段名用英文 + +## 🎨 UI 开发规范 + +**核心原则**: 遵循项目统一 UI 标准 + +**必须做到** +1. 优先使用 `components/` 下的现有组件 +2. 遵循 `tailwind.config.ts` 设计系统 +3. 参考 `app/` 下现有页面实现 +4. 保持布局、交互、样式一致性 + +**示例** +```tsx +// ✅ 使用现有组件 +import { Button } from '@/components/ui/button' + +// ❌ 自定义样式 +