From 416585e0da59409840cea615783002b2536d9ab5 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Tue, 28 Sep 2021 14:17:51 +0200 Subject: [PATCH] Fix some styling & layout things and use events instead of imports - No component should import SharkGame except App.svelte, except *as a type* - use props instead - Add events for Log - Make tab not use name but the actual tab instead --- src/App.svelte | 4 +-- src/components/Footer.svelte | 5 --- src/components/Game.svelte | 16 --------- src/components/Header.svelte | 22 +++---------- src/components/Log.svelte | 28 +++++++++++----- src/components/TabSelector.svelte | 19 ++++------- src/components/Tabs/Home.svelte | 21 ++++++++---- src/components/Tabs/Lab.svelte | 55 +++++++++++++++++++++++++++++++ src/components/Wrapper.svelte | 51 ++++++++++++++++++++++------ src/shark/Message.ts | 3 ++ src/shark/Tabs.ts | 5 +-- src/shark/data/HomeActions.ts | 19 ++++++++--- src/styles/global.scss | 8 ++++- 13 files changed, 170 insertions(+), 86 deletions(-) delete mode 100644 src/components/Game.svelte diff --git a/src/App.svelte b/src/App.svelte index 9b60685..d8ad76a 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -7,6 +7,6 @@ SharkGame.init(); -
- +
+