fix link to chickendinner

This commit is contained in:
2025-07-13 14:53:38 +10:00
parent 616e0d6c6c
commit b7fcfbf5cd
5 changed files with 298 additions and 289 deletions

View File

@ -67,6 +67,10 @@ function getChickenDinnerUrl(asset: Asset, player: PlayerResponse['data'][0]) {
return `https://chickendinner.gg/${url}?follow=${player.attributes.name}`;
}
function getChickenDinnerUrlv2(matchId: string, player: PlayerResponse['data'][0]) {
return `https://chickendinner.gg/${matchId}/${player.attributes.name}`;
}
function getRank(match: MatchResponse, playerId: string) {
for (const player of match.included) {
if (player.type === 'participant' && player.attributes.stats.playerId === playerId) {
@ -118,7 +122,7 @@ li a { padding: 0 5px; }
<li>Links:
<a href={`/match/${match.id}`}>Raw</a>
<a href={`https://pubglookup.com/players/steam/${player.attributes.name.toLowerCase()}/matches/${match.id}`}>PUBGLookup</a>
<a href={getChickenDinnerUrl(telemetry, player)}>map replay</a>
<a href={getChickenDinnerUrlv2(match.id, player)}>map replay</a>
</li>
</ul>
</div>