mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 09:54:36 -05:00
Update Biome to 2.4.8
This commit is contained in:
parent
1e521966fe
commit
56a835611a
|
|
@ -37,7 +37,8 @@ import {
|
|||
import { action } from "../actions/admin.server";
|
||||
import { DANGEROUS_CAN_ACCESS_DEV_CONTROLS } from "../core/dev-controls";
|
||||
import { loader } from "../loaders/admin.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
return metaTags({
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ import { metaTags } from "~/utils/remix";
|
|||
import { API_DOC_LINK } from "~/utils/urls";
|
||||
import { action } from "../actions/api.server";
|
||||
import { loader } from "../loaders/api.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
return metaTags({
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@ import { ART } from "../art-constants";
|
|||
import { previewUrl } from "../art-utils";
|
||||
import { TagSelect } from "../components/TagSelect";
|
||||
import { loader } from "../loaders/art.new.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: ["art"],
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import { FILTERED_TAG_KEY_SEARCH_PARAM_KEY } from "../art-constants";
|
|||
import { ArtGrid } from "../components/ArtGrid";
|
||||
import { TagSelect } from "../components/TagSelect";
|
||||
import { loader } from "../loaders/art.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
const OPEN_COMMISIONS_KEY = "open";
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import {
|
|||
import { metaTags, type SerializeFrom } from "../../../utils/remix";
|
||||
|
||||
import { loader } from "../loaders/a.$slug.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import { ARTICLES_MAIN_PAGE, articlePage, navIconUrl } from "~/utils/urls";
|
|||
import { metaTags } from "../../../utils/remix";
|
||||
import { loader } from "../loaders/a.server";
|
||||
import styles from "./a.module.css";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import type { SendouRouteHandle } from "~/utils/remix.server";
|
|||
import { associationsPage } from "~/utils/urls";
|
||||
|
||||
import { action } from "../actions/associations.new.server";
|
||||
|
||||
export { action };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@ import { useUser } from "~/features/auth/core/user";
|
|||
import { useHasPermission } from "~/modules/permissions/hooks";
|
||||
import type { SendouRouteHandle } from "~/utils/remix.server";
|
||||
import { associationsPage, userPage } from "~/utils/urls";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: "scrims",
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import { action } from "../actions/badges.$id.edit.server";
|
|||
import styles from "../badges.module.css";
|
||||
import type { BadgeDetailsLoaderData } from "../loaders/badges.$id.server";
|
||||
import type { BadgeDetailsContext } from "./badges.$id";
|
||||
|
||||
export { action };
|
||||
|
||||
export default function EditBadgePage() {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import styles from "../badges.module.css";
|
|||
import { badgeExplanationText } from "../badges-utils";
|
||||
|
||||
import { loader } from "../loaders/badges.$id.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export interface BadgeDetailsContext {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import { BADGES_DOC_LINK, BADGES_PAGE, navIconUrl } from "~/utils/urls";
|
|||
import { metaTags } from "../../../utils/remix";
|
||||
|
||||
import { type BadgesLoaderData, loader } from "../loaders/badges.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
import styles from "../badges.module.css";
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { useTimeFormat } from "~/hooks/useTimeFormat";
|
|||
import { databaseTimestampToDate } from "~/utils/dates";
|
||||
|
||||
import { loader } from "../loaders/suspended.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export default function SuspendedPage() {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import {
|
|||
import { metaTags, type SerializeFrom } from "../../../utils/remix";
|
||||
|
||||
import { loader } from "../loaders/builds.$slug.popular.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const meta: MetaFunction<typeof loader> = (args) => {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import {
|
|||
import { metaTags, type SerializeFrom } from "../../../utils/remix";
|
||||
|
||||
import { loader } from "../loaders/builds.$slug.stats.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
import { MAX_AP } from "~/features/build-analyzer/analyzer-constants";
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ import type { AbilityBuildFilter, BuildFilter } from "../builds-types";
|
|||
import { FilterSection } from "../components/FilterSection";
|
||||
|
||||
import { loader } from "../loaders/builds.$slug.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
import styles from "./builds.$slug.module.css";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ import type { Unpacked } from "~/utils/types";
|
|||
import { action } from "../actions/calendar.$id.report-winners.server";
|
||||
import { CALENDAR_EVENT_RESULT } from "../calendar-constants";
|
||||
import { loader } from "../loaders/calendar.$id.report-winners.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: "calendar",
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@ import {
|
|||
} from "../calendar-utils";
|
||||
import { Tags } from "../components/Tags";
|
||||
import { loader } from "../loaders/calendar.$id.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
const data = args.data as SerializeFrom<typeof loader>;
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
import { loader } from "../loaders/calendar[.]ics.server";
|
||||
|
||||
export { loader };
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@ import {
|
|||
import { BracketProgressionSelector } from "../components/BracketProgressionSelector";
|
||||
import { Tags } from "../components/Tags";
|
||||
import { loader } from "../loaders/calendar.new.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction<typeof loader> = (args) => {
|
||||
if (!args.data) return [];
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ import { FiltersDialog } from "../components/FiltersDialog";
|
|||
import { TournamentCard } from "../components/TournamentCard";
|
||||
import * as CalendarEvent from "../core/CalendarEvent";
|
||||
import { type CalendarLoaderData, loader } from "../loaders/calendar.server";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import styles from "./calendar.module.css";
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ import {
|
|||
sqHeaderGuyImageUrl,
|
||||
} from "~/utils/urls";
|
||||
import { type LeaderboardEntry, loader } from "../loaders/index.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import { SubmitButton } from "~/components/SubmitButton";
|
|||
|
||||
import { action } from "../actions/upload.admin.server";
|
||||
import { loader } from "../loaders/upload.admin.server";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function ImageUploadAdminPage() {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { action } from "../actions/upload.server";
|
|||
import { loader } from "../loaders/upload.server";
|
||||
import { imgTypeToDimensions, imgTypeToStyle } from "../upload-constants";
|
||||
import type { ImageUploadType } from "../upload-types";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function FileUploadPage() {
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import {
|
|||
} from "../leaderboards-constants";
|
||||
import { seasonHasTopTen } from "../leaderboards-utils";
|
||||
import { loader } from "../loaders/leaderboards.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
import styles from "../../top-search/top-search.module.css";
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ import { action } from "../actions/lfg.new.server";
|
|||
import { LFG, TEAM_POST_TYPES, TIMEZONES } from "../lfg-constants";
|
||||
import { lfgNewSchema } from "../lfg-schemas";
|
||||
import { loader } from "../loaders/lfg.new.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: ["lfg"],
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ import {
|
|||
} from "../lfg-types";
|
||||
import { loader } from "../loaders/lfg.server";
|
||||
import styles from "./lfg.module.css";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: ["lfg"],
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import {
|
|||
} from "../components/NotificationList";
|
||||
import { loader } from "../loaders/notifications.server";
|
||||
import { useMarkNotificationsAsSeen } from "../notifications-hooks";
|
||||
|
||||
export { loader };
|
||||
|
||||
import styles from "./notifications.module.css";
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import { action } from "../actions/plus.suggestions.comment.$tier.$userId.server
|
|||
import { followUpCommentFormSchema } from "../plus-suggestions-schemas";
|
||||
import { canAddCommentToSuggestionFE } from "../plus-suggestions-utils";
|
||||
import type { PlusSuggestionsLoaderData } from "./plus.suggestions";
|
||||
|
||||
export { action };
|
||||
|
||||
export default function PlusCommentModalPage() {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import { PLUS_TIERS } from "../plus-suggestions-constants";
|
|||
import { newSuggestionFormSchema } from "../plus-suggestions-schemas";
|
||||
import { canSuggestNewUser } from "../plus-suggestions-utils";
|
||||
import type { PlusSuggestionsLoaderData } from "./plus.suggestions";
|
||||
|
||||
export { action };
|
||||
|
||||
export default function PlusNewSuggestionModalPage() {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ import {
|
|||
canEditSuggestion,
|
||||
canSuggestNewUser,
|
||||
} from "../plus-suggestions-utils";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { PLUS_SERVER_DISCORD_URL, userPage } from "~/utils/urls";
|
|||
|
||||
import { loader } from "../loaders/plus.voting.results.server";
|
||||
import styles from "../plus-voting-results.module.css";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import {
|
|||
loader,
|
||||
type PlusVotingLoaderData,
|
||||
} from "../loaders/plus.voting.server";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ import * as Scrim from "../core/Scrim";
|
|||
import { loader } from "../loaders/scrims.$id.server";
|
||||
import type { ScrimPost, ScrimPost as ScrimPostType } from "../scrims-types";
|
||||
import styles from "./scrims.$id.module.css";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import { Check, OctagonAlert } from "lucide-react";
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ import { loader, type ScrimsNewLoaderData } from "../loaders/scrims.new.server";
|
|||
import { SCRIM } from "../scrims-constants";
|
||||
import { scrimsNewFormSchema } from "../scrims-schemas";
|
||||
import styles from "./scrims.new.module.css";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: "scrims",
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import * as Scrim from "../core/Scrim";
|
|||
import { loader } from "../loaders/scrims.server";
|
||||
import type { newRequestSchema } from "../scrims-schemas";
|
||||
import type { ScrimFilters, ScrimPost } from "../scrims-types";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import { Check, Download, Funnel, Megaphone } from "lucide-react";
|
||||
|
|
|
|||
|
|
@ -62,7 +62,8 @@ import { action } from "../actions/q.match.$id.server";
|
|||
import { matchEndedAtIndex } from "../core/match";
|
||||
import { loader } from "../loaders/q.match.$id.server";
|
||||
import { resolveGroupMemberOf } from "../q-match-utils";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import styles from "./q.match.$id.module.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ import {
|
|||
updateVoiceChatSchema,
|
||||
updateWeaponPoolSchema,
|
||||
} from "../q-settings-schemas";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import styles from "./q.settings.module.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import type { SendouRouteHandle } from "~/utils/remix.server";
|
|||
import { FAQ_PAGE, sendouQMatchPage, twitchUrl, userPage } from "~/utils/urls";
|
||||
|
||||
import { loader } from "../loaders/q.streams.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
import styles from "./q.streams.module.css";
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ import {
|
|||
FULL_GROUP_SIZE,
|
||||
IS_Q_LOOKING_MOBILE_BREAKPOINT,
|
||||
} from "../q-constants";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import styles from "./q.looking.module.css";
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@ import { GroupLeaver } from "../components/GroupLeaver";
|
|||
import { MemberAdder } from "../components/MemberAdder";
|
||||
import { loader } from "../loaders/q.preparing.server";
|
||||
import { FULL_GROUP_SIZE } from "../q-constants";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import styles from "./q.preparing.module.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ import { action } from "../actions/q.server";
|
|||
import { loader } from "../loaders/q.server";
|
||||
import { FULL_GROUP_SIZE } from "../q-constants";
|
||||
import { userCanJoinQueueAt } from "../q-utils";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import styles from "./q.module.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import { metaTags } from "~/utils/remix";
|
|||
import type { SendouRouteHandle } from "~/utils/remix.server";
|
||||
|
||||
import { loader } from "../loaders/tiers.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,8 @@ import {
|
|||
import styles from "./settings.module.css";
|
||||
import "./settings.global.css";
|
||||
import type { ThemeInput } from "~/utils/oklch-gamut";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
breadcrumb: () => ({
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import { loader } from "../loaders/t.$customUrl.edit.server";
|
|||
import styles from "../team.module.css";
|
||||
import { TEAM } from "../team-constants";
|
||||
import { isTeamOwner } from "../team-utils";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import {
|
|||
isTeamOwner,
|
||||
resolveNewOwner,
|
||||
} from "../team-utils";
|
||||
|
||||
export { action };
|
||||
|
||||
export default function TeamIndexPage() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ import type { SendouRouteHandle } from "~/utils/remix.server";
|
|||
import { action } from "../actions/t.$customUrl.join.server";
|
||||
import { loader } from "../loaders/t.$customUrl.join.server";
|
||||
import styles from "../team.module.css";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: ["team"],
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { Main } from "~/components/Main";
|
|||
import { TeamGoBackButton } from "~/features/team/components/TeamGoBackButton";
|
||||
import { TeamResultsTable } from "~/features/team/components/TeamResultsTable";
|
||||
import { loader } from "../loaders/t.$customUrl.results.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export default function TeamResultsPage() {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ import type * as TeamRepository from "../TeamRepository.server";
|
|||
import styles from "../team.module.css";
|
||||
import { TEAM_MEMBER_ROLES } from "../team-constants";
|
||||
import { isTeamFull } from "../team-utils";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
return metaTags({
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import { metaTags, type SerializeFrom } from "~/utils/remix";
|
|||
import type { SendouRouteHandle } from "~/utils/remix.server";
|
||||
import { bskyUrl, navIconUrl, TEAM_SEARCH_PAGE, teamPage } from "~/utils/urls";
|
||||
import { loader } from "../loaders/t.$customUrl.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
import styles from "../team.module.css";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ import { action } from "../actions/t.new.server";
|
|||
import { loader } from "../loaders/t.new.server";
|
||||
import { TEAM } from "../team-constants";
|
||||
import { createTeamSchema } from "../team-schemas";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction = (args) => {
|
||||
return metaTags({
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ import {
|
|||
import { action } from "../actions/xsearch.player.$id.server";
|
||||
import { PlacementsTable } from "../components/Placements";
|
||||
import { loader } from "../loaders/xsearch.player.$id.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
breadcrumb: ({ match }) => {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import { navIconUrl, topSearchPage } from "~/utils/urls";
|
|||
import { PlacementsTable } from "../components/Placements";
|
||||
import { loader } from "../loaders/xsearch.server";
|
||||
import type { MonthYear } from "../top-search-utils";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import {
|
|||
type FinalizeTournamentLoaderData,
|
||||
loader,
|
||||
} from "../loaders/to.$id.brackets.finalize.server";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function TournamentFinalizePage() {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ import { BracketMapListDialog } from "../components/BracketMapListDialog";
|
|||
import { TournamentTeamActions } from "../components/TournamentTeamActions";
|
||||
import type { Bracket as BracketType } from "../core/Bracket";
|
||||
import * as PreparedMaps from "../core/PreparedMaps";
|
||||
|
||||
export { action };
|
||||
|
||||
import styles from "../tournament-bracket.module.css";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import { tournamentBracketsPage } from "../../../utils/urls";
|
|||
|
||||
import { loader } from "../loaders/to.$id.divisions.server";
|
||||
import styles from "./to.$id.divisions.module.css";
|
||||
|
||||
export { loader };
|
||||
|
||||
export default function TournamentDivisionsPage() {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import { StartedMatch } from "../components/StartedMatch";
|
|||
import { getRounds } from "../core/rounds";
|
||||
import { loader } from "../loaders/to.$id.matches.$mid.server";
|
||||
import { groupNumberToLetters } from "../tournament-bracket-utils";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import styles from "../tournament-bracket.module.css";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import { action } from "../actions/org.$slug.edit.server";
|
|||
import { loader } from "../loaders/org.$slug.edit.server";
|
||||
import { handle, meta } from "../routes/org.$slug";
|
||||
import { organizationEditFormSchema } from "../tournament-organization-schemas";
|
||||
|
||||
export { action, handle, loader, meta };
|
||||
|
||||
export default function TournamentOrganizationEditPage() {
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ import { loader } from "../loaders/org.$slug.server";
|
|||
import styles from "../tournament-organization.module.css";
|
||||
import { TOURNAMENT_SERIES_EVENTS_PER_PAGE } from "../tournament-organization-constants";
|
||||
import { updateIsEstablishedSchema } from "../tournament-organization-schemas";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const meta: MetaFunction<typeof loader> = (args) => {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import { SendouForm } from "~/form/SendouForm";
|
|||
import { useHasRole } from "~/modules/permissions/hooks";
|
||||
import { action } from "../actions/org.new.server";
|
||||
import { newOrganizationSchema } from "../tournament-organization-schemas";
|
||||
|
||||
export { action };
|
||||
|
||||
export default function NewOrganizationPage() {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import { loader } from "../loaders/to.$id.join.server";
|
|||
import styles from "../tournament.module.css";
|
||||
import { validateCanJoinTeam } from "../tournament-utils";
|
||||
import { useTournament } from "./to.$id";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function JoinTeamPage() {
|
||||
|
|
|
|||
|
|
@ -71,7 +71,8 @@ import {
|
|||
validateCounterPickMapPool,
|
||||
} from "../tournament-utils";
|
||||
import { useTournament } from "./to.$id";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function TournamentRegisterPage() {
|
||||
const isMounted = useIsMounted();
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ import { action } from "../actions/to.$id.seeds.server";
|
|||
import { loader } from "../loaders/to.$id.seeds.server";
|
||||
import { useTournament } from "./to.$id";
|
||||
import styles from "./to.$id.seeds.module.css";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function TournamentSeedsPage() {
|
||||
const tournament = useTournament();
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import type { PlayedSet } from "../core/sets.server";
|
|||
import { loader } from "../loaders/to.$id.teams.$tid.server";
|
||||
import styles from "../tournament.module.css";
|
||||
import { useTournament } from "./to.$id";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const meta: MetaFunction<typeof loader> = (args) => {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import {
|
|||
import { metaTags } from "../../../utils/remix";
|
||||
|
||||
import { loader, type TournamentLoaderData } from "../loaders/to.$id.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const shouldRevalidate: ShouldRevalidateFunction = (args) => {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ import { action } from "../actions/u.$identifier.admin.server";
|
|||
import { SubPageHeader } from "../components/SubPageHeader";
|
||||
import { loader } from "../loaders/u.$identifier.admin.server";
|
||||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function UserAdminPage() {
|
||||
const [, parentRoute] = useMatches();
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import { action } from "../actions/u.$identifier.art.server";
|
|||
import { SubPageHeader } from "../components/SubPageHeader";
|
||||
import { loader } from "../loaders/u.$identifier.art.server";
|
||||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ import {
|
|||
} from "../loaders/u.$identifier.builds.server";
|
||||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
import { DEFAULT_BUILD_SORT } from "../user-page-constants";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
import userStyles from "../user-page.module.css";
|
||||
import styles from "./u.$identifier.builds.module.css";
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import { WidgetSettingsForm } from "../components/WidgetSettingsForm";
|
|||
import { loader } from "../loaders/u.$identifier.edit-widgets.server";
|
||||
import styles from "./u.$identifier.edit-widgets.module.css";
|
||||
|
||||
export { loader, action };
|
||||
export { action, loader };
|
||||
|
||||
export default function EditWidgetsPage() {
|
||||
const { t } = useTranslation(["user", "common"]);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ import { loader } from "../loaders/u.$identifier.edit.server";
|
|||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
import { COUNTRY_CODES } from "../user-page-constants";
|
||||
import { userEditProfileBaseSchema } from "../user-page-schemas";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: ["common", "user"],
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ import { loader } from "../loaders/u.$identifier.index.server";
|
|||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
import styles from "../user-page.module.css";
|
||||
import newStyles from "./u.$identifier.module.css";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ import { UserResultsTable } from "~/features/user-page/components/UserResultsTab
|
|||
import { action } from "../actions/u.$identifier.results.highlights.server";
|
||||
import { loader } from "../loaders/u.$identifier.results.server";
|
||||
import styles from "../user-page.module.css";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export default function ResultHighlightsEditPage() {
|
||||
const { t } = useTranslation(["common", "user"]);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { SendouButton } from "../../../components/elements/Button";
|
|||
import { SubPageHeader } from "../components/SubPageHeader";
|
||||
import { loader } from "../loaders/u.$identifier.results.server";
|
||||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export default function UserResultsPage() {
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ import {
|
|||
} from "../loaders/u.$identifier.seasons.server";
|
||||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
import styles from "../user-page.module.css";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import {
|
|||
loader,
|
||||
type UserPageLoaderData,
|
||||
} from "../loaders/u.$identifier.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
import "~/features/user-page/user-page.module.css";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import { userPage } from "~/utils/urls";
|
|||
import { SubPageHeader } from "../components/SubPageHeader";
|
||||
import type { UserPageLoaderData } from "../loaders/u.$identifier.server";
|
||||
import { loader } from "../loaders/u.$identifier.vods.server";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ import { loader } from "../loaders/vods.$id.server";
|
|||
import type { Vod } from "../vods-types";
|
||||
import { canEditVideo, secondsToHoursMinutesSecondString } from "../vods-utils";
|
||||
import styles from "./vods.$id.module.css";
|
||||
export { loader, action };
|
||||
|
||||
export { action, loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
breadcrumb: ({ match }) => {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import { VodListing } from "../components/VodListing";
|
|||
import { loader } from "../loaders/vods.server";
|
||||
import { VODS_PAGE_BATCH_SIZE, videoMatchTypes } from "../vods-constants";
|
||||
import styles from "./vods.module.css";
|
||||
|
||||
export { loader };
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
|
|
|
|||
|
|
@ -149,7 +149,6 @@
|
|||
background-color: var(--color-bg-higher);
|
||||
border-radius: var(--radius-selector);
|
||||
width: max-content;
|
||||
padding: 0 var(--s-2);
|
||||
height: var(--selector-size);
|
||||
display: flex;
|
||||
gap: var(--s-1);
|
||||
|
|
|
|||
72
package-lock.json
generated
72
package-lock.json
generated
|
|
@ -68,7 +68,7 @@
|
|||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.4.4",
|
||||
"@biomejs/biome": "2.4.8",
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@react-router/dev": "^7.13.1",
|
||||
"@types/better-sqlite3": "^7.6.13",
|
||||
|
|
@ -1422,9 +1422,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/biome": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.4.4.tgz",
|
||||
"integrity": "sha512-tigwWS5KfJf0cABVd52NVaXyAVv4qpUXOWJ1rxFL8xF1RVoeS2q/LK+FHgYoKMclJCuRoCWAPy1IXaN9/mS61Q==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.4.8.tgz",
|
||||
"integrity": "sha512-ponn0oKOky1oRXBV+rlSaUlixUxf1aZvWC19Z41zBfUOUesthrQqL3OtiAlSB1EjFjyWpn98Q64DHelhA6jNlA==",
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"bin": {
|
||||
|
|
@ -1438,20 +1438,20 @@
|
|||
"url": "https://opencollective.com/biome"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@biomejs/cli-darwin-arm64": "2.4.4",
|
||||
"@biomejs/cli-darwin-x64": "2.4.4",
|
||||
"@biomejs/cli-linux-arm64": "2.4.4",
|
||||
"@biomejs/cli-linux-arm64-musl": "2.4.4",
|
||||
"@biomejs/cli-linux-x64": "2.4.4",
|
||||
"@biomejs/cli-linux-x64-musl": "2.4.4",
|
||||
"@biomejs/cli-win32-arm64": "2.4.4",
|
||||
"@biomejs/cli-win32-x64": "2.4.4"
|
||||
"@biomejs/cli-darwin-arm64": "2.4.8",
|
||||
"@biomejs/cli-darwin-x64": "2.4.8",
|
||||
"@biomejs/cli-linux-arm64": "2.4.8",
|
||||
"@biomejs/cli-linux-arm64-musl": "2.4.8",
|
||||
"@biomejs/cli-linux-x64": "2.4.8",
|
||||
"@biomejs/cli-linux-x64-musl": "2.4.8",
|
||||
"@biomejs/cli-win32-arm64": "2.4.8",
|
||||
"@biomejs/cli-win32-x64": "2.4.8"
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-darwin-arm64": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.4.4.tgz",
|
||||
"integrity": "sha512-jZ+Xc6qvD6tTH5jM6eKX44dcbyNqJHssfl2nnwT6vma6B1sj7ZLTGIk6N5QwVBs5xGN52r3trk5fgd3sQ9We9A==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.4.8.tgz",
|
||||
"integrity": "sha512-ARx0tECE8I7S2C2yjnWYLNbBdDoPdq3oyNLhMglmuctThwUsuzFWRKrHmIGwIRWKz0Mat9DuzLEDp52hGnrxGQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
|
|
@ -1466,9 +1466,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-darwin-x64": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.4.4.tgz",
|
||||
"integrity": "sha512-Dh1a/+W+SUCXhEdL7TiX3ArPTFCQKJTI1mGncZNWfO+6suk+gYA4lNyJcBB+pwvF49uw0pEbUS49BgYOY4hzUg==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.4.8.tgz",
|
||||
"integrity": "sha512-Jg9/PsB9vDCJlANE8uhG7qDhb5w0Ix69D7XIIc8IfZPUoiPrbLm33k2Ig3NOJ/7nb3UbesFz3D1aDKm9DvzjhQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
|
|
@ -1483,9 +1483,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-arm64": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.4.4.tgz",
|
||||
"integrity": "sha512-V/NFfbWhsUU6w+m5WYbBenlEAz8eYnSqRMDMAW3K+3v0tYVkNyZn8VU0XPxk/lOqNXLSCCrV7FmV/u3SjCBShg==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.4.8.tgz",
|
||||
"integrity": "sha512-5CdrsJct76XG2hpKFwXnEtlT1p+4g4yV+XvvwBpzKsTNLO9c6iLlAxwcae2BJ7ekPGWjNGw9j09T5KGPKKxQig==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
|
|
@ -1500,9 +1500,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-arm64-musl": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.4.4.tgz",
|
||||
"integrity": "sha512-+sPAXq3bxmFwhVFJnSwkSF5Rw2ZAJMH3MF6C9IveAEOdSpgajPhoQhbbAK12SehN9j2QrHpk4J/cHsa/HqWaYQ==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.4.8.tgz",
|
||||
"integrity": "sha512-Zo9OhBQDJ3IBGPlqHiTISloo5H0+FBIpemqIJdW/0edJ+gEcLR+MZeZozcUyz3o1nXkVA7++DdRKQT0599j9jA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
|
|
@ -1517,9 +1517,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-x64": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.4.4.tgz",
|
||||
"integrity": "sha512-R4+ZCDtG9kHArasyBO+UBD6jr/FcFCTH8QkNTOCu0pRJzCWyWC4EtZa2AmUZB5h3e0jD7bRV2KvrENcf8rndBg==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.4.8.tgz",
|
||||
"integrity": "sha512-PdKXspVEaMCQLjtZCn6vfSck/li4KX9KGwSDbZdgIqlrizJ2MnMcE3TvHa2tVfXNmbjMikzcfJpuPWH695yJrw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
|
|
@ -1534,9 +1534,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-x64-musl": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.4.4.tgz",
|
||||
"integrity": "sha512-gGvFTGpOIQDb5CQ2VC0n9Z2UEqlP46c4aNgHmAMytYieTGEcfqhfCFnhs6xjt0S3igE6q5GLuIXtdQt3Izok+g==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.4.8.tgz",
|
||||
"integrity": "sha512-Gi8quv8MEuDdKaPFtS2XjEnMqODPsRg6POT6KhoP+VrkNb+T2ywunVB+TvOU0LX1jAZzfBr+3V1mIbBhzAMKvw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
|
|
@ -1551,9 +1551,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-win32-arm64": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.4.4.tgz",
|
||||
"integrity": "sha512-trzCqM7x+Gn832zZHgr28JoYagQNX4CZkUZhMUac2YxvvyDRLJDrb5m9IA7CaZLlX6lTQmADVfLEKP1et1Ma4Q==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.4.8.tgz",
|
||||
"integrity": "sha512-LoFatS0tnHv6KkCVpIy3qZCih+MxUMvdYiPWLHRri7mhi2vyOOs8OrbZBcLTUEWCS+ktO72nZMy4F96oMhkOHQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
|
|
@ -1568,9 +1568,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-win32-x64": {
|
||||
"version": "2.4.4",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.4.4.tgz",
|
||||
"integrity": "sha512-gnOHKVPFAAPrpoPt2t+Q6FZ7RPry/FDV3GcpU53P3PtLNnQjBmKyN2Vh/JtqXet+H4pme8CC76rScwdjDcT1/A==",
|
||||
"version": "2.4.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.4.8.tgz",
|
||||
"integrity": "sha512-vAn7iXDoUbqFXqVocuq1sMYAd33p8+mmurqJkWl6CtIhobd/O6moe4rY5AJvzbunn/qZCdiDVcveqtkFh1e7Hg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.4.4",
|
||||
"@biomejs/biome": "2.4.8",
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@react-router/dev": "^7.13.1",
|
||||
"@types/better-sqlite3": "^7.6.13",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user