mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
Remove comments
This commit is contained in:
@@ -38,7 +38,6 @@ const Manager = {
|
|||||||
io.to(player.id).emit("game:kick")
|
io.to(player.id).emit("game:kick")
|
||||||
io.to(game.manager).emit("manager:playerKicked", player.id)
|
io.to(game.manager).emit("manager:playerKicked", player.id)
|
||||||
|
|
||||||
// Emit updated total players to all clients in the room
|
|
||||||
io.to(game.room).emit("game:totalPlayers", game.players.length)
|
io.to(game.room).emit("game:totalPlayers", game.players.length)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ const Player = {
|
|||||||
data: { text: "Waiting for the players to answer" },
|
data: { text: "Waiting for the players to answer" },
|
||||||
})
|
})
|
||||||
socket.to(game.room).emit("game:playerAnswer", game.playersAnswer.length)
|
socket.to(game.room).emit("game:playerAnswer", game.playersAnswer.length)
|
||||||
// Also emit total players to keep the UI updated
|
|
||||||
io.to(game.room).emit("game:totalPlayers", game.players.length)
|
io.to(game.room).emit("game:totalPlayers", game.players.length)
|
||||||
|
|
||||||
if (game.playersAnswer.length === game.players.length) {
|
if (game.playersAnswer.length === game.players.length) {
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
|
||||||
module.exports = {
|
|
||||||
content: [
|
|
||||||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
||||||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
||||||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
||||||
],
|
|
||||||
theme: {
|
|
||||||
extend: {
|
|
||||||
colors: {
|
|
||||||
primary: "#ff9900",
|
|
||||||
secondary: "#1a140b",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
safelist: ["grid-cols-4", "grid-cols-3", "grid-cols-2", {
|
|
||||||
pattern: /bg-(red|blue|yellow|green)/}],
|
|
||||||
plugins: [],
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user