~janbaudisch/heron

1177560c54cb0ff41131fef27ece209c84f4f2cc — dependabot-preview[bot] 4 years ago 415b242 + db23c93
Merge pull request #1 from janbaudisch/dependabot/cargo/yew-0.7

3 files changed, 7 insertions(+), 5 deletions(-)

M heron/Cargo.toml
M heron_web/Cargo.toml
M heron_web/src/main.rs
M heron/Cargo.toml => heron/Cargo.toml +1 -1
@@ 10,4 10,4 @@ edition = "2018"
[dependencies]

[dev-dependencies]
yew = "0.6"
yew = "0.7"

M heron_web/Cargo.toml => heron_web/Cargo.toml +1 -1
@@ 10,4 10,4 @@ workspace = ".."

[dependencies]
heron = { path = "../heron" }
yew = "0.6"
yew = "0.7"

M heron_web/src/main.rs => heron_web/src/main.rs +5 -3
@@ 1,3 1,5 @@
#![recursion_limit = "512"]

use heron::heron;
use yew::{html, Component, ComponentLink, Html, Renderable, ShouldRender};



@@ 53,11 55,11 @@ impl Renderable<Model> for Model {
    fn view(&self) -> Html<Self> {
        html! {
            <div>
                <input value=&self.square, oninput=|event| Message::Input(Input::Square, event.value), placeholder="square",></input>
                <input value=&self.square oninput=|event| Message::Input(Input::Square, event.value) placeholder="square"></input>
                <br></br>
                <input value=&self.precision, oninput=|event| Message::Input(Input::Precision, event.value), placeholder="precision",></input>
                <input value=&self.precision oninput=|event| Message::Input(Input::Precision, event.value) placeholder="precision"></input>
                <br></br>
                <button onclick=|_| Message::Calculcate,>{ "calculcate" }</button>
                <button onclick=|_| Message::Calculcate>{ "calculcate" }</button>
                <br></br>
                <p>{ "square root: " }<b>{ &self.root }</b></p>
            </div>