diff --git a/Dockerfile b/Dockerfile index a27d93b..316f708 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM fascinated/docker-images:nodejs_20_with_pnpm AS base -# Install depends +# Install dependencies, including Python FROM base AS deps -RUN apk add --no-cache libc6-compat +RUN apk add --no-cache libc6-compat python3 make g++ gcc WORKDIR /app COPY package.json* pnpm-lock.yaml* ./ RUN pnpm install --frozen-lockfile --quiet diff --git a/src/common/database/types/beatsaver-map.ts b/src/common/database/types/beatsaver-map.ts index d58eaa5..492df24 100644 --- a/src/common/database/types/beatsaver-map.ts +++ b/src/common/database/types/beatsaver-map.ts @@ -1,5 +1,5 @@ -import { BeatSaverMapToken as BSMap } from "@/common/model/token/beatsaver/beat-saver-map-token"; -import { Entity } from "dexie"; +import {BeatSaverMapToken as BSMap} from "@/common/model/token/beatsaver/beat-saver-map-token"; +import {Entity} from "dexie"; import Database from "../database"; /** diff --git a/src/common/database/types/settings.ts b/src/common/database/types/settings.ts index 51f47fd..be700f1 100644 --- a/src/common/database/types/settings.ts +++ b/src/common/database/types/settings.ts @@ -1,4 +1,4 @@ -import { Entity } from "dexie"; +import {Entity} from "dexie"; import Database from "../database"; /** diff --git a/src/common/image-utils.ts b/src/common/image-utils.ts index f8a9d5a..717b00b 100644 --- a/src/common/image-utils.ts +++ b/src/common/image-utils.ts @@ -1,8 +1,8 @@ -import { createCanvas, loadImage } from "canvas"; -import { config } from "../../config"; +import {createCanvas, loadImage} from "canvas"; +import {config} from "../../config"; import ky from "ky"; -import { extractColors } from "extract-colors"; -import { cache } from "react"; +import {extractColors} from "extract-colors"; +import {cache} from "react"; /** * Proxies all non-localhost images to make them load faster. diff --git a/src/common/model/player/impl/scoresaber-player.ts b/src/common/model/player/impl/scoresaber-player.ts index 4a268d6..d550570 100644 --- a/src/common/model/player/impl/scoresaber-player.ts +++ b/src/common/model/player/impl/scoresaber-player.ts @@ -1,13 +1,9 @@ -import Player, { StatisticChange } from "../player"; +import Player, {StatisticChange} from "../player"; import ScoreSaberPlayerToken from "@/common/model/token/scoresaber/score-saber-player-token"; -import { PlayerHistory } from "@/common/player/player-history"; -import { config } from "../../../../../config"; +import {PlayerHistory} from "@/common/player/player-history"; +import {config} from "../../../../../config"; import ky from "ky"; -import { - formatDateMinimal, - getDaysAgoDate, - getMidnightAlignedDate, -} from "@/common/time-utils"; +import {formatDateMinimal, getDaysAgoDate, getMidnightAlignedDate,} from "@/common/time-utils"; /** * A ScoreSaber player. diff --git a/src/components/loaders/database-loader.tsx b/src/components/loaders/database-loader.tsx index 5a65387..a82dcc2 100644 --- a/src/components/loaders/database-loader.tsx +++ b/src/components/loaders/database-loader.tsx @@ -1,7 +1,7 @@ "use client"; -import { createContext, useEffect, useState } from "react"; -import Database, { db } from "../../common/database/database"; +import {createContext, useEffect, useState} from "react"; +import Database, {db} from "../../common/database/database"; import FullscreenLoader from "./fullscreen-loader"; /** diff --git a/src/components/player/player-header.tsx b/src/components/player/player-header.tsx index 669b3b6..6b0e5ab 100644 --- a/src/components/player/player-header.tsx +++ b/src/components/player/player-header.tsx @@ -1,13 +1,13 @@ -import { formatNumberWithCommas, formatPp } from "@/common/number-utils"; -import { GlobeAmericasIcon } from "@heroicons/react/24/solid"; +import {formatNumberWithCommas, formatPp} from "@/common/number-utils"; +import {GlobeAmericasIcon} from "@heroicons/react/24/solid"; import Card from "../card"; import CountryFlag from "../country-flag"; -import { Avatar, AvatarImage } from "../ui/avatar"; +import {Avatar, AvatarImage} from "../ui/avatar"; import ClaimProfile from "./claim-profile"; import PlayerStats from "./player-stats"; import ScoreSaberPlayer from "@/common/model/player/impl/scoresaber-player"; import Tooltip from "@/components/tooltip"; -import { ReactElement } from "react"; +import {ReactElement} from "react"; import PlayerTrackedStatus from "@/components/player/player-tracked-status"; /** diff --git a/src/hooks/use-database.ts b/src/hooks/use-database.ts index b17a64f..d0784c9 100644 --- a/src/hooks/use-database.ts +++ b/src/hooks/use-database.ts @@ -1,5 +1,5 @@ import { useContext } from "react"; -import { DatabaseContext } from "../components/loaders/database-loader"; +import { DatabaseContext } from "@/components/loaders/database-loader"; /** * Gets the database context.