From 14626516ff53d37875abfa4db493cc1d8971e507 Mon Sep 17 00:00:00 2001 From: dahyeon Date: Sun, 12 Apr 2026 10:06:30 -0700 Subject: [PATCH 1/2] feat: riot api --- apps/api/src/app.module.ts | 12 +- .../src/modules/riot/riot-account.service.ts | 80 +++ .../src/modules/riot/riot-match.service.ts | 622 ++++++++++++++++++ .../src/modules/riot/riot.client.service.ts | 118 ++++ apps/api/src/modules/riot/riot.module.ts | 12 + apps/api/src/modules/riot/riot.types.ts | 169 +++++ 6 files changed, 1012 insertions(+), 1 deletion(-) create mode 100644 apps/api/src/modules/riot/riot-account.service.ts create mode 100644 apps/api/src/modules/riot/riot-match.service.ts create mode 100644 apps/api/src/modules/riot/riot.client.service.ts create mode 100644 apps/api/src/modules/riot/riot.module.ts create mode 100644 apps/api/src/modules/riot/riot.types.ts diff --git a/apps/api/src/app.module.ts b/apps/api/src/app.module.ts index 86628031..45a79906 100644 --- a/apps/api/src/app.module.ts +++ b/apps/api/src/app.module.ts @@ -1,9 +1,19 @@ import { Module } from '@nestjs/common'; +import { ConfigModule } from '@nestjs/config'; import { AppController } from './app.controller'; import { AppService } from './app.service'; +import { GlobalModule } from './modules/global/global.module'; +import { RiotModule } from './modules/riot/riot.module'; @Module({ - imports: [], + imports: [ + ConfigModule.forRoot({ + isGlobal: true, + envFilePath: ['../project.env', 'project.env'], + }), + GlobalModule, + RiotModule, + ], controllers: [AppController], providers: [AppService], }) diff --git a/apps/api/src/modules/riot/riot-account.service.ts b/apps/api/src/modules/riot/riot-account.service.ts new file mode 100644 index 00000000..cd85bcd7 --- /dev/null +++ b/apps/api/src/modules/riot/riot-account.service.ts @@ -0,0 +1,80 @@ +import { Injectable } from '@nestjs/common'; +import { RiotClientService } from './riot.client.service'; +import { + RiotAccountDto, + RiotAccountLookupOptions, +} from './riot.types'; + +@Injectable() +export class RiotAccountService { + constructor(private readonly riotClientService: RiotClientService) {} + + public async getByRiotId( + gameName: string, + tagLine: string, + options: RiotAccountLookupOptions = {}, + ): Promise { + return this.riotClientService.get( + `/riot/account/v1/accounts/by-riot-id/${encodeURIComponent(gameName)}/${encodeURIComponent(tagLine)}`, + { + region: options.region, + signal: options.signal, + }, + parseRiotAccountDto, + ); + } + + public async getByPuuid( + puuid: string, + options: RiotAccountLookupOptions = {}, + ): Promise { + return this.riotClientService.get( + `/riot/account/v1/accounts/by-puuid/${encodeURIComponent(puuid)}`, + { + region: options.region, + signal: options.signal, + }, + parseRiotAccountDto, + ); + } +} + +function parseRiotAccountDto(value: unknown): RiotAccountDto { + if (!isRecord(value)) { + throw new TypeError('Riot account response must be an object.'); + } + + const puuid = value.puuid; + const gameName = value.gameName; + const tagLine = value.tagLine; + + if (!isNonEmptyString(puuid)) { + throw new TypeError('Riot account response is missing a valid puuid.'); + } + + if (!isOptionalString(gameName)) { + throw new TypeError('Riot account response has an invalid gameName.'); + } + + if (!isOptionalString(tagLine)) { + throw new TypeError('Riot account response has an invalid tagLine.'); + } + + return { + puuid, + gameName: gameName ?? null, + tagLine: tagLine ?? null, + }; +} + +function isRecord(value: unknown): value is Record { + return typeof value === 'object' && value !== null; +} + +function isNonEmptyString(value: unknown): value is string { + return typeof value === 'string' && value.length > 0; +} + +function isOptionalString(value: unknown): value is string | undefined { + return value === undefined || typeof value === 'string'; +} diff --git a/apps/api/src/modules/riot/riot-match.service.ts b/apps/api/src/modules/riot/riot-match.service.ts new file mode 100644 index 00000000..c4ba1cca --- /dev/null +++ b/apps/api/src/modules/riot/riot-match.service.ts @@ -0,0 +1,622 @@ +import { Injectable } from '@nestjs/common'; +import { RiotClientService } from './riot.client.service'; +import { + RiotMatchBanDto, + RiotMatchDto, + RiotMatchIdsLookupOptions, + RiotMatchInfoDto, + RiotMatchLookupOptions, + RiotMatchMetadataDto, + RiotMatchObjectiveDto, + RiotMatchObjectivesDto, + RiotMatchParticipantDto, + RiotMatchPerksDto, + RiotMatchPerkStyleDto, + RiotMatchPerkStyleSelectionDto, + RiotMatchStatPerksDto, + RiotMatchTeamDto, + RiotMatchType, +} from './riot.types'; + +const RIOT_MATCH_TYPES: RiotMatchType[] = [ + 'ranked', + 'normal', + 'tourney', + 'tutorial', +]; + +@Injectable() +export class RiotMatchService { + constructor(private readonly riotClientService: RiotClientService) {} + + public async getMatchIdsByPuuid( + puuid: string, + options: RiotMatchIdsLookupOptions = {}, + ): Promise { + validateMatchIdsLookupOptions(options); + + return this.riotClientService.get( + `/lol/match/v5/matches/by-puuid/${encodeURIComponent(puuid)}/ids`, + { + region: options.region, + signal: options.signal, + query: { + start: options.start, + count: options.count, + queue: options.queue, + type: options.type, + startTime: options.startTime, + endTime: options.endTime, + }, + }, + parseMatchIdsResponse, + ); + } + + public async getMatch( + matchId: string, + options: RiotMatchLookupOptions = {}, + ): Promise { + return this.riotClientService.get( + `/lol/match/v5/matches/${encodeURIComponent(matchId)}`, + { + region: options.region, + signal: options.signal, + }, + parseMatchResponse, + ); + } +} + +function validateMatchIdsLookupOptions( + options: RiotMatchIdsLookupOptions, +): void { + assertOptionalNonNegativeInteger(options.start, 'start'); + assertOptionalRange(options.count, 'count', 0, 100); + assertOptionalNonNegativeInteger(options.queue, 'queue'); + assertOptionalNonNegativeInteger(options.startTime, 'startTime'); + assertOptionalNonNegativeInteger(options.endTime, 'endTime'); + + if (options.type !== undefined && !RIOT_MATCH_TYPES.includes(options.type)) { + throw new RangeError( + `type must be one of: ${RIOT_MATCH_TYPES.join(', ')}`, + ); + } + + if ( + options.startTime !== undefined && + options.endTime !== undefined && + options.startTime > options.endTime + ) { + throw new RangeError('startTime must be less than or equal to endTime.'); + } +} + +function parseMatchIdsResponse(value: unknown): string[] { + if (!Array.isArray(value)) { + throw new TypeError('Riot match ids response must be an array.'); + } + + if (!value.every(isNonEmptyString)) { + throw new TypeError('Riot match ids response must contain only strings.'); + } + + return value; +} + +function parseMatchResponse(value: unknown): RiotMatchDto { + if (!isRecord(value)) { + throw new TypeError('Riot match response must be an object.'); + } + + return { + metadata: parseMatchMetadata(value.metadata), + info: parseMatchInfo(value.info), + }; +} + +function parseMatchMetadata(value: unknown): RiotMatchMetadataDto { + if (!isRecord(value)) { + throw new TypeError('Riot match metadata must be an object.'); + } + + const dataVersion = value.dataVersion; + const matchId = value.matchId; + const participants = value.participants; + + if (!isNonEmptyString(dataVersion)) { + throw new TypeError('Riot match metadata.dataVersion must be a string.'); + } + + if (!isNonEmptyString(matchId)) { + throw new TypeError('Riot match metadata.matchId must be a string.'); + } + + if (!Array.isArray(participants) || !participants.every(isNonEmptyString)) { + throw new TypeError( + 'Riot match metadata.participants must be an array of strings.', + ); + } + + return { + dataVersion, + matchId, + participants, + }; +} + +function parseMatchInfo(value: unknown): RiotMatchInfoDto { + if (!isRecord(value)) { + throw new TypeError('Riot match info must be an object.'); + } + + const participants = value.participants; + const teams = value.teams; + + if (!Array.isArray(participants)) { + throw new TypeError('Riot match info.participants must be an array.'); + } + + if (!Array.isArray(teams)) { + throw new TypeError('Riot match info.teams must be an array.'); + } + + const gameCreation = requireNumber(value.gameCreation, 'info.gameCreation'); + const gameDuration = requireNumber(value.gameDuration, 'info.gameDuration'); + const gameId = requireNumber(value.gameId, 'info.gameId'); + const gameMode = requireString(value.gameMode, 'info.gameMode'); + const gameName = requireString(value.gameName, 'info.gameName'); + const gameStartTimestamp = requireNumber( + value.gameStartTimestamp, + 'info.gameStartTimestamp', + ); + const gameType = requireString(value.gameType, 'info.gameType'); + const gameVersion = requireString(value.gameVersion, 'info.gameVersion'); + const mapId = requireNumber(value.mapId, 'info.mapId'); + const platformId = requireString(value.platformId, 'info.platformId'); + const queueId = requireNumber(value.queueId, 'info.queueId'); + const gameEndTimestamp = optionalNumber( + value.gameEndTimestamp, + 'info.gameEndTimestamp', + ); + const tournamentCode = optionalString( + value.tournamentCode, + 'info.tournamentCode', + ); + const endOfGameResult = optionalString( + value.endOfGameResult, + 'info.endOfGameResult', + ); + + return { + ...value, + endOfGameResult, + gameCreation, + gameDuration, + gameEndTimestamp, + gameId, + gameMode, + gameName, + gameStartTimestamp, + gameType, + gameVersion, + mapId, + participants: participants.map((participant, index) => + parseParticipant(participant, index), + ), + platformId, + queueId, + teams: teams.map((team, index) => parseTeam(team, index)), + tournamentCode, + }; +} + +function parseParticipant( + value: unknown, + index: number, +): RiotMatchParticipantDto { + if (!isRecord(value)) { + throw new TypeError(`participants[${index}] must be an object.`); + } + + return { + ...value, + assists: requireNumber(value.assists, `participants[${index}].assists`), + champExperience: requireNumber( + value.champExperience, + `participants[${index}].champExperience`, + ), + champLevel: requireNumber( + value.champLevel, + `participants[${index}].champLevel`, + ), + championId: requireNumber( + value.championId, + `participants[${index}].championId`, + ), + championName: requireString( + value.championName, + `participants[${index}].championName`, + ), + deaths: requireNumber(value.deaths, `participants[${index}].deaths`), + goldEarned: requireNumber( + value.goldEarned, + `participants[${index}].goldEarned`, + ), + goldSpent: requireNumber( + value.goldSpent, + `participants[${index}].goldSpent`, + ), + individualPosition: requireString( + value.individualPosition, + `participants[${index}].individualPosition`, + ), + item0: requireNumber(value.item0, `participants[${index}].item0`), + item1: requireNumber(value.item1, `participants[${index}].item1`), + item2: requireNumber(value.item2, `participants[${index}].item2`), + item3: requireNumber(value.item3, `participants[${index}].item3`), + item4: requireNumber(value.item4, `participants[${index}].item4`), + item5: requireNumber(value.item5, `participants[${index}].item5`), + item6: requireNumber(value.item6, `participants[${index}].item6`), + kills: requireNumber(value.kills, `participants[${index}].kills`), + neutralMinionsKilled: requireNumber( + value.neutralMinionsKilled, + `participants[${index}].neutralMinionsKilled`, + ), + participantId: requireNumber( + value.participantId, + `participants[${index}].participantId`, + ), + perks: parsePerks(value.perks, index), + puuid: requireString(value.puuid, `participants[${index}].puuid`), + riotIdGameName: optionalString( + value.riotIdGameName, + `participants[${index}].riotIdGameName`, + ), + riotIdTagLine: optionalString( + value.riotIdTagLine, + `participants[${index}].riotIdTagLine`, + ), + summoner1Id: requireNumber( + value.summoner1Id, + `participants[${index}].summoner1Id`, + ), + summoner2Id: requireNumber( + value.summoner2Id, + `participants[${index}].summoner2Id`, + ), + summonerId: requireString( + value.summonerId, + `participants[${index}].summonerId`, + ), + summonerLevel: requireNumber( + value.summonerLevel, + `participants[${index}].summonerLevel`, + ), + summonerName: requireString( + value.summonerName, + `participants[${index}].summonerName`, + ), + teamId: requireNumber(value.teamId, `participants[${index}].teamId`), + teamPosition: requireString( + value.teamPosition, + `participants[${index}].teamPosition`, + ), + timePlayed: requireNumber( + value.timePlayed, + `participants[${index}].timePlayed`, + ), + totalDamageDealtToChampions: requireNumber( + value.totalDamageDealtToChampions, + `participants[${index}].totalDamageDealtToChampions`, + ), + totalDamageTaken: requireNumber( + value.totalDamageTaken, + `participants[${index}].totalDamageTaken`, + ), + totalMinionsKilled: requireNumber( + value.totalMinionsKilled, + `participants[${index}].totalMinionsKilled`, + ), + visionScore: requireNumber( + value.visionScore, + `participants[${index}].visionScore`, + ), + wardsKilled: requireNumber( + value.wardsKilled, + `participants[${index}].wardsKilled`, + ), + wardsPlaced: requireNumber( + value.wardsPlaced, + `participants[${index}].wardsPlaced`, + ), + win: requireBoolean(value.win, `participants[${index}].win`), + }; +} + +function parsePerks(value: unknown, participantIndex: number): RiotMatchPerksDto { + if (!isRecord(value)) { + throw new TypeError( + `participants[${participantIndex}].perks must be an object.`, + ); + } + + const styles = value.styles; + if (!Array.isArray(styles)) { + throw new TypeError( + `participants[${participantIndex}].perks.styles must be an array.`, + ); + } + + return { + statPerks: parseStatPerks(value.statPerks, participantIndex), + styles: styles.map((style, styleIndex) => + parsePerkStyle(style, participantIndex, styleIndex), + ), + }; +} + +function parseStatPerks( + value: unknown, + participantIndex: number, +): RiotMatchStatPerksDto { + if (!isRecord(value)) { + throw new TypeError( + `participants[${participantIndex}].perks.statPerks must be an object.`, + ); + } + + return { + defense: requireNumber( + value.defense, + `participants[${participantIndex}].perks.statPerks.defense`, + ), + flex: requireNumber( + value.flex, + `participants[${participantIndex}].perks.statPerks.flex`, + ), + offense: requireNumber( + value.offense, + `participants[${participantIndex}].perks.statPerks.offense`, + ), + }; +} + +function parsePerkStyle( + value: unknown, + participantIndex: number, + styleIndex: number, +): RiotMatchPerkStyleDto { + if (!isRecord(value)) { + throw new TypeError( + `participants[${participantIndex}].perks.styles[${styleIndex}] must be an object.`, + ); + } + + const selections = value.selections; + if (!Array.isArray(selections)) { + throw new TypeError( + `participants[${participantIndex}].perks.styles[${styleIndex}].selections must be an array.`, + ); + } + + return { + description: requireString( + value.description, + `participants[${participantIndex}].perks.styles[${styleIndex}].description`, + ), + selections: selections.map((selection, selectionIndex) => + parsePerkSelection( + selection, + participantIndex, + styleIndex, + selectionIndex, + ), + ), + style: requireNumber( + value.style, + `participants[${participantIndex}].perks.styles[${styleIndex}].style`, + ), + }; +} + +function parsePerkSelection( + value: unknown, + participantIndex: number, + styleIndex: number, + selectionIndex: number, +): RiotMatchPerkStyleSelectionDto { + if (!isRecord(value)) { + throw new TypeError( + `participants[${participantIndex}].perks.styles[${styleIndex}].selections[${selectionIndex}] must be an object.`, + ); + } + + return { + perk: requireNumber( + value.perk, + `participants[${participantIndex}].perks.styles[${styleIndex}].selections[${selectionIndex}].perk`, + ), + var1: requireNumber( + value.var1, + `participants[${participantIndex}].perks.styles[${styleIndex}].selections[${selectionIndex}].var1`, + ), + var2: requireNumber( + value.var2, + `participants[${participantIndex}].perks.styles[${styleIndex}].selections[${selectionIndex}].var2`, + ), + var3: requireNumber( + value.var3, + `participants[${participantIndex}].perks.styles[${styleIndex}].selections[${selectionIndex}].var3`, + ), + }; +} + +function parseTeam(value: unknown, index: number): RiotMatchTeamDto { + if (!isRecord(value)) { + throw new TypeError(`teams[${index}] must be an object.`); + } + + const bans = value.bans; + if (!Array.isArray(bans)) { + throw new TypeError(`teams[${index}].bans must be an array.`); + } + + return { + ...value, + bans: bans.map((ban, banIndex) => parseBan(ban, index, banIndex)), + objectives: parseObjectives(value.objectives, index), + teamId: requireNumber(value.teamId, `teams[${index}].teamId`), + win: requireBoolean(value.win, `teams[${index}].win`), + }; +} + +function parseBan( + value: unknown, + teamIndex: number, + banIndex: number, +): RiotMatchBanDto { + if (!isRecord(value)) { + throw new TypeError(`teams[${teamIndex}].bans[${banIndex}] must be an object.`); + } + + return { + championId: requireNumber( + value.championId, + `teams[${teamIndex}].bans[${banIndex}].championId`, + ), + pickTurn: requireNumber( + value.pickTurn, + `teams[${teamIndex}].bans[${banIndex}].pickTurn`, + ), + }; +} + +function parseObjectives( + value: unknown, + teamIndex: number, +): RiotMatchObjectivesDto { + if (!isRecord(value)) { + throw new TypeError(`teams[${teamIndex}].objectives must be an object.`); + } + + return { + baron: parseObjective(value.baron, teamIndex, 'baron'), + champion: parseObjective(value.champion, teamIndex, 'champion'), + dragon: parseObjective(value.dragon, teamIndex, 'dragon'), + inhibitor: parseObjective(value.inhibitor, teamIndex, 'inhibitor'), + riftHerald: parseObjective(value.riftHerald, teamIndex, 'riftHerald'), + tower: parseObjective(value.tower, teamIndex, 'tower'), + }; +} + +function parseObjective( + value: unknown, + teamIndex: number, + key: keyof RiotMatchObjectivesDto, +): RiotMatchObjectiveDto { + if (!isRecord(value)) { + throw new TypeError(`teams[${teamIndex}].objectives.${key} must be an object.`); + } + + return { + first: requireBoolean( + value.first, + `teams[${teamIndex}].objectives.${key}.first`, + ), + kills: requireNumber( + value.kills, + `teams[${teamIndex}].objectives.${key}.kills`, + ), + }; +} + +function requireString(value: unknown, path: string): string { + if (!isNonEmptyString(value)) { + throw new TypeError(`${path} must be a non-empty string.`); + } + + return value; +} + +function optionalString(value: unknown, path: string): string | undefined { + if (value === undefined || value === null) { + return undefined; + } + + if (typeof value !== 'string') { + throw new TypeError(`${path} must be a string when present.`); + } + + return value; +} + +function requireNumber(value: unknown, path: string): number { + if (!isFiniteNumber(value)) { + throw new TypeError(`${path} must be a finite number.`); + } + + return value; +} + +function optionalNumber(value: unknown, path: string): number | undefined { + if (value === undefined || value === null) { + return undefined; + } + + if (!isFiniteNumber(value)) { + throw new TypeError(`${path} must be a finite number when present.`); + } + + return value; +} + +function requireBoolean(value: unknown, path: string): boolean { + if (typeof value !== 'boolean') { + throw new TypeError(`${path} must be a boolean.`); + } + + return value; +} + +function assertOptionalNonNegativeInteger( + value: number | undefined, + fieldName: string, +): void { + if (value === undefined) { + return; + } + + if (!Number.isInteger(value) || value < 0) { + throw new RangeError(`${fieldName} must be a non-negative integer.`); + } +} + +function assertOptionalRange( + value: number | undefined, + fieldName: string, + min: number, + max: number, +): void { + if (value === undefined) { + return; + } + + if (!Number.isInteger(value) || value < min || value > max) { + throw new RangeError( + `${fieldName} must be an integer between ${min} and ${max}.`, + ); + } +} + +function isRecord(value: unknown): value is Record { + return typeof value === 'object' && value !== null; +} + +function isFiniteNumber(value: unknown): value is number { + return typeof value === 'number' && Number.isFinite(value); +} + +function isNonEmptyString(value: unknown): value is string { + return typeof value === 'string' && value.length > 0; +} diff --git a/apps/api/src/modules/riot/riot.client.service.ts b/apps/api/src/modules/riot/riot.client.service.ts new file mode 100644 index 00000000..b7b08f37 --- /dev/null +++ b/apps/api/src/modules/riot/riot.client.service.ts @@ -0,0 +1,118 @@ +import { Injectable, Logger } from '@nestjs/common'; +import { SecretService } from '../global/secret/secret.service'; +import { + RiotApiErrorBody, + RiotRegionalRoute, + RiotRequestOptions, + RiotResponseParser, +} from './riot.types'; + +const RIOT_BASE_URLS: Record = { + americas: 'https://americas.api.riotgames.com', + asia: 'https://asia.api.riotgames.com', + europe: 'https://europe.api.riotgames.com', + sea: 'https://sea.api.riotgames.com', +}; + +export class RiotApiError extends Error { + constructor( + message: string, + public readonly status: number, + public readonly url: string, + public readonly body?: RiotApiErrorBody, + public readonly retryAfterSeconds?: number, + ) { + super(message); + } +} + +@Injectable() +export class RiotClientService { + private readonly logger = new Logger(RiotClientService.name); + + constructor(private readonly secretService: SecretService) {} + + public async get( + path: string, + options: RiotRequestOptions = {}, + parser?: RiotResponseParser, + ): Promise { + const apiKey = await this.secretService.get('RIOT_API_KEY'); + const url = this.buildUrl(path, options); + + const response = await fetch(url, { + method: 'GET', + headers: { + Accept: 'application/json', + 'X-Riot-Token': apiKey, + }, + signal: options.signal, + }); + + if (!response.ok) { + throw await this.createApiError(response, url); + } + + if (response.status === 204) { + return undefined as T; + } + + const payload = (await response.json()) as unknown; + + if (parser) { + return parser(payload); + } + + return payload as T; + } + + private buildUrl(path: string, options: RiotRequestOptions): string { + const region = options.region ?? 'asia'; + const baseUrl = RIOT_BASE_URLS[region]; + const normalizedPath = path.startsWith('/') ? path : `/${path}`; + const url = new URL(`${baseUrl}${normalizedPath}`); + + if (options.query) { + for (const [key, value] of Object.entries(options.query)) { + if (value === undefined) { + continue; + } + + url.searchParams.set(key, String(value)); + } + } + + return url.toString(); + } + + private async createApiError( + response: Response, + url: string, + ): Promise { + let body: RiotApiErrorBody | undefined; + + try { + body = (await response.json()) as RiotApiErrorBody; + } catch { + body = undefined; + } + + const message = + body?.status?.message ?? + `Riot API request failed with status ${response.status}`; + const retryAfterHeader = response.headers.get('Retry-After'); + const retryAfterSeconds = retryAfterHeader + ? Number(retryAfterHeader) + : undefined; + + this.logger.warn(`${message} (${response.status}) ${url}`); + + return new RiotApiError( + message, + response.status, + url, + body, + Number.isFinite(retryAfterSeconds) ? retryAfterSeconds : undefined, + ); + } +} diff --git a/apps/api/src/modules/riot/riot.module.ts b/apps/api/src/modules/riot/riot.module.ts new file mode 100644 index 00000000..ed53fef2 --- /dev/null +++ b/apps/api/src/modules/riot/riot.module.ts @@ -0,0 +1,12 @@ +import { Module } from '@nestjs/common'; +import { SecretModule } from '../global/secret/secret.module'; +import { RiotAccountService } from './riot-account.service'; +import { RiotClientService } from './riot.client.service'; +import { RiotMatchService } from './riot-match.service'; + +@Module({ + imports: [SecretModule], + providers: [RiotClientService, RiotAccountService, RiotMatchService], + exports: [RiotClientService, RiotAccountService, RiotMatchService], +}) +export class RiotModule {} diff --git a/apps/api/src/modules/riot/riot.types.ts b/apps/api/src/modules/riot/riot.types.ts new file mode 100644 index 00000000..55c9eafb --- /dev/null +++ b/apps/api/src/modules/riot/riot.types.ts @@ -0,0 +1,169 @@ +export type RiotRegionalRoute = 'americas' | 'asia' | 'europe' | 'sea'; +export type RiotMatchType = 'ranked' | 'normal' | 'tourney' | 'tutorial'; + +export interface RiotAccountApiResponse { + puuid: string; + gameName?: string; + tagLine?: string; +} + +export interface RiotAccountDto { + puuid: string; + gameName: string | null; + tagLine: string | null; +} + +export interface RiotRequestOptions { + region?: RiotRegionalRoute; + query?: Record; + signal?: AbortSignal; +} + +export type RiotResponseParser = (value: unknown) => T; + +export interface RiotApiErrorBody { + status?: { + message?: string; + status_code?: number; + }; +} + +export interface RiotAccountLookupOptions { + region?: RiotRegionalRoute; + signal?: AbortSignal; +} + +export interface RiotMatchLookupOptions { + region?: RiotRegionalRoute; + signal?: AbortSignal; +} + +export interface RiotMatchIdsLookupOptions extends RiotMatchLookupOptions { + start?: number; + count?: number; + queue?: number; + type?: RiotMatchType; + startTime?: number; + endTime?: number; +} + +export interface RiotMatchDto { + metadata: RiotMatchMetadataDto; + info: RiotMatchInfoDto; +} + +export interface RiotMatchMetadataDto { + dataVersion: string; + matchId: string; + participants: string[]; +} + +export interface RiotMatchInfoDto extends Record { + endOfGameResult?: string; + gameCreation: number; + gameDuration: number; + gameEndTimestamp?: number; + gameId: number; + gameMode: string; + gameName: string; + gameStartTimestamp: number; + gameType: string; + gameVersion: string; + mapId: number; + participants: RiotMatchParticipantDto[]; + platformId: string; + queueId: number; + teams: RiotMatchTeamDto[]; + tournamentCode?: string; +} + +export interface RiotMatchParticipantDto extends Record { + assists: number; + champExperience: number; + champLevel: number; + championId: number; + championName: string; + deaths: number; + goldEarned: number; + goldSpent: number; + individualPosition: string; + item0: number; + item1: number; + item2: number; + item3: number; + item4: number; + item5: number; + item6: number; + kills: number; + neutralMinionsKilled: number; + participantId: number; + perks: RiotMatchPerksDto; + puuid: string; + riotIdGameName?: string; + riotIdTagLine?: string; + summoner1Id: number; + summoner2Id: number; + summonerId: string; + summonerLevel: number; + summonerName: string; + teamId: number; + teamPosition: string; + timePlayed: number; + totalDamageDealtToChampions: number; + totalDamageTaken: number; + totalMinionsKilled: number; + visionScore: number; + wardsKilled: number; + wardsPlaced: number; + win: boolean; +} + +export interface RiotMatchPerksDto { + statPerks: RiotMatchStatPerksDto; + styles: RiotMatchPerkStyleDto[]; +} + +export interface RiotMatchStatPerksDto { + defense: number; + flex: number; + offense: number; +} + +export interface RiotMatchPerkStyleDto { + description: string; + selections: RiotMatchPerkStyleSelectionDto[]; + style: number; +} + +export interface RiotMatchPerkStyleSelectionDto { + perk: number; + var1: number; + var2: number; + var3: number; +} + +export interface RiotMatchTeamDto extends Record { + bans: RiotMatchBanDto[]; + objectives: RiotMatchObjectivesDto; + teamId: number; + win: boolean; +} + +export interface RiotMatchBanDto { + championId: number; + pickTurn: number; +} + +export interface RiotMatchObjectivesDto { + baron: RiotMatchObjectiveDto; + champion: RiotMatchObjectiveDto; + dragon: RiotMatchObjectiveDto; + inhibitor: RiotMatchObjectiveDto; + riftHerald: RiotMatchObjectiveDto; + tower: RiotMatchObjectiveDto; +} + +export interface RiotMatchObjectiveDto { + first: boolean; + kills: number; +} From ee399da924041008df3c39784da3af0da24076b8 Mon Sep 17 00:00:00 2001 From: dahyeon Date: Tue, 14 Apr 2026 09:20:06 -0700 Subject: [PATCH 2/2] feat: home, match, auction page --- apps/web/index.html | 2 +- apps/web/package.json | 6 +- apps/web/src/App.css | 185 +----- apps/web/src/App.tsx | 141 +--- apps/web/src/assets/position/Bottom_icon.png | Bin 0 -> 665 bytes apps/web/src/assets/position/Jungle_icon.png | Bin 0 -> 2322 bytes apps/web/src/assets/position/Middle_icon.png | Bin 0 -> 574 bytes .../src/assets/position/Specialist_icon.png | Bin 0 -> 713 bytes apps/web/src/assets/position/Support_icon.png | Bin 0 -> 1335 bytes apps/web/src/assets/position/Top_icon.png | Bin 0 -> 582 bytes apps/web/src/auction-mock.ts | 427 ++++++++++++ apps/web/src/auction-types.ts | 69 ++ apps/web/src/index.css | 133 +--- apps/web/src/mock.ts | 404 ++++++++++++ apps/web/src/pages/AuctionPage.tsx | 605 ++++++++++++++++++ apps/web/src/pages/HomePage.tsx | 162 +++++ apps/web/src/pages/MatchDetailPage.tsx | 473 ++++++++++++++ apps/web/vite.config.ts | 9 +- pnpm-lock.yaml | 349 ++++++++-- 19 files changed, 2499 insertions(+), 466 deletions(-) create mode 100644 apps/web/src/assets/position/Bottom_icon.png create mode 100644 apps/web/src/assets/position/Jungle_icon.png create mode 100644 apps/web/src/assets/position/Middle_icon.png create mode 100644 apps/web/src/assets/position/Specialist_icon.png create mode 100644 apps/web/src/assets/position/Support_icon.png create mode 100644 apps/web/src/assets/position/Top_icon.png create mode 100644 apps/web/src/auction-mock.ts create mode 100644 apps/web/src/auction-types.ts create mode 100644 apps/web/src/mock.ts create mode 100644 apps/web/src/pages/AuctionPage.tsx create mode 100644 apps/web/src/pages/HomePage.tsx create mode 100644 apps/web/src/pages/MatchDetailPage.tsx diff --git a/apps/web/index.html b/apps/web/index.html index 5e3836a6..ae9502bc 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -4,7 +4,7 @@ - web + 롤림푸스 - 내전 관리
diff --git a/apps/web/package.json b/apps/web/package.json index 33f06790..33113e09 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -11,18 +11,22 @@ }, "dependencies": { "react": "^19.2.4", - "react-dom": "^19.2.4" + "react-dom": "^19.2.4", + "react-router": "^7.14.0" }, "devDependencies": { "@eslint/js": "^9.39.4", + "@tailwindcss/vite": "^4.2.2", "@types/node": "^24.12.2", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.1", + "daisyui": "^5.5.19", "eslint": "^9.39.4", "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.5.2", "globals": "^17.4.0", + "tailwindcss": "^4.2.2", "typescript": "~6.0.2", "typescript-eslint": "^8.58.0", "vite": "^8.0.4" diff --git a/apps/web/src/App.css b/apps/web/src/App.css index f90339d8..e00a71c3 100644 --- a/apps/web/src/App.css +++ b/apps/web/src/App.css @@ -1,184 +1 @@ -.counter { - font-size: 16px; - padding: 5px 10px; - border-radius: 5px; - color: var(--accent); - background: var(--accent-bg); - border: 2px solid transparent; - transition: border-color 0.3s; - margin-bottom: 24px; - - &:hover { - border-color: var(--accent-border); - } - &:focus-visible { - outline: 2px solid var(--accent); - outline-offset: 2px; - } -} - -.hero { - position: relative; - - .base, - .framework, - .vite { - inset-inline: 0; - margin: 0 auto; - } - - .base { - width: 170px; - position: relative; - z-index: 0; - } - - .framework, - .vite { - position: absolute; - } - - .framework { - z-index: 1; - top: 34px; - height: 28px; - transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg) - scale(1.4); - } - - .vite { - z-index: 0; - top: 107px; - height: 26px; - width: auto; - transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg) - scale(0.8); - } -} - -#center { - display: flex; - flex-direction: column; - gap: 25px; - place-content: center; - place-items: center; - flex-grow: 1; - - @media (max-width: 1024px) { - padding: 32px 20px 24px; - gap: 18px; - } -} - -#next-steps { - display: flex; - border-top: 1px solid var(--border); - text-align: left; - - & > div { - flex: 1 1 0; - padding: 32px; - @media (max-width: 1024px) { - padding: 24px 20px; - } - } - - .icon { - margin-bottom: 16px; - width: 22px; - height: 22px; - } - - @media (max-width: 1024px) { - flex-direction: column; - text-align: center; - } -} - -#docs { - border-right: 1px solid var(--border); - - @media (max-width: 1024px) { - border-right: none; - border-bottom: 1px solid var(--border); - } -} - -#next-steps ul { - list-style: none; - padding: 0; - display: flex; - gap: 8px; - margin: 32px 0 0; - - .logo { - height: 18px; - } - - a { - color: var(--text-h); - font-size: 16px; - border-radius: 6px; - background: var(--social-bg); - display: flex; - padding: 6px 12px; - align-items: center; - gap: 8px; - text-decoration: none; - transition: box-shadow 0.3s; - - &:hover { - box-shadow: var(--shadow); - } - .button-icon { - height: 18px; - width: 18px; - } - } - - @media (max-width: 1024px) { - margin-top: 20px; - flex-wrap: wrap; - justify-content: center; - - li { - flex: 1 1 calc(50% - 8px); - } - - a { - width: 100%; - justify-content: center; - box-sizing: border-box; - } - } -} - -#spacer { - height: 88px; - border-top: 1px solid var(--border); - @media (max-width: 1024px) { - height: 48px; - } -} - -.ticks { - position: relative; - width: 100%; - - &::before, - &::after { - content: ''; - position: absolute; - top: -4.5px; - border: 5px solid transparent; - } - - &::before { - left: 0; - border-left-color: var(--border); - } - &::after { - right: 0; - border-right-color: var(--border); - } -} +/* App-specific styles — currently using Tailwind + daisyUI */ diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 46a59920..2fd91571 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -1,121 +1,32 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from './assets/vite.svg' -import heroImg from './assets/hero.png' -import './App.css' +import { BrowserRouter, Routes, Route } from "react-router"; +import HomePage from "./pages/HomePage"; +import MatchDetailPage from "./pages/MatchDetailPage"; +import AuctionPage from "./pages/AuctionPage"; function App() { - const [count, setCount] = useState(0) - return ( - <> -
-
- - React logo - Vite logo -
-
-

Get started

-

- Edit src/App.tsx and save to test HMR -

-
- -
+ +
+ {/* Navbar */} + -
- -
-
- -

Documentation

-

Your questions, answered

- -
-
- -

Connect with us

-

Join the Vite community

- -
-
- -
-
- - ) + + } /> + } /> + } /> + +
+
+ ); } -export default App +export default App; diff --git a/apps/web/src/assets/position/Bottom_icon.png b/apps/web/src/assets/position/Bottom_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c49002d3e6d7cb5c6dd6a69e64705502d7ca7216 GIT binary patch literal 665 zcmeAS@N?(olHy`uVBq!ia0vp^9U#oX1|)5EEd~lOC3w0xhEy=Vz2!Ph#6YC&VoB-s zxEoCG-syEGoZ%@iFQ2X`yd?3|x-ORKHe2?*D?hitagVjnFEh_cDsYr}e4A$eZnN7Q z9wxU97-Se4nFTEVDLXu1VBrH1edYe!%o#h`j=S6ocF1Z@wt4Rv$35ZJgNl#>h9GH~ z@7z2<(Z_j?j2^iKcm4>nE2I{fe9F60z`%4o;@(%L#EeFjzx;ix1$i7E>=0Q9G>==5 z!{LF2bRv)$EXd-(U@55xWIh&T0E!C9$_rTVxwf;j^!X4y zwDjm#1?gKokG}}Wa!fFL zZ1H+UgNwyEYYhd#zV1FwkCw-)oSA|SUp%q?V zsPO(phRy<;A_Ipk3$;)4EW{K{WzOzd&d1t;NEn`zel7lPa$9Zb*}tySfk}?R)78&q Iol`;+06Q<~HUIzs literal 0 HcmV?d00001 diff --git a/apps/web/src/assets/position/Jungle_icon.png b/apps/web/src/assets/position/Jungle_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..88daaf694d6f7580060ad073166d0f66f20b107f GIT binary patch literal 2322 zcmV+t3GMcYP)YE^6|1R-H&!=Gkj~ehm6bc*yk`6qXn`a4b0%UN6@CG zVzfYd(nT2@_np+!h@wSu5v`S>@$NyF8gaBh=BA&hcLv5fo?2;MV-+ou7wD3dkFkbc zp%;yHv_Lka0xg^3F&;voEsS-vKqG)|(kSCAS|s-q=q;*A!FU#KvM-^;XH=iyg}7%34u_l2q6N~I+6g6&OlV*CCOCA^U=wPzNNyyQXs6K$ z>*MUyMsT>tgdQ!Br3nrXB~Y_&;m&*l8xv&T0Mqi_ou%IE^Z9rm_w+QP{ArOoR0_KQ}AUR4UTLG*?8&J&sVuqX9pz zp@UGt6A_;Gb?FzHN-HJ(Kgnv8BT$|$qJAMCb8$i$MOr$@{U`!QMR2bB&}{_D(Q4K5 z$8{4bI4(K24f$s1WvjH{_3fa82e5Lnr=-J=K=77n;L-Xl1ipQh>fKJ+`Gj5ld` z5dV1up0jAPmVO}!6{snw^X5_n5`>l%wz(m}!VdwiRKHB< z#+GSa*n3?#MZJdK<#&OH?Ju82o(||--R{!<>uFy3U4ztRHwMcf6p@eFz~>#5GnpFP~&-7uqfa3oW#;uGQxWZ7yi{8iK%_9+wG<1Q)H;D{FgM zuO(P|mFgCnf(I9fr}gE!Xsn>mUkKXj?_(Jv zTbH(iDeOrEOGR2syxUyvWI>+~6|~dK^11Dugfb?TF6ZmdjLZb;FPdbM`-N%*55&zA z+*pqP4f(`dHVb53f=AbgS6=1T@cAeBO^dN_MG#mw%LURzIf4fTTC$rq_a}ICm!Qv^ z5?pK~9Cri#Ae_i+GFi^_8?NBd`&1KPfwWUkK~Xom{Or})Kkrq((K@RIaty(TtwnoN zWuZZv{h3glLs z-qx)IpKi0ge|rlx zd@9gL`hXCCg@wE0el$!7TNmdun!l~fOeOeqq~H=#>Tuz^_s7o!m@)5mYs0LC>J6$utjG8)0^ zX8cYFU|gsATt3j0JTV6e^GKjCKayL>Xu93@UmzsNzUhd50jUdqCvx=TDBKJdS0M{3lcQpxQr(E;+6b_9C^Fag7$p5`=`A;BhPy2p%kMT%!dtkdQE)RA)Jkxd|Q(G-abjayWGn5@fXH z81^7|aGDWE|BG}G5@Kn~{@=*IgkpnIImeb-$Mv-hxxdi?P`9q5%SuZR4Cn02e*gwcuiz6vTG8g?w2+^kY zyW+Gsl2jza=zT&+Rz79j-lS@fe>izB&3(x1K{1gxh;AKJAzl3gTY zXhK}KK4@`N&mY&Iu5R8osf}I&=LkOCU^J|^i(cdBn!Gs$xqOq7mZ^|zWmjTM)$Yo3DimBj7H-!C4axsXv(~EcR3S5G#ZUY sqtR$I8jVJy(P%UpjYgx%HZt#}e4c)$Pf0pWo^X7K8d;BJ;c*2p@of-Qo=e_0K|KeNL z|3`)2>vzg1Y!hx!7U{@kf54zp63uAAz2T^n#T`Y3&;l9L_uN3i zD+d`*upcapxhpPU;dkphE6^l6j=szCcYu5b%_g7$=T=oSF&+QO{|=;Fn;@A-QU2Hr0#0$P8*;^4#goCPM#Pd1z1d%%z)#^K>ZGRX5l&I+;DOKt(ttK%oRPj)eyiCWj$`<9Up+11Sn8 bePIawpI6JOmHr2qE*Lyr{an^LB{Ts5p()At literal 0 HcmV?d00001 diff --git a/apps/web/src/assets/position/Specialist_icon.png b/apps/web/src/assets/position/Specialist_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0ed35aee857e7d3d1075a8d985c6b6661941ed63 GIT binary patch literal 713 zcmeAS@N?(olHy`uVBq!ia0vp^9U#oX3?#Wzf)jw0Q-Dv1E08|1DvuJxw!9Z)jc7@b zUob;`!*`B*idVh0wruvfqOEkdag%S|gm=$@b~7n@x;TbZ#J#$&qG{Zy^(#Bbi0tx~_tP!o0)(?q)ns+_|-5$41sL7njX<&Ix`j z=U)F~ZFH7$S~2(f8NFXlpLvvUBk}8#Y4tO2=4D^_R%^QCd3@S2rv1rxPwYRFvw8dM zx8@tq>8_Ux*Dc$8e#a{H__Vu?OAh4*=^O9ebYwy3+IPV z+#a!8D>rYkVcN6kN(cYx?A_cSxPsJQukmAy3(Tsy>GOE%Qm(z5Lgt1~)B18Ms5CBe z)j4f%(W=yyR_k>_Urb&4Y7bm;YMke)E83n@t5{b?tyc(rCA!3GZ&S$H@CmCvLv$Vk z>U^rSQdcfU_}zn91?<;btaqs0IcWNjZ{0_}MBZ|n<3jwIdFMAC;VpW~cc#_aLj2u> znElPuUzER?zT*Y6_vZAUD|VRsdKYY*vBde#+Z6qutldkC)=fDTR~oc)afnv+RqwlR z53CM)^-|@_sr`TSv(|gx` zWvExGi_=P*FwLoZwU%xQUl{Uj)s$0HRDzbqS$pn%zco6HkL6&t-6Y4L_tkqNqUJ6& zT9H@zbMv2#Wg9}iRc$GOf9iNVv=&t;ucLK6Vk7-dQT literal 0 HcmV?d00001 diff --git a/apps/web/src/assets/position/Support_icon.png b/apps/web/src/assets/position/Support_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..724f6c8c3d3443b6dc25cb342b5037275d2bcbd4 GIT binary patch literal 1335 zcmeAS@N?(olHy`uVBq!ia0vp^9U#oX1|)5EEd~m({PT2i45?szbFdL8#?Y|f?@IBN zOduvh!%fTV7b}_!xE>e2-Jqr?d+%83@8-)7HoV+8ovXZj#bmDUT;4 zPq~UTM~iu$mRrqLo<5j-u%L!Xbdzvdd&;td4QD3F3Tzfk?rd)O^7TZ{k%%Km*k&Js zSAmeaqaPuB_0!qM5(d(`$C?c1NJKsNU$F9b+w}(ZeVm;6W}9oo`j#(vcAZnC;kF(3 z$+T+`H3EIN7d*%p_GGJmWUJD0QzQAKuf?~96!XcmnBsn`sGQ2FNbX!*u!k-9#>uHo z(srDkM$-2p9x2F}J7)T;&t#Z(yyK~b)fu0@x3{oxMw zV=wCVs5tum%iYsU`&zj`Pg&Z)X3z#ymsi_!X)2cJk9BxhZQrwwycqgSqkZd?u?4M=jcwcg&q!warSX?-9p*1D;(!?4@?+ zK9?^ODlqgjIHZ2cE9Lmf-738O8=p+C-h0>x6fNB)vHG<0-MKoP7w%hE>&;@LwIgdz-IEhX!~uwavSGS9`Cs{MTRHTCpLo7a6QSdCB_AYu)&OpNmetUiZ&V z38Zr00wdR{*JJ-etk7Fw!yI{cs@);>6qXx&aanPDY<4a9#IomF>{0KnY07`DIA1zo zQsBD&o)GKQOUxu+)b9{GX$_+(SVo=Q^W>Sv`RYVl)P!t z=ZUhxwXS)Sj#?Bgd3sB3{^osp&mW%UH9uZcvu@H!Lrt~gOJ>MS7CP}{hREd2W}1yY weV&$SMLwrwXU^&Mw44r9F-gS}g0eFCYcAb)Y@g0104nf2UHx3vIVCg!05NxB4FCWD literal 0 HcmV?d00001 diff --git a/apps/web/src/assets/position/Top_icon.png b/apps/web/src/assets/position/Top_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..fa923fcedec2a86c90e6611f849a55ae0779c798 GIT binary patch literal 582 zcmeAS@N?(olHy`uVBq!ia0vp^9U#oX1|)5EEd~lO@p`&AhEy=Vy>xVHn4^U2#jMk< zH3htlhR%2H-d+0tolHgWrl$P1z1?DAZ#G|>JN?Zv{>dtylVIr5?B3@5|2J|rZ(}=g zCui}tTWL&3u4QZIsyVz#J;c~y>uZ&xmLh_rKbQ$X`VIac?$jAmU zLegb+gGGM4Kfrim|4!w(g>U>U+E^}qv9a*ZMi;Lu%PFhla+)Mkzr{>F3fa!z5)78&qol`;+ E02gV)g#Z8m literal 0 HcmV?d00001 diff --git a/apps/web/src/auction-mock.ts b/apps/web/src/auction-mock.ts new file mode 100644 index 00000000..6c7f3b1d --- /dev/null +++ b/apps/web/src/auction-mock.ts @@ -0,0 +1,427 @@ +import type { AuctionPlayer, AuctionState, AuctionTeam } from "./auction-types"; + +const auctionPlayers: AuctionPlayer[] = [ + { + id: 3, + summonerName: "프리리", + tag: "0000", + tier: { + previousSeason: "플래티넘 I", + current: "에메랄드 I", + peak: "에메랄드 I", + }, + mainPosition: "TOP", + subPosition: "MID", + profileIconId: 588, + masteries: [ + { + championName: "신드라", + championId: "Syndra", + level: 7, + points: 124300, + }, + { + championName: "아리", + championId: "Ahri", + level: 7, + points: 98200, + }, + { + championName: "르블랑", + championId: "Leblanc", + level: 6, + points: 45100, + }, + ], + recentStats: { + games: 20, + wins: 13, + losses: 7, + kda: { kills: 8.2, deaths: 7.0, assists: 7.8 }, + avgCs: 178, + }, + }, + { + id: 6, + summonerName: "면정학", + tag: "1234", + tier: { + previousSeason: "플래티넘 III", + current: "에메랄드 III", + peak: "에메랄드 III", + }, + mainPosition: "MID", + subPosition: "ADC", + profileIconId: 6207, + masteries: [ + { + championName: "오리아나", + championId: "Orianna", + level: 7, + points: 312500, + }, + { + championName: "신드라", + championId: "Syndra", + level: 7, + points: 156800, + }, + { championName: "빅토르", championId: "Viktor", level: 6, points: 67200 }, + ], + recentStats: { + games: 20, + wins: 9, + losses: 11, + kda: { kills: 5.4, deaths: 7.3, assists: 7.9 }, + avgCs: 195, + }, + }, + { + id: 5, + summonerName: "던던", + tag: "KR1", + tier: { + previousSeason: "마스터 47LP", + current: "다이아몬드 II", + peak: "마스터 6LP", + }, + mainPosition: "MID", + subPosition: "SUP", + profileIconId: 7036, + masteries: [ + { championName: "조이", championId: "Zoe", level: 7, points: 189400 }, + { + championName: "제라스", + championId: "Xerath", + level: 7, + points: 134200, + }, + { + championName: "흐웨이", + championId: "Hwei", + level: 6, + points: 78900, + }, + ], + recentStats: { + games: 15, + wins: 5, + losses: 10, + kda: { kills: 6.1, deaths: 5.1, assists: 6.0 }, + avgCs: 212, + }, + }, + { + id: 8, + summonerName: "정글러123", + tag: "KR3", + tier: { + previousSeason: "골드 I", + current: "플래티넘 III", + peak: "플래티넘 III", + }, + mainPosition: "JGL", + subPosition: "SUP", + profileIconId: 4789, + masteries: [ + { championName: "리신", championId: "LeeSin", level: 7, points: 201300 }, + { championName: "비에고", championId: "Viego", level: 6, points: 87600 }, + { championName: "렝가", championId: "Rengar", level: 6, points: 65400 }, + ], + recentStats: { + games: 38, + wins: 18, + losses: 20, + kda: { kills: 5.4, deaths: 5.8, assists: 8.1 }, + avgCs: 142, + }, + }, + { + id: 9, + summonerName: "탑솔장인", + tag: "KR1", + tier: { + previousSeason: "에메랄드 IV", + current: "에메랄드 II", + peak: "에메랄드 I", + }, + mainPosition: "TOP", + subPosition: "JGL", + profileIconId: 5450, + masteries: [ + { championName: "잭스", championId: "Jax", level: 7, points: 145600 }, + { championName: "요릭", championId: "Yorick", level: 7, points: 112400 }, + { championName: "나서스", championId: "Nasus", level: 6, points: 89300 }, + ], + recentStats: { + games: 47, + wins: 27, + losses: 20, + kda: { kills: 5.6, deaths: 3.9, assists: 4.1 }, + avgCs: 201, + }, + }, + { + id: 4, + summonerName: "요들마스터", + tag: "KR2", + tier: { + previousSeason: "다이아 II", + current: "다이아 III", + peak: "다이아 I", + }, + mainPosition: "SUP", + subPosition: "MID", + profileIconId: 4951, + masteries: [ + { + championName: "쓰레쉬", + championId: "Thresh", + level: 7, + points: 267800, + }, + { + championName: "노틸러스", + championId: "Nautilus", + level: 7, + points: 134500, + }, + { championName: "룰루", championId: "Lulu", level: 6, points: 78900 }, + ], + recentStats: { + games: 61, + wins: 36, + losses: 25, + kda: { kills: 2.1, deaths: 3.8, assists: 14.2 }, + avgCs: 32, + }, + }, + { + id: 10, + summonerName: "서폿장인", + tag: "0001", + tier: { + previousSeason: "다이아 III", + current: "다이아 IV", + peak: "다이아 II", + }, + mainPosition: "SUP", + subPosition: "ADC", + profileIconId: 4900, + masteries: [ + { championName: "유미", championId: "Yuumi", level: 7, points: 198700 }, + { championName: "소나", championId: "Sona", level: 7, points: 145200 }, + { championName: "나미", championId: "Nami", level: 6, points: 92100 }, + ], + recentStats: { + games: 52, + wins: 30, + losses: 22, + kda: { kills: 1.8, deaths: 4.2, assists: 16.3 }, + avgCs: 25, + }, + }, + { + id: 2, + summonerName: "Shadow Wolf", + tag: "KR1", + tier: { + previousSeason: "다이아 IV", + current: "플래티넘 II", + peak: "다이아 II", + }, + mainPosition: "JGL", + subPosition: "TOP", + profileIconId: 4834, + masteries: [ + { + championName: "니달리", + championId: "Nidalee", + level: 7, + points: 178900, + }, + { championName: "엘리스", championId: "Elise", level: 7, points: 134500 }, + { + championName: "그레이브즈", + championId: "Graves", + level: 6, + points: 67800, + }, + ], + recentStats: { + games: 44, + wins: 22, + losses: 22, + kda: { kills: 6.5, deaths: 4.7, assists: 7.8 }, + avgCs: 156, + }, + }, +]; + +function createInitialState(): AuctionState { + const blueTeam: AuctionTeam = { + side: "blue", + captainName: "프리리", + points: 1000, + members: [], + }; + const redTeam: AuctionTeam = { + side: "red", + captainName: "IceQueen", + points: 1000, + members: [], + }; + + return { + matchId: 1, + phase: "waiting", + teams: [blueTeam, redTeam], + currentPlayer: null, + currentPlayerIndex: -1, + totalPlayers: auctionPlayers.length, + auctionOrder: auctionPlayers, + bids: [], + currentBid: 0, + currentBidder: null, + timer: 0, + maxTimer: 15, + }; +} + +// Mock WebSocket - 경매 시뮬레이션 +export function createMockAuction(onUpdate: (state: AuctionState) => void) { + let state = createInitialState(); + let timerInterval: ReturnType | null = null; + let isRunning = false; + + function emit() { + onUpdate({ + ...state, + teams: [{ ...state.teams[0] }, { ...state.teams[1] }], + }); + } + + function clearTimer() { + if (timerInterval) { + clearInterval(timerInterval); + timerInterval = null; + } + } + + function startBidTimer() { + clearTimer(); + state.timer = state.maxTimer; + emit(); + + timerInterval = setInterval(() => { + state.timer--; + emit(); + if (state.timer <= 0) { + clearTimer(); + handleTimerEnd(); + } + }, 1000); + } + + function handleTimerEnd() { + if (state.currentBidder && state.currentPlayer) { + // 낙찰 + const teamIdx = state.currentBidder === "blue" ? 0 : 1; + state.teams[teamIdx].points -= state.currentBid; + state.teams[teamIdx].members.push({ + ...state.currentPlayer, + cost: state.currentBid, + assignedPosition: state.currentPlayer.mainPosition, + }); + state.phase = "sold"; + emit(); + + // 다음 선수로 + setTimeout(() => { + if (!isRunning) return; + nextPlayer(); + }, 2000); + } else { + // 유찰 → 최소 가격으로 랜덤 팀에 배정 + if (state.currentPlayer) { + const randomSide = Math.random() > 0.5 ? 0 : 1; + const minCost = 50; + state.teams[randomSide].points -= minCost; + state.teams[randomSide].members.push({ + ...state.currentPlayer, + cost: minCost, + assignedPosition: state.currentPlayer.mainPosition, + }); + state.phase = "sold"; + state.currentBid = minCost; + state.currentBidder = randomSide === 0 ? "blue" : "red"; + emit(); + + setTimeout(() => { + if (!isRunning) return; + nextPlayer(); + }, 2000); + } + } + } + + function nextPlayer() { + const nextIdx = state.currentPlayerIndex + 1; + if (nextIdx >= state.auctionOrder.length) { + state.phase = "complete"; + state.currentPlayer = null; + emit(); + return; + } + + state.currentPlayerIndex = nextIdx; + state.currentPlayer = state.auctionOrder[nextIdx]; + state.bids = []; + state.currentBid = 0; + state.currentBidder = null; + state.phase = "presenting"; + emit(); + + // 2초 뒤 입찰 시작 + setTimeout(() => { + if (!isRunning) return; + state.phase = "bidding"; + startBidTimer(); + }, 2500); + } + + return { + start() { + isRunning = true; + state.phase = "waiting"; + emit(); + setTimeout(() => { + if (!isRunning) return; + nextPlayer(); + }, 1500); + }, + + bid(side: "blue" | "red", amount: number) { + if (state.phase !== "bidding") return; + const teamIdx = side === "blue" ? 0 : 1; + if (amount <= state.currentBid) return; + if (amount > state.teams[teamIdx].points) return; + + state.currentBid = amount; + state.currentBidder = side; + state.bids.push({ side, amount, timestamp: Date.now() }); + // 입찰 시 타이머 리셋 (최소 5초) + if (state.timer < 5) { + state.timer = 5; + } + emit(); + }, + + destroy() { + isRunning = false; + clearTimer(); + }, + + getState: () => state, + }; +} diff --git a/apps/web/src/auction-types.ts b/apps/web/src/auction-types.ts new file mode 100644 index 00000000..6caa5ded --- /dev/null +++ b/apps/web/src/auction-types.ts @@ -0,0 +1,69 @@ +import type { Participant, Position } from "./mock"; + +export interface ChampionMastery { + championName: string; + championId: string; + level: number; + points: number; +} + +export interface RecentStats { + games: number; + wins: number; + losses: number; + kda: { kills: number; deaths: number; assists: number }; + avgCs: number; +} + +export interface AuctionPlayer extends Participant { + masteries: ChampionMastery[]; + recentStats: RecentStats; +} + +export interface AuctionTeam { + side: "blue" | "red"; + captainName: string; + points: number; + members: (AuctionPlayer & { cost: number; assignedPosition: Position })[]; +} + +export type AuctionPhase = + | "waiting" + | "presenting" + | "bidding" + | "sold" + | "complete"; + +export interface BidEntry { + side: "blue" | "red"; + amount: number; + timestamp: number; +} + +export interface AuctionState { + matchId: number; + phase: AuctionPhase; + teams: [AuctionTeam, AuctionTeam]; + currentPlayer: AuctionPlayer | null; + currentPlayerIndex: number; + totalPlayers: number; + auctionOrder: AuctionPlayer[]; + bids: BidEntry[]; + currentBid: number; + currentBidder: "blue" | "red" | null; + timer: number; + maxTimer: number; +} + +// WebSocket message types (서버 → 클라이언트) +export type ServerMessage = + | { type: "auction:init"; state: AuctionState } + | { type: "auction:present"; player: AuctionPlayer; index: number } + | { type: "auction:bid"; side: "blue" | "red"; amount: number } + | { type: "auction:timer"; remaining: number } + | { type: "auction:sold"; side: "blue" | "red"; player: AuctionPlayer; cost: number } + | { type: "auction:complete"; teams: [AuctionTeam, AuctionTeam] }; + +// WebSocket message types (클라이언트 → 서버) +export type ClientMessage = + | { type: "bid"; amount: number }; diff --git a/apps/web/src/index.css b/apps/web/src/index.css index 5fb33130..45ade146 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -1,111 +1,46 @@ -:root { - --text: #6b6375; - --text-h: #08060d; - --bg: #fff; - --border: #e5e4e7; - --code-bg: #f4f3ec; - --accent: #aa3bff; - --accent-bg: rgba(170, 59, 255, 0.1); - --accent-border: rgba(170, 59, 255, 0.5); - --social-bg: rgba(244, 243, 236, 0.5); - --shadow: - rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px; +@import url("https://fonts.googleapis.com/css2?family=Asta+Sans:wght@300..800&family=Gamja+Flower&display=swap"); - --sans: system-ui, 'Segoe UI', Roboto, sans-serif; - --heading: system-ui, 'Segoe UI', Roboto, sans-serif; - --mono: ui-monospace, Consolas, monospace; - - font: 18px/145% var(--sans); - letter-spacing: 0.18px; - color-scheme: light dark; - color: var(--text); - background: var(--bg); - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - - @media (max-width: 1024px) { - font-size: 16px; - } -} - -@media (prefers-color-scheme: dark) { - :root { - --text: #9ca3af; - --text-h: #f3f4f6; - --bg: #16171d; - --border: #2e303a; - --code-bg: #1f2028; - --accent: #c084fc; - --accent-bg: rgba(192, 132, 252, 0.15); - --accent-border: rgba(192, 132, 252, 0.5); - --social-bg: rgba(47, 48, 58, 0.5); - --shadow: - rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px; - } - - #social .button-icon { - filter: invert(1) brightness(2); - } -} - -#root { - width: 1126px; - max-width: 100%; - margin: 0 auto; - text-align: center; - border-inline: 1px solid var(--border); - min-height: 100svh; - display: flex; - flex-direction: column; - box-sizing: border-box; +@import "tailwindcss"; +@plugin "daisyui" { + themes: + light --default, + dark --prefersdark; } body { margin: 0; + font-family: + "Asta Sans", + -apple-system, + BlinkMacSystemFont, + system-ui, + Roboto, + "Helvetica Neue", + "Segoe UI", + "Apple SD Gothic Neo", + "Noto Sans KR", + "Malgun Gothic", + "Apple Color Emoji", + "Segoe UI Emoji", + "Segoe UI Symbol", + sans-serif; + font-size: 14px; + line-height: 1.5; } -h1, -h2 { - font-family: var(--heading); - font-weight: 500; - color: var(--text-h); +/* poro.gg style: 모든 모서리 각지게 */ +*, +*::before, +*::after { + border-radius: 0 !important; } -h1 { - font-size: 56px; - letter-spacing: -1.68px; - margin: 32px 0; - @media (max-width: 1024px) { - font-size: 36px; - margin: 20px 0; - } -} -h2 { - font-size: 24px; - line-height: 118%; - letter-spacing: -0.24px; - margin: 0 0 8px; - @media (max-width: 1024px) { - font-size: 20px; - } -} -p { - margin: 0; +/* daisyUI badge만 살짝 둥글게 (pill 형태) */ +.badge { + border-radius: 2px !important; } -code, -.counter { - font-family: var(--mono); - display: inline-flex; - border-radius: 4px; - color: var(--text-h); -} - -code { - font-size: 15px; - line-height: 135%; - padding: 4px 8px; - background: var(--code-bg); +/* 버튼도 각지게 */ +.btn { + border-radius: 0 !important; } diff --git a/apps/web/src/mock.ts b/apps/web/src/mock.ts new file mode 100644 index 00000000..ebea74e1 --- /dev/null +++ b/apps/web/src/mock.ts @@ -0,0 +1,404 @@ +// LoL 포지션 +export type Position = "TOP" | "JGL" | "MID" | "ADC" | "SUP"; + +export type MatchStatus = "recruiting" | "team-built" | "finished"; + +export interface TierInfo { + previousSeason: string; + current: string; + peak: string; +} + +export interface Participant { + id: number; + summonerName: string; + tag: string; + tier: TierInfo; + mainPosition: Position; + subPosition: Position; + profileIconId: number; +} + +export interface Team { + name: string; + participants: (Participant & { assignedPosition: Position })[]; +} + +export interface MatchDetail { + id: number; + title: string; + date: string; + time: string; + status: MatchStatus; + description: string; + map: string; + maxParticipants: number; + participants: Participant[]; + teams?: [Team, Team]; + result?: { winner: string; blueScore: number; redScore: number }; + prizes?: string[]; + notices?: string[]; + schedule?: { time: string; label: string }[]; +} + +export const positionLabel: Record = { + TOP: "탑", + JGL: "정글", + MID: "미드", + ADC: "원딜", + SUP: "서폿", +}; + +import posTop from "./assets/position/Top_icon.png"; +import posJgl from "./assets/position/Jungle_icon.png"; +import posMid from "./assets/position/Middle_icon.png"; +import posAdc from "./assets/position/Bottom_icon.png"; +import posSup from "./assets/position/Support_icon.png"; + +export const positionIcon: Record = { + TOP: posTop, + JGL: posJgl, + MID: posMid, + ADC: posAdc, + SUP: posSup, +}; + +const participants: Participant[] = [ + { + id: 1, + summonerName: "프리리", + tag: "KR1", + tier: { + previousSeason: "플래티넘 I", + current: "다이아 IV", + peak: "다이아 IV", + }, + mainPosition: "MID", + subPosition: "ADC", + profileIconId: 588, + }, + { + id: 2, + summonerName: "호호불어먹어요", + tag: "0000", + tier: { + previousSeason: "다이아 IV", + current: "플래티넘 II", + peak: "다이아 IV", + }, + mainPosition: "JGL", + subPosition: "TOP", + profileIconId: 7015, + }, + { + id: 3, + summonerName: "소다", + tag: "KR1", + tier: { + previousSeason: "플래티넘 I", + current: "에메랄드 I", + peak: "에메랄드 I", + }, + mainPosition: "TOP", + subPosition: "MID", + profileIconId: 5186, + }, + { + id: 4, + summonerName: "잉호바", + tag: "KR1", + tier: { + previousSeason: "다이아 II", + current: "다이아 III", + peak: "마스터 200LP", + }, + mainPosition: "SUP", + subPosition: "MID", + profileIconId: 7050, + }, + { + id: 5, + summonerName: "잉호바탭키도둑", + tag: "Tab", + tier: { + previousSeason: "에메랄드 II", + current: "플래티넘 I", + peak: "에메랄드 I", + }, + mainPosition: "ADC", + subPosition: "SUP", + profileIconId: 5231, + }, + { + id: 6, + summonerName: "osu", + tag: "KR1", + tier: { + previousSeason: "플래티넘 III", + current: "에메랄드 III", + peak: "마스터 200LP", + }, + mainPosition: "MID", + subPosition: "JGL", + profileIconId: 7091, + }, + { + id: 7, + summonerName: "IceQueen", + tag: "KR1", + tier: { + previousSeason: "다이아 I", + current: "다이아 II", + peak: "마스터 50LP", + }, + mainPosition: "ADC", + subPosition: "MID", + profileIconId: 5102, + }, + { + id: 8, + summonerName: "정글러123", + tag: "KR3", + tier: { + previousSeason: "골드 I", + current: "플래티넘 III", + peak: "플래티넘 III", + }, + mainPosition: "JGL", + subPosition: "SUP", + profileIconId: 4789, + }, + { + id: 9, + summonerName: "탑솔장인", + tag: "KR1", + tier: { + previousSeason: "에메랄드 IV", + current: "에메랄드 II", + peak: "에메랄드 I", + }, + mainPosition: "TOP", + subPosition: "JGL", + profileIconId: 5450, + }, + { + id: 10, + summonerName: "서폿장인", + tag: "0001", + tier: { + previousSeason: "다이아 III", + current: "다이아 IV", + peak: "다이아 II", + }, + mainPosition: "SUP", + subPosition: "ADC", + profileIconId: 4900, + }, +]; + +// 내전 1: 팀빌딩 전 (모집 중) +export const match_recruiting: MatchDetail = { + id: 2, + title: "쌀먹 내전", + date: "2026년 4월 19일 (일)", + time: "오후 3시", + status: "recruiting", + description: "JEIFF님의 후원으로 개최되는 쌀먹 내전. 많관부~", + map: "소환사의 협곡", + maxParticipants: 10, + participants: participants.slice(0, 6), + prizes: ["5명 추첨 커피", "MVP: 스킨 선물"], + notices: [ + "시작 10분 전까지 커스텀 방에 입장해주세요.", + "무단 불참 시 다음 내전 참여가 제한될 수 있습니다.", + "게임 중 과도한 욕설은 자제해주세요.", + ], + schedule: [ + { time: "21:45", label: "로비 오픈" }, + { time: "21:50", label: "경매 시작" }, + { time: "22:00", label: "게임 시작" }, + { time: "~24:00", label: "예상 종료" }, + ], +}; + +// 내전 2: 팀빌딩 완료, 게임 시작 전 +export const match_teamBuilt: MatchDetail = { + id: 1, + title: "롤림푸스 멸망전 시즌 4 결승전", + date: "2026년 4월 18일 (토)", + time: "오후 8시", + status: "team-built", + description: "시즌 4 최종 결승전입니다. ABC팀 VS DEF팀으로 진행됩니다.", + map: "소환사의 협곡", + maxParticipants: 10, + participants, + teams: [ + { + name: "블루팀", + participants: [ + { ...participants[0], assignedPosition: "MID" }, + { ...participants[1], assignedPosition: "JGL" }, + { ...participants[2], assignedPosition: "TOP" }, + { ...participants[4], assignedPosition: "ADC" }, + { ...participants[9], assignedPosition: "SUP" }, + ], + }, + { + name: "레드팀", + participants: [ + { ...participants[6], assignedPosition: "ADC" }, + { ...participants[5], assignedPosition: "MID" }, + { ...participants[8], assignedPosition: "TOP" }, + { ...participants[7], assignedPosition: "JGL" }, + { ...participants[3], assignedPosition: "SUP" }, + ], + }, + ], + prizes: ["승리 팀: 햄버거 세트", "패배 팀: 컴포즈커피 아메리카노"], + notices: [ + "결승전은 3판 2선으로 진행됩니다.", + "시작 15분 전까지 디스코드 음성채널에 입장해주세요.", + "경기 중 감정 표현과 도발 모션은 금지입니다.", + ], + schedule: [ + { time: "19:30", label: "디스코드 집합" }, + { time: "19:45", label: "팀빌딩 확인" }, + { time: "20:00", label: "1세트 시작" }, + { time: "20:40", label: "2세트 시작 (예상)" }, + { time: "21:20", label: "3세트 시작 (필요시)" }, + ], +}; + +// 내전 3: 게임 종료 +export const match_finished: MatchDetail = { + id: 101, + title: "시즌 4 준결승", + date: "2026년 4월 11일 (금)", + time: "오후 8시", + status: "finished", + description: "시즌 4 준결승전입니다.", + map: "소환사의 협곡", + maxParticipants: 10, + participants, + teams: [ + { + name: "블루팀", + participants: [ + { ...participants[0], assignedPosition: "MID" }, + { ...participants[1], assignedPosition: "JGL" }, + { ...participants[2], assignedPosition: "TOP" }, + { ...participants[4], assignedPosition: "ADC" }, + { ...participants[9], assignedPosition: "SUP" }, + ], + }, + { + name: "레드팀", + participants: [ + { ...participants[6], assignedPosition: "ADC" }, + { ...participants[5], assignedPosition: "MID" }, + { ...participants[8], assignedPosition: "TOP" }, + { ...participants[7], assignedPosition: "JGL" }, + { ...participants[3], assignedPosition: "SUP" }, + ], + }, + ], + result: { winner: "블루팀", blueScore: 2, redScore: 1 }, + prizes: ["1등 팀: RP 10,000 지급", "MVP: 프리리 (MID)"], + notices: [], + schedule: [], +}; + +// 메인 페이지용 +export const nextMatchSummary = { + id: match_teamBuilt.id, + title: match_teamBuilt.title, + date: match_teamBuilt.date, + time: match_teamBuilt.time, + participants: match_teamBuilt.participants.length, + maxParticipants: match_teamBuilt.maxParticipants, + status: "모집 완료", + description: match_teamBuilt.description, + map: match_teamBuilt.map, +}; + +export const upcomingMatches = [ + { + id: match_recruiting.id, + title: match_recruiting.title, + date: match_recruiting.date, + time: match_recruiting.time, + participants: match_recruiting.participants.length, + maxParticipants: match_recruiting.maxParticipants, + status: "모집 중", + map: match_recruiting.map, + }, + { + id: 3, + title: "칼바람 나락 내전", + date: "2026년 4월 25일 (토)", + time: "오후 7시", + participants: 2, + maxParticipants: 10, + status: "모집 중", + map: "칼바람 나락", + }, + { + id: 4, + title: "롤림푸스 시즌 5 개막전", + date: "2026년 5월 2일 (토)", + time: "오후 8시", + participants: 0, + maxParticipants: 10, + status: "예정", + map: "소환사의 협곡", + }, +]; + +export const pastMatches = [ + { + id: 101, + title: "시즌 4 준결승", + date: "2026년 4월 11일", + participants: 10, + result: "블루팀 승리", + map: "소환사의 협곡", + }, + { + id: 102, + title: "평일 내전", + date: "2026년 4월 9일", + participants: 10, + result: "레드팀 승리", + map: "소환사의 협곡", + }, + { + id: 103, + title: "칼바람 나락 내전", + date: "2026년 4월 5일", + participants: 10, + result: "-", + map: "칼바람 나락", + }, + { + id: 104, + title: "시즌 4 8강", + date: "2026년 4월 4일", + participants: 10, + result: "블루팀 승리", + map: "소환사의 협곡", + }, + { + id: 105, + title: "주말 내전", + date: "2026년 3월 29일", + participants: 10, + result: "레드팀 승리", + map: "소환사의 협곡", + }, +]; + +export function getMatchById(id: number): MatchDetail | undefined { + return [match_recruiting, match_teamBuilt, match_finished].find( + (m) => m.id === id, + ); +} diff --git a/apps/web/src/pages/AuctionPage.tsx b/apps/web/src/pages/AuctionPage.tsx new file mode 100644 index 00000000..fb5d13fd --- /dev/null +++ b/apps/web/src/pages/AuctionPage.tsx @@ -0,0 +1,605 @@ +import { useEffect, useRef, useState } from "react"; +import { useParams, Link } from "react-router"; +import { createMockAuction } from "../auction-mock"; +import type { + AuctionState, + AuctionPlayer, + AuctionTeam, +} from "../auction-types"; +import { positionIcon, positionLabel, type Position } from "../mock"; + +// -- 티어 색상 -- +function tierColor(tier: string): string { + if (tier.startsWith("챌린저")) return "text-amber-400"; + if (tier.startsWith("그랜드마스터")) return "text-red-400"; + if (tier.startsWith("마스터")) return "text-purple-400"; + if (tier.startsWith("다이아")) return "text-cyan-400"; + if (tier.startsWith("에메랄드")) return "text-emerald-400"; + if (tier.startsWith("플래티넘")) return "text-teal-300"; + if (tier.startsWith("골드")) return "text-yellow-400"; + if (tier.startsWith("실버")) return "text-gray-300"; + return "text-amber-700"; +} + +function formatPoints(n: number): string { + return n.toLocaleString(); +} + +function PosBadge({ pos }: { pos: Position }) { + return ( + + + {positionLabel[pos]} + + ); +} + +// -- 타이머 바 -- +function TimerBar({ timer, maxTimer }: { timer: number; maxTimer: number }) { + const pct = (timer / maxTimer) * 100; + const urgent = timer <= 5; + return ( +
+
+
+ ); +} + +// -- 팀 패널 -- +function TeamPanel({ + team, + isActive, + isLeft, +}: { + team: AuctionTeam; + isActive: boolean; + isLeft: boolean; +}) { + const borderColor = + team.side === "blue" ? "border-blue-500/25" : "border-red-500/25"; + const accentBar = team.side === "blue" ? "bg-blue-500" : "bg-red-500"; + const sideColor = team.side === "blue" ? "text-blue-400" : "text-red-400"; + const headerBg = team.side === "blue" ? "bg-blue-500/8" : "bg-red-500/8"; + + return ( +
+
+ + {/* 헤더 */} +
+
+
+ + {team.side === "blue" ? "블루팀" : "레드팀"} + + + 팀장: {team.captainName} + +
+ + {formatPoints(team.points)}P + +
+
+ + {/* 멤버 목록 */} +
+ {team.members.length === 0 ? ( +
+ 아직 멤버가 없습니다 +
+ ) : ( + team.members.map((m) => ( +
+
+ +
+
+ + {m.summonerName} + +
+ + + {m.cost} + +
+ )) + )} + + {/* 빈 슬롯 */} + {Array.from({ length: 4 - team.members.length }).map((_, i) => ( +
+
+ — +
+ ))} +
+
+ ); +} + +// -- 현재 경매 선수 카드 -- +function PlayerSpotlight({ + player, + phase, + currentBid, + currentBidder, +}: { + player: AuctionPlayer; + phase: AuctionState["phase"]; + currentBid: number; + currentBidder: "blue" | "red" | null; +}) { + const winRate = + player.recentStats.games > 0 + ? Math.round((player.recentStats.wins / player.recentStats.games) * 100) + : 0; + const kdaRatio = + player.recentStats.kda.deaths > 0 + ? ( + (player.recentStats.kda.kills + player.recentStats.kda.assists) / + player.recentStats.kda.deaths + ).toFixed(2) + : "Perfect"; + + return ( +
+ {/* 선수 프로필 */} +
+
+
+ +
+
+
+

+ {player.summonerName} +

+ + #{player.tag} + +
+
+ + {player.tier.previousSeason} + + → + + {player.tier.current} + + + ({player.tier.peak}) + +
+
+ + + {" "} + {positionLabel[player.subPosition]} + +
+
+
+
+ + {/* 스탯 그리드 */} +
+ {/* 숙련도 */} +
+

+ 숙련도 높은 챔피언 +

+
+ {player.masteries.map((m) => ( +
+
+ {m.championName} +
+
+
+ {m.championName} +
+
+ Lv.{m.level} · {(m.points / 1000).toFixed(0)}K +
+
+
+ ))} +
+
+ + {/* 최근 전적 */} +
+

+ 최근 솔로랭크 +

+
+
+ 승률 + = 55 ? "text-blue-400" : winRate >= 50 ? "text-base-content" : "text-red-400"}`} + > + {winRate}% + +
+
+ 전적 + + + {player.recentStats.wins}W + {" "} + + {player.recentStats.losses}L + + +
+
+ KDA + + {player.recentStats.kda.kills}/{player.recentStats.kda.deaths}/ + {player.recentStats.kda.assists} + = 3 ? "text-emerald-400" : "text-base-content/50"}`} + > + ({kdaRatio}) + + +
+
+ 평균 CS + + {player.recentStats.avgCs} + +
+
+
+
+ + {/* 현재 입찰 상태 */} + {(phase === "bidding" || phase === "sold") && ( +
+
+ + {phase === "sold" ? "낙찰가" : "현재 입찰가"} + +
+ {currentBidder && ( + + {currentBidder === "blue" ? "블루" : "레드"} + + )} + + {currentBid > 0 ? formatPoints(currentBid) : "—"} + +
+
+
+ )} +
+ ); +} + +// -- 입찰 컨트롤 -- +function BidControls({ + state, + onBid, +}: { + state: AuctionState; + onBid: (side: "blue" | "red", amount: number) => void; +}) { + const [bidAmount, setBidAmount] = useState(100); + const minBid = state.currentBid + 10; + + useEffect(() => { + setBidAmount(Math.max(minBid, Math.ceil(minBid / 10) * 10)); + }, [state.currentBid]); + + if (state.phase !== "bidding") return null; + + const presets = [50, 100, 150, 200, 300, 500]; + + return ( +
+
+ {presets.map((p) => ( + + ))} + + setBidAmount(Math.max(minBid, Number(e.target.value))) + } + min={minBid} + className="w-20 text-xs px-2 py-1 border border-base-content/10 bg-transparent text-base-content tabular-nums text-right focus:outline-none focus:border-primary/30" + /> +
+
+ + +
+
+ ); +} + +// -- 입찰 로그 -- +function BidLog({ bids }: { bids: AuctionState["bids"] }) { + const endRef = useRef(null); + useEffect(() => { + endRef.current?.scrollIntoView({ behavior: "smooth" }); + }, [bids.length]); + + if (bids.length === 0) return null; + + return ( +
+
+ + 입찰 기록 + +
+
+ {bids.map((b, i) => ( +
+ + {b.side === "blue" ? "블루" : "레드"} + + → + + {formatPoints(b.amount)}P + +
+ ))} +
+
+
+ ); +} + +// -- 메인 -- +export default function AuctionPage() { + const { id } = useParams(); + const [state, setState] = useState(null); + const auctionRef = useRef | null>(null); + + useEffect(() => { + const auction = createMockAuction((newState) => { + setState({ ...newState }); + }); + auctionRef.current = auction; + auction.start(); + + return () => { + auction.destroy(); + }; + }, [id]); + + if (!state) { + return ( +
+ 연결 중... +
+ ); + } + + const handleBid = (side: "blue" | "red", amount: number) => { + auctionRef.current?.bid(side, amount); + }; + + const phaseLabel: Record = { + waiting: "경매 준비 중...", + presenting: "다음 선수 등장", + bidding: "입찰 진행 중", + sold: "낙찰!", + complete: "경매 완료", + }; + + return ( +
+ {/* 뒤로가기 */} + + + + + 내전 상세로 + + + {/* 경매 헤더 */} +
+
+

+ 경매 팀빌딩 +

+

+ {state.currentPlayerIndex + 1} / {state.totalPlayers} 선수 +

+
+
+ + {phaseLabel[state.phase]} + + {state.phase === "bidding" && ( + + {state.timer}s + + )} +
+
+ + {/* 타이머 바 */} + {state.phase === "bidding" && ( + + )} + + {/* 메인 3컬럼 */} +
+ {/* 블루팀 */} +
+ +
+ + {/* 중앙: 선수 카드 */} +
+ {state.phase === "waiting" && ( +
+
+ 경매가 곧 시작됩니다... +
+
+ )} + + {state.phase === "complete" && ( +
+
+ 경매 완료 +
+
+ 모든 선수가 팀에 배정되었습니다. +
+ + 결과 확인 + +
+ )} + + {state.currentPlayer && + (state.phase === "presenting" || + state.phase === "bidding" || + state.phase === "sold") && ( + <> + + + {state.phase === "sold" && state.currentBidder && ( +
+ {state.currentBidder === "blue" ? "블루팀" : "레드팀"} 낙찰 + — {formatPoints(state.currentBid)}P +
+ )} + + + + + )} +
+ + {/* 레드팀 */} +
+ +
+
+
+ ); +} diff --git a/apps/web/src/pages/HomePage.tsx b/apps/web/src/pages/HomePage.tsx new file mode 100644 index 00000000..bb3b8705 --- /dev/null +++ b/apps/web/src/pages/HomePage.tsx @@ -0,0 +1,162 @@ +import { Link } from "react-router"; +import { + nextMatchSummary, + upcomingMatches, + pastMatches, +} from "../mock"; + +function StatusBadge({ status }: { status: string }) { + const styles: Record = { + "모집 중": "bg-green-500/15 text-green-500 border-green-500/20", + "모집 완료": "bg-amber-500/15 text-amber-500 border-amber-500/20", + 예정: "bg-blue-500/15 text-blue-400 border-blue-500/20", + }; + return ( + + {status} + + ); +} + +function MapBadge({ map }: { map: string }) { + return ( + + {map} + + ); +} + +export default function HomePage() { + return ( +
+ {/* 다음 내전 (Hero) */} +
+

+ 다음 내전 +

+ +
+
+
+
+
+

+ {nextMatchSummary.title} +

+ +
+

+ {nextMatchSummary.description} +

+
+ + + {nextMatchSummary.date} {nextMatchSummary.time} + + | + + + {nextMatchSummary.participants}/{nextMatchSummary.maxParticipants}명 + + | + +
+
+
+ + 상세 보기 + +
+
+
+
+ +
+ + {/* 예정된 내전 */} +
+

+ 예정된 내전 +

+
+ {upcomingMatches.map((match) => ( + +
+
+

+ {match.title} +

+ +
+
+
+ + {match.date} {match.time} +
+
+ + {match.participants}/{match.maxParticipants}명 +
+
+
+ +
+
+ + ))} +
+
+ + {/* 지난 내전 기록 */} +
+

+ 지난 내전 기록 +

+
+ + + + + + + + + + + + {pastMatches.map((match) => ( + + + + + + + + ))} + +
날짜내전맵참가결과
+ {match.date} + + + {match.title} + + + + + {match.participants}명 + + {match.result} +
+
+
+
+ ); +} diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx new file mode 100644 index 00000000..5ef42e0a --- /dev/null +++ b/apps/web/src/pages/MatchDetailPage.tsx @@ -0,0 +1,473 @@ +import { useParams, Link } from "react-router"; +import { + getMatchById, + positionLabel, + positionIcon, + type MatchDetail, + type Participant, + type Position, + type Team, + type TierInfo, +} from "../mock"; + +// -- 포지션 배지 -- +function PosBadge({ pos, sub }: { pos: Position; sub?: boolean }) { + return ( + + + {positionLabel[pos]} + + ); +} + +// -- 티어 색상 -- +function tierColor(tier: string): string { + if (tier.startsWith("챌린저")) return "text-amber-400"; + if (tier.startsWith("그랜드마스터")) return "text-red-400"; + if (tier.startsWith("마스터")) return "text-purple-400"; + if (tier.startsWith("다이아")) return "text-cyan-400"; + if (tier.startsWith("에메랄드")) return "text-emerald-400"; + if (tier.startsWith("플래티넘")) return "text-teal-300"; + if (tier.startsWith("골드")) return "text-yellow-400"; + if (tier.startsWith("실버")) return "text-gray-300"; + return "text-amber-700"; +} + +// -- 티어 셀 (전시즌 / 현재 / 최고) -- +function TierCell({ tier }: { tier: TierInfo }) { + return ( +
+ {tier.previousSeason} + → + + {tier.current} + + + ({tier.peak}) + +
+ ); +} + +// -- 상태 배지 -- +function statusBadge(status: MatchDetail["status"]) { + switch (status) { + case "recruiting": + return { + label: "모집 중", + cls: "bg-green-500/15 text-green-500 border-green-500/20", + }; + case "team-built": + return { + label: "팀빌딩 완료", + cls: "bg-amber-500/15 text-amber-500 border-amber-500/20", + }; + case "finished": + return { + label: "종료", + cls: "bg-base-content/8 text-base-content/40 border-base-content/10", + }; + } +} + +// -- 참가자 행 -- +function ParticipantRow({ + p, + index, + assignedPos, +}: { + p: Participant; + index: number; + assignedPos?: Position; +}) { + return ( + + + {index + 1} + + +
+
+ +
+
+ + {p.summonerName} + + + #{p.tag} + +
+
+ + + + + {assignedPos ? ( + + + + ) : ( + <> + + + + + + + + )} + + ); +} + +// -- 참가자 테이블 (팀빌딩 전) -- +function ParticipantTable({ participants }: { participants: Participant[] }) { + return ( +
+ + + + + + + + + + + + {participants.map((p, i) => ( + + ))} + +
#소환사전 시즌 → 현재 (최고)주 포지션부 포지션
+
+ ); +} + +// -- 팀 카드 (팀빌딩 후) -- +function TeamCard({ + team, + side, + isWinner, +}: { + team: Team; + side: "blue" | "red"; + isWinner?: boolean; +}) { + const borderColor = + side === "blue" ? "border-blue-500/25" : "border-red-500/25"; + const headerBg = side === "blue" ? "bg-blue-500/8" : "bg-red-500/8"; + const sideColor = side === "blue" ? "text-blue-400" : "text-red-400"; + const accentBar = side === "blue" ? "bg-blue-500" : "bg-red-500"; + + return ( +
+
+
+
+ + {team.name} + + {isWinner && ( + + WIN + + )} +
+
+ + + + + + + + + + + {team.participants.map((p, i) => ( + + ))} + +
#소환사전 시즌 → 현재 (최고)포지션
+
+ ); +} + +// -- 사이드바 카드 -- +function SideCard({ + title, + children, +}: { + title: string; + children: React.ReactNode; +}) { + return ( +
+
+

+ {title} +

+
+
{children}
+
+ ); +} + +// -- 메인 -- +export default function MatchDetailPage() { + const { id } = useParams(); + const match = getMatchById(Number(id)); + + if (!match) { + return ( +
+

내전을 찾을 수 없습니다

+ + 홈으로 돌아가기 + +
+ ); + } + + const si = statusBadge(match.status); + + return ( +
+ {/* 뒤로가기 */} + + + + + 목록으로 + + + {/* 헤더 */} +
+
+

+ {match.title} +

+ + {si.label} + +
+

+ {match.description} +

+
+ + + + + {match.date} {match.time} + + | + + + + + {match.participants.length}/{match.maxParticipants}명 + + | + + {match.map} + +
+
+ + {/* 결과 배너 (종료된 경우) */} + {match.status === "finished" && match.result && ( +
+
+
+
+ {match.result.blueScore} +
+
+ 블루팀 +
+
+
+ VS +
+
+
+ {match.result.redScore} +
+
+ 레드팀 +
+
+
+
+ {match.result.winner} 승리 +
+
+ )} + +
+ {/* 좌측: 참가자 / 팀 */} +
+ {match.status === "recruiting" ? ( +
+
+

+ 참가자 ({match.participants.length}/{match.maxParticipants}) +

+ +
+ + {match.participants.length < match.maxParticipants && ( +
+ + {match.maxParticipants - match.participants.length}자리 남음 + +
+ )} +
+ ) : ( +
+ {match.teams?.map((team, i) => ( + + ))} +
+ )} +
+ + {/* 우측: 사이드바 */} +
+ {/* 일정 */} + {match.schedule && match.schedule.length > 0 && ( + +
    + {match.schedule.map((s, i) => ( +
  • + + {s.time} + + {s.label} +
  • + ))} +
+
+ )} + + {/* 상품 */} + {match.prizes && match.prizes.length > 0 && ( + +
    + {match.prizes.map((prize, i) => ( +
  • + ▸ + {prize} +
  • + ))} +
+
+ )} + + {/* 안내사항 */} + {match.notices && match.notices.length > 0 && ( + +
    + {match.notices.map((notice, i) => ( +
  • + • + {notice} +
  • + ))} +
+
+ )} +
+
+
+ ); +} diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 8b0f57b9..4ff4f8fe 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -1,7 +1,8 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import tailwindcss from "@tailwindcss/vite"; // https://vite.dev/config/ export default defineConfig({ - plugins: [react()], -}) + plugins: [react(), tailwindcss()], +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04ad70bf..10334635 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -74,13 +74,13 @@ importers: version: 7.2.0 eslint: specifier: ^9.18.0 - version: 9.39.4 + version: 9.39.4(jiti@2.6.1) eslint-config-prettier: specifier: ^10.0.1 - version: 10.1.8(eslint@9.39.4) + version: 10.1.8(eslint@9.39.4(jiti@2.6.1)) eslint-plugin-prettier: specifier: ^5.2.2 - version: 5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4))(eslint@9.39.4)(prettier@3.8.2) + version: 5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4(jiti@2.6.1)))(eslint@9.39.4(jiti@2.6.1))(prettier@3.8.2) globals: specifier: ^17.0.0 version: 17.4.0 @@ -113,7 +113,7 @@ importers: version: 5.9.3 typescript-eslint: specifier: ^8.20.0 - version: 8.58.1(eslint@9.39.4)(typescript@5.9.3) + version: 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) apps/web: dependencies: @@ -123,10 +123,16 @@ importers: react-dom: specifier: ^19.2.4 version: 19.2.5(react@19.2.5) + react-router: + specifier: ^7.14.0 + version: 7.14.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5) devDependencies: '@eslint/js': specifier: ^9.39.4 version: 9.39.4 + '@tailwindcss/vite': + specifier: ^4.2.2 + version: 4.2.2(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1)) '@types/node': specifier: ^24.12.2 version: 24.12.2 @@ -138,28 +144,34 @@ importers: version: 19.2.3(@types/react@19.2.14) '@vitejs/plugin-react': specifier: ^6.0.1 - version: 6.0.1(vite@8.0.8(@types/node@24.12.2)(terser@5.46.1)) + version: 6.0.1(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1)) + daisyui: + specifier: ^5.5.19 + version: 5.5.19 eslint: specifier: ^9.39.4 - version: 9.39.4 + version: 9.39.4(jiti@2.6.1) eslint-plugin-react-hooks: specifier: ^7.0.1 - version: 7.0.1(eslint@9.39.4) + version: 7.0.1(eslint@9.39.4(jiti@2.6.1)) eslint-plugin-react-refresh: specifier: ^0.5.2 - version: 0.5.2(eslint@9.39.4) + version: 0.5.2(eslint@9.39.4(jiti@2.6.1)) globals: specifier: ^17.4.0 version: 17.4.0 + tailwindcss: + specifier: ^4.2.2 + version: 4.2.2 typescript: specifier: ~6.0.2 version: 6.0.2 typescript-eslint: specifier: ^8.58.0 - version: 8.58.1(eslint@9.39.4)(typescript@6.0.2) + version: 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) vite: specifier: ^8.0.4 - version: 8.0.8(@types/node@24.12.2)(terser@5.46.1) + version: 8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1) packages: @@ -1246,6 +1258,96 @@ packages: resolution: {integrity: sha512-O/IEdcCUKkubz60tFbGA7ceITTAJsty+lBjNoorP4Z6XRqaFb/OjQjZODophEcuq68nKm6/0r+6/lLQ+XVpk8g==} engines: {node: '>=18.0.0'} + '@tailwindcss/node@4.2.2': + resolution: {integrity: sha512-pXS+wJ2gZpVXqFaUEjojq7jzMpTGf8rU6ipJz5ovJV6PUGmlJ+jvIwGrzdHdQ80Sg+wmQxUFuoW1UAAwHNEdFA==} + + '@tailwindcss/oxide-android-arm64@4.2.2': + resolution: {integrity: sha512-dXGR1n+P3B6748jZO/SvHZq7qBOqqzQ+yFrXpoOWWALWndF9MoSKAT3Q0fYgAzYzGhxNYOoysRvYlpixRBBoDg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.2.2': + resolution: {integrity: sha512-iq9Qjr6knfMpZHj55/37ouZeykwbDqF21gPFtfnhCCKGDcPI/21FKC9XdMO/XyBM7qKORx6UIhGgg6jLl7BZlg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.2.2': + resolution: {integrity: sha512-BlR+2c3nzc8f2G639LpL89YY4bdcIdUmiOOkv2GQv4/4M0vJlpXEa0JXNHhCHU7VWOKWT/CjqHdTP8aUuDJkuw==} + engines: {node: '>= 20'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.2.2': + resolution: {integrity: sha512-YUqUgrGMSu2CDO82hzlQ5qSb5xmx3RUrke/QgnoEx7KvmRJHQuZHZmZTLSuuHwFf0DJPybFMXMYf+WJdxHy/nQ==} + engines: {node: '>= 20'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.2.2': + resolution: {integrity: sha512-FPdhvsW6g06T9BWT0qTwiVZYE2WIFo2dY5aCSpjG/S/u1tby+wXoslXS0kl3/KXnULlLr1E3NPRRw0g7t2kgaQ==} + engines: {node: '>= 20'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.2.2': + resolution: {integrity: sha512-4og1V+ftEPXGttOO7eCmW7VICmzzJWgMx+QXAJRAhjrSjumCwWqMfkDrNu1LXEQzNAwz28NCUpucgQPrR4S2yw==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-musl@4.2.2': + resolution: {integrity: sha512-oCfG/mS+/+XRlwNjnsNLVwnMWYH7tn/kYPsNPh+JSOMlnt93mYNCKHYzylRhI51X+TbR+ufNhhKKzm6QkqX8ag==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-gnu@4.2.2': + resolution: {integrity: sha512-rTAGAkDgqbXHNp/xW0iugLVmX62wOp2PoE39BTCGKjv3Iocf6AFbRP/wZT/kuCxC9QBh9Pu8XPkv/zCZB2mcMg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-musl@4.2.2': + resolution: {integrity: sha512-XW3t3qwbIwiSyRCggeO2zxe3KWaEbM0/kW9e8+0XpBgyKU4ATYzcVSMKteZJ1iukJ3HgHBjbg9P5YPRCVUxlnQ==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-wasm32-wasi@4.2.2': + resolution: {integrity: sha512-eKSztKsmEsn1O5lJ4ZAfyn41NfG7vzCg496YiGtMDV86jz1q/irhms5O0VrY6ZwTUkFy/EKG3RfWgxSI3VbZ8Q==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.2.2': + resolution: {integrity: sha512-qPmaQM4iKu5mxpsrWZMOZRgZv1tOZpUm+zdhhQP0VhJfyGGO3aUKdbh3gDZc/dPLQwW4eSqWGrrcWNBZWUWaXQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.2.2': + resolution: {integrity: sha512-1T/37VvI7WyH66b+vqHj/cLwnCxt7Qt3WFu5Q8hk65aOvlwAhs7rAp1VkulBJw/N4tMirXjVnylTR72uI0HGcA==} + engines: {node: '>= 20'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.2.2': + resolution: {integrity: sha512-qEUA07+E5kehxYp9BVMpq9E8vnJuBHfJEC0vPC5e7iL/hw7HR61aDKoVoKzrG+QKp56vhNZe4qwkRmMC0zDLvg==} + engines: {node: '>= 20'} + + '@tailwindcss/vite@4.2.2': + resolution: {integrity: sha512-mEiF5HO1QqCLXoNEfXVA1Tzo+cYsrqV7w9Juj2wdUFyW07JRenqMG225MvPwr3ZD9N1bFQj46X7r33iHxLUW0w==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 || ^8 + '@tokenizer/inflate@0.4.1': resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==} engines: {node: '>=18'} @@ -1935,6 +2037,10 @@ packages: resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + cookiejar@2.1.4: resolution: {integrity: sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==} @@ -1961,6 +2067,9 @@ packages: csstype@3.2.3: resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + daisyui@5.5.19: + resolution: {integrity: sha512-pbFAkl1VCEh/MPCeclKL61I/MqRIFFhNU7yiXoDDRapXN4/qNCoMxeCCswyxEEhqL5eiTTfwHvucFtOE71C9sA==} + debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -2663,6 +2772,10 @@ packages: node-notifier: optional: true + jiti@2.6.1: + resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} + hasBin: true + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -2835,6 +2948,9 @@ packages: magic-string@0.30.17: resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + make-dir@4.0.0: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} @@ -3196,6 +3312,16 @@ packages: react-is@18.3.1: resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} + react-router@7.14.0: + resolution: {integrity: sha512-m/xR9N4LQLmAS0ZhkY2nkPA1N7gQ5TUVa5n8TgANuDTARbn1gt+zLPXEm7W0XDTbrQ2AJSJKhoa6yx1D8BcpxQ==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: '>=18' + react-dom: '>=18' + peerDependenciesMeta: + react-dom: + optional: true + react@19.2.5: resolution: {integrity: sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==} engines: {node: '>=0.10.0'} @@ -3284,6 +3410,9 @@ packages: resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} engines: {node: '>= 18'} + set-cookie-parser@2.7.2: + resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==} + setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -3438,6 +3567,9 @@ packages: resolution: {integrity: sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==} engines: {node: ^14.18.0 || >=16.0.0} + tailwindcss@4.2.2: + resolution: {integrity: sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q==} + tapable@2.3.2: resolution: {integrity: sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==} engines: {node: '>=6'} @@ -4489,9 +4621,9 @@ snapshots: tslib: 2.8.1 optional: true - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.4)': + '@eslint-community/eslint-utils@4.9.1(eslint@9.39.4(jiti@2.6.1))': dependencies: - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.12.2': {} @@ -5406,6 +5538,74 @@ snapshots: dependencies: tslib: 2.8.1 + '@tailwindcss/node@4.2.2': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.20.1 + jiti: 2.6.1 + lightningcss: 1.32.0 + magic-string: 0.30.21 + source-map-js: 1.2.1 + tailwindcss: 4.2.2 + + '@tailwindcss/oxide-android-arm64@4.2.2': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.2.2': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.2.2': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.2.2': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.2.2': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.2.2': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.2.2': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.2.2': + optional: true + + '@tailwindcss/oxide@4.2.2': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.2.2 + '@tailwindcss/oxide-darwin-arm64': 4.2.2 + '@tailwindcss/oxide-darwin-x64': 4.2.2 + '@tailwindcss/oxide-freebsd-x64': 4.2.2 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.2.2 + '@tailwindcss/oxide-linux-arm64-gnu': 4.2.2 + '@tailwindcss/oxide-linux-arm64-musl': 4.2.2 + '@tailwindcss/oxide-linux-x64-gnu': 4.2.2 + '@tailwindcss/oxide-linux-x64-musl': 4.2.2 + '@tailwindcss/oxide-wasm32-wasi': 4.2.2 + '@tailwindcss/oxide-win32-arm64-msvc': 4.2.2 + '@tailwindcss/oxide-win32-x64-msvc': 4.2.2 + + '@tailwindcss/vite@4.2.2(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1))': + dependencies: + '@tailwindcss/node': 4.2.2 + '@tailwindcss/oxide': 4.2.2 + tailwindcss: 4.2.2 + vite: 8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1) + '@tokenizer/inflate@0.4.1': dependencies: debug: 4.4.3 @@ -5557,15 +5757,15 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3)': + '@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)': dependencies: '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@5.9.3) + '@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) '@typescript-eslint/scope-manager': 8.58.1 - '@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3) + '@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.58.1 - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) ignore: 7.0.5 natural-compare: 1.4.0 ts-api-utils: 2.5.0(typescript@5.9.3) @@ -5573,15 +5773,15 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@6.0.2))(eslint@9.39.4)(typescript@6.0.2)': + '@typescript-eslint/eslint-plugin@8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2))(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)': dependencies: '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@6.0.2) + '@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) '@typescript-eslint/scope-manager': 8.58.1 - '@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2) - '@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2) + '@typescript-eslint/type-utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) + '@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) '@typescript-eslint/visitor-keys': 8.58.1 - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) ignore: 7.0.5 natural-compare: 1.4.0 ts-api-utils: 2.5.0(typescript@6.0.2) @@ -5589,26 +5789,26 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@5.9.3)': + '@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)': dependencies: '@typescript-eslint/scope-manager': 8.58.1 '@typescript-eslint/types': 8.58.1 '@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3) '@typescript-eslint/visitor-keys': 8.58.1 debug: 4.4.3 - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@6.0.2)': + '@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)': dependencies: '@typescript-eslint/scope-manager': 8.58.1 '@typescript-eslint/types': 8.58.1 '@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2) '@typescript-eslint/visitor-keys': 8.58.1 debug: 4.4.3 - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) typescript: 6.0.2 transitivePeerDependencies: - supports-color @@ -5644,25 +5844,25 @@ snapshots: dependencies: typescript: 6.0.2 - '@typescript-eslint/type-utils@8.58.1(eslint@9.39.4)(typescript@5.9.3)': + '@typescript-eslint/type-utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)': dependencies: '@typescript-eslint/types': 8.58.1 '@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3) - '@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3) + '@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) debug: 4.4.3 - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) ts-api-utils: 2.5.0(typescript@5.9.3) typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/type-utils@8.58.1(eslint@9.39.4)(typescript@6.0.2)': + '@typescript-eslint/type-utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)': dependencies: '@typescript-eslint/types': 8.58.1 '@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2) - '@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2) + '@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) debug: 4.4.3 - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) ts-api-utils: 2.5.0(typescript@6.0.2) typescript: 6.0.2 transitivePeerDependencies: @@ -5700,24 +5900,24 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.58.1(eslint@9.39.4)(typescript@5.9.3)': + '@typescript-eslint/utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3)': dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.6.1)) '@typescript-eslint/scope-manager': 8.58.1 '@typescript-eslint/types': 8.58.1 '@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3) - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) typescript: 5.9.3 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.58.1(eslint@9.39.4)(typescript@6.0.2)': + '@typescript-eslint/utils@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2)': dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.6.1)) '@typescript-eslint/scope-manager': 8.58.1 '@typescript-eslint/types': 8.58.1 '@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2) - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) typescript: 6.0.2 transitivePeerDependencies: - supports-color @@ -5788,10 +5988,10 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.11.1': optional: true - '@vitejs/plugin-react@6.0.1(vite@8.0.8(@types/node@24.12.2)(terser@5.46.1))': + '@vitejs/plugin-react@6.0.1(vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1))': dependencies: '@rolldown/pluginutils': 1.0.0-rc.7 - vite: 8.0.8(@types/node@24.12.2)(terser@5.46.1) + vite: 8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1) '@webassemblyjs/ast@1.14.1': dependencies: @@ -6207,6 +6407,8 @@ snapshots: cookie@0.7.2: {} + cookie@1.1.1: {} + cookiejar@2.1.4: {} cors@2.8.6: @@ -6233,6 +6435,8 @@ snapshots: csstype@3.2.3: {} + daisyui@5.5.19: {} + debug@4.4.3: dependencies: ms: 2.1.3 @@ -6324,34 +6528,34 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-config-prettier@10.1.8(eslint@9.39.4): + eslint-config-prettier@10.1.8(eslint@9.39.4(jiti@2.6.1)): dependencies: - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) - eslint-plugin-prettier@5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4))(eslint@9.39.4)(prettier@3.8.2): + eslint-plugin-prettier@5.5.5(@types/eslint@9.6.1)(eslint-config-prettier@10.1.8(eslint@9.39.4(jiti@2.6.1)))(eslint@9.39.4(jiti@2.6.1))(prettier@3.8.2): dependencies: - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) prettier: 3.8.2 prettier-linter-helpers: 1.0.1 synckit: 0.11.12 optionalDependencies: '@types/eslint': 9.6.1 - eslint-config-prettier: 10.1.8(eslint@9.39.4) + eslint-config-prettier: 10.1.8(eslint@9.39.4(jiti@2.6.1)) - eslint-plugin-react-hooks@7.0.1(eslint@9.39.4): + eslint-plugin-react-hooks@7.0.1(eslint@9.39.4(jiti@2.6.1)): dependencies: '@babel/core': 7.29.0 '@babel/parser': 7.29.2 - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) hermes-parser: 0.25.1 zod: 4.3.6 zod-validation-error: 4.0.2(zod@4.3.6) transitivePeerDependencies: - supports-color - eslint-plugin-react-refresh@0.5.2(eslint@9.39.4): + eslint-plugin-react-refresh@0.5.2(eslint@9.39.4(jiti@2.6.1)): dependencies: - eslint: 9.39.4 + eslint: 9.39.4(jiti@2.6.1) eslint-scope@5.1.1: dependencies: @@ -6369,9 +6573,9 @@ snapshots: eslint-visitor-keys@5.0.1: {} - eslint@9.39.4: + eslint@9.39.4(jiti@2.6.1): dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4) + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4(jiti@2.6.1)) '@eslint-community/regexpp': 4.12.2 '@eslint/config-array': 0.21.2 '@eslint/config-helpers': 0.4.2 @@ -6405,6 +6609,8 @@ snapshots: minimatch: 3.1.5 natural-compare: 1.4.0 optionator: 0.9.4 + optionalDependencies: + jiti: 2.6.1 transitivePeerDependencies: - supports-color @@ -7136,6 +7342,8 @@ snapshots: - supports-color - ts-node + jiti@2.6.1: {} + js-tokens@4.0.0: {} js-yaml@3.14.2: @@ -7268,6 +7476,10 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + make-dir@4.0.0: dependencies: semver: 7.7.4 @@ -7569,6 +7781,14 @@ snapshots: react-is@18.3.1: {} + react-router@7.14.0(react-dom@19.2.5(react@19.2.5))(react@19.2.5): + dependencies: + cookie: 1.1.1 + react: 19.2.5 + set-cookie-parser: 2.7.2 + optionalDependencies: + react-dom: 19.2.5(react@19.2.5) + react@19.2.5: {} readable-stream@3.6.2: @@ -7685,6 +7905,8 @@ snapshots: transitivePeerDependencies: - supports-color + set-cookie-parser@2.7.2: {} + setprototypeof@1.2.0: {} shebang-command@2.0.0: @@ -7844,6 +8066,8 @@ snapshots: dependencies: '@pkgr/core': 0.2.9 + tailwindcss@4.2.2: {} + tapable@2.3.2: {} temporal-polyfill@0.3.2: @@ -7992,24 +8216,24 @@ snapshots: typedarray@0.0.6: {} - typescript-eslint@8.58.1(eslint@9.39.4)(typescript@5.9.3): + typescript-eslint@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3): dependencies: - '@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@5.9.3) + '@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) '@typescript-eslint/typescript-estree': 8.58.1(typescript@5.9.3) - '@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@5.9.3) - eslint: 9.39.4 + '@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@5.9.3) + eslint: 9.39.4(jiti@2.6.1) typescript: 5.9.3 transitivePeerDependencies: - supports-color - typescript-eslint@8.58.1(eslint@9.39.4)(typescript@6.0.2): + typescript-eslint@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4)(typescript@6.0.2))(eslint@9.39.4)(typescript@6.0.2) - '@typescript-eslint/parser': 8.58.1(eslint@9.39.4)(typescript@6.0.2) + '@typescript-eslint/eslint-plugin': 8.58.1(@typescript-eslint/parser@8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2))(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) + '@typescript-eslint/parser': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) '@typescript-eslint/typescript-estree': 8.58.1(typescript@6.0.2) - '@typescript-eslint/utils': 8.58.1(eslint@9.39.4)(typescript@6.0.2) - eslint: 9.39.4 + '@typescript-eslint/utils': 8.58.1(eslint@9.39.4(jiti@2.6.1))(typescript@6.0.2) + eslint: 9.39.4(jiti@2.6.1) typescript: 6.0.2 transitivePeerDependencies: - supports-color @@ -8079,7 +8303,7 @@ snapshots: vary@1.1.2: {} - vite@8.0.8(@types/node@24.12.2)(terser@5.46.1): + vite@8.0.8(@types/node@24.12.2)(jiti@2.6.1)(terser@5.46.1): dependencies: lightningcss: 1.32.0 picomatch: 4.0.4 @@ -8089,6 +8313,7 @@ snapshots: optionalDependencies: '@types/node': 24.12.2 fsevents: 2.3.3 + jiti: 2.6.1 terser: 5.46.1 walker@1.0.8: