From be79935bca607c53f2be95e1f7435f90dba0f03e Mon Sep 17 00:00:00 2001 From: Zutatensuppe Date: Thu, 13 May 2021 16:23:05 +0200 Subject: [PATCH] use vue 3, prepare split new game and index view --- public/components/NewGameDialog.vue.js | 2 +- public/index.html | 5 +++-- public/views/Index.vue.js | 28 ++++++++++++++++---------- templates/game.html.twig | 2 +- templates/replay.html.twig | 2 +- 5 files changed, 23 insertions(+), 16 deletions(-) diff --git a/public/components/NewGameDialog.vue.js b/public/components/NewGameDialog.vue.js index 3eb6040..9b7f3ec 100644 --- a/public/components/NewGameDialog.vue.js +++ b/public/components/NewGameDialog.vue.js @@ -42,7 +42,7 @@ export default { - + diff --git a/public/index.html b/public/index.html index 2dc4d18..f145b55 100644 --- a/public/index.html +++ b/public/index.html @@ -1,14 +1,15 @@ - + 🧩 jigsaw.hyottoko.club
diff --git a/public/views/Index.vue.js b/public/views/Index.vue.js index 3999d93..cf7e7ac 100644 --- a/public/views/Index.vue.js +++ b/public/views/Index.vue.js @@ -9,28 +9,34 @@ export default { GameTeaser, NewGameDialog, }, + // TODO: use vue router template: `
- New game - +
  • Home
  • +
  • New game
  • + + + -

    Running games

    -
    - -
    +
    +

    Running games

    +
    + +
    -

    Finished games

    -
    - +

    Finished games

    +
    + +
    `, data() { return { - showNewGameDialog: false, + view: 'index', gamesRunning: [], gamesFinished: [], diff --git a/templates/game.html.twig b/templates/game.html.twig index 1e948fd..b4b58f7 100644 --- a/templates/game.html.twig +++ b/templates/game.html.twig @@ -1,7 +1,7 @@ - +