From 8feccfeb234b69b1069d6b972f13b77ee2c0459f Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Sat, 15 Oct 2022 20:23:20 +0200
Subject: show player logs on view match page

---
 web/pw-server/src/lib/components/Visualizer.svelte | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

(limited to 'web/pw-server/src/lib/components/Visualizer.svelte')

diff --git a/web/pw-server/src/lib/components/Visualizer.svelte b/web/pw-server/src/lib/components/Visualizer.svelte
index 8517a39..4fe8ab4 100644
--- a/web/pw-server/src/lib/components/Visualizer.svelte
+++ b/web/pw-server/src/lib/components/Visualizer.svelte
@@ -2,24 +2,13 @@
   import { onDestroy, onMount } from "svelte";
   import * as visualizer from "pw-visualizer";
   import init_wasm_module from "planetwars-rs";
+  import { PLAYER_COLORS } from "$lib/constants";
 
   export let matchLog = null;
   export let matchData: object; // match object as returned by api
 
   let initialized = false;
 
-  const PLAYER_COLORS = [
-    "#ff8000",
-    "#0080ff",
-    "#ff6693",
-    "#3fcb55",
-    "#cbc33f",
-    "#cf40e9",
-    "#ff3f0d",
-    "#1beef0",
-    "#0dc5ff",
-  ];
-
   onMount(async () => {
     await init_wasm_module();
 
-- 
cgit v1.2.3

