Compare commits

...

3 Commits

Author SHA1 Message Date
HugeFrog24 c07a3c0cc0 Docker 2026-05-17 08:11:11 +02:00
HugeFrog24 ea921ba5d5 Dockerfile 2026-05-17 07:59:54 +02:00
HugeFrog24 b1f70688cb Lint and version bump 2026-05-17 07:57:41 +02:00
13 changed files with 1170 additions and 1010 deletions
-1
View File
@@ -3,6 +3,5 @@
"messages", "messages",
"src/i18n" "src/i18n"
], ],
"snyk.advanced.organization": "512ef4a1-6034-4537-a391-9692d282122a",
"snyk.advanced.autoSelectOrganization": true "snyk.advanced.autoSelectOrganization": true
} }
+33 -20
View File
@@ -1,43 +1,59 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
# ============================================
# Stage 1: Dependencies # Stage 1: Dependencies
FROM --platform=$BUILDPLATFORM node:20-alpine AS deps # ============================================
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS deps
WORKDIR /app WORKDIR /app
# Install pnpm ENV NEXT_TELEMETRY_DISABLED=1
RUN corepack enable && corepack prepare pnpm@latest --activate ENV COREPACK_DEFAULT_TO_LATEST=0
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN pnpm install --frozen-lockfile
RUN corepack enable \
&& corepack prepare pnpm@11.1.2 --activate \
&& pnpm install --frozen-lockfile
# ============================================
# Stage 2: Builder # Stage 2: Builder
FROM --platform=$BUILDPLATFORM node:20-alpine AS builder # ============================================
FROM --platform=$BUILDPLATFORM node:22-alpine3.22 AS builder
WORKDIR /app WORKDIR /app
# Install pnpm ENV NEXT_TELEMETRY_DISABLED=1
RUN corepack enable && corepack prepare pnpm@latest --activate ENV COREPACK_DEFAULT_TO_LATEST=0
RUN corepack enable \
&& corepack prepare pnpm@11.1.2 --activate
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
RUN pnpm run build RUN pnpm build
# ============================================
# Stage 3: Runner # Stage 3: Runner
FROM node:20-alpine AS runner # ============================================
FROM node:22-alpine3.22 AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
RUN addgroup --system --gid 1001 nodejs RUN addgroup -S nodejs -g 1001 \
RUN adduser --system --uid 1001 nextjs && adduser -S nextjs -u 1001
# Copy only necessary files COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
# Copy tenant data and message files (not included in standalone bundle)
COPY --from=builder --chown=nextjs:nodejs /app/data ./data COPY --from=builder --chown=nextjs:nodejs /app/data ./data
COPY --from=builder --chown=nextjs:nodejs /app/messages ./messages COPY --from=builder --chown=nextjs:nodejs /app/messages ./messages
@@ -45,7 +61,4 @@ USER nextjs
EXPOSE 3000 EXPOSE 3000
ENV PORT=3000 CMD ["node", "server.js"]
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]
+29
View File
@@ -26,6 +26,35 @@
"mediumKey": "digitalPainting", "mediumKey": "digitalPainting",
"dimensions": "4000 x 3000 px", "dimensions": "4000 x 3000 px",
"year": 2024 "year": 2024
},
{
"id": "p4",
"imageUrl": "#8B4513",
"category": "paintings",
"mediumKey": "watercolorOnPaper",
"dimensions": "24\" x 18\"",
"year": 2025
},
{
"id": "p5",
"imageUrl": "#2E8B57",
"category": "paintings",
"mediumKey": "digitalPainting",
"dimensions": "3500 x 2800 px",
"year": 2025
}
]
},
{
"id": "crochet",
"artworks": [
{
"id": "c1",
"imageUrl": "#D2691E",
"category": "crochet",
"mediumKey": "cottonYarn",
"dimensions": "6\" height",
"year": 2025
} }
] ]
}, },
+20 -1
View File
@@ -11,6 +11,12 @@
"description": "Handgezeichnete Tuscheillustrationen, inspiriert von Märchen", "description": "Handgezeichnete Tuscheillustrationen, inspiriert von Märchen",
"gallery": "Illustrationen-Galerie", "gallery": "Illustrationen-Galerie",
"artwork": "Illustration" "artwork": "Illustration"
},
"crochet": {
"title": "Häkelfiguren",
"description": "Handgefertigte gehäkelte Figuren und Spielzeuge",
"gallery": "Häkelfiguren-Galerie",
"artwork": "Häkelfigur"
} }
}, },
"Artworks": { "Artworks": {
@@ -33,11 +39,24 @@
"o2": { "o2": {
"title": "Pilzskizzen", "title": "Pilzskizzen",
"description": "Tuschestudien fantastischer Pilze — manche größer als Häuser" "description": "Tuschestudien fantastischer Pilze — manche größer als Häuser"
},
"p4": {
"title": "Tee mit dem Biber",
"description": "Eine gemütliche Teeszene mit einem Biber — eine märchenhafte Freundschaft am gedeckten Tisch"
},
"p5": {
"title": "Fedoras Kummer",
"description": "Der Frosch Samokvak aus Tschukowskis Erzählung — beobachtet gelassen die Flucht des Geschirrs"
},
"c1": {
"title": "Biber",
"description": "Eine gehäkelte Biberfigur mit Schwanz — weich und gemütlich"
} }
}, },
"Mediums": { "Mediums": {
"digitalPainting": "Digitale Malerei", "digitalPainting": "Digitale Malerei",
"watercolorOnPaper": "Aquarell auf Papier", "watercolorOnPaper": "Aquarell auf Papier",
"inkOnPaper": "Tusche auf Papier" "inkOnPaper": "Tusche auf Papier",
"cottonYarn": "Baumwollgarn"
} }
} }
+20 -1
View File
@@ -11,6 +11,12 @@
"description": "Hand-drawn and ink illustrations inspired by fairy tales", "description": "Hand-drawn and ink illustrations inspired by fairy tales",
"gallery": "Illustrations gallery", "gallery": "Illustrations gallery",
"artwork": "Illustration" "artwork": "Illustration"
},
"crochet": {
"title": "Crochet Figurines",
"description": "Handcrafted knitted figurines and toys",
"gallery": "Crochet Figurines gallery",
"artwork": "Crochet figurine"
} }
}, },
"Artworks": { "Artworks": {
@@ -33,11 +39,24 @@
"o2": { "o2": {
"title": "Mushroom Sketches", "title": "Mushroom Sketches",
"description": "Ink studies of fantastical mushrooms — some taller than houses" "description": "Ink studies of fantastical mushrooms — some taller than houses"
},
"p4": {
"title": "Tea with the Beaver",
"description": "A cozy tea-time scene with a beaver — a fairy-tale friendship at a set table"
},
"p5": {
"title": "Fedora's Grief",
"description": "The Samokvak frog from Chukovsky's tale — calmly watching the dishes flee"
},
"c1": {
"title": "Beaver",
"description": "A crocheted beaver figurine with a tail — soft and cozy"
} }
}, },
"Mediums": { "Mediums": {
"digitalPainting": "Digital painting", "digitalPainting": "Digital painting",
"watercolorOnPaper": "Watercolor on paper", "watercolorOnPaper": "Watercolor on paper",
"inkOnPaper": "Ink on paper" "inkOnPaper": "Ink on paper",
"cottonYarn": "Cotton yarn"
} }
} }
+20 -1
View File
@@ -11,6 +11,12 @@
"description": "Ilustraciones a mano y tinta inspiradas en cuentos de hadas", "description": "Ilustraciones a mano y tinta inspiradas en cuentos de hadas",
"gallery": "Galería de ilustraciones", "gallery": "Galería de ilustraciones",
"artwork": "Ilustración" "artwork": "Ilustración"
},
"crochet": {
"title": "Figuras de ganchillo",
"description": "Figuras y juguetes tejidos a mano",
"gallery": "Galería de figuras de ganchillo",
"artwork": "Figura de ganchillo"
} }
}, },
"Artworks": { "Artworks": {
@@ -33,11 +39,24 @@
"o2": { "o2": {
"title": "Bocetos de Hongos", "title": "Bocetos de Hongos",
"description": "Estudios a tinta de hongos fantásticos — algunos más altos que casas" "description": "Estudios a tinta de hongos fantásticos — algunos más altos que casas"
},
"p4": {
"title": "Té con el castor",
"description": "Una acogedora escena de té con un castor — una amistad de cuento en una mesa servida"
},
"p5": {
"title": "La pena de Fedora",
"description": "La rana Samokvak del cuento de Chukovski — observa con calma la huida de la vajilla"
},
"c1": {
"title": "Castor",
"description": "Una figura de ganchillo de un castor con cola — suave y acogedor"
} }
}, },
"Mediums": { "Mediums": {
"digitalPainting": "Pintura digital", "digitalPainting": "Pintura digital",
"watercolorOnPaper": "Acuarela sobre papel", "watercolorOnPaper": "Acuarela sobre papel",
"inkOnPaper": "Tinta sobre papel" "inkOnPaper": "Tinta sobre papel",
"cottonYarn": "Hilo de algodón"
} }
} }
+20 -1
View File
@@ -11,6 +11,12 @@
"description": "ხელით დახატული და მელნის ილუსტრაციები, ზღაპრებით შთაგონებული", "description": "ხელით დახატული და მელნის ილუსტრაციები, ზღაპრებით შთაგონებული",
"gallery": "ილუსტრაციების გალერეა", "gallery": "ილუსტრაციების გალერეა",
"artwork": "ილუსტრაცია" "artwork": "ილუსტრაცია"
},
"crochet": {
"title": "ქსოვილი ფიგურები",
"description": "ხელნაკეთი ქსოვილი ფიგურები და სათამაშოები",
"gallery": "ქსოვილი ფიგურების გალერეა",
"artwork": "ქსოვილი ფიგურა"
} }
}, },
"Artworks": { "Artworks": {
@@ -33,11 +39,24 @@
"o2": { "o2": {
"title": "სოკოს ესკიზები", "title": "სოკოს ესკიზები",
"description": "მელნის ეტიუდები ფანტასტიკური სოკოების — ზოგი სახლებზე მაღალი" "description": "მელნის ეტიუდები ფანტასტიკური სოკოების — ზოგი სახლებზე მაღალი"
},
"p4": {
"title": "თახვთან ერთად მაგიდასთან",
"description": "თახვთან ერთად ჩაის მყუდრო სცენა — ზღაპრული მეგობრობა გაშლილ მაგიდასთან"
},
"p5": {
"title": "ფედორას მწუხარება",
"description": "ბაყაყი სამოკვაკი ჩუკოვსკის ზღაპრიდან — მშვიდად უყურებს ჭურჭლის გაქცევას"
},
"c1": {
"title": "თახვი",
"description": "ქსოვილი თახვის ფიგურა კუდით — რბილი და მყუდრო"
} }
}, },
"Mediums": { "Mediums": {
"digitalPainting": "ციფრული ნახატი", "digitalPainting": "ციფრული ნახატი",
"watercolorOnPaper": "აკვარელი ქაღალდზე", "watercolorOnPaper": "აკვარელი ქაღალდზე",
"inkOnPaper": "მელანი ქაღალდზე" "inkOnPaper": "მელანი ქაღალდზე",
"cottonYarn": "ბამბის ძაფი"
} }
} }
+20 -1
View File
@@ -11,6 +11,12 @@
"description": "Рисунки тушью и акварелью, вдохновлённые сказками", "description": "Рисунки тушью и акварелью, вдохновлённые сказками",
"gallery": "Галерея иллюстраций", "gallery": "Галерея иллюстраций",
"artwork": "Иллюстрация" "artwork": "Иллюстрация"
},
"crochet": {
"title": "Вязаные изделия",
"description": "Вязаные фигурки и игрушки ручной работы",
"gallery": "Галерея вязаных изделий",
"artwork": "Вязаное изделие"
} }
}, },
"Artworks": { "Artworks": {
@@ -33,11 +39,24 @@
"o2": { "o2": {
"title": "Зарисовки грибов", "title": "Зарисовки грибов",
"description": "Тушевые этюды фантастических грибов — некоторые выше домов" "description": "Тушевые этюды фантастических грибов — некоторые выше домов"
},
"p4": {
"title": "С бобром за столом",
"description": "Уютная сцена чаепития с бобром — сказочная дружба за накрытым столом"
},
"p5": {
"title": "Федорино горе",
"description": "Лягушка Самоквак из «Федорина горя» — наблюдает за бегством посуды с невозмутимым видом"
},
"c1": {
"title": "Бобёр",
"description": "Вязаная фигурка бобра с хвостом — мягкий и уютный"
} }
}, },
"Mediums": { "Mediums": {
"digitalPainting": "Цифровая живопись", "digitalPainting": "Цифровая живопись",
"watercolorOnPaper": "Акварель на бумаге", "watercolorOnPaper": "Акварель на бумаге",
"inkOnPaper": "Тушь на бумаге" "inkOnPaper": "Тушь на бумаге",
"cottonYarn": "Хлопковая пряжа"
} }
} }
+20 -1
View File
@@ -11,6 +11,12 @@
"description": "Peri masallarından ilham alan el çizimi ve mürekkep illüstrasyonları", "description": "Peri masallarından ilham alan el çizimi ve mürekkep illüstrasyonları",
"gallery": "İllüstrasyon galerisi", "gallery": "İllüstrasyon galerisi",
"artwork": "İllüstrasyon" "artwork": "İllüstrasyon"
},
"crochet": {
"title": "Tığ İşi Figürler",
"description": "El yapımı örgü figürler ve oyuncaklar",
"gallery": "Tığ işi figürler galerisi",
"artwork": "Tığ işi figür"
} }
}, },
"Artworks": { "Artworks": {
@@ -33,11 +39,24 @@
"o2": { "o2": {
"title": "Mantar Eskizleri", "title": "Mantar Eskizleri",
"description": "Fantastik mantarların mürekkep çalışmaları — bazıları evlerden daha uzun" "description": "Fantastik mantarların mürekkep çalışmaları — bazıları evlerden daha uzun"
},
"p4": {
"title": "Kunduzla Çay Saati",
"description": "Bir kunduzla keyifli bir çay sahnesi — masabaşında masalsı bir dostluk"
},
"p5": {
"title": "Fedora'nın Kederi",
"description": "Çukovski'nin masalından Samokvak kurbağası — bulaşıkların kaçışını sakince izliyor"
},
"c1": {
"title": "Kunduz",
"description": "Kuyruklu tığ işi kunduz figürü — yumuşak ve sevimli"
} }
}, },
"Mediums": { "Mediums": {
"digitalPainting": "Dijital resim", "digitalPainting": "Dijital resim",
"watercolorOnPaper": "Kağıt üzerine suluboya", "watercolorOnPaper": "Kağıt üzerine suluboya",
"inkOnPaper": "Kağıt üzerine mürekkep" "inkOnPaper": "Kağıt üzerine mürekkep",
"cottonYarn": "Pamuk iplik"
} }
} }
+23 -23
View File
@@ -2,7 +2,7 @@
"name": "nini-artgallery", "name": "nini-artgallery",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"packageManager": "pnpm@10.29.3", "packageManager": "pnpm@11.1.2",
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev --turbopack",
"build": "next build", "build": "next build",
@@ -11,37 +11,37 @@
"lint:fix": "eslint --fix ." "lint:fix": "eslint --fix ."
}, },
"dependencies": { "dependencies": {
"@ai-sdk/react": "^3.0.87", "@ai-sdk/react": "^3.0.186",
"@heroicons/react": "^2.2.0", "@heroicons/react": "^2.2.0",
"@openrouter/ai-sdk-provider": "^2.2.3", "@openrouter/ai-sdk-provider": "^2.9.0",
"@types/jsonwebtoken": "^9.0.10", "@types/jsonwebtoken": "^9.0.10",
"@types/nodemailer": "^7.0.9", "@types/nodemailer": "^8.0.0",
"ai": "^6.0.85", "ai": "^6.0.184",
"jsonwebtoken": "^9.0.3", "jsonwebtoken": "^9.0.3",
"next": "16.1.6", "next": "16.2.6",
"next-intl": "^4.8.2", "next-intl": "^4.12.0",
"nodemailer": "^8.0.1", "nodemailer": "^8.0.7",
"react": "19.2.4", "react": "19.2.6",
"react-dom": "19.2.4", "react-dom": "19.2.6",
"server-only": "^0.0.1", "server-only": "^0.0.1",
"zod": "^4.3.6" "zod": "^4.4.3"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.3.3", "@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^10.0.1", "@eslint/js": "^9.39.4",
"@tailwindcss/postcss": "^4.1.18", "@tailwindcss/postcss": "^4.3.0",
"@types/node": "^25.2.3", "@types/node": "^25.8.0",
"@types/react": "19.2.14", "@types/react": "19.2.14",
"@types/react-dom": "19.2.3", "@types/react-dom": "19.2.3",
"@typescript-eslint/eslint-plugin": "^8.55.0", "@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.55.0", "@typescript-eslint/parser": "^8.59.3",
"eslint": "^10.0.0", "eslint": "^9.39.4",
"eslint-config-next": "16.1.6", "eslint-config-next": "16.2.6",
"globals": "^17.3.0", "globals": "^17.6.0",
"postcss": "^8.5.6", "postcss": "^8.5.14",
"postcss-load-config": "^6.0.1", "postcss-load-config": "^6.0.1",
"tailwindcss": "^4.1.18", "tailwindcss": "^4.3.0",
"typescript": "^5.9.3" "typescript": "^6.0.3"
}, },
"pnpm": { "pnpm": {
"overrides": { "overrides": {
+949 -951
View File
File diff suppressed because it is too large Load Diff
+8 -1
View File
@@ -1,4 +1,11 @@
allowBuilds:
'@parcel/watcher': true
'@swc/core': true
sharp: true
unrs-resolver: true
onlyBuiltDependencies: onlyBuiltDependencies:
- "@tailwindcss/oxide" - "@parcel/watcher"
- "@swc/core"
- sharp - sharp
- unrs-resolver - unrs-resolver
- "@tailwindcss/oxide"
+8 -8
View File
@@ -592,6 +592,14 @@ export default function ChatWidget({
<div className="flex items-center justify-between rounded-t-xl border-b border-gray-200 bg-accent-600 px-4 py-3 dark:border-gray-700 dark:bg-accent-700"> <div className="flex items-center justify-between rounded-t-xl border-b border-gray-200 bg-accent-600 px-4 py-3 dark:border-gray-700 dark:bg-accent-700">
<h2 className="text-sm font-semibold text-white">{t("Chat.title")}</h2> <h2 className="text-sm font-semibold text-white">{t("Chat.title")}</h2>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<button
onClick={onReset}
className="text-white/80 hover:text-white transition-colors focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed"
aria-label={t("Chat.clearChat")}
disabled={isLoading}
>
<TrashIcon className="h-5 w-5" />
</button>
<button <button
onClick={() => setSettingsOpen((v) => !v)} onClick={() => setSettingsOpen((v) => !v)}
className={`transition-colors focus:outline-none ${ className={`transition-colors focus:outline-none ${
@@ -603,14 +611,6 @@ export default function ChatWidget({
> >
<Cog6ToothIcon className="h-5 w-5" /> <Cog6ToothIcon className="h-5 w-5" />
</button> </button>
<button
onClick={onReset}
className="text-white/80 hover:text-white transition-colors focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed"
aria-label={t("Chat.clearChat")}
disabled={isLoading}
>
<TrashIcon className="h-5 w-5" />
</button>
<button <button
onClick={onClose} onClick={onClose}
className="text-white/80 hover:text-white transition-colors focus:outline-none" className="text-white/80 hover:text-white transition-colors focus:outline-none"