diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx index 331a4c744..b8d8e013d 100644 --- a/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx +++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx @@ -10,8 +10,8 @@ import Divider from "components/util/Divider"; import Icon from "components/util/Icon"; import Loading from "components/util/Loading"; import Muted from "components/util/Muted"; -import useApiQuery from "components/util/query/useApiQuery"; import SelectButton from "components/util/SelectButton"; +import useApiQuery from "components/util/query/useApiQuery"; import useQueryString from "components/util/useQueryString"; import { UGPTContext } from "context/UGPTContext"; import deepmerge from "deepmerge"; @@ -19,6 +19,7 @@ import { useFormik } from "formik"; import { TachiConfig } from "lib/config"; import React, { useContext, useEffect, useState } from "react"; import { Alert, Button, Col, Form, Row } from "react-bootstrap"; +import { Link } from "react-router-dom"; import { BMS_TABLES, FormatGame, @@ -30,7 +31,6 @@ import { UserDocument, } from "tachi-common"; import { SetState, UGPT } from "types/react"; -import { Link } from "react-router-dom"; export default function UGPTSettingsPage({ reqUser, game, playtype }: UGPT) { const query = useQueryString(); diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx index 789f7dff5..aa994a10b 100644 --- a/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx +++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx @@ -13,8 +13,8 @@ import Icon from "components/util/Icon"; import LinkButton from "components/util/LinkButton"; import Loading from "components/util/Loading"; import Muted from "components/util/Muted"; -import useApiQuery from "components/util/query/useApiQuery"; import SelectButton from "components/util/SelectButton"; +import useApiQuery from "components/util/query/useApiQuery"; import { useBucket } from "components/util/useBucket"; import useLUGPTSettings from "components/util/useLUGPTSettings"; import { UserContext } from "context/UserContext"; @@ -25,9 +25,9 @@ import { Game, GamePTConfig, GetGamePTConfig, - UserDocument, - TableDocument, Playtype, + TableDocument, + UserDocument, } from "tachi-common"; import { FolderStatsInfo, UGPTTableReturns } from "types/api-returns"; diff --git a/client/src/components/sessions/SessionRaiseBreakdown.tsx b/client/src/components/sessions/SessionRaiseBreakdown.tsx index 31da3632d..27df0a7f8 100644 --- a/client/src/components/sessions/SessionRaiseBreakdown.tsx +++ b/client/src/components/sessions/SessionRaiseBreakdown.tsx @@ -23,12 +23,12 @@ import { GetGamePTConfig, Grades, IDStrings, - integer, Lamps, ScoreDocument, SessionScoreInfo, SongDocument, TableDocument, + integer, } from "tachi-common"; import { SessionReturns } from "types/api-returns"; diff --git a/client/src/components/tables/dropdowns/ImportDropdown.tsx b/client/src/components/tables/dropdowns/ImportDropdown.tsx index 30689c3b5..440199f5a 100644 --- a/client/src/components/tables/dropdowns/ImportDropdown.tsx +++ b/client/src/components/tables/dropdowns/ImportDropdown.tsx @@ -7,7 +7,6 @@ import { UserContext } from "context/UserContext"; import { UserSettingsContext } from "context/UserSettingsContext"; import React, { useContext, useState } from "react"; import { Col } from "react-bootstrap"; -import { UserAuthLevels } from "tachi-common"; import { ImportDataset } from "types/tables"; import DropdownStructure from "./components/DropdownStructure"; import ImportInputViewer from "./components/ImportInputViewer"; diff --git a/client/src/components/tables/dropdowns/ScoreDropdown.tsx b/client/src/components/tables/dropdowns/ScoreDropdown.tsx index 18e9a7f03..92d0d527d 100644 --- a/client/src/components/tables/dropdowns/ScoreDropdown.tsx +++ b/client/src/components/tables/dropdowns/ScoreDropdown.tsx @@ -2,8 +2,8 @@ import DebugContent from "components/util/DebugContent"; import HasDevModeOn from "components/util/HasDevModeOn"; import Icon from "components/util/Icon"; import Loading from "components/util/Loading"; -import useApiQuery from "components/util/query/useApiQuery"; import SelectButton from "components/util/SelectButton"; +import useApiQuery from "components/util/query/useApiQuery"; import { UserContext } from "context/UserContext"; import { UserSettingsContext } from "context/UserSettingsContext"; import React, { useContext, useReducer, useState } from "react"; @@ -11,12 +11,13 @@ import { ChartDocument, IDStrings, PBScoreDocument, - UserDocument, ScoreDocument, SongDocument, + UserDocument, } from "tachi-common"; import { GoalsOnChartReturn, UGPTChartPBComposition } from "types/api-returns"; import { GamePT, SetState } from "types/react"; +import { GPTDropdownSettings } from "./GPTDropdownSettings"; import DocComponentCreator, { DocumentComponentType } from "./components/DocumentComponent"; import DropdownStructure from "./components/DropdownStructure"; import ManageScore from "./components/ManageScore"; @@ -24,7 +25,6 @@ import PBCompare from "./components/PBCompare"; import PlayHistory from "./components/PlayHistory"; import RivalCompare from "./components/RivalCompare"; import TargetInfo from "./components/TargetInfo"; -import { GPTDropdownSettings } from "./GPTDropdownSettings"; export interface ScoreState { highlight: boolean; diff --git a/client/src/util/misc.ts b/client/src/util/misc.ts index 3cc9bf615..e3892ccdf 100644 --- a/client/src/util/misc.ts +++ b/client/src/util/misc.ts @@ -1,3 +1,4 @@ +import fjsh from "fast-json-stable-hash"; import toast from "react-hot-toast"; import { useHistory } from "react-router-dom"; import { @@ -8,17 +9,16 @@ import { GetGamePTConfig, Grades, IDStrings, - integer, - ScoreCalculatedDataLookup, - ScoreDocument, - SessionDocument, Playtype, + ProfileRatingLookup, QuestDocument, QuestSubscriptionDocument, + ScoreCalculatedDataLookup, + ScoreDocument, SessionCalculatedDataLookup, - ProfileRatingLookup, + SessionDocument, + integer, } from "tachi-common"; -import fjsh from "fast-json-stable-hash"; export function RFA(arr: T[]): T { return arr[Math.floor(Math.random() * arr.length)];