Adjust imports

This commit is contained in:
Kalle (Sendou)
2021-11-27 03:02:45 +02:00
parent a14f14815d
commit 2e07eac747
5 changed files with 50 additions and 51 deletions

46
app/constants.ts Normal file
View File

@@ -0,0 +1,46 @@
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",
];
export const modesShort = ["TW", "SZ", "TC", "RM", "CB"];
export const navItems = [
{
title: "builds",
items: ["browse", "gear", "analyzer"],
},
{
title: "play",
items: ["calendar", "battle", "Rankings"],
},
{
title: "tools",
items: ["planner", "rotations", "top 500"],
},
{
title: "misc",
items: ["badges", "links"],
},
];

View File

@@ -15,7 +15,7 @@ import { makeTitle } from "~/utils";
import {
findTournamentByNameForUrl,
FindTournamentByNameForUrlI,
} from "../../services/tournament";
} from "~/services/tournament";
import tournamentStylesUrl from "../../styles/tournament.css";
export const links: LinksFunction = () => {

View File

@@ -1,9 +1,9 @@
import stylesUrl from "~/styles/map-pool.css";
import type { Mode } from ".prisma/client";
import classNames from "classnames";
import { modesShort, stages } from "~/utils";
import { modesShort, stages } from "~/constants";
import { LinksFunction, useMatches } from "remix";
import { FindTournamentByNameForUrlI } from "../../../services/tournament";
import { FindTournamentByNameForUrlI } from "~/services/tournament";
export const links: LinksFunction = () => {
return [{ rel: "stylesheet", href: stylesUrl }];

View File

@@ -1,5 +1,5 @@
import { useMatches, LinksFunction } from "remix";
import { FindTournamentByNameForUrlI } from "../../../services/tournament";
import type { FindTournamentByNameForUrlI } from "~/services/tournament";
import stylesUrl from "~/styles/teams.css";
import { Fragment } from "react";

View File

@@ -1,50 +1,3 @@
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",
];
export const modesShort = ["TW", "SZ", "TC", "RM", "CB"];
export const navItems = [
{
title: "builds",
items: ["browse", "gear", "analyzer"],
},
{
title: "play",
items: ["calendar", "battle", "Rankings"],
},
{
title: "tools",
items: ["planner", "rotations", "top 500"],
},
{
title: "misc",
items: ["badges", "links"],
},
];
export const makeTitle = (endOfTitle: string) => `sendou.ink | ${endOfTitle}`;
export type Serialized<T> = {