mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 05:48:00 +03:00
Add proper automatic import sorting.
This commit is contained in:
+14
-2
@@ -11,7 +11,10 @@
|
||||
"@typescript-eslint",
|
||||
"import"
|
||||
],
|
||||
"ignorePatterns": ["**/*.js", "react-app-env.d.ts"],
|
||||
"ignorePatterns": [
|
||||
"**/*.js",
|
||||
"react-app-env.d.ts"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
@@ -49,8 +52,17 @@
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/explicit-function-return-type": "off",
|
||||
"react/no-unescaped-entities": ["error", {"forbid": [">", "}"]}],
|
||||
"react/no-unescaped-entities": [
|
||||
"error",
|
||||
{
|
||||
"forbid": [
|
||||
">",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
],
|
||||
"react/display-name": "off",
|
||||
"import/order": "error",
|
||||
"import/no-unresolved": "off",
|
||||
"import/no-named-as-default": "off",
|
||||
"react/prop-types": "off",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import ApiError from "components/util/ApiError";
|
||||
import Divider from "components/util/Divider";
|
||||
import Loading from "components/util/Loading";
|
||||
@@ -8,7 +9,6 @@ import { TachiConfig } from "lib/config";
|
||||
import React, { useContext, useState } from "react";
|
||||
import { Link, useParams } from "react-router-dom";
|
||||
import { APITokenDocument, TachiAPIClientDocument } from "tachi-common";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
export default function ClientFileFlowPage() {
|
||||
const { clientID } = useParams<{ clientID: string }>();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import React from "react";
|
||||
import { useHistory } from "react-router-dom";
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
|
||||
export function ErrorPage({
|
||||
statusCode,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
import CenterPage from "components/util/CenterPage";
|
||||
import SiteWordmark from "components/util/SiteWordmark";
|
||||
import { Form, Col, Button } from "react-bootstrap";
|
||||
import React, { useState } from "react";
|
||||
import { Link, useHistory } from "react-router-dom";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import MainPageTitleContainer from "components/util/MainPageTitleContainer";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
|
||||
export default function ForgotPasswordPage() {
|
||||
const [email, setEmail] = useState("");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { Footer } from "components/layout/footer/Footer";
|
||||
import { Header } from "components/layout/header/Header";
|
||||
import { HeaderMobile } from "components/layout/header/HeaderMobile";
|
||||
@@ -5,7 +6,6 @@ import Divider from "components/util/Divider";
|
||||
import LinkButton from "components/util/LinkButton";
|
||||
import { TachiConfig } from "lib/config";
|
||||
import React from "react";
|
||||
import { ToCDNURL } from "util/api";
|
||||
|
||||
// This page is currently unused,
|
||||
// It's alright, but hey, we could do more.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { HumaniseError } from "util/humanise-error";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import CenterPage from "components/util/CenterPage";
|
||||
import SiteWordmark from "components/util/SiteWordmark";
|
||||
@@ -9,9 +12,6 @@ import ReCAPTCHA from "react-google-recaptcha";
|
||||
import toast from "react-hot-toast";
|
||||
import { Link, useHistory } from "react-router-dom";
|
||||
import { PublicUserDocument } from "tachi-common";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { HumaniseError } from "util/humanise-error";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
|
||||
export default function LoginPage() {
|
||||
useSetSubheader("Login");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import CenterLayoutPage from "components/layout/CenterLayoutPage";
|
||||
import ApiError from "components/util/ApiError";
|
||||
import Divider from "components/util/Divider";
|
||||
@@ -8,7 +9,6 @@ import useQueryString from "components/util/useQueryString";
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { integer, TachiAPIClientDocument } from "tachi-common";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
export default function OAuthRequestAuthPage() {
|
||||
const params = useQueryString();
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { APIFetchV1, ToCDNURL } from "util/api";
|
||||
import { HumaniseError } from "util/humanise-error";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Divider from "components/util/Divider";
|
||||
import { UserContext } from "context/UserContext";
|
||||
@@ -10,9 +13,6 @@ import toast from "react-hot-toast";
|
||||
import { Link, useHistory } from "react-router-dom";
|
||||
import { PublicUserDocument } from "tachi-common";
|
||||
import { UseFormik } from "types/react";
|
||||
import { APIFetchV1, ToCDNURL } from "util/api";
|
||||
import { HumaniseError } from "util/humanise-error";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
|
||||
// seconds it takes for a user to actually read the rules.
|
||||
const RULES_READ_TIME = Number(process.env.REACT_APP_RULES_READ_TIME) || 30;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ShortDelayify } from "util/misc";
|
||||
import CenterPage from "components/util/CenterPage";
|
||||
import MainPageTitleContainer from "components/util/MainPageTitleContainer";
|
||||
import React, { useState } from "react";
|
||||
import { Button, Form } from "react-bootstrap";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ShortDelayify } from "util/misc";
|
||||
import { ErrorPage } from "./ErrorPage";
|
||||
|
||||
export default function ResetPasswordPage() {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { RFA } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { heySplashes } from "util/splashes";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import SessionCard from "components/sessions/SessionCard";
|
||||
import ApiError from "components/util/ApiError";
|
||||
@@ -15,10 +19,6 @@ import { Alert } from "react-bootstrap";
|
||||
import { Link } from "react-router-dom";
|
||||
import { GetGameConfig, PublicUserDocument } from "tachi-common";
|
||||
import { UGSWithRankingData, UserRecentSummary } from "types/api-returns";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { RFA } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { heySplashes } from "util/splashes";
|
||||
import { GameStatContainer } from "./users/UserGamesPage";
|
||||
|
||||
export function DashboardPage() {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import { APIFetchV1, UnsuccessfulAPIFetchResponse } from "util/api";
|
||||
import { CreateUserMap } from "util/data";
|
||||
import { SelectRightChart } from "util/misc";
|
||||
import { MillisToSince } from "util/time";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
import LampCell from "components/tables/cells/LampCell";
|
||||
@@ -28,10 +32,6 @@ import {
|
||||
import { ChartPBLeaderboardReturn, UGPTChartLeaderboardAdjacent } from "types/api-returns";
|
||||
import { GamePT, SetState } from "types/react";
|
||||
import { PBDataset } from "types/tables";
|
||||
import { APIFetchV1, UnsuccessfulAPIFetchResponse } from "util/api";
|
||||
import { CreateUserMap } from "util/data";
|
||||
import { SelectRightChart } from "util/misc";
|
||||
import { MillisToSince } from "util/time";
|
||||
|
||||
// This component forms a wrapper around the Real GPT Chart Page
|
||||
// which handles the case where activeChart == null.
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { CreateChartMap, CreateSongMap, CreateUserMap } from "util/data";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
import ClassBadge from "components/game/ClassBadge";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import IndexCell from "components/tables/cells/IndexCell";
|
||||
@@ -19,9 +22,6 @@ import { FormatGame, GetGameConfig, GetGamePTConfig } from "tachi-common";
|
||||
import { ScoreLeaderboardReturns, UserLeaderboardReturns } from "types/api-returns";
|
||||
import { GamePT } from "types/react";
|
||||
import { PBDataset, UGSDataset } from "types/tables";
|
||||
import { CreateChartMap, CreateSongMap, CreateUserMap } from "util/data";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
|
||||
export default function GPTLeaderboardsPage({ game, playtype }: GamePT) {
|
||||
useSetSubheader(
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DEFAULT_BAR_PROPS } from "util/charts";
|
||||
import { CreateChartMap, CreateSongMap, CreateUserMap } from "util/data";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { MillisToSince } from "util/time";
|
||||
import { ResponsiveBar } from "@nivo/bar";
|
||||
import { BarChartTooltip } from "components/charts/ChartTooltip";
|
||||
import ClassBadge from "components/game/ClassBadge";
|
||||
@@ -30,11 +35,6 @@ import {
|
||||
import { RecentClassesReturn } from "types/api-returns";
|
||||
import { GamePT } from "types/react";
|
||||
import { ScoreDataset } from "types/tables";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DEFAULT_BAR_PROPS } from "util/charts";
|
||||
import { CreateChartMap, CreateSongMap, CreateUserMap } from "util/data";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { MillisToSince } from "util/time";
|
||||
|
||||
export default function GPTMainPage({ game, playtype }: GamePT) {
|
||||
useSetSubheader(
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { CreateSongMap } from "util/data";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import DifficultyCell from "components/tables/cells/DifficultyCell";
|
||||
import TitleCell from "components/tables/cells/TitleCell";
|
||||
@@ -18,8 +20,6 @@ import {
|
||||
SongDocument,
|
||||
} from "tachi-common";
|
||||
import { GamePT } from "types/react";
|
||||
import { CreateSongMap } from "util/data";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
|
||||
export default function GPTSongsPage({ game, playtype }: GamePT) {
|
||||
useSetSubheader(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { ToServerURL } from "util/api";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Divider from "components/util/Divider";
|
||||
import ExternalLink from "components/util/ExternalLink";
|
||||
@@ -5,7 +6,6 @@ import Muted from "components/util/Muted";
|
||||
import { TachiConfig } from "lib/config";
|
||||
import React from "react";
|
||||
import { Alert } from "react-bootstrap";
|
||||
import { ToServerURL } from "util/api";
|
||||
|
||||
export default function USCIRPage() {
|
||||
useSetSubheader(["Import Scores", "USC IR"]);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { Contributors } from "util/constants/contributors";
|
||||
import { RFA } from "util/misc";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Divider from "components/util/Divider";
|
||||
import ExternalLink from "components/util/ExternalLink";
|
||||
@@ -5,8 +7,6 @@ import { UserContext } from "context/UserContext";
|
||||
import { TachiConfig } from "lib/config";
|
||||
import React, { useContext, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Contributors } from "util/constants/contributors";
|
||||
import { RFA } from "util/misc";
|
||||
|
||||
export default function CreditsPage() {
|
||||
useSetSubheader("Credits");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import ApiError from "components/util/ApiError";
|
||||
import Divider from "components/util/Divider";
|
||||
import Loading from "components/util/Loading";
|
||||
@@ -8,7 +9,6 @@ import { Button, Col, Form } from "react-bootstrap";
|
||||
import { Link } from "react-router-dom";
|
||||
import { ARCSavedProfileDocument, PublicUserDocument } from "tachi-common";
|
||||
import { SetState } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
export default function ARCIntegrationPage({ reqUser }: { reqUser: PublicUserDocument }) {
|
||||
const [iidxID, setIIDXID] = useState("");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import ApiError from "components/util/ApiError";
|
||||
import Divider from "components/util/Divider";
|
||||
import Loading from "components/util/Loading";
|
||||
@@ -6,7 +7,6 @@ import React, { useState } from "react";
|
||||
import { Button, Col, Form } from "react-bootstrap";
|
||||
import { Link } from "react-router-dom";
|
||||
import { FervidexSettingsDocument, PublicUserDocument } from "tachi-common";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
export default function FervidexIntegrationPage({ reqUser }: { reqUser: PublicUserDocument }) {
|
||||
const { data: settings, isLoading, error } = useApiQuery<FervidexSettingsDocument | null>(
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { GetSortedGPTs } from "util/site";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
import RankingData from "components/user/UGPTRankingData";
|
||||
@@ -9,8 +11,6 @@ import ReferToUser from "components/util/ReferToUser";
|
||||
import React from "react";
|
||||
import { FormatGame, PublicUserDocument, UserGameStats } from "tachi-common";
|
||||
import { UGSWithRankingData } from "types/api-returns";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { GetSortedGPTs } from "util/site";
|
||||
|
||||
interface Props {
|
||||
reqUser: PublicUserDocument;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { allPermissions, DelayedPageReload } from "util/misc";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
import ApiError from "components/util/ApiError";
|
||||
@@ -21,8 +23,6 @@ import {
|
||||
TachiAPIClientDocument,
|
||||
} from "tachi-common";
|
||||
import { SetState } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { allPermissions, DelayedPageReload } from "util/misc";
|
||||
import ARCIntegrationPage from "./ARCIntegrationPage";
|
||||
import FervidexIntegrationPage from "./FervidexIntegrationPage";
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DelayedPageReload } from "util/misc";
|
||||
import { FormatTime } from "util/time";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
import ApiError from "components/util/ApiError";
|
||||
@@ -9,9 +12,6 @@ import React from "react";
|
||||
import { Button, Col, Row } from "react-bootstrap";
|
||||
import { Link } from "react-router-dom";
|
||||
import { integer, InviteCodeDocument, PublicUserDocument } from "tachi-common";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DelayedPageReload } from "util/misc";
|
||||
import { FormatTime } from "util/time";
|
||||
|
||||
export default function UserInvitesPage({ reqUser }: { reqUser: PublicUserDocument }) {
|
||||
useSetSubheader(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
import Divider from "components/util/Divider";
|
||||
@@ -8,7 +9,6 @@ import React, { useContext, useEffect, useState } from "react";
|
||||
import { Button } from "react-bootstrap";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import { PublicUserDocument } from "tachi-common";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
interface Props {
|
||||
reqUser: PublicUserDocument;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1, ToAPIURL } from "util/api";
|
||||
import { DelayedPageReload, FetchJSONBody, UppercaseFirst } from "util/misc";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
import ProfilePicture from "components/user/ProfilePicture";
|
||||
@@ -11,8 +13,6 @@ import { TachiConfig } from "lib/config";
|
||||
import React, { useContext, useState } from "react";
|
||||
import { Alert, Button, Form } from "react-bootstrap";
|
||||
import { PublicUserDocument, UserSettings } from "tachi-common";
|
||||
import { APIFetchV1, ToAPIURL } from "util/api";
|
||||
import { DelayedPageReload, FetchJSONBody, UppercaseFirst } from "util/misc";
|
||||
|
||||
interface Props {
|
||||
reqUser: PublicUserDocument;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { APIFetchV1, UnsuccessfulAPIFetchResponse } from "util/api";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import ClassBadge from "components/game/ClassBadge";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
@@ -22,9 +25,6 @@ import {
|
||||
import { GameClassSets } from "tachi-common/js/game-classes";
|
||||
import { GPTLeaderboard, UGPTLeaderboardAdjacent } from "types/api-returns";
|
||||
import { GamePT, SetState } from "types/react";
|
||||
import { APIFetchV1, UnsuccessfulAPIFetchResponse } from "util/api";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
|
||||
interface LeaderboardsData {
|
||||
stats: UGPTLeaderboardAdjacent;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ONE_HOUR, ONE_MINUTE } from "util/constants/time";
|
||||
import { CreateChartMap, CreateSongMap, GetPBs } from "util/data";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { FormatDate, FormatDuration, FormatTime, MillisToSince } from "util/time";
|
||||
import TimelineChart from "components/charts/TimelineChart";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
@@ -25,12 +31,6 @@ import {
|
||||
import { SessionReturns, UGPTHistory } from "types/api-returns";
|
||||
import { GamePT } from "types/react";
|
||||
import { ScoreDataset } from "types/tables";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ONE_HOUR, ONE_MINUTE } from "util/constants/time";
|
||||
import { CreateChartMap, CreateSongMap, GetPBs } from "util/data";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { FormatDate, FormatDuration, FormatTime, MillisToSince } from "util/time";
|
||||
|
||||
export default function OverviewPage({
|
||||
reqUser,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import PBTable from "components/tables/pbs/PBTable";
|
||||
import ScoreTable from "components/tables/scores/ScoreTable";
|
||||
@@ -26,7 +27,6 @@ import {
|
||||
UnsuccessfulAPIResponse,
|
||||
} from "tachi-common";
|
||||
import { GamePT, SetState } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
export default function ScoresPage({
|
||||
reqUser,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import GenericSessionTable, {
|
||||
SessionDataset,
|
||||
@@ -17,8 +19,6 @@ import {
|
||||
UnsuccessfulAPIResponse,
|
||||
} from "tachi-common";
|
||||
import { GamePT } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
|
||||
export default function SessionsPage({
|
||||
reqUser,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { CreateChartMap, CreateScoreIDMap, CreateSongMap } from "util/data";
|
||||
import { DelayedPageReload } from "util/misc";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import SessionOverview from "components/sessions/SessionOverview";
|
||||
import SessionRaiseBreakdown from "components/sessions/SessionRaiseBreakdown";
|
||||
@@ -16,9 +19,6 @@ import { Redirect, useParams } from "react-router-dom";
|
||||
import { GetGameConfig, PublicUserDocument, SessionDocument } from "tachi-common";
|
||||
import { SessionReturns } from "types/api-returns";
|
||||
import { GamePT, SetState } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { CreateChartMap, CreateScoreIDMap, CreateSongMap } from "util/data";
|
||||
import { DelayedPageReload } from "util/misc";
|
||||
|
||||
type Props = { reqUser: PublicUserDocument } & GamePT;
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import ClassBadge from "components/game/ClassBadge";
|
||||
import useSetSubheader from "components/layout/header/useSetSubheader";
|
||||
import Card from "components/layout/page/Card";
|
||||
@@ -27,7 +28,6 @@ import {
|
||||
UGPTSettings,
|
||||
} from "tachi-common";
|
||||
import { GamePT, SetState } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
|
||||
type Props = { reqUser: PublicUserDocument } & GamePT;
|
||||
|
||||
|
||||
+2
-2
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { Reverse } from "util/misc";
|
||||
import DistributionTable from "components/game/folder/FolderDistributionTable";
|
||||
import Card from "components/layout/page/Card";
|
||||
import DebounceSearch from "components/util/DebounceSearch";
|
||||
@@ -14,8 +16,6 @@ import React, { useContext, useMemo, useState } from "react";
|
||||
import { FolderDocument, GetGamePTConfig, PublicUserDocument } from "tachi-common";
|
||||
import { FolderStatsInfo, UGPTFolderSearch } from "types/api-returns";
|
||||
import { GamePT } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { Reverse } from "util/misc";
|
||||
|
||||
type Props = { reqUser: PublicUserDocument } & GamePT;
|
||||
|
||||
|
||||
+5
-5
@@ -1,3 +1,8 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DEFAULT_BAR_PROPS } from "util/charts";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { Reverse } from "util/misc";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
import { ResponsiveBar } from "@nivo/bar";
|
||||
import { BarChartTooltip } from "components/charts/ChartTooltip";
|
||||
import Card from "components/layout/page/Card";
|
||||
@@ -25,11 +30,6 @@ import {
|
||||
} from "tachi-common";
|
||||
import { FolderStatsInfo, UGPTTableReturns } from "types/api-returns";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DEFAULT_BAR_PROPS } from "util/charts";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { Reverse } from "util/misc";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
|
||||
interface Props {
|
||||
reqUser: PublicUserDocument;
|
||||
|
||||
+6
-6
@@ -1,3 +1,9 @@
|
||||
import { ONE_DAY } from "util/constants/time";
|
||||
import { CreateChartIDMap, CreateChartLink, CreateSongMap } from "util/data";
|
||||
import { DistinctArr, NO_OP } from "util/misc";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
import { GetScaleAchievedFn } from "util/tierlist";
|
||||
import { FormatDate, FormatTime } from "util/time";
|
||||
import FolderInfoHeader from "components/game/folder/FolderInfoHeader";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import Card from "components/layout/page/Card";
|
||||
@@ -30,12 +36,6 @@ import {
|
||||
import { UGPTFolderReturns } from "types/api-returns";
|
||||
import { FolderDataset } from "types/tables";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { ONE_DAY } from "util/constants/time";
|
||||
import { CreateChartIDMap, CreateChartLink, CreateSongMap } from "util/data";
|
||||
import { DistinctArr, NO_OP } from "util/misc";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
import { GetScaleAchievedFn } from "util/tierlist";
|
||||
import { FormatDate, FormatTime } from "util/time";
|
||||
|
||||
interface Props {
|
||||
reqUser: PublicUserDocument;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
import { ErrorPage } from "app/pages/ErrorPage";
|
||||
import ForgotPasswordPage from "app/pages/ForgotPasswordPage";
|
||||
import LoginPage from "app/pages/LoginPage";
|
||||
@@ -12,7 +13,6 @@ import { UserContext } from "context/UserContext";
|
||||
import { ClientConfig } from "lib/config";
|
||||
import React, { useContext } from "react";
|
||||
import { Redirect, Route, Switch, useHistory } from "react-router-dom";
|
||||
import { HistorySafeGoBack } from "util/misc";
|
||||
import ClientFileFlowRoutes from "./ClientFileFlowRoutes";
|
||||
import DashboardRoutes from "./DashboardRoutes";
|
||||
import OAuth2CallbackRoutes from "./OAuth2CallbackRoutes";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import SupportMePage from "app/pages/dashboard/misc/SupportMePage";
|
||||
import { ErrorPage } from "app/pages/ErrorPage";
|
||||
import PrivacyPolicyPage from "app/pages/PrivacyPolicyPage";
|
||||
@@ -8,7 +9,6 @@ import { BannedContext } from "context/BannedContext";
|
||||
import { UserContext } from "context/UserContext";
|
||||
import React, { useContext, useEffect, useState } from "react";
|
||||
import { Redirect, Route, Switch } from "react-router-dom";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DashboardPage } from "../pages/dashboard/DashboardPage";
|
||||
import CreditsPage from "../pages/dashboard/misc/CreditsPage";
|
||||
import GameRoutes from "./GameRoutes";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import { APIFetchV1, ToCDNURL } from "util/api";
|
||||
import { IsSupportedGame, IsSupportedPlaytype } from "util/asserts";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { CreateChartLink } from "util/data";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import PlaytypeSelect from "app/pages/dashboard/games/_game/PlaytypeSelect";
|
||||
import GPTChartPage from "app/pages/dashboard/games/_game/_playtype/GPTChartPage";
|
||||
import GPTDevInfo from "app/pages/dashboard/games/_game/_playtype/GPTDevInfo";
|
||||
@@ -35,11 +40,6 @@ import {
|
||||
} from "tachi-common";
|
||||
import { SongsReturn } from "types/api-returns";
|
||||
import { GamePT, SetState } from "types/react";
|
||||
import { APIFetchV1, ToCDNURL } from "util/api";
|
||||
import { IsSupportedGame, IsSupportedPlaytype } from "util/asserts";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { CreateChartLink } from "util/data";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
|
||||
export default function GameRoutes() {
|
||||
const { game } = useParams<{ game: string }>();
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1, APIFetchV1Return, ToAPIURL } from "util/api";
|
||||
import { IsSupportedGame, IsSupportedPlaytype } from "util/asserts";
|
||||
import PlaytypeSelect from "app/pages/dashboard/games/_game/PlaytypeSelect";
|
||||
import AchievablesPage from "app/pages/dashboard/users/games/_game/_playtype/AchievablesPage";
|
||||
import FoldersMainPage from "app/pages/dashboard/users/games/_game/_playtype/folders/FoldersMainPage";
|
||||
@@ -32,8 +34,6 @@ import {
|
||||
UserGameStats,
|
||||
} from "tachi-common";
|
||||
import { UGPTStatsReturn } from "types/api-returns";
|
||||
import { APIFetchV1, APIFetchV1Return, ToAPIURL } from "util/api";
|
||||
import { IsSupportedGame, IsSupportedPlaytype } from "util/asserts";
|
||||
import ScoresPage from "../pages/dashboard/users/games/_game/_playtype/ScoresPage";
|
||||
import UserPage from "../pages/dashboard/users/UserPage";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { GetGradeFromPercent } from "util/misc";
|
||||
import { ResponsiveLine } from "@nivo/line";
|
||||
import BPICell from "components/tables/cells/BPICell";
|
||||
import DeltaCell from "components/tables/cells/DeltaCell";
|
||||
@@ -16,7 +17,6 @@ import {
|
||||
PBScoreDocument,
|
||||
ScoreDocument,
|
||||
} from "tachi-common";
|
||||
import { GetGradeFromPercent } from "util/misc";
|
||||
import ChartTooltip from "./ChartTooltip";
|
||||
|
||||
interface BPIValue {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { TACHI_CHART_THEME } from "util/constants/chart-theme";
|
||||
import React from "react";
|
||||
import { ResponsiveLine, Serie, PointTooltipProps } from "@nivo/line";
|
||||
import { TACHI_CHART_THEME } from "util/constants/chart-theme";
|
||||
import ChartTooltip from "./ChartTooltip";
|
||||
import { ColourConfig } from "lib/config";
|
||||
import ChartTooltip from "./ChartTooltip";
|
||||
|
||||
export default function TimelineChart({
|
||||
width = "100%",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import React from "react";
|
||||
import { Badge } from "react-bootstrap";
|
||||
import { GetGamePTConfig, IDStrings, integer } from "tachi-common";
|
||||
import { GameClassSets } from "tachi-common/js/game-classes";
|
||||
import { GamePT } from "types/react";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
|
||||
export default function ClassBadge<I extends IDStrings = IDStrings>({
|
||||
game,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { TACHI_CHART_THEME } from "util/constants/chart-theme";
|
||||
import { Reverse, StepFromToMax, PercentFrom } from "util/misc";
|
||||
import { ResponsiveBar } from "@nivo/bar";
|
||||
import { BarChartTooltip } from "components/charts/ChartTooltip";
|
||||
import MiniTable from "components/tables/components/MiniTable";
|
||||
import Muted from "components/util/Muted";
|
||||
import React from "react";
|
||||
import { integer } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { TACHI_CHART_THEME } from "util/constants/chart-theme";
|
||||
import { Reverse, StepFromToMax, PercentFrom } from "util/misc";
|
||||
|
||||
export default function FolderDistributionTable<T extends string>({
|
||||
keys,
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { CreateChartLink } from "util/data";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import ApiError from "components/util/ApiError";
|
||||
import Divider from "components/util/Divider";
|
||||
@@ -18,9 +21,6 @@ import {
|
||||
} from "tachi-common";
|
||||
import { GamePT } from "types/react";
|
||||
import { FolderDataset } from "types/tables";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { CreateChartLink } from "util/data";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
|
||||
type Props = {
|
||||
folderDataset: FolderDataset;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { ResponsiveBar } from "@nivo/bar";
|
||||
import { BarChartTooltip } from "components/charts/ChartTooltip";
|
||||
import React, { useMemo } from "react";
|
||||
import { GetGamePTConfig } from "tachi-common";
|
||||
import { GamePT } from "types/react";
|
||||
import { FolderDataset } from "types/tables";
|
||||
import { DEFAULT_BAR_PROPS } from "util/charts";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { CreateChartIDMap } from "util/data";
|
||||
import { ComposeExpFn, ComposeInverseExpFn, CountElements, Reverse } from "util/misc";
|
||||
import { GetGradeChartExpScale } from "util/scales";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { ResponsiveBar } from "@nivo/bar";
|
||||
import { BarChartTooltip } from "components/charts/ChartTooltip";
|
||||
import React, { useMemo } from "react";
|
||||
import { GetGamePTConfig } from "tachi-common";
|
||||
import { GamePT } from "types/react";
|
||||
import { FolderDataset } from "types/tables";
|
||||
import FolderDistributionTable from "./FolderDistributionTable";
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { FormatBMSTables } from "util/misc";
|
||||
import React from "react";
|
||||
import { ChartDocument, FormatDifficulty, Game, SongDocument } from "tachi-common";
|
||||
import { FormatBMSTables } from "util/misc";
|
||||
import DefaultSongChartInfoFormat from "./DefaultSongInfoFormat";
|
||||
|
||||
export default function SongChartInfoFormat({
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { CreateChartMap, CreateSongMap } from "util/data";
|
||||
import MiniTable from "components/tables/components/MiniTable";
|
||||
import TachiTable from "components/tables/components/TachiTable";
|
||||
import ScoreTable from "components/tables/scores/ScoreTable";
|
||||
@@ -24,8 +26,6 @@ import {
|
||||
} from "tachi-common";
|
||||
import { ScoreDataset } from "types/tables";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { CreateChartMap, CreateSongMap } from "util/data";
|
||||
|
||||
interface Data {
|
||||
import: ImportDocument;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { FORMATTED_VERSION } from "util/constants/version";
|
||||
import Divider from "components/util/Divider";
|
||||
import ExternalLink from "components/util/ExternalLink";
|
||||
import { BannedContext } from "context/BannedContext";
|
||||
import React, { useContext, useEffect, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { ServerStatus } from "types/api-returns";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { FORMATTED_VERSION } from "util/constants/version";
|
||||
|
||||
export function Footer() {
|
||||
const [serverVersion, setServerVersion] = useState("Loading...");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ToCDNURL } from "util/api";
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { HeaderMenu } from "./HeaderMenu";
|
||||
import { Topbar } from "./Topbar";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1, ToCDNURL } from "util/api";
|
||||
import Divider from "components/util/Divider";
|
||||
import Loading from "components/util/Loading";
|
||||
import { UserContext } from "context/UserContext";
|
||||
@@ -7,7 +8,6 @@ import React, { useContext, useLayoutEffect } from "react";
|
||||
import { useQuery } from "react-query";
|
||||
import { Link } from "react-router-dom";
|
||||
import { FormatGame, GetGameConfig, UserGameStats } from "tachi-common";
|
||||
import { APIFetchV1, ToCDNURL } from "util/api";
|
||||
import KTLayoutHeader from "_metronic/_assets/js/layout/base/header";
|
||||
import KTLayoutHeaderMenu from "_metronic/_assets/js/layout/base/header-menu";
|
||||
import AllGames from "./AllGames";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ToAPIURL } from "util/api";
|
||||
import { UserContext } from "context/UserContext";
|
||||
import React, { useContext } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { ToAPIURL } from "util/api";
|
||||
|
||||
export function HeaderMobile() {
|
||||
const { user } = useContext(UserContext);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ConditionalLeadingSpace, PREVENT_DEFAULT } from "util/misc";
|
||||
import Divider from "components/util/Divider";
|
||||
import Icon from "components/util/Icon";
|
||||
import Loading from "components/util/Loading";
|
||||
@@ -7,8 +9,6 @@ import { Link, useLocation } from "react-router-dom";
|
||||
import { Game, GetGameConfig, integer, PublicUserDocument, SongDocument } from "tachi-common";
|
||||
import { GamePT, JustChildren } from "types/react";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ConditionalLeadingSpace, PREVENT_DEFAULT } from "util/misc";
|
||||
import QuickTooltip from "../misc/QuickTooltip";
|
||||
|
||||
interface SearchReturns {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { APIFetchV1, ToAPIURL } from "util/api";
|
||||
import { RFA } from "util/misc";
|
||||
import { heySplashes } from "util/splashes";
|
||||
import Divider from "components/util/Divider";
|
||||
import DropdownToggleOverride from "components/util/DropdownToggleOverride";
|
||||
import Icon from "components/util/Icon";
|
||||
@@ -8,9 +11,6 @@ import Dropdown from "react-bootstrap/Dropdown";
|
||||
import toast from "react-hot-toast";
|
||||
import { Link } from "react-router-dom";
|
||||
import { PublicUserDocument } from "tachi-common";
|
||||
import { APIFetchV1, ToAPIURL } from "util/api";
|
||||
import { RFA } from "util/misc";
|
||||
import { heySplashes } from "util/splashes";
|
||||
|
||||
export function UserProfileDropdown({ user }: { user: PublicUserDocument }) {
|
||||
const { setUser } = useContext(UserContext);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { UpdateSubheader } from "util/subheader";
|
||||
import useSplashText from "components/util/useSplashText";
|
||||
import { SubheaderContext } from "context/SubheaderContext";
|
||||
import { useContext, useEffect } from "react";
|
||||
import { UpdateSubheader } from "util/subheader";
|
||||
|
||||
export default function useSetSubheader(
|
||||
content: string[] | string,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { BackgroundContext } from "context/BackgroundContext";
|
||||
import React, { useContext } from "react";
|
||||
import { ToCDNURL } from "util/api";
|
||||
|
||||
export default function BackgroundImage() {
|
||||
const { background } = useContext(BackgroundContext);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ONE_MINUTE } from "util/constants/time";
|
||||
import Divider from "components/util/Divider";
|
||||
import Muted from "components/util/Muted";
|
||||
import { UserContext } from "context/UserContext";
|
||||
@@ -5,8 +7,6 @@ import React, { useContext, useEffect } from "react";
|
||||
import { Button } from "react-bootstrap";
|
||||
import toast from "react-hot-toast";
|
||||
import { SetState } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ONE_MINUTE } from "util/constants/time";
|
||||
import useSetSubheader from "../header/useSetSubheader";
|
||||
|
||||
export default function EmailVerify({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { TachiConfig } from "lib/config";
|
||||
import React from "react";
|
||||
import { ToCDNURL } from "util/api";
|
||||
|
||||
export default function SplashImage() {
|
||||
return (
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { UserContext } from "context/UserContext";
|
||||
import { TachiConfig } from "lib/config";
|
||||
import React, { useContext, useEffect, useState } from "react";
|
||||
import { PublicUserDocument } from "tachi-common";
|
||||
import { JustChildren } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { SplashScreen } from "./SplashScreen";
|
||||
|
||||
export function LoadingScreen({ children }: JustChildren) {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { CreateChartMap, CreateSongMap } from "util/data";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { FormatDuration } from "util/time";
|
||||
import Card from "components/layout/page/Card";
|
||||
import ScoreTable from "components/tables/scores/ScoreTable";
|
||||
import ApiError from "components/util/ApiError";
|
||||
@@ -14,10 +18,6 @@ import toast from "react-hot-toast";
|
||||
import { SessionDocument } from "tachi-common";
|
||||
import { SessionReturns } from "types/api-returns";
|
||||
import { ScoreDataset } from "types/tables";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { CreateChartMap, CreateSongMap } from "util/data";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { FormatDuration } from "util/time";
|
||||
|
||||
export default function SessionCard({ sessionID }: { sessionID: string }) {
|
||||
const { user } = useContext(UserContext);
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import { TACHI_CHART_THEME } from "util/constants/chart-theme";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { FormatDuration } from "util/time";
|
||||
import { ResponsiveLine } from "@nivo/line";
|
||||
import ChartTooltip from "components/charts/ChartTooltip";
|
||||
import Card from "components/layout/page/Card";
|
||||
@@ -12,10 +16,6 @@ import { ChartDocument, GetGamePTConfig, ScoreDocument, SongDocument } from "tac
|
||||
import { SessionReturns } from "types/api-returns";
|
||||
import { GamePT } from "types/react";
|
||||
import { ScoreDataset } from "types/tables";
|
||||
import { TACHI_CHART_THEME } from "util/constants/chart-theme";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { FormatDuration } from "util/time";
|
||||
|
||||
export default function SessionOverview({
|
||||
sessionData,
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { CreateChartMap, CreateScoreIDMap, CreateSongMap } from "util/data";
|
||||
import { PartialArrayRecordAssign } from "util/misc";
|
||||
import DifficultyCell from "components/tables/cells/DifficultyCell";
|
||||
import LampCell from "components/tables/cells/LampCell";
|
||||
import ScoreCell from "components/tables/cells/ScoreCell";
|
||||
@@ -26,10 +30,6 @@ import {
|
||||
TableDocument,
|
||||
} from "tachi-common";
|
||||
import { SessionReturns } from "types/api-returns";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { CreateChartMap, CreateScoreIDMap, CreateSongMap } from "util/data";
|
||||
import { PartialArrayRecordAssign } from "util/misc";
|
||||
|
||||
export default function SessionRaiseBreakdown({ sessionData }: { sessionData: SessionReturns }) {
|
||||
const game = sessionData.session.game;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { FormatBMSTables } from "util/misc";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import Icon from "components/util/Icon";
|
||||
import React from "react";
|
||||
import { ChartDocument, COLOUR_SET } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { FormatBMSTables } from "util/misc";
|
||||
import TierlistInfoPart from "./TierlistInfoPart";
|
||||
|
||||
export default function BMSPMSDifficultyCell({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { IsNotNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
|
||||
export default function BMSOrPMSLampCell({
|
||||
score,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { GetGradeFromPercent, IsNullish } from "util/misc";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import Divider from "components/util/Divider";
|
||||
import Muted from "components/util/Muted";
|
||||
@@ -6,7 +7,6 @@ import { UserContext } from "context/UserContext";
|
||||
import React, { useContext } from "react";
|
||||
import { PoyashiBPI } from "rg-stats";
|
||||
import { ChartDocument, integer, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { GetGradeFromPercent, IsNullish } from "util/misc";
|
||||
import MiniTable from "../components/MiniTable";
|
||||
import DeltaCell from "./DeltaCell";
|
||||
import ScoreCell from "./ScoreCell";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IsNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { COLOUR_SET, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsNullish } from "util/misc";
|
||||
|
||||
export default function CHUNITHMJudgementCell({
|
||||
score,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { GenericFormatGradeDelta } from "util/grade-deltas";
|
||||
import React from "react";
|
||||
import { Game, Grades, IDStrings, Playtypes } from "tachi-common";
|
||||
import { GenericFormatGradeDelta } from "util/grade-deltas";
|
||||
|
||||
export default function DeltaCell({
|
||||
game,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import Icon from "components/util/Icon";
|
||||
import Muted from "components/util/Muted";
|
||||
@@ -9,7 +10,6 @@ import {
|
||||
Game,
|
||||
GetGamePTConfig,
|
||||
} from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import BMSPMSDifficultyCell from "./BMSDifficultyCell";
|
||||
import TierlistInfoPart from "./TierlistInfoPart";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsScore } from "util/asserts";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { IsNotNullish } from "util/misc";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import React from "react";
|
||||
|
||||
export default function IIDXLampCell({
|
||||
sc,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import React from "react";
|
||||
|
||||
export default function IndicatorsCell({ highlight }: { highlight: boolean }) {
|
||||
return (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IsNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { COLOUR_SET, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsNullish } from "util/misc";
|
||||
|
||||
export default function JubeatJudgementCell({
|
||||
score,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
|
||||
export default function LampCell({ score }: { score: ScoreDocument | PBScoreDocument }) {
|
||||
const gptConfig = GetGamePTConfig(score.game, score.playtype);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { FormatMillions } from "util/misc";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
|
||||
export default function MillionsScoreCell({ score }: { score: PBScoreDocument | ScoreDocument }) {
|
||||
const gptConfig = GetGamePTConfig(score.game, score.playtype);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IsNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { COLOUR_SET, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsNullish } from "util/misc";
|
||||
|
||||
export default function MusecaJudgementCell({
|
||||
score,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IsNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { COLOUR_SET, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsNullish } from "util/misc";
|
||||
|
||||
export default function PopnJudgementCell({
|
||||
score,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
|
||||
export default function PopnLampCell({
|
||||
score,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { FormatScoreRating, IsNotNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { FormatScoreRating, IsNotNullish } from "util/misc";
|
||||
|
||||
export default function RatingCell({
|
||||
score,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IsNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { COLOUR_SET, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsNullish } from "util/misc";
|
||||
|
||||
export default function SDVXJudgementCell({
|
||||
score,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
|
||||
// Lamp cell, but if the lamp is FAILED, display it slightly differently.
|
||||
export default function SDVXLampCell({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
|
||||
export default function ScoreCell({
|
||||
score,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { FormatMillions } from "util/misc";
|
||||
import React from "react";
|
||||
import { Game, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { FormatMillions } from "util/misc";
|
||||
import ScoreCell from "./ScoreCell";
|
||||
|
||||
export default function ScoreCellLarge(props: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { FormatTime, MillisToSince } from "util/time";
|
||||
import React from "react";
|
||||
import { integer } from "tachi-common";
|
||||
import { FormatTime, MillisToSince } from "util/time";
|
||||
|
||||
export default function TimestampCell({
|
||||
time,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { CreateChartLink } from "util/data";
|
||||
import GentleLink from "components/util/GentleLink";
|
||||
import Muted from "components/util/Muted";
|
||||
import React from "react";
|
||||
import { ChartDocument, Game, SongDocument } from "tachi-common";
|
||||
import { ToCDNURL } from "util/api";
|
||||
import { CreateChartLink } from "util/data";
|
||||
|
||||
export default function TitleCell({
|
||||
game,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { IsNullish } from "util/misc";
|
||||
import useUGPTSettings from "components/util/useUGPTSettings";
|
||||
import { UserContext } from "context/UserContext";
|
||||
import React, { useContext } from "react";
|
||||
import { Volforce } from "rg-stats";
|
||||
import { ChartDocument, GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsNullish } from "util/misc";
|
||||
|
||||
type VF6IDStrings = "sdvx:Single" | "usc:Keyboard" | "usc:Controller";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IsNullish } from "util/misc";
|
||||
import React from "react";
|
||||
import { COLOUR_SET, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsNullish } from "util/misc";
|
||||
|
||||
export default function WaccaJudgementCell({
|
||||
score,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { GetValueGetter, ValueGetterOrHybrid } from "util/ztable/search";
|
||||
import Divider from "components/util/Divider";
|
||||
import ExternalLink from "components/util/ExternalLink";
|
||||
import HoverText from "components/util/HoverText";
|
||||
@@ -6,7 +7,6 @@ import StickyPopover from "components/util/StickyPopover";
|
||||
import { nanoid } from "nanoid";
|
||||
import React, { useState } from "react";
|
||||
import { Modal, OverlayTrigger, Tooltip } from "react-bootstrap";
|
||||
import { GetValueGetter, ValueGetterOrHybrid } from "util/ztable/search";
|
||||
|
||||
function AdditionalTableProps({
|
||||
value,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import React from "react";
|
||||
import {
|
||||
Game,
|
||||
@@ -7,7 +8,6 @@ import {
|
||||
ScoreCalculatedDataLookup,
|
||||
} from "tachi-common";
|
||||
import { SetState } from "types/react";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { ZTableTHProps } from "./TachiTable";
|
||||
|
||||
// type AllRatings<I extends IDStrings> =
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { CopyToClipboard } from "util/misc";
|
||||
import { ComposeSearchFunction, ValueGetterOrHybrid } from "util/ztable/search";
|
||||
import Icon from "components/util/Icon";
|
||||
import SmallText from "components/util/SmallText";
|
||||
import { useZTable, ZTableSortFn } from "components/util/table/useZTable";
|
||||
@@ -6,8 +8,6 @@ import { json2csvAsync } from "json-2-csv";
|
||||
import React, { useContext, useState } from "react";
|
||||
import { Button } from "react-bootstrap";
|
||||
import { integer } from "tachi-common";
|
||||
import { CopyToClipboard } from "util/misc";
|
||||
import { ComposeSearchFunction, ValueGetterOrHybrid } from "util/ztable/search";
|
||||
import FilterDirectivesIndicator from "./FilterDirectivesIndicator";
|
||||
import NoDataWrapper from "./NoDataWrapper";
|
||||
import PageSelector from "./PageSelector";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import SessionRaiseBreakdown from "components/sessions/SessionRaiseBreakdown";
|
||||
import DebugContent from "components/util/DebugContent";
|
||||
import HasDevModeOn from "components/util/HasDevModeOn";
|
||||
@@ -7,7 +8,6 @@ import SelectButton from "components/util/SelectButton";
|
||||
import React, { useState } from "react";
|
||||
import { useQuery } from "react-query";
|
||||
import { SessionReturns } from "types/api-returns";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { SessionDataset } from "../sessions/GenericSessionTable";
|
||||
import DropdownStructure from "./components/DropdownStructure";
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { IsScore } from "util/asserts";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import TimestampCell from "components/tables/cells/TimestampCell";
|
||||
import ScoreCoreCells from "components/tables/game-core-cells/ScoreCoreCells";
|
||||
import useScoreRatingAlg from "components/util/useScoreRatingAlg";
|
||||
@@ -5,8 +7,6 @@ import React, { useEffect, useState } from "react";
|
||||
import { ChartDocument, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { UGPTChartPBComposition } from "types/api-returns";
|
||||
import { SetState } from "types/react";
|
||||
import { IsScore } from "util/asserts";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import CommentContainer from "./CommentContainer";
|
||||
import JudgementTable from "./JudgementTable";
|
||||
import PBNote from "./PBNote";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { IsScore } from "util/asserts";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { ScoreDropdownProps } from "../PBDropdown";
|
||||
import CommentContainer from "./CommentContainer";
|
||||
import { ScoreInfo } from "./DocumentComponent";
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { IsScore } from "util/asserts";
|
||||
import { IsNotNullish, IsNullish } from "util/misc";
|
||||
import IIDXBPIChart from "components/charts/IIDXBPIChart";
|
||||
import IIDXLampChart from "components/charts/IIDXLampChart";
|
||||
import DebugContent from "components/util/DebugContent";
|
||||
@@ -5,8 +7,6 @@ import SelectNav from "components/util/SelectNav";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { Nav } from "react-bootstrap";
|
||||
import { ChartDocument, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { IsScore } from "util/asserts";
|
||||
import { IsNotNullish, IsNullish } from "util/misc";
|
||||
|
||||
// export function ModsTable({ score }: { score: ScoreDocument<"iidx:SP" | "iidx:DP"> }) {
|
||||
// if (!score.scoreMeta.assist && !score.scoreMeta.random) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import MiniTable from "components/tables/components/MiniTable";
|
||||
import React from "react";
|
||||
import { COLOUR_SET, GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { GamePT } from "types/react";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
|
||||
export default function JudgementTable({ score }: { score: ScoreDocument | PBScoreDocument }) {
|
||||
const gptConfig = GetGamePTConfig(score.game, score.playtype);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useMemo, useReducer, useState } from "react";
|
||||
import { ScoreDocument } from "tachi-common";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import { DelayedPageReload } from "util/misc";
|
||||
import React, { useMemo, useReducer, useState } from "react";
|
||||
import { ScoreDocument } from "tachi-common";
|
||||
|
||||
export default function ManageScore({ score }: { score: ScoreDocument }) {
|
||||
const [warn, upgWarn] = useReducer(r => r + 1, 0);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { UnsuccessfulAPIFetchResponse } from "util/api";
|
||||
import HistoryScoreTable from "components/tables/history-scores/HistoryScoreTable";
|
||||
import Loading from "components/util/Loading";
|
||||
import React from "react";
|
||||
import { ChartDocument, ScoreDocument } from "tachi-common";
|
||||
import { GamePT } from "types/react";
|
||||
import { UnsuccessfulAPIFetchResponse } from "util/api";
|
||||
|
||||
export default function PlayHistory({
|
||||
data,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import QuickTooltip from "components/layout/misc/QuickTooltip";
|
||||
import Icon from "components/util/Icon";
|
||||
import { UserContext } from "context/UserContext";
|
||||
@@ -5,7 +6,6 @@ import React, { useContext, useState } from "react";
|
||||
import { Game, ScoreDocument } from "tachi-common";
|
||||
import { Button, Modal, Form } from "react-bootstrap";
|
||||
import { SetState } from "types/react";
|
||||
import { APIFetchV1 } from "util/api";
|
||||
import LinkButton from "components/util/LinkButton";
|
||||
import ExternalLink from "components/util/ExternalLink";
|
||||
import ImgScoreButton from "./ImgScoreButton";
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
import { CreateDefaultFolderSearchParams } from "util/tables/create-search";
|
||||
import useScoreRatingAlg from "components/util/useScoreRatingAlg";
|
||||
import React, { useState } from "react";
|
||||
import { Game, IDStrings, ScoreCalculatedDataLookup } from "tachi-common";
|
||||
import { FolderDataset } from "types/tables";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { NumericSOV, StrSOV } from "util/sorts";
|
||||
import { CreateDefaultFolderSearchParams } from "util/tables/create-search";
|
||||
import DifficultyCell from "../cells/DifficultyCell";
|
||||
import IndicatorsCell from "../cells/IndicatorsCell";
|
||||
import RankingCell from "../cells/RankingCell";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { FormatMillions } from "util/misc";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import CHUNITHMJudgementCell from "../cells/CHUNITHMJudgementCell";
|
||||
import LampCell from "../cells/LampCell";
|
||||
import RatingCell from "../cells/RatingCell";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { ChangeOpacity } from "util/color-opacity";
|
||||
import { FormatMillions } from "util/misc";
|
||||
import React from "react";
|
||||
import { GetGamePTConfig, PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import JubeatJudgementCell from "../cells/JubeatJudgementCell";
|
||||
import LampCell from "../cells/LampCell";
|
||||
import RatingCell from "../cells/RatingCell";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { IsNotNullish } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { ChartDocument, Game } from "tachi-common";
|
||||
import { FolderDataset, PBDataset, ScoreDataset } from "types/tables";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { IsNotNullish } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { Header } from "../components/TachiTable";
|
||||
|
||||
function CascadingTierlistValue(
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import React from "react";
|
||||
import {
|
||||
Game,
|
||||
@@ -10,8 +12,6 @@ import {
|
||||
import { SetState } from "types/react";
|
||||
import { FolderDataset, PBDataset, ScoreDataset } from "types/tables";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { UppercaseFirst } from "util/misc";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import SelectableRating from "../components/SelectableRating";
|
||||
import { Header, ZTableTHProps } from "../components/TachiTable";
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { nanoid } from "nanoid";
|
||||
import React from "react";
|
||||
import { PBScoreDocument, ScoreDocument } from "tachi-common";
|
||||
import { FolderDataset, PBDataset, ScoreDataset } from "types/tables";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { Header } from "../components/TachiTable";
|
||||
|
||||
const IndicatorHeader: Header<PBDataset[0] | ScoreDataset[0]> = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import useScoreRatingAlg from "components/util/useScoreRatingAlg";
|
||||
import React, { useState } from "react";
|
||||
import {
|
||||
@@ -10,7 +11,6 @@ import {
|
||||
} from "tachi-common";
|
||||
import { ScoreDataset } from "types/tables";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import TimestampCell from "../cells/TimestampCell";
|
||||
import TachiTable from "../components/TachiTable";
|
||||
import ScoreCoreCells from "../game-core-cells/ScoreCoreCells";
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { CreateDefaultPBSearchParams } from "util/tables/create-search";
|
||||
import { GetPBLeadingHeaders } from "util/tables/get-pb-leaders";
|
||||
import useScoreRatingAlg from "components/util/useScoreRatingAlg";
|
||||
import React, { useState } from "react";
|
||||
import { Game, IDStrings, ScoreCalculatedDataLookup } from "tachi-common";
|
||||
import { PBDataset } from "types/tables";
|
||||
import { Playtype } from "types/tachi";
|
||||
import { NumericSOV } from "util/sorts";
|
||||
import { CreateDefaultPBSearchParams } from "util/tables/create-search";
|
||||
import { GetPBLeadingHeaders } from "util/tables/get-pb-leaders";
|
||||
import IndexCell from "../cells/IndexCell";
|
||||
import RankingCell from "../cells/RankingCell";
|
||||
import TimestampCell from "../cells/TimestampCell";
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user