From 7b4be2f1e290b068b0933c5b7a56d07e56ffc2b1 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Wed, 29 Sep 2021 22:49:39 +0200 Subject: [PATCH] Modals, settings --- package.json | 1 + src/App.svelte | 71 ++++- src/components/Header.svelte | 8 +- src/components/Modals/BaseModal.svelte | 58 ++++ src/components/Modals/SettingsModal.svelte | 76 +++++ src/components/Wrapper.svelte | 43 +-- src/shark/Log.ts | 9 +- src/shark/Settings.ts | 337 ++------------------- src/shark/SharkGame.ts | 10 +- src/styles/shark-styles.scss | 18 +- src/styles/themes.scss | 28 +- yarn.lock | 5 + 12 files changed, 308 insertions(+), 356 deletions(-) create mode 100644 src/components/Modals/BaseModal.svelte create mode 100644 src/components/Modals/SettingsModal.svelte diff --git a/package.json b/package.json index 6b98ec1..8ed70fe 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "sirv-cli": "^1.0.0", "svelte": "^3.0.0", "svelte-check": "^2.0.0", + "svelte-modals": "^1.0.4", "svelte-preprocess": "^4.0.0", "tslib": "^2.0.0", "typescript": "^4.0.0" diff --git a/src/App.svelte b/src/App.svelte index d8ad76a..16eecd7 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,12 +1,81 @@ + + -
+ + + +