Add the InGame view to the app
This commit is contained in:
parent
d9e7cd6c1b
commit
238c112859
1 changed files with 3 additions and 0 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue