感谢你考虑为域名管理工具做出贡献!
Thank you for considering contributing to Domain Management Tool!
- 检查 Issues 确认问题未被报告
- 使用 Bug Report 模板创建新 Issue
- 提供详细的复现步骤
- 如果可以,附上截图或日志
- 在 Discussions 讨论你的想法
- 使用 Feature Request 模板创建 Issue
- 描述使用场景和期望效果
- 等待维护者反馈
点击右上角 Fork 按钮,复制项目到你的账户。
git clone https://github.com/your-username/DomainManagement.git
cd DomainManagementgit checkout -b feature/your-feature-name
# 或
git checkout -b fix/your-bug-fixnpm install# 启动开发服务器
npm run dev
# 运行构建测试
npm run build
# 代码检查
npm run lintgit add .
git commit -m "feat: add awesome feature"
# 或
git commit -m "fix: resolve issue #123"提交信息规范:
feat:新功能fix:Bug 修复docs:文档更新style:代码格式refactor:代码重构perf:性能优化test:测试相关chore:构建/工具更改
git push origin feature/your-feature-name- 访问你的 Fork 仓库
- 点击 "Pull Request" 按钮
- 填写 PR 模板
- 等待审核
- 使用 TypeScript 进行类型安全开发
- 遵循 ESLint 规则
- 使用 Prettier 格式化代码
- 组件使用函数式组件和 Hooks
// 组件:PascalCase
export function DomainCard() {}
// 函数:camelCase
function formatPrice() {}
// 常量:UPPER_SNAKE_CASE
const API_BASE_URL = '';
// 文件:kebab-case.tsx
domain-card.tsxapp/- Next.js 页面和 APIcomponents/- React 组件lib/- 工具函数types/- TypeScript 类型messages/- 国际化翻译
在提交 PR 前,请确保:
# ✅ 构建成功
npm run build
# ✅ 无 ESLint 错误
npm run lint
# ✅ TypeScript 类型检查通过
npm run build
# ✅ 功能正常工作
# 手动测试所有修改的功能如果你的更改涉及:
- 新功能:更新 README.md 和相关文档
- API 变更:更新 API 文档
- 配置变更:更新部署指南
- 破坏性变更:在 PR 中明确说明
我们特别欢迎以下贡献:
- 🐛 Bug 修复
- 📱 移动端优化
- 🌍 新语言翻译
- ♿ 无障碍改进
- ✨ 新功能实现
- 🎨 UI/UX 改进
- ⚡ 性能优化
- 📝 文档完善
- 🧹 代码清理
- 📦 依赖更新
- 🎭 样式调整
- GitHub Issues: 提问、报告问题
- GitHub Discussions: 功能讨论、经验分享
- Pull Requests: 代码贡献
感谢所有贡献者!
Thank you to all contributors!
通过贡献代码,你同意你的贡献将在 MIT License 下授权。
By contributing, you agree that your contributions will be licensed under the MIT License.
再次感谢你的贡献! | Thank you for your contribution! 🎉