the-tip-top-frontend/package.json
soufiane 7febb137e9 feat: add SonarQube integration, cookie consent, and authentication improvements
- Add SonarQube configuration for code quality analysis
  - sonar-project.properties with TypeScript/Next.js settings
  - .sonarignore to exclude build artifacts and dependencies
  - npm run sonar script
  - Jenkins pipeline stages for SonarQube analysis and quality gate

- Implement cookie consent banner
  - New CookieConsent component with matching site colors
  - localStorage persistence for user choice
  - Accept/Reject buttons with proper styling
  - Link to cookies policy page

- Add strict authentication protection for game page
  - Redirect unauthenticated users to login from /jeux
  - Clean up redundant auth checks and UI elements
  - Preserve redirect parameter for post-login navigation

- Implement smart navigation with auth-aware redirects
  - "Jouer maintenant" button redirects based on auth status
  - "Participer au jeu" footer link with conditional routing
  - Authenticated users go to /jeux, others to /register

- UI improvements and cleanup
  - Remove "Voir les lots" button from homepage
  - Remove "Gestion des cookies" from footer
  - Remove "À propos" from footer navigation
  - Consistent design across components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 01:23:50 +01:00

41 lines
991 B
JSON

{
"name": "the-tip-top-frontend",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"test": "echo \"No tests configured\" && exit 0",
"sonar": "sonar-scanner"
},
"dependencies": {
"@hookform/resolvers": "^5.2.2",
"@react-oauth/google": "^0.12.2",
"axios": "^1.13.1",
"bootstrap": "^5.3.3",
"lucide-react": "^0.553.0",
"next": "14.2.4",
"next-auth": "^4.24.7",
"nodemailer": "^7.0.10",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.66.0",
"react-hot-toast": "^2.6.0",
"recharts": "^3.4.1",
"zod": "^4.1.12"
},
"devDependencies": {
"@types/node": "24.9.2",
"@types/react": "19.2.2",
"autoprefixer": "^10.4.21",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.4",
"jiti": "^2.6.1",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.13",
"typescript": "5.9.3"
}
}