ImageUploadField now opens a crop overlay (react-easy-crop) before uploading a newly selected file, and offers a "Zuschneiden" button to re-crop an already-set image without re-uploading. Cropping happens entirely client-side via canvas; the resulting blob is sent through the existing /uploads endpoint unchanged. Wired a fixed aspect ratio into the fields whose images are displayed at a fixed ratio elsewhere on the site (gallery project/brand covers and service images at 4:3, matching their public aspect-[4/3] cards; the hero image at 16:9). Logo fields (brands, car models, site logo) stay unset, defaulting to the source image's own aspect ratio so they aren't forced into an unrelated shape. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
34 lines
1,001 B
JSON
34 lines
1,001 B
JSON
{
|
|
"name": "hifi-frontend",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"prebuild": "node -e \"const fs=require('fs');fs.rmSync('../hifi/assets',{recursive:true,force:true});fs.rmSync('../hifi/index.html',{force:true})\"",
|
|
"build": "vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@tiptap/extension-font-family": "^3.31.3",
|
|
"@tiptap/extension-link": "^3.31.3",
|
|
"@tiptap/extension-text-style": "^3.31.3",
|
|
"@tiptap/extension-underline": "^3.31.3",
|
|
"@tiptap/react": "^3.31.3",
|
|
"@tiptap/starter-kit": "^3.31.3",
|
|
"framer-motion": "^12.42.2",
|
|
"lucide-react": "^1.23.0",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-easy-crop": "^6.2.3",
|
|
"react-router-dom": "^6.26.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-react": "^4.3.1",
|
|
"autoprefixer": "^10.4.20",
|
|
"postcss": "^8.4.47",
|
|
"tailwindcss": "^3.4.13",
|
|
"vite": "^5.4.6"
|
|
}
|
|
}
|