0
0
Fork 0

Add the InGame view to the app

This commit is contained in:
Oliver-Akins 2020-12-10 15:18:54 -07:00
parent d9e7cd6c1b
commit 238c112859

View file

@ -2,6 +2,7 @@
<div id="app" class="maximize"> <div id="app" class="maximize">
<CreateJoin v-if="gameState == `login`" /> <CreateJoin v-if="gameState == `login`" />
<GameLobby v-else-if="gameState == `lobby`" /> <GameLobby v-else-if="gameState == `lobby`" />
<InGame v-else-if="gameState == `in-game`" />
<Attributions /> <Attributions />
</div> </div>
</template> </template>
@ -10,6 +11,7 @@
import AttributionsBar from "./components/Attributions"; import AttributionsBar from "./components/Attributions";
import CreateJoinGame from "./views/CreateJoin"; import CreateJoinGame from "./views/CreateJoin";
import GameLobby from "./views/Lobby"; import GameLobby from "./views/Lobby";
import InGame from "./views/InGame";
export default { export default {
name: `App`, name: `App`,
@ -17,6 +19,7 @@ export default {
"Attributions": AttributionsBar, "Attributions": AttributionsBar,
"CreateJoin": CreateJoinGame, "CreateJoin": CreateJoinGame,
"GameLobby": GameLobby, "GameLobby": GameLobby,
"InGame": InGame,
}, },
computed: { computed: {
gameState() { gameState() {