Skip to content

Commit

Permalink
🆙bump: update dependencies (OpenUp-LabTakizawa#1160)
Browse files Browse the repository at this point in the history
* 🆙bump: update dependencies

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
Marukome0743 and autofix-ci[bot] authored Dec 18, 2024
1 parent e1eb764 commit 98f239e
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
33 changes: 32 additions & 1 deletion app/@modal/(.)history/image/[area]/[date]/[image]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@
import { Modal } from "@/app/@modal/(.)history/modal"
import type { Picture } from "@/app/interfaces/picture"
import type { EventDate } from "@/app/interfaces/schedule"
import { HIROSHIMA_HISTORY, KANTO, KANTO_HISTORY } from "@/app/lib/constant"
import {
HIROSHIMA,
HIROSHIMA_HISTORY,
KANTO,
KANTO_HISTORY,
} from "@/app/lib/constant"
import { cloudfrontLoader } from "@/app/lib/loader"
import Image from "next/image"
import type { JSX } from "react"

export function generateStaticParams(): {
area: string
date: string
image: string
}[] {
const kantoArea: string = KANTO.pathname.split("/")[1]
const kantoParams: { area: string; date: string; image: string }[] =
KANTO_HISTORY.flatMap((eventDate) =>
eventDate.pictures.map((picture) => ({
area: kantoArea,
date: eventDate.date,
image: picture.src.split("/").reverse()[0].split(".")[0],
})),
)
const hiroshimaArea: string = HIROSHIMA.pathname.split("/")[1]
const hiroshimaParams: { area: string; date: string; image: string }[] =
HIROSHIMA_HISTORY.flatMap((eventDate) =>
eventDate.pictures.map((picture) => ({
area: hiroshimaArea,
date: eventDate.date,
image: picture.src.split("/").reverse()[0].split(".")[0],
})),
)
return [...kantoParams, ...hiroshimaParams]
}

export default async function PictureModal({

Check warning on line 40 in app/@modal/(.)history/image/[area]/[date]/[image]/page.tsx

View workflow job for this annotation

GitHub Actions / quality

lint/style/noDefaultExport

Avoid default exports.
params,
}: Readonly<{
Expand Down
17 changes: 17 additions & 0 deletions app/@modal/(.)history/movie/[area]/[date]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ import {
} from "@/app/lib/constant"
import type { JSX } from "react"

export function generateStaticParams(): { area: string; date: string }[] {
const kantoArea: string = KANTO.pathname.split("/")[1]
const kantoParams: { area: string; date: string }[] = KANTO_HISTORY.map(
(eventDate) => ({
area: kantoArea,
date: eventDate.date,
}),
)
const hiroshimaArea: string = HIROSHIMA.pathname.split("/")[1]
const hiroshimaParams: { area: string; date: string }[] =
HIROSHIMA_HISTORY.map((eventDate) => ({
area: hiroshimaArea,
date: eventDate.date,
}))
return [...kantoParams, ...hiroshimaParams]
}

export default async function Movie({

Check warning on line 30 in app/@modal/(.)history/movie/[area]/[date]/page.tsx

View workflow job for this annotation

GitHub Actions / quality

lint/style/noDefaultExport

Avoid default exports.
params,
}: Readonly<{
Expand Down
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"@biomejs/biome": "^1.9.4",
"@happy-dom/global-registrator": "^15.11.7",
"@playwright/test": "next",
"@tailwindcss/postcss": "^4.0.0-beta.7",
"@tailwindcss/postcss": "^4.0.0-beta.8",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@types/bun": "^1.1.14",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"babel-plugin-react-compiler": "experimental",
"postcss": "^8.4.49",
"tailwindcss": "^4.0.0-beta.7",
"tailwindcss": "^4.0.0-beta.8",
"typescript": "^5.7.2"
},
"trustedDependencies": ["@biomejs/biome", "sharp"]
Expand Down

0 comments on commit 98f239e

Please sign in to comment.