diff --git a/web/package.json b/web/package.json index 05ce415..8b1a24a 100644 --- a/web/package.json +++ b/web/package.json @@ -11,7 +11,6 @@ "type-check": "vue-tsc --noEmit" }, "dependencies": { - "pinia": "^2.0.32", "vue": "^3.2.47", "vue-router": "^4.1.6" }, diff --git a/web/src/components/Empty.vue b/web/src/components/Empty.vue deleted file mode 100644 index d879ed0..0000000 --- a/web/src/components/Empty.vue +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/web/src/components/Quizz.vue b/web/src/components/Quizz.vue new file mode 100644 index 0000000..1ea7993 --- /dev/null +++ b/web/src/components/Quizz.vue @@ -0,0 +1,103 @@ + + + + + + + authorClickHandler(painting.PaintingAuthor[0].author.id)" + type="button" + :disabled="disabled" + > + {{ painting.PaintingAuthor[0].author.fullname }} + + + + + + diff --git a/web/src/stores/store.ts b/web/src/stores/store.ts deleted file mode 100644 index 8723fcf..0000000 --- a/web/src/stores/store.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { defineStore } from "pinia" - -export const useStore = defineStore("store", () => {}) diff --git a/web/src/views/HomeView.vue b/web/src/views/HomeView.vue index 00e0f9d..cabdddc 100644 --- a/web/src/views/HomeView.vue +++ b/web/src/views/HomeView.vue @@ -1,81 +1,101 @@ - - authorClickHandler(painting.PaintingAuthor[0].author.id)" - type="button" - > - {{ painting.PaintingAuthor[0].author.fullname }} - - {{ gameMessage }} - Next + + + Quiz ({{ gameProgression }}/{{ gameProgressionMax }}) + Qui a peint cette oeuvre ? + + gameHandler(winHandler)" + @lose="() => gameHandler(loseHandler)" + :key="gameProgression" + :disabled="gameShouldGoNext" + > + + + + + Vous avez {{ gameScore }}/{{ gameProgressionMax }} bonnes réponses ! + rejouer + +
{{ gameMessage }}
Quiz ({{ gameProgression }}/{{ gameProgressionMax }})
Vous avez {{ gameScore }}/{{ gameProgressionMax }} bonnes réponses !