Compare commits

...

2 commits

Author SHA1 Message Date
3a5243fa3e chore: update packages 2026-04-11 18:38:31 +01:00
30c9562ed8 fix: hair style bug 2026-04-11 18:30:52 +01:00
4 changed files with 755 additions and 796 deletions

View file

@ -2,7 +2,7 @@
"name": "tomodachi-share", "name": "tomodachi-share",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"packageManager": "pnpm@10.28.2", "packageManager": "pnpm@10.33.0",
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
@ -16,19 +16,19 @@
"@bprogress/next": "^3.2.12", "@bprogress/next": "^3.2.12",
"@hello-pangea/dnd": "^18.0.1", "@hello-pangea/dnd": "^18.0.1",
"@prisma/client": "^6.19.2", "@prisma/client": "^6.19.2",
"@sentry/nextjs": "^10.46.0", "@sentry/nextjs": "^10.48.0",
"bit-buffer": "^0.3.0", "bit-buffer": "^0.3.0",
"canvas-confetti": "^1.9.4", "canvas-confetti": "^1.9.4",
"dayjs": "^1.11.20", "dayjs": "^1.11.20",
"downshift": "^9.3.2", "downshift": "^9.3.2",
"embla-carousel-react": "^8.6.0", "embla-carousel-react": "^8.6.0",
"file-type": "^22.0.0", "file-type": "^22.0.1",
"jsqr": "^1.4.0", "jsqr": "^1.4.0",
"next": "16.2.1", "next": "16.2.3",
"next-auth": "5.0.0-beta.30", "next-auth": "5.0.0-beta.30",
"qrcode-generator": "^2.0.4", "qrcode-generator": "^2.0.4",
"react": "^19.2.4", "react": "^19.2.5",
"react-dom": "^19.2.4", "react-dom": "^19.2.5",
"react-dropzone": "^15.0.0", "react-dropzone": "^15.0.0",
"react-image-crop": "^11.0.10", "react-image-crop": "^11.0.10",
"redis": "^5.11.0", "redis": "^5.11.0",
@ -44,13 +44,13 @@
"@iconify/react": "^6.0.2", "@iconify/react": "^6.0.2",
"@tailwindcss/postcss": "^4.2.2", "@tailwindcss/postcss": "^4.2.2",
"@types/canvas-confetti": "^1.9.0", "@types/canvas-confetti": "^1.9.0",
"@types/node": "^25.5.0", "@types/node": "^25.6.0",
"@types/react": "^19.2.14", "@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@types/seedrandom": "^3.0.8", "@types/seedrandom": "^3.0.8",
"@types/sjcl": "^1.0.34", "@types/sjcl": "^1.0.34",
"eslint": "^10.1.0", "eslint": "^10.2.0",
"eslint-config-next": "16.2.1", "eslint-config-next": "16.2.3",
"prisma": "^6.19.2", "prisma": "^6.19.2",
"schema-dts": "^2.0.0", "schema-dts": "^2.0.0",
"tailwindcss": "^4.2.2", "tailwindcss": "^4.2.2",

File diff suppressed because it is too large Load diff

View file

@ -235,7 +235,7 @@ export default function Camera({ isOpen, setIsOpen, onCapture, setImage, setQrBy
<div className="rounded-2xl border-2 border-amber-500 max-h-96 flex justify-center items-center overflow-hidden"> <div className="rounded-2xl border-2 border-amber-500 max-h-96 flex justify-center items-center overflow-hidden">
<img src="/loading.svg" alt="loading indicator" width={256} height={256} className="absolute" /> <img src="/loading.svg" alt="loading indicator" width={256} height={256} className="absolute" />
<video ref={videoRef} className={`size-full z-10 ${setQrBytesRaw ? "object-cover" : ""}`} /> <video ref={videoRef} className={`size-full z-10 ${setQrBytesRaw ? "object-cover aspect-square" : ""}`} />
</div> </div>
{setQrBytesRaw && <QrFinder />} {setQrBytesRaw && <QrFinder />}
<canvas ref={canvasRef} className="hidden" /> <canvas ref={canvasRef} className="hidden" />

View file

@ -98,10 +98,10 @@ export default function HairTab({ instructions }: Props) {
type="button" type="button"
key={i} key={i}
onClick={() => { onClick={() => {
setStyle(i); setStyle(i + 1);
instructions.current.hair.style = i; instructions.current.hair.style = i + 1;
}} }}
className={`size-full aspect-square cursor-pointer hover:bg-orange-300 transition-colors duration-100 rounded-lg ${style === i ? "bg-orange-400!" : ""}`} className={`size-full aspect-square cursor-pointer hover:bg-orange-300 transition-colors duration-100 rounded-lg ${style === i + 1 ? "bg-orange-400!" : ""}`}
> >
{i + 1} {i + 1}
</button> </button>