diff --git a/backend/index.js b/backend/index.js index e8c3a9f..b1f4638 100644 --- a/backend/index.js +++ b/backend/index.js @@ -313,7 +313,7 @@ const client = new MongoClient(process.env.URI, { useUnifiedTopology: true }); }); emitter.on("end", () => { - res.write(`event: end\n\n`); + res.write(`data: {}\nevent: end\n\n`); res.end(); }) diff --git a/frontend/package.json b/frontend/package.json index f69d1ba..649c861 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -36,6 +36,12 @@ ], "rules": { "vue/multi-word-component-names": 0 + }, + "globals": { + "defineProps": "readonly", + "defineEmits": "readonly", + "defineExpose": "readonly", + "withDefaults": "readonly" } }, "browserslist": [ diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 8a503a6..8acb5fe 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -27,8 +27,10 @@ :root { --clr-bg: #ffd537; + --clr-bg-secondary: #fbf2cf; --clr-accent: #37ffac; --clr-text: #141414; + --clr-text-secondary: rgb(20, 20, 20, .5); } body { diff --git a/frontend/src/components/Countdown.vue b/frontend/src/components/Countdown.vue new file mode 100644 index 0000000..191fb62 --- /dev/null +++ b/frontend/src/components/Countdown.vue @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/views/Game/EndGame.vue b/frontend/src/views/Game/EndGame.vue index 22969a8..052db9a 100644 --- a/frontend/src/views/Game/EndGame.vue +++ b/frontend/src/views/Game/EndGame.vue @@ -1,8 +1,8 @@