10 Commits

Author SHA1 Message Date
Michal Kawalec
eb841bb7cf
Conditially require serialize (#1195)
* conditially require serialize

* we're using a trait alias and a clearer implementation of the constraints

* after merging with separated agent

* no trait aliases :(

* specialized the types for Drop a bit

* added an additional constraint on an agent

* emitted with fmt fixes

* dropped the useless debug constraint on the input

* fix stdweb examples

* dropped unneeded debug constraints

* linter
2020-05-12 16:43:21 +08:00
Stig Johan Berggren
d7156eee99
Replace web_logger with wasm-logger in examples (#1181)
* Replace web_logger with wasm-logger in examples

Examples in yew-stdweb should still use web_logger

* Use hyphen in package name
2020-05-03 17:17:44 +08:00
fbucek
528ec66fbc
updated examples, added build script (#1165)
* script for building examples

minimal example updated to work with wasm-pack
minimal_wb exampel to be used with wasm-bindgen directly

* minimal is wasm-bindgen as default ( wp wasm-pack )

* examples updated to work with wasm-bindgen

* script to run all yew/examples

* upated example doc, added script to multi-thread

* cargo fmt, disabled build_examples.sh

* one build.sh for examples, updated doc

* removed build size optimalization

* wasm-pack requirement info in lib.rs

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/readme.md

* Update examples/build.sh

Co-Authored-By: Justin Starry <justin.m.starry@gmail.com>

* Update examples/build.sh exit trap

Co-Authored-By: Justin Starry <justin.m.starry@gmail.com>

Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
2020-04-29 22:57:55 +08:00
Sebastian Zivota
3b669fab70
Make examples compile with wasm-pack (#1124)
Co-authored-by: Sebastian Zivota <sebastian.zivota@mailbox.org>
2020-04-24 16:17:59 +08:00
Justin Starry
fa8a1d9f00
Reorganize examples and general repo layout (#1092)
* Reorganize crates

* Remove symlink

* Check examples

* Cleanup CI scripts

* nits

* cleanup

* cargo fmt

* Fix yew-stdweb

* cargo clippy --all

* stdweb-examples

* run_emscripten_checks.sh

* Fix typo

* fix typo

* yew-stdweb

* Run tests from yew-stdweb

* fix webgl script
2020-04-20 22:22:24 +08:00
Teymour Aldridge
d716dd010a
Added missing Component::change impl for pub_sub example. (#1083) 2020-04-13 20:33:25 +08:00
Thomas Lacroix
a9f299b471
Fix pub_sub example that no longer compiles in 0.13 (#989) 2020-03-12 12:39:41 +08:00
Mathis
753e2d387c
fixed missing feature flag for yew dependency (#1022)
Co-authored-by: Mathis <mk@thepeaklab.com>
2020-03-12 12:36:48 +08:00
Justin Starry
b4d5227e62
Clean up exported apis and doc visibility (#977)
* Clean up exported apis and doc visibility

* Remove unused ScopeHolder

* Change ComponentLink to alias of Scope

* cargo fmt
2020-02-29 19:58:07 +08:00
Filippo Merli
b534a4c83a
Add components interaction example (#951)
This add a small example of how to use agents in order to send
messages between components.
2020-02-18 19:45:41 +08:00