From 6636920752b00e35b67760a2fadf7fd8df77f7e0 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sun, 21 Jul 2024 22:48:15 -0400 Subject: [PATCH] jsoooonn --- Trunk.toml | 1 - client/src/components/websocket.rs | 29 ++++++++++---------- lib/src/game_master.rs | 16 +++++------ lib/src/models.rs | 44 +++++++++++++++--------------- server/src/api/message_handler.rs | 8 ++++-- server/src/main.rs | 18 ++++++------ 6 files changed, 59 insertions(+), 57 deletions(-) diff --git a/Trunk.toml b/Trunk.toml index 0953a99..4a4aa94 100644 --- a/Trunk.toml +++ b/Trunk.toml @@ -5,7 +5,6 @@ [build] target = "client/index.html" dist = "dist" -release = true minify = "on_release" [serve] diff --git a/client/src/components/websocket.rs b/client/src/components/websocket.rs index 6cde764..4b5846a 100644 --- a/client/src/components/websocket.rs +++ b/client/src/components/websocket.rs @@ -34,7 +34,7 @@ pub fn Websocket() -> impl IntoView { let fake_new_game_request = NewGameRequest { name: String::from("Ligma"), - host: CAHPlayer { + host: Player { name: String::from("Adam"), role: PlayerRole::Host, white: vec![], @@ -50,26 +50,27 @@ pub fn Websocket() -> impl IntoView { // Chat stuff let chat_history_ref = create_node_ref::