diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-10-30 14:37:38 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-10-30 16:23:35 +0100 |
commit | 00d31df58d0ea68b11600d98ebf53150a2a0cb88 (patch) | |
tree | 523abfde1b55f4a808095a440b88376a63e8d6f3 /web/pw-server/src/lib/components/matches/BotMatchList.svelte | |
parent | 67c8a2780c92d247b7343b2107f3d69fc9763797 (diff) | |
download | planetwars.dev-00d31df58d0ea68b11600d98ebf53150a2a0cb88.tar.xz planetwars.dev-00d31df58d0ea68b11600d98ebf53150a2a0cb88.zip |
design new BotMatch view
Diffstat (limited to 'web/pw-server/src/lib/components/matches/BotMatchList.svelte')
-rw-r--r-- | web/pw-server/src/lib/components/matches/BotMatchList.svelte | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/web/pw-server/src/lib/components/matches/BotMatchList.svelte b/web/pw-server/src/lib/components/matches/BotMatchList.svelte new file mode 100644 index 0000000..959cd07 --- /dev/null +++ b/web/pw-server/src/lib/components/matches/BotMatchList.svelte @@ -0,0 +1,19 @@ +<script lang="ts"> + import type { BotMatch } from "$lib/matches"; + import BotMatchCard from "./BotMatchCard.svelte"; + + export let botMatches: BotMatch[]; + + function match_url(match: object) { + return `/matches/${match["id"]}`; + } +</script> + +<div> + {#each botMatches as botMatch} + <BotMatchCard {botMatch} /> + {/each} +</div> + +<style lang="scss"> +</style> |