This commit is contained in:
parent
516402863c
commit
3b7b3b7e50
@ -15,12 +15,16 @@ ENV NODE_ENV production
|
|||||||
ARG GIT_REV
|
ARG GIT_REV
|
||||||
ENV GIT_REV=${GIT_REV}
|
ENV GIT_REV=${GIT_REV}
|
||||||
|
|
||||||
|
# Copy the depends
|
||||||
|
COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
||||||
|
COPY --from=depends /app/node_modules ./node_modules
|
||||||
|
|
||||||
|
# Build the common library
|
||||||
COPY --from=depends /app/projects/common ./projects/common
|
COPY --from=depends /app/projects/common ./projects/common
|
||||||
RUN bun i -g typescript
|
RUN bun i -g typescript
|
||||||
RUN bun --filter '@ssr/common' build
|
RUN bun --filter '@ssr/common' build
|
||||||
|
|
||||||
COPY --from=depends /app/node_modules ./node_modules
|
# Copy the website project
|
||||||
COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
|
||||||
COPY --from=depends /app/projects/website ./projects/website
|
COPY --from=depends /app/projects/website ./projects/website
|
||||||
|
|
||||||
# Build the website
|
# Build the website
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { scoresaberService } from "@/common/service/impl/scoresaber";
|
|
||||||
import { Metadata, Viewport } from "next";
|
import { Metadata, Viewport } from "next";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { Colors } from "@/common/colors";
|
import { Colors } from "@/common/colors";
|
||||||
import { getAverageColor } from "@/common/image-utils";
|
import { getAverageColor } from "@/common/image-utils";
|
||||||
import { cache } from "react";
|
import { cache } from "react";
|
||||||
import ScoreSaberLeaderboardScoresPageToken from "@/common/model/token/scoresaber/score-saber-leaderboard-scores-page-token";
|
|
||||||
import { LeaderboardData } from "@/components/leaderboard/leaderboard-data";
|
import { LeaderboardData } from "@/components/leaderboard/leaderboard-data";
|
||||||
|
import { scoresaberService } from "@ssr/common/service/impl/scoresaber";
|
||||||
|
import ScoreSaberLeaderboardScoresPageToken from "@ssr/common/types/token/scoresaber/score-saber-leaderboard-scores-page-token";
|
||||||
|
|
||||||
const UNKNOWN_LEADERBOARD = {
|
const UNKNOWN_LEADERBOARD = {
|
||||||
title: "ScoreSaber Reloaded - Unknown Leaderboard",
|
title: "ScoreSaber Reloaded - Unknown Leaderboard",
|
||||||
|
@ -5,10 +5,10 @@ import CountryFlag from "../country-flag";
|
|||||||
import { Avatar, AvatarImage } from "../ui/avatar";
|
import { Avatar, AvatarImage } from "../ui/avatar";
|
||||||
import ClaimProfile from "./claim-profile";
|
import ClaimProfile from "./claim-profile";
|
||||||
import PlayerStats from "./player-stats";
|
import PlayerStats from "./player-stats";
|
||||||
import ScoreSaberPlayer from "@/common/model/player/impl/scoresaber-player";
|
|
||||||
import Tooltip from "@/components/tooltip";
|
import Tooltip from "@/components/tooltip";
|
||||||
import { ReactElement } from "react";
|
import { ReactElement } from "react";
|
||||||
import PlayerTrackedStatus from "@/components/player/player-tracked-status";
|
import PlayerTrackedStatus from "@/components/player/player-tracked-status";
|
||||||
|
import ScoreSaberPlayer from "@ssr/common/types/player/impl/scoresaber-player";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renders the change for a stat.
|
* Renders the change for a stat.
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import ScoreSaberLeaderboardToken from "@/common/model/token/scoresaber/score-saber-leaderboard-token";
|
|
||||||
import ScoreSaberScoreToken from "@/common/model/token/scoresaber/score-saber-score-token";
|
|
||||||
import { formatNumberWithCommas, formatPp } from "@/common/number-utils";
|
import { formatNumberWithCommas, formatPp } from "@/common/number-utils";
|
||||||
import { getScoreBadgeFromAccuracy } from "@/common/song-utils";
|
import { getScoreBadgeFromAccuracy } from "@/common/song-utils";
|
||||||
import { XMarkIcon } from "@heroicons/react/24/solid";
|
import { XMarkIcon } from "@heroicons/react/24/solid";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import Tooltip from "@/components/tooltip";
|
import Tooltip from "@/components/tooltip";
|
||||||
import { ScoreBadge, ScoreBadges } from "@/components/score/score-badge";
|
import { ScoreBadge, ScoreBadges } from "@/components/score/score-badge";
|
||||||
|
import ScoreSaberScoreToken from "@ssr/common/types/token/scoresaber/score-saber-score-token";
|
||||||
|
import ScoreSaberLeaderboardToken from "@ssr/common/types/token/scoresaber/score-saber-leaderboard-token";
|
||||||
|
|
||||||
const badges: ScoreBadge[] = [
|
const badges: ScoreBadge[] = [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user