From c3e203e9d4290d02587a3e61c6c6f6895d16560b Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 28 Jul 2021 21:14:38 +0200 Subject: [PATCH] Improve history overview --- src/components/Round.vue | 54 +++++++++++++++++++++++++---------- src/components/RoundTurns.vue | 29 +++++++++++++++++++ src/views/Home.vue | 44 ++++++++++++++-------------- 3 files changed, 91 insertions(+), 36 deletions(-) create mode 100644 src/components/RoundTurns.vue diff --git a/src/components/Round.vue b/src/components/Round.vue index f1d8d4c..e751c0e 100644 --- a/src/components/Round.vue +++ b/src/components/Round.vue @@ -1,29 +1,53 @@ + + diff --git a/src/components/RoundTurns.vue b/src/components/RoundTurns.vue new file mode 100644 index 0000000..7a59624 --- /dev/null +++ b/src/components/RoundTurns.vue @@ -0,0 +1,29 @@ + + + diff --git a/src/views/Home.vue b/src/views/Home.vue index cc352cf..7ed25fc 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -74,14 +74,7 @@


@@ -100,16 +93,13 @@
- - - - - + @@ -117,11 +107,23 @@ import {Component, Vue} from 'vue-property-decorator' import PerudoApi from "@/services/PerudoApi"; import Die from "@/components/Die.vue"; -import {ApiObject, GameState, GameStateObject, IsStartedObject, JoinCreateGameObject, MyTurnObject, RoundObject, TurnObject, GameStateState, PlayerObject} from "@/objects/objects"; -import Round from "@/components/Round.vue"; // @ is an alias to /src +import { + ApiObject, + GameState, + GameStateObject, + IsStartedObject, + JoinCreateGameObject, + MyTurnObject, + RoundObject, + TurnObject, + GameStateState, + PlayerObject +} from "@/objects/objects"; +import Round from "@/components/Round.vue"; +import RoundTurns from "@/components/RoundTurns.vue"; @Component({ - components: {Round, Die} + components: {RoundTurns, Round, Die} }) export default class Home extends Vue { private gameState: GameState = GameState.Setup;