diff --git a/Dockerfile b/Dockerfile index 671b06c..a27d93b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,8 @@ RUN pnpm run build FROM base AS runner WORKDIR /app +RUN apk add --no-cache python3 + ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 diff --git a/src/app/(pages)/player/[...slug]/page.tsx b/src/app/(pages)/player/[...slug]/page.tsx index e563388..408b3f3 100644 --- a/src/app/(pages)/player/[...slug]/page.tsx +++ b/src/app/(pages)/player/[...slug]/page.tsx @@ -1,6 +1,6 @@ import { formatNumberWithCommas, formatPp } from "@/common/number-utils"; import { scoresaberService } from "@/common/service/impl/scoresaber"; -import { ScoreSort } from "@/common/service/score-sort"; +import { ScoreSort } from "@/common/model/score/score-sort"; import PlayerData from "@/components/player/player-data"; import { format } from "@formkit/tempo"; import { Metadata, Viewport } from "next"; diff --git a/src/common/service/score-sort.ts b/src/common/model/score/score-sort.ts similarity index 100% rename from src/common/service/score-sort.ts rename to src/common/model/score/score-sort.ts diff --git a/src/common/service/impl/scoresaber.ts b/src/common/service/impl/scoresaber.ts index 5f8831b..92ba85f 100644 --- a/src/common/service/impl/scoresaber.ts +++ b/src/common/service/impl/scoresaber.ts @@ -3,7 +3,7 @@ import ScoreSaberPlayerScoresPageToken from "@/common/model/token/scoresaber/sco import { ScoreSaberPlayerSearchToken } from "@/common/model/token/scoresaber/score-saber-player-search-token"; import ScoreSaberPlayerToken from "@/common/model/token/scoresaber/score-saber-player-token"; import { ScoreSaberPlayersPageToken } from "@/common/model/token/scoresaber/score-saber-players-page-token"; -import { ScoreSort } from "../score-sort"; +import { ScoreSort } from "../../model/score/score-sort"; import Service from "../service"; import ScoreSaberPlayer, { getScoreSaberPlayerFromToken, diff --git a/src/components/player/player-data.tsx b/src/components/player/player-data.tsx index 8391f45..c508739 100644 --- a/src/components/player/player-data.tsx +++ b/src/components/player/player-data.tsx @@ -2,7 +2,7 @@ import ScoreSaberPlayerScoresPageToken from "@/common/model/token/scoresaber/score-saber-player-scores-page-token"; import { scoresaberService } from "@/common/service/impl/scoresaber"; -import { ScoreSort } from "@/common/service/score-sort"; +import { ScoreSort } from "@/common/model/score/score-sort"; import { useQuery } from "@tanstack/react-query"; import Mini from "../ranking/mini"; import PlayerHeader from "./player-header"; diff --git a/src/components/player/player-scores.tsx b/src/components/player/player-scores.tsx index 6a0d136..ea59267 100644 --- a/src/components/player/player-scores.tsx +++ b/src/components/player/player-scores.tsx @@ -7,7 +7,7 @@ import { useCallback, useEffect, useState } from "react"; import Card from "../card"; import Pagination from "../input/pagination"; import { Button } from "../ui/button"; -import { ScoreSort } from "@/common/service/score-sort"; +import { ScoreSort } from "@/common/model/score/score-sort"; import ScoreSaberPlayerScoresPageToken from "@/common/model/token/scoresaber/score-saber-player-scores-page-token"; import Score from "@/components/score/score"; import ScoreSaberPlayer from "@/common/model/player/impl/scoresaber-player";