mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 06:18:03 +03:00
style: remove unused imports
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import path from "path";
|
||||
import os from "os";
|
||||
import fs from "fs/promises";
|
||||
import CreateLogCtx from "lib/logger/logger";
|
||||
import { Environment, ServerConfig } from "lib/setup/config";
|
||||
import { asyncExec } from "utils/misc";
|
||||
import os from "os";
|
||||
import path from "path";
|
||||
import { Game } from "tachi-common";
|
||||
import fs from "fs/promises";
|
||||
import { asyncExec } from "utils/misc";
|
||||
|
||||
const logger = CreateLogCtx(__filename);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import db from "external/mongo/db";
|
||||
import CreateLogCtx from "lib/logger/logger";
|
||||
import { Game, integer, Playtype, Playtypes } from "tachi-common";
|
||||
import { Game, integer, Playtype } from "tachi-common";
|
||||
|
||||
const logger = CreateLogCtx(__filename);
|
||||
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
import { KtLogger } from "lib/logger/logger";
|
||||
import {
|
||||
ChartDocument,
|
||||
Game,
|
||||
GetGamePTConfig,
|
||||
IIDX_LAMPS,
|
||||
integer,
|
||||
Playtype,
|
||||
Playtypes,
|
||||
} from "tachi-common";
|
||||
import { ChartDocument, Game, GetGamePTConfig, IIDX_LAMPS, integer, Playtype } from "tachi-common";
|
||||
import { DryScore } from "../common/types";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { KtLogger } from "lib/logger/logger";
|
||||
import {
|
||||
ParserFunctionReturns,
|
||||
ImportTypeDataMap,
|
||||
ImportTypeContextMap,
|
||||
ImportTypeDataMap,
|
||||
ParserFunctionReturns,
|
||||
} from "lib/score-import/import-types/common/types";
|
||||
import { Parsers } from "lib/score-import/import-types/parsers";
|
||||
import { ScoreImportJobData } from "lib/score-import/worker/types";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Difficulties, Game, GetGamePTConfig, IDStrings, Playtype, Playtypes } from "tachi-common";
|
||||
import { Difficulties, Game, GetGamePTConfig, IDStrings, Playtype } from "tachi-common";
|
||||
import { InvalidScoreFailure } from "./converter-failures";
|
||||
export function AssertStrAsDifficulty(
|
||||
strVal: string,
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
WACCA_COLOURS,
|
||||
} from "lib/constants/classes";
|
||||
import { KtLogger } from "lib/logger/logger";
|
||||
import { Game, integer, Playtype, Playtypes, ScoreCalculatedDataLookup } from "tachi-common";
|
||||
import { Game, integer, Playtype, ScoreCalculatedDataLookup } from "tachi-common";
|
||||
import { GameClasses } from "tachi-common/js/game-classes";
|
||||
|
||||
export function CalculateSDVXClass(
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import {
|
||||
Game,
|
||||
Playtypes,
|
||||
integer,
|
||||
ScoreCalculatedDataLookup,
|
||||
IDStrings,
|
||||
UserGameStats,
|
||||
PBScoreDocument,
|
||||
Playtype,
|
||||
} from "tachi-common";
|
||||
import db from "external/mongo/db";
|
||||
import { KtLogger } from "lib/logger/logger";
|
||||
import {
|
||||
Game,
|
||||
IDStrings,
|
||||
integer,
|
||||
PBScoreDocument,
|
||||
Playtype,
|
||||
Playtypes,
|
||||
ScoreCalculatedDataLookup,
|
||||
UserGameStats,
|
||||
} from "tachi-common";
|
||||
|
||||
type CustomCalcNames = ScoreCalculatedDataLookup[IDStrings];
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { KtLogger } from "lib/logger/logger";
|
||||
import { Game, IDStrings, integer, Playtype, Playtypes } from "tachi-common";
|
||||
import { Game, IDStrings, integer, Playtype } from "tachi-common";
|
||||
import { GameClasses } from "tachi-common/js/game-classes";
|
||||
|
||||
export type ScoreClasses = Partial<GameClasses<IDStrings>>;
|
||||
|
||||
@@ -10,7 +10,6 @@ import {
|
||||
GetGamePTConfig,
|
||||
ImportTypes,
|
||||
Playtype,
|
||||
Playtypes,
|
||||
} from "tachi-common";
|
||||
import { FormatPrError } from "utils/prudence";
|
||||
import ScoreImportFatalError from "../../../framework/score-importing/score-import-error";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Game, GPTSupportedVersions, IDStrings, Playtype, Playtypes } from "tachi-common";
|
||||
import { Game, GPTSupportedVersions, IDStrings, Playtype } from "tachi-common";
|
||||
|
||||
export interface BatchManualContext {
|
||||
game: Game;
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
Game,
|
||||
integer,
|
||||
Playtype,
|
||||
Playtypes,
|
||||
PublicUserDocument,
|
||||
SessionDocument,
|
||||
SongDocument,
|
||||
|
||||
@@ -14,13 +14,13 @@ import {
|
||||
import foldersRouter from "./folders/router";
|
||||
import { CheckUserPlayedGamePlaytype } from "./middleware";
|
||||
import pbsRouter from "./pbs/router";
|
||||
import rivalsRouter from "./rivals/router";
|
||||
import scoresRouter from "./scores/router";
|
||||
import sessionsRouter from "./sessions/router";
|
||||
import settingsRouter from "./settings/router";
|
||||
import showcaseRouter from "./showcase/router";
|
||||
import tablesRouter from "./tables/router";
|
||||
import targetsRouter from "./targets/router";
|
||||
import rivalsRouter from "./rivals/router";
|
||||
|
||||
const router: Router = Router({ mergeParams: true });
|
||||
|
||||
|
||||
+10
-10
@@ -1,20 +1,20 @@
|
||||
import db from "external/mongo/db";
|
||||
import t from "tap";
|
||||
import mockApi from "test-utils/mock-api";
|
||||
import ResetDBState from "test-utils/resets";
|
||||
import dm from "deepmerge";
|
||||
import {
|
||||
HC511Goal,
|
||||
HC511UserGoal,
|
||||
TestingIIDXSPMilestone,
|
||||
TestingIIDXSPMilestoneSub,
|
||||
} from "test-utils/test-data";
|
||||
import db from "external/mongo/db";
|
||||
import {
|
||||
GoalDocument,
|
||||
GoalSubscriptionDocument,
|
||||
MilestoneDocument,
|
||||
MilestoneSubscriptionDocument,
|
||||
} from "tachi-common";
|
||||
import t from "tap";
|
||||
import mockApi from "test-utils/mock-api";
|
||||
import ResetDBState from "test-utils/resets";
|
||||
import {
|
||||
HC511Goal,
|
||||
HC511UserGoal,
|
||||
TestingIIDXSPMilestone,
|
||||
TestingIIDXSPMilestoneSub,
|
||||
} from "test-utils/test-data";
|
||||
|
||||
function mkGoalSub(merge: Partial<GoalSubscriptionDocument>) {
|
||||
return dm(HC511UserGoal, merge);
|
||||
|
||||
Reference in New Issue
Block a user