diff --git a/frontend/package.json b/frontend/package.json index 0a8fc6d13..683ea7297 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,7 @@ "dev": "vite", "build": "vite build", "analyze": "ANALYZE=true vite build", - "openapi-ts": "openapi-ts", + "openapi-ts": "openapi-ts && prettier --list-different --write \"**/*.{ts,tsx}\"", "start": "vite start", "typecheck": "tsc", "export": "vite build && vite export", diff --git a/frontend/src/openapi/client.gen.ts b/frontend/src/openapi/client.gen.ts index 9682441d8..b63957a76 100644 --- a/frontend/src/openapi/client.gen.ts +++ b/frontend/src/openapi/client.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import { type ClientOptions, type Config, createClient, createConfig } from './client'; import type { ClientOptions as ClientOptions2 } from './types.gen'; diff --git a/frontend/src/openapi/client/client.gen.ts b/frontend/src/openapi/client/client.gen.ts index 722ac9106..2639cb34d 100644 --- a/frontend/src/openapi/client/client.gen.ts +++ b/frontend/src/openapi/client/client.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import type { AxiosError, AxiosInstance, RawAxiosRequestHeaders } from 'axios'; import axios from 'axios'; diff --git a/frontend/src/openapi/client/types.gen.ts b/frontend/src/openapi/client/types.gen.ts index 995974b84..51a846a48 100644 --- a/frontend/src/openapi/client/types.gen.ts +++ b/frontend/src/openapi/client/types.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import type { AxiosError, AxiosInstance, diff --git a/frontend/src/openapi/client/utils.gen.ts b/frontend/src/openapi/client/utils.gen.ts index 244533649..2236a0d85 100644 --- a/frontend/src/openapi/client/utils.gen.ts +++ b/frontend/src/openapi/client/utils.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import { getAuthToken } from '../core/auth.gen'; import type { QuerySerializerOptions } from '../core/bodySerializer.gen'; import { diff --git a/frontend/src/openapi/core/bodySerializer.gen.ts b/frontend/src/openapi/core/bodySerializer.gen.ts index c9559d066..7a837a2b9 100644 --- a/frontend/src/openapi/core/bodySerializer.gen.ts +++ b/frontend/src/openapi/core/bodySerializer.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import type { ArrayStyle, ObjectStyle, SerializerOptions } from './pathSerializer.gen'; export type QuerySerializer = (query: Record) => string; diff --git a/frontend/src/openapi/core/serverSentEvents.gen.ts b/frontend/src/openapi/core/serverSentEvents.gen.ts index d56bbf3a4..6aa6cf02a 100644 --- a/frontend/src/openapi/core/serverSentEvents.gen.ts +++ b/frontend/src/openapi/core/serverSentEvents.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import type { Config } from './types.gen'; export type ServerSentEventsOptions = Omit & diff --git a/frontend/src/openapi/core/types.gen.ts b/frontend/src/openapi/core/types.gen.ts index 6c331bd4d..97463257e 100644 --- a/frontend/src/openapi/core/types.gen.ts +++ b/frontend/src/openapi/core/types.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import type { Auth, AuthToken } from './auth.gen'; import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from './bodySerializer.gen'; diff --git a/frontend/src/openapi/core/utils.gen.ts b/frontend/src/openapi/core/utils.gen.ts index 0f8fe0b01..3b974ad5c 100644 --- a/frontend/src/openapi/core/utils.gen.ts +++ b/frontend/src/openapi/core/utils.gen.ts @@ -1,4 +1,5 @@ // This file is auto-generated by @hey-api/openapi-ts + import type { BodySerializer, QuerySerializer } from './bodySerializer.gen'; import { type ArraySeparatorStyle, diff --git a/frontend/src/openapi/sdk.gen.ts b/frontend/src/openapi/sdk.gen.ts index 06774187c..c874eca0d 100644 --- a/frontend/src/openapi/sdk.gen.ts +++ b/frontend/src/openapi/sdk.gen.ts @@ -1,9 +1,10 @@ // This file is auto-generated by @hey-api/openapi-ts + import { type Client, + formDataBodySerializer, type Options as Options2, type TDataShape, - formDataBodySerializer, urlSearchParamsBodySerializer, } from './client'; import { client } from './client.gen'; @@ -91,11 +92,11 @@ import type { GetMatchesToScheduleTournamentsTournamentIdStageItemsStageItemIdUpcomingMatchesGetData, GetMatchesToScheduleTournamentsTournamentIdStageItemsStageItemIdUpcomingMatchesGetErrors, GetMatchesToScheduleTournamentsTournamentIdStageItemsStageItemIdUpcomingMatchesGetResponses, + GetMetricsMetricsGetData, + GetMetricsMetricsGetResponses, GetMeUsersUserIdGetData, GetMeUsersUserIdGetErrors, GetMeUsersUserIdGetResponses, - GetMetricsMetricsGetData, - GetMetricsMetricsGetResponses, GetNextStageRankingsTournamentsTournamentIdNextStageRankingsGetData, GetNextStageRankingsTournamentsTournamentIdNextStageRankingsGetErrors, GetNextStageRankingsTournamentsTournamentIdNextStageRankingsGetResponses, @@ -111,12 +112,12 @@ import type { GetTeamsTournamentsTournamentIdTeamsGetData, GetTeamsTournamentsTournamentIdTeamsGetErrors, GetTeamsTournamentsTournamentIdTeamsGetResponses, - GetTournamentTournamentsTournamentIdGetData, - GetTournamentTournamentsTournamentIdGetErrors, - GetTournamentTournamentsTournamentIdGetResponses, GetTournamentsTournamentsGetData, GetTournamentsTournamentsGetErrors, GetTournamentsTournamentsGetResponses, + GetTournamentTournamentsTournamentIdGetData, + GetTournamentTournamentsTournamentIdGetErrors, + GetTournamentTournamentsTournamentIdGetResponses, GetUserUsersMeGetData, GetUserUsersMeGetResponses, LoginForAccessTokenTokenPostData, diff --git a/frontend/src/pages/404.tsx b/frontend/src/pages/404.tsx index 1b9351350..936b55645 100644 --- a/frontend/src/pages/404.tsx +++ b/frontend/src/pages/404.tsx @@ -2,8 +2,8 @@ import { Button, Container, Group, Text, Title } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router'; -import { tokenPresent } from '@services/local_storage'; import classes from '@pages/404.module.css'; +import { tokenPresent } from '@services/local_storage'; export default function NotFoundPage() { const navigate = useNavigate();