mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 11:58:12 +03:00
I'm a numpty who doesn't remember their own codebase
This commit is contained in:
Vendored
+1
-2
@@ -1,4 +1,4 @@
|
||||
import { FileUploadImportTypes, IRImportTypes, APIImportTypes, ImportTypes, Game, Playtypes } from "..";
|
||||
import { FileUploadImportTypes, IRImportTypes, APIImportTypes, ImportTypes, Game } from "..";
|
||||
export declare const fileImportTypes: FileUploadImportTypes[];
|
||||
export declare const irImportTypes: IRImportTypes[];
|
||||
export declare const apiImportTypes: APIImportTypes[];
|
||||
@@ -12,4 +12,3 @@ export interface ServerConfig {
|
||||
export declare const KTCHI_CONFIG: ServerConfig;
|
||||
export declare const BTCHI_CONFIG: ServerConfig;
|
||||
export declare const OMNI_CONFIG: ServerConfig;
|
||||
export declare function FormatGame(game: Game, playtype: Playtypes[Game]): string;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FormatGame = exports.OMNI_CONFIG = exports.BTCHI_CONFIG = exports.KTCHI_CONFIG = exports.allSupportedGames = exports.allImportTypes = exports.apiImportTypes = exports.irImportTypes = exports.fileImportTypes = void 0;
|
||||
const config_1 = require("./config");
|
||||
exports.OMNI_CONFIG = exports.BTCHI_CONFIG = exports.KTCHI_CONFIG = exports.allSupportedGames = exports.allImportTypes = exports.apiImportTypes = exports.irImportTypes = exports.fileImportTypes = void 0;
|
||||
exports.fileImportTypes = [
|
||||
"file/eamusement-iidx-csv",
|
||||
"file/batch-manual",
|
||||
@@ -76,12 +75,4 @@ exports.OMNI_CONFIG = {
|
||||
supportedGames: exports.allSupportedGames,
|
||||
supportedImportTypes: exports.allImportTypes,
|
||||
};
|
||||
function FormatGame(game, playtype) {
|
||||
const gameConfig = config_1.GetGameConfig(game);
|
||||
if (gameConfig.validPlaytypes.length === 1) {
|
||||
return gameConfig.name;
|
||||
}
|
||||
return `${gameConfig.name} (${playtype})`;
|
||||
}
|
||||
exports.FormatGame = FormatGame;
|
||||
//# sourceMappingURL=static-config.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"static-config.js","sourceRoot":"","sources":["../../src/config/static-config.ts"],"names":[],"mappings":";;;AAQA,qCAAyC;AAE5B,QAAA,eAAe,GAA4B;IACvD,0BAA0B;IAC1B,mBAAmB;IACnB,wBAAwB;IACxB,eAAe;IACf,mBAAmB;CACnB,CAAC;AAEW,QAAA,aAAa,GAAoB;IAC7C,kBAAkB;IAClB,aAAa;IACb,aAAa;IACb,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,QAAQ;CACR,CAAC;AAEW,QAAA,cAAc,GAAqB;IAC/C,cAAc;IACd,cAAc;IACd,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;CACd,CAAC;AAEW,QAAA,cAAc,GAAkB;IAC5C,GAAG,uBAAe;IAClB,GAAG,qBAAa;IAChB,GAAG,sBAAc;CACjB,CAAC;AAEW,QAAA,iBAAiB,GAAW;IACxC,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,MAAM;IACN,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;IACV,KAAK;CACL,CAAC;AAQW,QAAA,YAAY,GAAiB;IACzC,IAAI,EAAE,YAAY;IAClB,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC;IAC5E,oBAAoB,EAAE;QACrB,cAAc;QACd,cAAc;QACd,aAAa;QACb,cAAc;QACd,cAAc;QACd,cAAc;QACd,cAAc;QACd,kBAAkB;QAClB,aAAa;QACb,oBAAoB;QACpB,eAAe;QACf,0BAA0B;QAC1B,wBAAwB;QACxB,eAAe;QACf,mBAAmB;KACnB;CACD,CAAC;AAEW,QAAA,YAAY,GAAiB;IACzC,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC9B,oBAAoB,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,CAAC;CACzF,CAAC;AAEW,QAAA,WAAW,GAAiB;IACxC,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE,yBAAiB;IACjC,oBAAoB,EAAE,sBAAc;CACpC,CAAC;AAEF,SAAgB,UAAU,CAAC,IAAU,EAAE,QAAyB;IAC/D,MAAM,UAAU,GAAG,sBAAa,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,UAAU,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3C,OAAO,UAAU,CAAC,IAAI,CAAC;KACvB;IAED,OAAO,GAAG,UAAU,CAAC,IAAI,KAAK,QAAQ,GAAG,CAAC;AAC3C,CAAC;AARD,gCAQC"}
|
||||
{"version":3,"file":"static-config.js","sourceRoot":"","sources":["../../src/config/static-config.ts"],"names":[],"mappings":";;;AAUa,QAAA,eAAe,GAA4B;IACvD,0BAA0B;IAC1B,mBAAmB;IACnB,wBAAwB;IACxB,eAAe;IACf,mBAAmB;CACnB,CAAC;AAEW,QAAA,aAAa,GAAoB;IAC7C,kBAAkB;IAClB,aAAa;IACb,aAAa;IACb,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,QAAQ;CACR,CAAC;AAEW,QAAA,cAAc,GAAqB;IAC/C,cAAc;IACd,cAAc;IACd,aAAa;IACb,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;CACd,CAAC;AAEW,QAAA,cAAc,GAAkB;IAC5C,GAAG,uBAAe;IAClB,GAAG,qBAAa;IAChB,GAAG,sBAAc;CACjB,CAAC;AAEW,QAAA,iBAAiB,GAAW;IACxC,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,UAAU;IACV,MAAM;IACN,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;IACV,KAAK;CACL,CAAC;AAQW,QAAA,YAAY,GAAiB;IACzC,IAAI,EAAE,YAAY;IAClB,cAAc,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC;IAC5E,oBAAoB,EAAE;QACrB,cAAc;QACd,cAAc;QACd,aAAa;QACb,cAAc;QACd,cAAc;QACd,cAAc;QACd,cAAc;QACd,kBAAkB;QAClB,aAAa;QACb,oBAAoB;QACpB,eAAe;QACf,0BAA0B;QAC1B,wBAAwB;QACxB,eAAe;QACf,mBAAmB;KACnB;CACD,CAAC;AAEW,QAAA,YAAY,GAAiB;IACzC,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC9B,oBAAoB,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,mBAAmB,CAAC;CACzF,CAAC;AAEW,QAAA,WAAW,GAAiB;IACxC,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE,yBAAiB;IACjC,oBAAoB,EAAE,sBAAc;CACpC,CAAC"}
|
||||
Vendored
+2
-1
@@ -1,2 +1,3 @@
|
||||
import { AnyChartDocument, Game } from "..";
|
||||
import { AnyChartDocument, Game, Playtypes } from "..";
|
||||
export declare function FormatDifficulty(chart: AnyChartDocument, game: Game): string;
|
||||
export declare function FormatGame(game: Game, playtype: Playtypes[Game]): string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FormatDifficulty = void 0;
|
||||
exports.FormatGame = exports.FormatDifficulty = void 0;
|
||||
const config_1 = require("../config/config");
|
||||
function FormatDifficulty(chart, game) {
|
||||
const gameConfig = config_1.GetGameConfig(game);
|
||||
@@ -10,4 +10,12 @@ function FormatDifficulty(chart, game) {
|
||||
return `${chart.difficulty}`;
|
||||
}
|
||||
exports.FormatDifficulty = FormatDifficulty;
|
||||
function FormatGame(game, playtype) {
|
||||
const gameConfig = config_1.GetGameConfig(game);
|
||||
if (gameConfig.validPlaytypes.length === 1) {
|
||||
return gameConfig.name;
|
||||
}
|
||||
return `${gameConfig.name} (${playtype})`;
|
||||
}
|
||||
exports.FormatGame = FormatGame;
|
||||
//# sourceMappingURL=util.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/utils/util.ts"],"names":[],"mappings":";;;AACA,6CAAiD;AAEjD,SAAgB,gBAAgB,CAAC,KAAuB,EAAE,IAAU;IACnE,MAAM,UAAU,GAAG,sBAAa,CAAC,IAAI,CAAC,CAAC;IACvC,IAAI,UAAU,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QACzC,OAAO,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;KAC9D;IAED,OAAO,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;AAC9B,CAAC;AAPD,4CAOC"}
|
||||
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/utils/util.ts"],"names":[],"mappings":";;;AACA,6CAAiD;AAEjD,SAAgB,gBAAgB,CAAC,KAAuB,EAAE,IAAU;IACnE,MAAM,UAAU,GAAG,sBAAa,CAAC,IAAI,CAAC,CAAC;IACvC,IAAI,UAAU,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QACzC,OAAO,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;KAC9D;IAED,OAAO,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;AAC9B,CAAC;AAPD,4CAOC;AAED,SAAgB,UAAU,CAAC,IAAU,EAAE,QAAyB;IAC/D,MAAM,UAAU,GAAG,sBAAa,CAAC,IAAI,CAAC,CAAC;IAEvC,IAAI,UAAU,CAAC,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3C,OAAO,UAAU,CAAC,IAAI,CAAC;KACvB;IAED,OAAO,GAAG,UAAU,CAAC,IAAI,KAAK,QAAQ,GAAG,CAAC;AAC3C,CAAC;AARD,gCAQC"}
|
||||
@@ -94,14 +94,4 @@ export const OMNI_CONFIG: ServerConfig = {
|
||||
name: "Omnitachi",
|
||||
supportedGames: allSupportedGames,
|
||||
supportedImportTypes: allImportTypes,
|
||||
};
|
||||
|
||||
export function FormatGame(game: Game, playtype: Playtypes[Game]): string {
|
||||
const gameConfig = GetGameConfig(game);
|
||||
|
||||
if (gameConfig.validPlaytypes.length === 1) {
|
||||
return gameConfig.name;
|
||||
}
|
||||
|
||||
return `${gameConfig.name} (${playtype})`;
|
||||
}
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AnyChartDocument, Game } from "..";
|
||||
import { AnyChartDocument, Game, Playtypes } from "..";
|
||||
import { GetGameConfig } from "../config/config";
|
||||
|
||||
export function FormatDifficulty(chart: AnyChartDocument, game: Game): string {
|
||||
@@ -9,3 +9,13 @@ export function FormatDifficulty(chart: AnyChartDocument, game: Game): string {
|
||||
|
||||
return `${chart.difficulty}`;
|
||||
}
|
||||
|
||||
export function FormatGame(game: Game, playtype: Playtypes[Game]): string {
|
||||
const gameConfig = GetGameConfig(game);
|
||||
|
||||
if (gameConfig.validPlaytypes.length === 1) {
|
||||
return gameConfig.name;
|
||||
}
|
||||
|
||||
return `${gameConfig.name} (${playtype})`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user