refactor: reorganize project structure and improve code quality

- Move CI/CD configs to config/ci/ directory
- Reorganize scripts into categorized directories (deployment, monitoring, testing, utils)
- Consolidate documentation into docs/ directory with proper structure
- Update linting and testing configurations
- Remove obsolete test reports and performance summaries
- Add new documentation for code quality tools and contact form security
- Improve project organization and maintainability
- Fix lint-staged config to only lint JS/TS files
- Disable react/react-in-jsx-scope rule for Next.js compatibility
- Ignore scripts and test config directories in ESLint
This commit is contained in:
张翔
2026-03-24 13:38:58 +08:00
parent c06ac08510
commit 498bb3a3c8
62 changed files with 5473 additions and 6498 deletions
+64
View File
@@ -0,0 +1,64 @@
#!/bin/bash
echo "🔧 修复登录问题"
echo "================"
echo ""
# 颜色定义
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
# 停止当前服务器
echo "1. 停止当前服务器..."
if lsof -ti:3000 > /dev/null 2>&1; then
lsof -ti:3000 | xargs kill -9 2>/dev/null
echo -e "${GREEN}✅ 服务器已停止${NC}"
else
echo -e "${YELLOW}⚠️ 没有运行的服务器${NC}"
fi
# 清除缓存
echo ""
echo "2. 清除缓存..."
rm -rf .next
echo -e "${GREEN}✅ 缓存已清除${NC}"
# 重新构建
echo ""
echo "3. 重新构建应用..."
npm run build
if [ $? -eq 0 ]; then
echo -e "${GREEN}✅ 构建成功${NC}"
# 启动服务器
echo ""
echo "4. 启动生产服务器..."
npm run start &
sleep 3
if lsof -ti:3000 > /dev/null 2>&1; then
echo -e "${GREEN}✅ 服务器已启动${NC}"
echo ""
echo "=================================="
echo -e "${GREEN}🎉 修复完成!${NC}"
echo "=================================="
echo ""
echo "📧 管理员邮箱: admin@novalon.cn"
echo "🔑 管理员密码: admin123456"
echo "🌐 登录地址: http://localhost:3000/admin/login"
echo ""
echo "💡 提示:"
echo " - 打开浏览器控制台查看登录调试信息"
echo " - 如果仍有问题,请检查控制台错误"
echo " - 建议使用Chrome或Firefox浏览器"
else
echo -e "${RED}❌ 服务器启动失败${NC}"
fi
else
echo -e "${RED}❌ 构建失败${NC}"
exit 1
fi