From 947ced152e43c148830e2c1fb25b9e10e766b5c8 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Mon, 22 Aug 2022 19:52:44 +0200 Subject: move rules to their own route --- web/pw-server/src/routes/editor.svelte | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'web/pw-server/src/routes/editor.svelte') diff --git a/web/pw-server/src/routes/editor.svelte b/web/pw-server/src/routes/editor.svelte index e85f572..33217d5 100644 --- a/web/pw-server/src/routes/editor.svelte +++ b/web/pw-server/src/routes/editor.svelte @@ -18,7 +18,6 @@ enum ViewMode { Editor, MatchVisualizer, - Rules, } let matches = []; @@ -30,9 +29,6 @@ let editSession: Ace.EditSession; onMount(() => { - if (!hasBotCode()) { - viewMode = ViewMode.Rules; - } init_editor(); }); @@ -118,12 +114,6 @@ viewMode = viewMode_; } - function selectRules() { - selectedMatchId = undefined; - selectedMatchLog = undefined; - viewMode = ViewMode.Rules; - } - function formatMatchTimestamp(timestampString: string): string { let timestamp = DateTime.fromISO(timestampString, { zone: "utc" }).toLocal(); if (timestamp.startOf("day").equals(DateTime.now().startOf("day"))) { @@ -143,14 +133,7 @@ class:selected={viewMode === ViewMode.Editor} on:click={() => setViewMode(ViewMode.Editor)} > - Editor - -