From 69d87b3392f9e0318ec949250918b35efac88d23 Mon Sep 17 00:00:00 2001
From: mina
Date: Fri, 30 Oct 2026 13:22:31 +0100
Subject: [PATCH 1/3] chore: fix frontend dependency vulnerabilities
---
frontend/package-lock.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 9dd1ad0..1ccc63c 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -4113,9 +4113,9 @@
}
},
"node_modules/zod": {
- "version": "4.6.5",
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz",
- "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==",
+ "version": "4.6.7",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
+ "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
"dev": true,
"license": "MIT",
"funding": {
From 46a9aeafa94e74b0716574001b8c3f90b41f365c Mon Sep 17 00:00:00 2001
From: mina
Date: Fri, 30 Oct 2026 13:22:52 +0100
Subject: [PATCH 2/3] chore: fix backend dependency vulnerabilities
---
backend/package-lock.json | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/backend/package-lock.json b/backend/package-lock.json
index 7fdcc42..fa383ab 100644
--- a/backend/package-lock.json
+++ b/backend/package-lock.json
@@ -1860,18 +1860,18 @@
}
},
"node_modules/body-parser": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz",
- "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==",
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz",
+ "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==",
"license": "MIT",
"dependencies": {
"bytes": "^3.1.2",
- "content-type": "^2.0.0",
+ "content-type": "^2.1.0",
"debug": "^4.4.3",
"http-errors": "^2.0.1",
- "iconv-lite": "^0.7.2",
+ "iconv-lite": "^0.7.3",
"on-finished": "^2.4.1",
- "qs": "^6.15.2",
+ "qs": "^6.16.1",
"raw-body": "^3.0.2",
"type-is": "^2.1.0"
},
@@ -3744,9 +3744,9 @@
"license": "MIT"
},
"node_modules/qs": {
- "version": "6.16.0",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz",
- "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==",
+ "version": "6.17.1",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz",
+ "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==",
"license": "BSD-3-Clause",
"dependencies": {
"es-define-property": "^1.0.1",
From 92df4064c6557d5880af94b787491f885e9e9ef9 Mon Sep 17 00:00:00 2001
From: mina
Date: Fri, 30 Oct 2026 13:23:07 +0100
Subject: [PATCH 3/3] style: format code with Prettier
---
backend/src/importMetArtworks.ts | 2 +-
frontend/src/components/AddToGalleryModal.tsx | 2 +-
frontend/src/components/Footer.tsx | 2 +-
frontend/src/components/GalleryCard.tsx | 2 +-
frontend/src/components/ProtectedRoute.tsx | 2 +-
frontend/src/hooks/useArtwork.ts | 2 +-
frontend/src/hooks/useGalleryCoverImages.ts | 7 ++-----
frontend/src/pages/ArtworkDetailPage.tsx | 2 +-
frontend/src/store/authStore.ts | 2 +-
9 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/backend/src/importMetArtworks.ts b/backend/src/importMetArtworks.ts
index 68a66b3..7c08d1b 100644
--- a/backend/src/importMetArtworks.ts
+++ b/backend/src/importMetArtworks.ts
@@ -94,7 +94,7 @@ async function importArtworks() {
country: artwork.country,
city: artwork.city,
culture: artwork.culture,
- period: artwork.period,
+ period: artwork.period,
},
},
{ upsert: true },
diff --git a/frontend/src/components/AddToGalleryModal.tsx b/frontend/src/components/AddToGalleryModal.tsx
index cf672e7..de1cccf 100644
--- a/frontend/src/components/AddToGalleryModal.tsx
+++ b/frontend/src/components/AddToGalleryModal.tsx
@@ -179,4 +179,4 @@ export default function AddToGalleryModal({
);
-}
\ No newline at end of file
+}
diff --git a/frontend/src/components/Footer.tsx b/frontend/src/components/Footer.tsx
index fd77cb5..d91e785 100644
--- a/frontend/src/components/Footer.tsx
+++ b/frontend/src/components/Footer.tsx
@@ -4,4 +4,4 @@ export default function Footer() {
© {new Date().getFullYear()} Artex. All rights reserved
);
-}
\ No newline at end of file
+}
diff --git a/frontend/src/components/GalleryCard.tsx b/frontend/src/components/GalleryCard.tsx
index 7f8b07e..a1ed92c 100644
--- a/frontend/src/components/GalleryCard.tsx
+++ b/frontend/src/components/GalleryCard.tsx
@@ -61,4 +61,4 @@ export default function GalleryCard({
);
-}
\ No newline at end of file
+}
diff --git a/frontend/src/components/ProtectedRoute.tsx b/frontend/src/components/ProtectedRoute.tsx
index 6366ab1..5e9515c 100644
--- a/frontend/src/components/ProtectedRoute.tsx
+++ b/frontend/src/components/ProtectedRoute.tsx
@@ -14,4 +14,4 @@ export default function ProtectedRoute({ children }: ProtectedRouteProps) {
}
return children;
-}
\ No newline at end of file
+}
diff --git a/frontend/src/hooks/useArtwork.ts b/frontend/src/hooks/useArtwork.ts
index d3bf2cc..fdccb1b 100644
--- a/frontend/src/hooks/useArtwork.ts
+++ b/frontend/src/hooks/useArtwork.ts
@@ -70,4 +70,4 @@ export function useArtwork(id: number) {
}, [id]);
return { artwork, loading, error };
-}
\ No newline at end of file
+}
diff --git a/frontend/src/hooks/useGalleryCoverImages.ts b/frontend/src/hooks/useGalleryCoverImages.ts
index 8b049e5..321d892 100644
--- a/frontend/src/hooks/useGalleryCoverImages.ts
+++ b/frontend/src/hooks/useGalleryCoverImages.ts
@@ -59,10 +59,7 @@ export function useGalleryCoverImages(galleries: Gallery[]) {
return result.data?.artwork?.image_url ?? null;
} catch (error) {
- console.error(
- `Could not fetch artwork ${artworkId}:`,
- error,
- );
+ console.error(`Could not fetch artwork ${artworkId}:`, error);
return null;
}
@@ -86,4 +83,4 @@ export function useGalleryCoverImages(galleries: Gallery[]) {
}, [galleries]);
return coverImages;
-}
\ No newline at end of file
+}
diff --git a/frontend/src/pages/ArtworkDetailPage.tsx b/frontend/src/pages/ArtworkDetailPage.tsx
index f6ff566..ab200d0 100644
--- a/frontend/src/pages/ArtworkDetailPage.tsx
+++ b/frontend/src/pages/ArtworkDetailPage.tsx
@@ -177,4 +177,4 @@ export default function ArtworkDetailPage() {
)}
);
-}
\ No newline at end of file
+}
diff --git a/frontend/src/store/authStore.ts b/frontend/src/store/authStore.ts
index efcd60f..a243e2e 100644
--- a/frontend/src/store/authStore.ts
+++ b/frontend/src/store/authStore.ts
@@ -28,4 +28,4 @@ export const useAuthStore = create()(
storage: createJSONStorage(() => sessionStorage),
},
),
-);
\ No newline at end of file
+);