mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-13 06:36:49 -05:00
Adjust imports
This commit is contained in:
46
app/constants.ts
Normal file
46
app/constants.ts
Normal 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"],
|
||||
},
|
||||
];
|
||||
@@ -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 = () => {
|
||||
|
||||
@@ -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 }];
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
47
app/utils.ts
47
app/utils.ts
@@ -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> = {
|
||||
|
||||
Reference in New Issue
Block a user