- |
+ |
{index + 1}
|
@@ -238,31 +238,31 @@ function LeaderboardTable({
loading="lazy"
/>
-
+
{row.summonerName}
|
-
+ |
{row.winRate}%
|
-
+ |
{row.games}
|
-
+ |
{row.kda}
|
-
+ |
{row.avgGoldPerMin}
|
-
+ |
{row.avgKillParticipation}%
|
-
+ |
{row.avgCsPerMin}
|
-
+
{row.topChampions.map((champion) => (
-
+
Community Records
@@ -337,7 +337,7 @@ export default function CommunityInternalStatsPage() {
-
+
시즌
{season?.label ?? '현재 시즌'}
@@ -356,7 +356,7 @@ export default function CommunityInternalStatsPage() {
최근 내전
-
+
블루 승률 {insightsQuery.data?.sideWinRate.blue ?? 0}% · 레드 승률{' '}
{insightsQuery.data?.sideWinRate.red ?? 0}%
@@ -392,7 +392,7 @@ export default function CommunityInternalStatsPage() {
선수 순위
-
+
포지션은 Riot Match의 라인 정보를 기준으로 합니다.
diff --git a/apps/web/src/pages/HomePage.tsx b/apps/web/src/pages/HomePage.tsx
index 6f0723aa..c59ee301 100644
--- a/apps/web/src/pages/HomePage.tsx
+++ b/apps/web/src/pages/HomePage.tsx
@@ -75,7 +75,7 @@ function HistoryTableColGroup() {
function HistoryTableHeader() {
return (
-
+
| 날짜 |
내전 |
상태 |
@@ -118,12 +118,12 @@ function HistoryRecordsSkeleton({ rows = 5 }: { rows?: number }) {
-
+
팀빌딩
|
-
+
소환사의 협곡
|
@@ -249,7 +249,7 @@ function StatusBadge({ status }: { status: string }) {
return (
{status}
@@ -258,7 +258,7 @@ function StatusBadge({ status }: { status: string }) {
function MapBadge({ map }: { map: string }) {
return (
-
+
{map}
);
@@ -302,7 +302,7 @@ function HistoryMetaText({
result?: string;
}) {
return (
-
+
{map}
·
{participants}명
@@ -487,7 +487,7 @@ export default function HomePage() {
{nextMatch.date} {nextMatch.time}
|
-
+
{nextMatch.participants.length}/{nextMatch.maxParticipants}명
|
@@ -495,7 +495,7 @@ export default function HomePage() {
-
+
상세 보기
@@ -634,7 +634,7 @@ export default function HomePage() {
>
-
+
{match.compactDateTime ||
`${match.date} ${match.time}`}
diff --git a/apps/web/src/pages/InternalMatchDetailPage.tsx b/apps/web/src/pages/InternalMatchDetailPage.tsx
index 7797796b..c9ec6298 100644
--- a/apps/web/src/pages/InternalMatchDetailPage.tsx
+++ b/apps/web/src/pages/InternalMatchDetailPage.tsx
@@ -1,24 +1,32 @@
-import { Link, useLocation, useParams } from 'react-router';
-import { useDdragonManifest, useInternalMatchDetail } from '../api/hooks';
-import type { ApiInternalMatchDetailResponse, TeamSide } from '../api/types';
-import { DEFAULT_COMMUNITY_ID } from '../config';
-import { championDisplayName, championIconUrl, itemIconUrl } from '../lib/ddragon';
-import { sideShortLabel, teamIndexColorClasses, teamIndexLabel } from '../lib/league';
-import { LANE_LABELS } from '../lib/riot-history';
+import { Link, useLocation, useParams } from "react-router";
+import { useDdragonManifest, useInternalMatchDetail } from "../api/hooks";
+import type { ApiInternalMatchDetailResponse, TeamSide } from "../api/types";
+import { DEFAULT_COMMUNITY_ID } from "../config";
+import {
+ championDisplayName,
+ championIconUrl,
+ itemIconUrl,
+} from "../lib/ddragon";
+import {
+ sideShortLabel,
+ teamIndexColorClasses,
+ teamIndexLabel,
+} from "../lib/league";
+import { LANE_LABELS } from "../lib/riot-history";
function formatDateTime(value: string | number) {
- return new Intl.DateTimeFormat('ko-KR', {
- month: 'long',
- day: 'numeric',
- hour: '2-digit',
- minute: '2-digit',
+ return new Intl.DateTimeFormat("ko-KR", {
+ month: "long",
+ day: "numeric",
+ hour: "2-digit",
+ minute: "2-digit",
}).format(new Date(value));
}
function formatDuration(seconds: number) {
const minutes = Math.floor(seconds / 60);
const rest = seconds % 60;
- return `${minutes}:${String(rest).padStart(2, '0')}`;
+ return `${minutes}:${String(rest).padStart(2, "0")}`;
}
function sideLabel(side: TeamSide) {
@@ -26,7 +34,9 @@ function sideLabel(side: TeamSide) {
}
function sideClass(side: TeamSide) {
- return side === 'blue' ? 'text-blue-400 border-blue-500/20' : 'text-red-400 border-red-500/20';
+ return side === "blue"
+ ? "text-blue-400 border-blue-500/20"
+ : "text-red-400 border-red-500/20";
}
function ChampionCell({
@@ -34,16 +44,18 @@ function ChampionCell({
manifest,
}: {
championId: number;
- manifest: ReturnType ['data'];
+ manifest: ReturnType["data"];
}) {
const icon = championIconUrl(manifest, championId);
const name = championDisplayName(manifest, championId) ?? String(championId);
return (
- {icon ? : null}
+ {icon ? (
+
+ ) : null}
- {name}
+ {name}
);
}
@@ -55,7 +67,7 @@ function ItemStrip({
}: {
items: number[];
trinket: number;
- manifest: ReturnType['data'];
+ manifest: ReturnType["data"];
}) {
return (
@@ -66,7 +78,9 @@ function ItemStrip({
key={`${itemId}-${index}`}
className="w-5 h-5 bg-base-content/10 border border-base-content/5 overflow-hidden"
>
- {icon ?  : null}
+ {icon ? (
+ 
+ ) : null}
);
})}
@@ -78,8 +92,8 @@ function GamePanel({
game,
manifest,
}: {
- game: ApiInternalMatchDetailResponse['games'][number];
- manifest: ReturnType ['data'];
+ game: ApiInternalMatchDetailResponse["games"][number];
+ manifest: ReturnType["data"];
}) {
const location = useLocation();
const historyBackTo = `${location.pathname}${location.search}${location.hash}`;
@@ -91,8 +105,9 @@ function GamePanel({
{game.gameNumber}경기
-
- {formatDateTime(game.gameCreation)} · {formatDuration(game.gameDuration)} ·{' '}
+
+ {formatDateTime(game.gameCreation)} ·{" "}
+ {formatDuration(game.gameDuration)} ·{" "}
{game.riotMatchId}
@@ -100,27 +115,33 @@ function GamePanel({
{game.teams.map((team) => (
- {teamIndexLabel(team.teamIndex)} ({sideLabel(team.side)}){' '}
- {team.win ? '승' : '패'}
+ {teamIndexLabel(team.teamIndex)} ({sideLabel(team.side)}){" "}
+ {team.win ? "승" : "패"}
))}
{game.teams.map((team) => (
-
-
- {teamIndexLabel(team.teamIndex)} ({sideLabel(team.side)}) · 바론 {team.objectives.baron} · 드래곤{' '}
- {team.objectives.dragon} · 타워 {team.objectives.tower}
+
+
+ {teamIndexLabel(team.teamIndex)} ({sideLabel(team.side)}) · 바론{" "}
+ {team.objectives.baron} · 드래곤 {team.objectives.dragon} · 타워{" "}
+ {team.objectives.tower}
-
+
| 소환사 |
챔피언 |
포지션 |
@@ -143,39 +164,44 @@ function GamePanel({
{participant.summonerName}
) : (
-
+
{participant.summonerName}
)}
-
+
|
-
- {LANE_LABELS[participant.teamPosition] ?? participant.teamPosition ?? '-'}
+ |
+ {LANE_LABELS[participant.teamPosition] ??
+ participant.teamPosition ??
+ "-"}
|
-
+ |
{participant.kills}
/
{participant.deaths}
/
{participant.assists}
|
-
+ |
{participant.cs} ({participant.csPerMin}/m)
|
-
+ |
{participant.gpm}
|
-
+ |
{participant.killParticipation}%
|
-
+ |
{participant.damageShare}%
|
@@ -248,21 +274,38 @@ export default function InternalMatchDetailPage() {
{detail.match.title}
- {formatDateTime(detail.match.scheduledAt)} · {detail.match.gameCount}전제
+ {formatDateTime(detail.match.scheduledAt)} ·{" "}
+ {detail.match.gameCount}전제
{primarySeries && (
-
- {primarySeries.teamAWins}
-
+
+
+ {primarySeries.teamAWins}
+
+
{teamName(primarySeries.teamAIndex)}
VS
-
- {primarySeries.teamBWins}
-
+
+
+ {primarySeries.teamBWins}
+
+
{teamName(primarySeries.teamBIndex)}
diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx
index dae36414..02885f87 100644
--- a/apps/web/src/pages/MatchDetailPage.tsx
+++ b/apps/web/src/pages/MatchDetailPage.tsx
@@ -25,7 +25,6 @@ import { apiFetch, ApiError } from "../lib/api";
import { profileIconUrl } from "../lib/ddragon";
import {
POSITION_ORDER,
- positionIcon,
positionLabel,
sideShortLabel,
teamIndexColorClasses,
@@ -156,25 +155,6 @@ function buildCaptainSlots(
}));
}
-function PosBadge({ pos, sub }: { pos: Position; sub?: boolean }) {
- return (
-
-
- {positionLabel[pos]}
-
- );
-}
-
function tierByQueue(tiers: ApiTierInfo[], queueType: string) {
return tiers.find((tier) => tier.queueType === queueType);
}
@@ -187,8 +167,10 @@ function QueueRankCell({
tier?: ApiTierInfo;
}) {
return (
-
- {label}
+
+
+ {label}
+
);
@@ -202,17 +184,17 @@ function PreferredPositionText({
subPosition: Position;
}) {
return (
-
- 주 {positionLabel[mainPosition]}
+
+ {positionLabel[mainPosition]}
/
- 부 {positionLabel[subPosition]}
+ {positionLabel[subPosition]}
);
}
function SoloRankPrefix({ tier }: { tier?: ApiTierInfo }) {
return (
-
+
{/* SOLO */}
@@ -233,7 +215,7 @@ function TierCell({ participant }: { participant: ParticipantView }) {
const flexTier = tierByQueue(tiers, "RANKED_FLEX_SR");
return (
-
+
@@ -305,7 +287,7 @@ function PositionSelect({
value={value}
disabled={disabled}
onChange={(event) => onChange(event.target.value as Position)}
- className={`h-7 w-16 border bg-base-100 pl-1.5 pr-1 text-[11px] font-medium focus:border-primary/30 focus:outline-none disabled:opacity-50 ${
+ className={`h-7 w-16 border bg-base-100 pl-1.5 pr-1 text-xs font-medium focus:border-primary/30 focus:outline-none disabled:opacity-50 ${
sub
? "border-base-content/10 text-base-content/45"
: "border-primary/20 text-primary"
@@ -357,7 +339,7 @@ function ParticipantRow({
- |
+ |
{index + 1}
|
@@ -375,13 +357,13 @@ function ParticipantRow({
/>
-
+
{participant.summonerName}
-
+
#{participant.tag}
{participant.excluded && (
-
+
제외
)}
@@ -402,19 +384,20 @@ function ParticipantRow({
) : admin ? (
<>
-
- |
-
-
+
+
+ /
+
+
|
{confirmingRemove ? (
@@ -423,14 +406,14 @@ function ParticipantRow({
type="button"
disabled={admin.isRemoving}
onClick={() => admin.onRemove(participant.userId)}
- className="text-[10px] font-bold text-red-400 hover:text-red-300 disabled:opacity-50"
+ className="text-xs font-bold text-red-400 hover:text-red-300 disabled:opacity-50"
>
{admin.isRemoving ? "제외 중..." : "확인"}
@@ -462,14 +445,12 @@ function ParticipantRow({
|
>
) : (
- <>
-
-
- |
-
-
- |
- >
+
+
+ |
)}
|
);
@@ -500,13 +481,13 @@ function TeamParticipantMobileRow({
/>
-
+
{participant.summonerName}
-
+
#{participant.tag}
{participant.excluded && (
-
+
제외
)}
@@ -603,14 +584,14 @@ function ParticipantTable({
return (
-
+
참가자 ({participants.length}/{maxParticipants})
@@ -621,7 +602,7 @@ function ParticipantTable({
| |