From b0530be5010494f2db3deded340c16a6dc3cbe56 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 12 Nov 2022 12:51:58 +0100 Subject: collapse PlayerLog entries --- .../src/lib/components/log_viewer/PlayerLog.svelte | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 web/pw-server/src/lib/components/log_viewer/PlayerLog.svelte (limited to 'web/pw-server/src/lib/components/log_viewer/PlayerLog.svelte') diff --git a/web/pw-server/src/lib/components/log_viewer/PlayerLog.svelte b/web/pw-server/src/lib/components/log_viewer/PlayerLog.svelte new file mode 100644 index 0000000..450fdf2 --- /dev/null +++ b/web/pw-server/src/lib/components/log_viewer/PlayerLog.svelte @@ -0,0 +1,39 @@ + + +
+ {#if showRawStderr} +
+ {playerLog.flatMap((turn) => turn.stderr).join("\n")} +
+ {:else} + + {#key playerId} +
+ {#each playerLog as logTurn, turnNum} + + {/each} +
+ {/key} + {/if} +
+ + -- cgit v1.2.3