From 211ec5940cf7ccded1aa6b12bbac394f6d5951b4 Mon Sep 17 00:00:00 2001 From: Bartosz Putek Date: Tue, 24 Sep 2024 22:54:11 +0200 Subject: [PATCH] feature: Create GameState model --- svelte/.prettierrc | 6 +-- svelte/src/lib/components/Card.svelte | 14 +++---- svelte/src/lib/components/CardIcon.svelte | 19 ++++++++- svelte/src/lib/components/Player.svelte | 28 +++++++++---- svelte/src/lib/models/GameState.ts | 34 +++++++++++++++ svelte/src/lib/stores/cardIconStore.ts | 14 +++++++ svelte/src/lib/types.ts | 4 ++ svelte/src/routes/+page.svelte | 50 ++++++++++++++++++++--- svelte/src/styles.css | 10 ++--- svelte/test-results/.last-run.json | 6 +-- 10 files changed, 151 insertions(+), 34 deletions(-) create mode 100644 svelte/src/lib/models/GameState.ts create mode 100644 svelte/src/lib/stores/cardIconStore.ts create mode 100644 svelte/src/lib/types.ts diff --git a/svelte/.prettierrc b/svelte/.prettierrc index 6ed0b90..3f7802c 100644 --- a/svelte/.prettierrc +++ b/svelte/.prettierrc @@ -3,9 +3,7 @@ "singleQuote": true, "trailingComma": "none", "printWidth": 100, - "plugins": [ - "prettier-plugin-svelte" - ], + "plugins": ["prettier-plugin-svelte"], "overrides": [ { "files": "*.svelte", @@ -14,4 +12,4 @@ } } ] -} \ No newline at end of file +} diff --git a/svelte/src/lib/components/Card.svelte b/svelte/src/lib/components/Card.svelte index dffa7c8..c6316a8 100644 --- a/svelte/src/lib/components/Card.svelte +++ b/svelte/src/lib/components/Card.svelte @@ -1,7 +1,10 @@ -