From 3b4d8b3483a25c332dcff3e28737ebd0048f4da3 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 2 Mar 2022 17:51:14 +0900 Subject: [PATCH] Impl additional info text box, drop logic Can place tokens, and not place tokens where there already is a token. Additional info text box added to the side of the board. More information to the UI regarding placed tokens. --- front_end/Cargo.toml | 2 +- front_end/index.html | 20 +- front_end/src/constants.rs | 3 +- front_end/src/state.rs | 89 ++++++++- front_end/src/yew_components.rs | 333 +++++++++++++++++++------------- 5 files changed, 307 insertions(+), 140 deletions(-) diff --git a/front_end/Cargo.toml b/front_end/Cargo.toml index c1e3726..19f0c97 100644 --- a/front_end/Cargo.toml +++ b/front_end/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" yew = "0.19" log = "0.4.6" wasm-logger = "0.2.0" -web-sys = { version = "0.3.56", features = ["HtmlDivElement"] } +web-sys = { version = "0.3.56", features = ["HtmlDivElement", "HtmlButtonElement"] } diff --git a/front_end/index.html b/front_end/index.html index cd908ca..dcb914a 100644 --- a/front_end/index.html +++ b/front_end/index.html @@ -6,7 +6,7 @@