From f91f7ea7ed7f99b3d181009baef5ec22eef155ea Mon Sep 17 00:00:00 2001 From: Tim van Veenendaal Date: Wed, 21 Jul 2021 14:30:38 +0200 Subject: [PATCH] Improve ui overview and abstract certain components --- src/App.vue | 6 +- src/components/Round.vue | 29 ++++++ src/objects/objects.ts | 3 +- src/views/Home.vue | 217 ++++++++++++++++++++++----------------- 4 files changed, 153 insertions(+), 102 deletions(-) create mode 100644 src/components/Round.vue diff --git a/src/App.vue b/src/App.vue index 2695df9..dabad03 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,11 +5,7 @@
- - - - - +
diff --git a/src/components/Round.vue b/src/components/Round.vue new file mode 100644 index 0000000..f1d8d4c --- /dev/null +++ b/src/components/Round.vue @@ -0,0 +1,29 @@ + + + diff --git a/src/objects/objects.ts b/src/objects/objects.ts index 6befff2..e8bf646 100644 --- a/src/objects/objects.ts +++ b/src/objects/objects.ts @@ -23,11 +23,12 @@ export interface JoinCreateGameObject extends ApiObject { export interface IsStartedObject extends ApiObject { started: boolean, + gameState: GameStateObject, } export interface MyTurnObject extends ApiObject { - gameState: GameStateObject, turn: boolean, + gameState: GameStateObject, } export interface GameStateObject { diff --git a/src/views/Home.vue b/src/views/Home.vue index ddc9ccc..cc352cf 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,100 +1,115 @@