diff --git a/core/src/event.rs b/core/src/event.rs index e8a4b51..60756ba 100644 --- a/core/src/event.rs +++ b/core/src/event.rs @@ -216,7 +216,7 @@ pub mod team_game { pub ffa_game: FreeForAllGame, } - #[derive(Clone, Debug, PartialEq)] + #[derive(Clone, Debug, PartialEq, Default)] #[cfg_attr(feature = "openapi", derive(JsonSchema))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct TeamGameSpec { @@ -344,7 +344,7 @@ pub mod free_for_all_game { use super::*; - #[derive(Clone, Debug)] + #[derive(Clone, Debug, PartialEq)] #[cfg_attr(feature = "openapi", derive(JsonSchema))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum FreeForAllGameRanking { @@ -385,7 +385,7 @@ pub mod free_for_all_game { vec![-3, -2, -1] } - #[derive(Clone, Debug, PartialEq)] + #[derive(Clone, Debug, PartialEq, Default)] #[cfg_attr(feature = "openapi", derive(JsonSchema))] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct FreeForAllGameSpec { diff --git a/web/Cargo.toml b/web/Cargo.toml index 5bcc4f9..dad1bc1 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] yew = "0.19" yew-router = "0.16" -web-sys = { version = "0.3", features = ["Request", "RequestInit", "RequestMode", "Response", "Headers"] } +web-sys = { version = "0.3", features = ["Request", "RequestInit", "RequestMode", "Response", "Headers", "HtmlSelectElement"] } lan_party_core = { path = "../core", features = ["serde"] } wasm-bindgen = { version = "0.2", features = ["serde-serialize"] } wasm-bindgen-futures = "0.4" diff --git a/web/dist/index.html b/web/dist/index.html index f279540..b091628 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -4,9 +4,9 @@