mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-04 12:58:11 +03:00
style: organise imports
This commit is contained in:
@@ -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();
|
||||
|
||||
+3
-3
@@ -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";
|
||||
|
||||
|
||||
@@ -23,12 +23,12 @@ import {
|
||||
GetGamePTConfig,
|
||||
Grades,
|
||||
IDStrings,
|
||||
integer,
|
||||
Lamps,
|
||||
ScoreDocument,
|
||||
SessionScoreInfo,
|
||||
SongDocument,
|
||||
TableDocument,
|
||||
integer,
|
||||
} from "tachi-common";
|
||||
import { SessionReturns } from "types/api-returns";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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<T>(arr: T[]): T {
|
||||
return arr[Math.floor(Math.random() * arr.length)];
|
||||
|
||||
Reference in New Issue
Block a user