From a70689faa93961a1e9a8c35d7e5cd90686112173 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Fri, 16 Sep 2022 23:28:32 +0200 Subject: introduce turn-based log parser --- web/pw-server/src/lib/components/OutputPane.svelte | 38 ++++++++-------------- .../src/lib/components/log_viewer/LogTurn.svelte | 0 2 files changed, 14 insertions(+), 24 deletions(-) create mode 100644 web/pw-server/src/lib/components/log_viewer/LogTurn.svelte (limited to 'web/pw-server/src/lib/components') diff --git a/web/pw-server/src/lib/components/OutputPane.svelte b/web/pw-server/src/lib/components/OutputPane.svelte index 4123902..759fd4c 100644 --- a/web/pw-server/src/lib/components/OutputPane.svelte +++ b/web/pw-server/src/lib/components/OutputPane.svelte @@ -1,34 +1,21 @@
- {#if botStdErr.length > 0} -

stderr:

-
- {botStdErr} -
- {/if} +

Player log

+
+ {playerLog.flatMap((turn) => turn.stderr).join("\n")} +