From 0ab7d204f262b183938f105e288dd67a1cec1ea2 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 24 Nov 2024 23:00:44 +0100 Subject: [PATCH] Fix Build --- src/components/FightTable.svelte | 42 +++++++++++++++++--------------- src/components/GroupTable.svelte | 28 ++++++++++++--------- 2 files changed, 39 insertions(+), 31 deletions(-) diff --git a/src/components/FightTable.svelte b/src/components/FightTable.svelte index 291984a..d95cfe8 100644 --- a/src/components/FightTable.svelte +++ b/src/components/FightTable.svelte @@ -44,27 +44,31 @@
- - {#each Array(rows) as i (i)} - - - - - {/each} - - {#each window(event.fights.filter(f => f.group === group), rows) as fights} - - {#each fights as fight (fight.id)} - - - - + + + {#each Array(rows) as i (i)} + + + + {/each} - {/each} + + + {#each window(event.fights.filter(f => f.group === group), rows) as fights} + + {#each fights as fight (fight.id)} + + + + + {/each} + + {/each} +
{t("announcements.table.time")}{t("announcements.table.blue")}{t("announcements.table.red")}{t("announcements.table.winner")}
{Intl.DateTimeFormat(astroI18n.locale, { - hour: "numeric", - minute: "numeric", - }).format(new Date(fight.start))}{fight.blueTeam.kuerzel}{fight.redTeam.kuerzel}{getWinner(fight)}
{t("announcements.table.time")}{t("announcements.table.blue")}{t("announcements.table.red")}{t("announcements.table.winner")}
{Intl.DateTimeFormat(astroI18n.locale, { + hour: "numeric", + minute: "numeric", + }).format(new Date(fight.start))}{fight.blueTeam.kuerzel}{fight.redTeam.kuerzel}{getWinner(fight)}
diff --git a/src/components/GroupTable.svelte b/src/components/GroupTable.svelte index 275682b..7e878cf 100644 --- a/src/components/GroupTable.svelte +++ b/src/components/GroupTable.svelte @@ -50,20 +50,24 @@
- - {#each Array(rows) as i (i)} - - - {/each} - - {#each window(teamPoints, rows) as teams} - - {#each teams as team (team.team.id)} - - + + + {#each Array(rows) as i (i)} + + {/each} - {/each} + + + {#each window(teamPoints, rows) as teams} + + {#each teams as team (team.team.id)} + + + {/each} + + {/each} +
{t("announcements.table.team")}{t("announcements.table.points")}
{team.team.name}{team.points}
{t("announcements.table.team")}{t("announcements.table.points")}
{team.team.name}{team.points}