mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Changed file names in src/@types to kebab-case
This commit is contained in:
parent
8f0eee9c4c
commit
118e3cd0e0
@ -1,4 +1,4 @@
|
|||||||
import type { UserInfo } from "#app/@types/UserInfo";
|
import type { UserInfo } from "#app/@types/user-Info";
|
||||||
|
|
||||||
export interface AccountInfoResponse extends UserInfo {}
|
export interface AccountInfoResponse extends UserInfo {}
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
|
import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
|
||||||
import type { UserInfo } from "#app/@types/UserInfo";
|
import type { UserInfo } from "#app/@types/user-Info";
|
||||||
import { bypassLogin } from "./global-vars/bypass-login";
|
import { bypassLogin } from "./global-vars/bypass-login";
|
||||||
import { randomString } from "#app/utils/common";
|
import { randomString } from "#app/utils/common";
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import type {
|
|||||||
AccountLoginRequest,
|
AccountLoginRequest,
|
||||||
AccountLoginResponse,
|
AccountLoginResponse,
|
||||||
AccountRegisterRequest,
|
AccountRegisterRequest,
|
||||||
} from "#app/@types/PokerogueAccountApi";
|
} from "#app/@types/pokerogue-account-api";
|
||||||
import { SESSION_ID_COOKIE_NAME } from "#app/constants";
|
import { SESSION_ID_COOKIE_NAME } from "#app/constants";
|
||||||
import { ApiBase } from "#app/plugins/api/api-base";
|
import { ApiBase } from "#app/plugins/api/api-base";
|
||||||
import { removeCookie, setCookie } from "#app/utils/cookies";
|
import { removeCookie, setCookie } from "#app/utils/cookies";
|
||||||
|
@ -5,7 +5,7 @@ import type {
|
|||||||
SearchAccountResponse,
|
SearchAccountResponse,
|
||||||
UnlinkAccountFromDiscordIdRequest,
|
UnlinkAccountFromDiscordIdRequest,
|
||||||
UnlinkAccountFromGoogledIdRequest,
|
UnlinkAccountFromGoogledIdRequest,
|
||||||
} from "#app/@types/PokerogueAdminApi";
|
} from "#app/@types/pokerogue-admin-api";
|
||||||
import { ApiBase } from "#app/plugins/api/api-base";
|
import { ApiBase } from "#app/plugins/api/api-base";
|
||||||
|
|
||||||
export class PokerogueAdminApi extends ApiBase {
|
export class PokerogueAdminApi extends ApiBase {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { TitleStatsResponse } from "#app/@types/PokerogueApi";
|
import type { TitleStatsResponse } from "#app/@types/pokerogue-api";
|
||||||
import { ApiBase } from "#app/plugins/api/api-base";
|
import { ApiBase } from "#app/plugins/api/api-base";
|
||||||
import { PokerogueAccountApi } from "#app/plugins/api/pokerogue-account-api";
|
import { PokerogueAccountApi } from "#app/plugins/api/pokerogue-account-api";
|
||||||
import { PokerogueAdminApi } from "#app/plugins/api/pokerogue-admin-api";
|
import { PokerogueAdminApi } from "#app/plugins/api/pokerogue-admin-api";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#app/@types/PokerogueDailyApi";
|
import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#app/@types/pokerogue-daily-api";
|
||||||
import { ApiBase } from "#app/plugins/api/api-base";
|
import { ApiBase } from "#app/plugins/api/api-base";
|
||||||
import type { RankingEntry } from "#app/ui/daily-run-scoreboard";
|
import type { RankingEntry } from "#app/ui/daily-run-scoreboard";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { UpdateAllSavedataRequest } from "#app/@types/PokerogueSavedataApi";
|
import type { UpdateAllSavedataRequest } from "#app/@types/pokerogue-save-data-api";
|
||||||
import { MAX_INT_ATTR_VALUE } from "#app/constants";
|
import { MAX_INT_ATTR_VALUE } from "#app/constants";
|
||||||
import { ApiBase } from "#app/plugins/api/api-base";
|
import { ApiBase } from "#app/plugins/api/api-base";
|
||||||
import { PokerogueSessionSavedataApi } from "#app/plugins/api/pokerogue-session-savedata-api";
|
import { PokerogueSessionSavedataApi } from "#app/plugins/api/pokerogue-session-savedata-api";
|
||||||
|
@ -5,7 +5,7 @@ import type {
|
|||||||
GetSessionSavedataRequest,
|
GetSessionSavedataRequest,
|
||||||
NewClearSessionSavedataRequest,
|
NewClearSessionSavedataRequest,
|
||||||
UpdateSessionSavedataRequest,
|
UpdateSessionSavedataRequest,
|
||||||
} from "#app/@types/PokerogueSessionSavedataApi";
|
} from "#app/@types/pokerogue-session-save-data-api";
|
||||||
import { ApiBase } from "#app/plugins/api/api-base";
|
import { ApiBase } from "#app/plugins/api/api-base";
|
||||||
import type { SessionSaveData } from "#app/system/game-data";
|
import type { SessionSaveData } from "#app/system/game-data";
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import type {
|
|||||||
UpdateSystemSavedataRequest,
|
UpdateSystemSavedataRequest,
|
||||||
VerifySystemSavedataRequest,
|
VerifySystemSavedataRequest,
|
||||||
VerifySystemSavedataResponse,
|
VerifySystemSavedataResponse,
|
||||||
} from "#app/@types/PokerogueSystemSavedataApi";
|
} from "#app/@types/pokerogue-system-save-data-api";
|
||||||
import { ApiBase } from "#app/plugins/api/api-base";
|
import { ApiBase } from "#app/plugins/api/api-base";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { SessionSaveMigrator } from "#app/@types/SessionSaveMigrator";
|
import type { SessionSaveMigrator } from "#app/@types/session-save-migrator";
|
||||||
import type { SettingsSaveMigrator } from "#app/@types/SettingsSaveMigrator";
|
import type { SettingsSaveMigrator } from "#app/@types/settings-save-migrator";
|
||||||
import type { SystemSaveMigrator } from "#app/@types/SystemSaveMigrator";
|
import type { SystemSaveMigrator } from "#app/@types/system-save-migrator";
|
||||||
import type { SessionSaveData, SystemSaveData } from "#app/system/game-data";
|
import type { SessionSaveData, SystemSaveData } from "#app/system/game-data";
|
||||||
import { compareVersions } from "compare-versions";
|
import { compareVersions } from "compare-versions";
|
||||||
import { version } from "../../../package.json";
|
import { version } from "../../../package.json";
|
||||||
|
@ -4,9 +4,9 @@ import { AbilityAttr, defaultStarterSpecies, DexAttr } from "#app/system/game-da
|
|||||||
import { allSpecies } from "#app/data/pokemon-species";
|
import { allSpecies } from "#app/data/pokemon-species";
|
||||||
import { CustomPokemonData } from "#app/data/custom-pokemon-data";
|
import { CustomPokemonData } from "#app/data/custom-pokemon-data";
|
||||||
import { isNullOrUndefined } from "#app/utils/common";
|
import { isNullOrUndefined } from "#app/utils/common";
|
||||||
import type { SystemSaveMigrator } from "#app/@types/SystemSaveMigrator";
|
import type { SystemSaveMigrator } from "#app/@types/system-save-migrator";
|
||||||
import type { SettingsSaveMigrator } from "#app/@types/SettingsSaveMigrator";
|
import type { SettingsSaveMigrator } from "#app/@types/settings-save-migrator";
|
||||||
import type { SessionSaveMigrator } from "#app/@types/SessionSaveMigrator";
|
import type { SessionSaveMigrator } from "#app/@types/session-save-migrator";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Migrate ability starter data if empty for caught species.
|
* Migrate ability starter data if empty for caught species.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { SessionSaveMigrator } from "#app/@types/SessionSaveMigrator";
|
import type { SessionSaveMigrator } from "#app/@types/session-save-migrator";
|
||||||
import type { SystemSaveMigrator } from "#app/@types/SystemSaveMigrator";
|
import type { SystemSaveMigrator } from "#app/@types/system-save-migrator";
|
||||||
import { getPokemonSpecies, getPokemonSpeciesForm } from "#app/data/pokemon-species";
|
import { getPokemonSpecies, getPokemonSpeciesForm } from "#app/data/pokemon-species";
|
||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { DexAttr, type SessionSaveData, type SystemSaveData } from "#app/system/game-data";
|
import { DexAttr, type SessionSaveData, type SystemSaveData } from "#app/system/game-data";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { SystemSaveMigrator } from "#app/@types/SystemSaveMigrator";
|
import type { SystemSaveMigrator } from "#app/@types/system-save-migrator";
|
||||||
import { getPokemonSpecies } from "#app/data/pokemon-species";
|
import { getPokemonSpecies } from "#app/data/pokemon-species";
|
||||||
import { DexAttr, type SystemSaveData } from "#app/system/game-data";
|
import { DexAttr, type SystemSaveData } from "#app/system/game-data";
|
||||||
import { Species } from "#enums/species";
|
import { Species } from "#enums/species";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { SessionSaveMigrator } from "#app/@types/SessionSaveMigrator";
|
import type { SessionSaveMigrator } from "#app/@types/session-save-migrator";
|
||||||
import { Status } from "#app/data/status-effect";
|
import { Status } from "#app/data/status-effect";
|
||||||
import { PokemonMove } from "#app/field/pokemon";
|
import { PokemonMove } from "#app/field/pokemon";
|
||||||
import type { SessionSaveData } from "#app/system/game-data";
|
import type { SessionSaveData } from "#app/system/game-data";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { AccountInfoResponse } from "#app/@types/PokerogueAccountApi";
|
import type { AccountInfoResponse } from "#app/@types/pokerogue-account-api";
|
||||||
import { SESSION_ID_COOKIE_NAME } from "#app/constants";
|
import { SESSION_ID_COOKIE_NAME } from "#app/constants";
|
||||||
import { PokerogueAccountApi } from "#app/plugins/api/pokerogue-account-api";
|
import { PokerogueAccountApi } from "#app/plugins/api/pokerogue-account-api";
|
||||||
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
||||||
|
@ -5,7 +5,7 @@ import type {
|
|||||||
SearchAccountResponse,
|
SearchAccountResponse,
|
||||||
UnlinkAccountFromDiscordIdRequest,
|
UnlinkAccountFromDiscordIdRequest,
|
||||||
UnlinkAccountFromGoogledIdRequest,
|
UnlinkAccountFromGoogledIdRequest,
|
||||||
} from "#app/@types/PokerogueAdminApi";
|
} from "#app/@types/pokerogue-admin-api";
|
||||||
import { PokerogueAdminApi } from "#app/plugins/api/pokerogue-admin-api";
|
import { PokerogueAdminApi } from "#app/plugins/api/pokerogue-admin-api";
|
||||||
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
||||||
import { http, HttpResponse } from "msw";
|
import { http, HttpResponse } from "msw";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { TitleStatsResponse } from "#app/@types/PokerogueApi";
|
import type { TitleStatsResponse } from "#app/@types/pokerogue-api";
|
||||||
import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
|
import { pokerogueApi } from "#app/plugins/api/pokerogue-api";
|
||||||
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
||||||
import { http, HttpResponse } from "msw";
|
import { http, HttpResponse } from "msw";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#app/@types/PokerogueDailyApi";
|
import type { GetDailyRankingsPageCountRequest, GetDailyRankingsRequest } from "#app/@types/pokerogue-daily-api";
|
||||||
import { PokerogueDailyApi } from "#app/plugins/api/pokerogue-daily-api";
|
import { PokerogueDailyApi } from "#app/plugins/api/pokerogue-daily-api";
|
||||||
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
||||||
import { ScoreboardCategory, type RankingEntry } from "#app/ui/daily-run-scoreboard";
|
import { ScoreboardCategory, type RankingEntry } from "#app/ui/daily-run-scoreboard";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { UpdateAllSavedataRequest } from "#app/@types/PokerogueSavedataApi";
|
import type { UpdateAllSavedataRequest } from "#app/@types/pokerogue-save-data-api";
|
||||||
import { PokerogueSavedataApi } from "#app/plugins/api/pokerogue-savedata-api";
|
import { PokerogueSavedataApi } from "#app/plugins/api/pokerogue-savedata-api";
|
||||||
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
||||||
import { http, HttpResponse } from "msw";
|
import { http, HttpResponse } from "msw";
|
||||||
|
@ -5,7 +5,7 @@ import type {
|
|||||||
GetSessionSavedataRequest,
|
GetSessionSavedataRequest,
|
||||||
NewClearSessionSavedataRequest,
|
NewClearSessionSavedataRequest,
|
||||||
UpdateSessionSavedataRequest,
|
UpdateSessionSavedataRequest,
|
||||||
} from "#app/@types/PokerogueSessionSavedataApi";
|
} from "#app/@types/pokerogue-session-save-data-api";
|
||||||
import { PokerogueSessionSavedataApi } from "#app/plugins/api/pokerogue-session-savedata-api";
|
import { PokerogueSessionSavedataApi } from "#app/plugins/api/pokerogue-session-savedata-api";
|
||||||
import type { SessionSaveData } from "#app/system/game-data";
|
import type { SessionSaveData } from "#app/system/game-data";
|
||||||
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
import { getApiBaseUrl } from "#test/testUtils/testUtils";
|
||||||
|
@ -3,7 +3,7 @@ import type {
|
|||||||
UpdateSystemSavedataRequest,
|
UpdateSystemSavedataRequest,
|
||||||
VerifySystemSavedataRequest,
|
VerifySystemSavedataRequest,
|
||||||
VerifySystemSavedataResponse,
|
VerifySystemSavedataResponse,
|
||||||
} from "#app/@types/PokerogueSystemSavedataApi";
|
} from "#app/@types/pokerogue-system-save-data-api";
|
||||||
import { PokerogueSystemSavedataApi } from "#app/plugins/api/pokerogue-system-savedata-api";
|
import { PokerogueSystemSavedataApi } from "#app/plugins/api/pokerogue-system-savedata-api";
|
||||||
import type { SystemSaveData } from "#app/system/game-data";
|
import type { SystemSaveData } from "#app/system/game-data";
|
||||||
import { initServerForApiTests } from "#test/testUtils/testFileInitialization";
|
import { initServerForApiTests } from "#test/testUtils/testFileInitialization";
|
||||||
|
Loading…
Reference in New Issue
Block a user