mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 15:08:44 -05:00
Switch stage constants location
This commit is contained in:
parent
109757feda
commit
7b633fe488
|
|
@ -1,12 +1,12 @@
|
|||
import * as React from "react";
|
||||
import type { Mode } from "@prisma/client";
|
||||
import { modesShortToLong } from "~/constants";
|
||||
import {
|
||||
modeToImageUrl,
|
||||
MyCSSProperties,
|
||||
stageNameToBannerImageUrl,
|
||||
} from "~/utils";
|
||||
import clsx from "clsx";
|
||||
import { modesShortToLong } from "~/core/stages/stages";
|
||||
|
||||
export function FancyStageBanner({
|
||||
stage,
|
||||
|
|
|
|||
|
|
@ -1,46 +1,3 @@
|
|||
import { Mode } from ".prisma/client";
|
||||
|
||||
export const stages = [
|
||||
"The Reef",
|
||||
"Musselforge Fitness",
|
||||
"Starfish Mainstage",
|
||||
"Humpback Pump Track",
|
||||
"Inkblot Art Academy",
|
||||
"Sturgeon Shipyard",
|
||||
"Moray Towers",
|
||||
"Port Mackerel",
|
||||
"Manta Maria",
|
||||
"Kelp Dome",
|
||||
"Snapper Canal",
|
||||
"Blackbelly Skatepark",
|
||||
"MakoMart",
|
||||
"Walleye Warehouse",
|
||||
"Shellendorf Institute",
|
||||
"Arowana Mall",
|
||||
"Goby Arena",
|
||||
"Piranha Pit",
|
||||
"Camp Triggerfish",
|
||||
"Wahoo World",
|
||||
"New Albacore Hotel",
|
||||
"Ancho-V Games",
|
||||
"Skipper Pavilion",
|
||||
] as const;
|
||||
|
||||
export const modesShort: readonly Mode[] = [
|
||||
"TW",
|
||||
"SZ",
|
||||
"TC",
|
||||
"RM",
|
||||
"CB",
|
||||
] as const;
|
||||
export const modesShortToLong: Record<Mode, string> = {
|
||||
TW: "Turf War",
|
||||
SZ: "Splat Zones",
|
||||
TC: "Tower Control",
|
||||
RM: "Rainmaker",
|
||||
CB: "Clam Blitz",
|
||||
} as const;
|
||||
|
||||
export const navItems = [
|
||||
{
|
||||
title: "builds",
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ import { Mode } from "@prisma/client";
|
|||
import clone from "just-clone";
|
||||
import shuffle from "just-shuffle";
|
||||
import invariant from "tiny-invariant";
|
||||
import { StageName } from "~/constants";
|
||||
import { stageToId } from "../stages/stages";
|
||||
import { StageName, stageToId } from "../stages/stages";
|
||||
|
||||
const AMOUNT_OF_STAGES_TO_GENERATE = 9;
|
||||
const LEGAL_MODES: Mode[] = ["TC", "RM", "CB"];
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import styles from "~/styles/tournament-map-pool.css";
|
||||
import type { Mode } from ".prisma/client";
|
||||
import clsx from "clsx";
|
||||
import { modesShort, stages } from "~/constants";
|
||||
import { LinksFunction, useMatches } from "remix";
|
||||
import { FindTournamentByNameForUrlI } from "~/services/tournament";
|
||||
import { modeToImageUrl, stageNameToImageUrl } from "~/utils";
|
||||
import { modesShort, stages } from "~/core/stages/stages";
|
||||
|
||||
export const links: LinksFunction = () => {
|
||||
return [{ rel: "stylesheet", href: styles }];
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@ import { Alert } from "~/components/Alert";
|
|||
import { Button } from "~/components/Button";
|
||||
import { Catcher } from "~/components/Catcher";
|
||||
import { RefreshIcon } from "~/components/icons/Refresh";
|
||||
import { BEST_OF_OPTIONS, modesShort, modesShortToLong } from "~/constants";
|
||||
import { BEST_OF_OPTIONS } from "~/constants";
|
||||
import { modesShort, modesShortToLong } from "~/core/stages/stages";
|
||||
import { eliminationBracket } from "~/core/tournament/algorithms";
|
||||
import {
|
||||
EliminationBracketSide,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user