From 1136f6d8aa78b3d2d5563dd02a8506c544ba6da0 Mon Sep 17 00:00:00 2001 From: DavidOConnor Date: Sun, 3 Feb 2019 23:21:34 -0500 Subject: [PATCH] Updated for v0.2.5 release --- Cargo.toml | 2 +- index.html | 8 ++++---- serve.py | 3 +-- src/lib.rs | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b6c28c6..343d8c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.2.4" +seed = "^0.2.5" wasm-bindgen = "^0.2.33" web-sys = "^0.3.6" diff --git a/index.html b/index.html index 0291a3c..cde8f71 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,9 @@ - + - + A Title @@ -16,7 +16,7 @@
- + diff --git a/serve.py b/serve.py index 9506a59..545c1b1 100644 --- a/serve.py +++ b/serve.py @@ -13,9 +13,8 @@ class Handler(http.server.SimpleHTTPRequestHandler): def do_GET(self): urlparts = urllib.parse.urlparse(self.path) request_file_path = urlparts.path.strip('/') - if not os.path.exists(request_file_path): - self.path = 'index.html' + self.path = '/' return http.server.SimpleHTTPRequestHandler.do_GET(self) diff --git a/src/lib.rs b/src/lib.rs index e2f2d43..f944081 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,7 @@ fn update(msg: Msg, model: Model) -> Update { fn view(_state: seed::App, model: &Model) -> El { button![ - simple_ev("click", Msg::Increment), + simple_ev(Ev::Click, Msg::Increment), format!("Hello, World × {}", model.val) ] }