From 482abf144cadedfd370872978549e27187fd9965 Mon Sep 17 00:00:00 2001 From: sebastianjnuwu Date: Wed, 15 Jan 2025 15:55:18 -0300 Subject: [PATCH] feat(version): v1.0.1 - add room public --- server/src/main.ts | 3 +- www/index.html | 51 +++++++++---- www/main.ts | 3 +- www/public/favicon.ico | Bin 0 -> 891580 bytes www/src/locales/lang/en-US.ts | 1 + www/src/locales/lang/es-ES.ts | 57 -------------- www/src/locales/lang/pt-BR.ts | 5 +- www/src/locales/main.ts | 7 -- www/src/styles/css/ui.css | 132 +-------------------------------- www/src/styles/scss/modal.scss | 131 ++++++++++++++++++++++++++++++++ www/src/ts/game.ts | 10 ++- www/src/ts/main.ts | 6 +- 12 files changed, 188 insertions(+), 218 deletions(-) create mode 100755 www/public/favicon.ico delete mode 100644 www/src/locales/lang/es-ES.ts create mode 100644 www/src/styles/scss/modal.scss diff --git a/server/src/main.ts b/server/src/main.ts index 19ed187..0922a85 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -73,7 +73,7 @@ io.on("connection", (socket: Socket) => { * Handles player joining or creating a room. * @param data - The data for creating or joining a room. */ - socket.on("room", ({ room_code, room_time, room_player }: RoomData) => { + socket.on("room", ({ room_public, room_code, room_time, room_player }: RoomData) => { if (!room_code) { room_code = generateCode(); ROOMS[room_code] = { @@ -81,6 +81,7 @@ io.on("connection", (socket: Socket) => { date: new Date(), players: [], owner: room_player, + public: room_public, time: room_time || 11, state: "waiting", }; diff --git a/www/index.html b/www/index.html index c5bcd98..c029753 100644 --- a/www/index.html +++ b/www/index.html @@ -19,26 +19,26 @@ - + - + - + - - + +