174 Commits

Author SHA1 Message Date
Denis Kolodin
b0df296fa8 Add interval task to multi-thread example 2018-06-08 09:44:20 +03:00
Denis Kolodin
04591f1763 Add link to agent's scope 2018-06-08 09:44:20 +03:00
Denis Kolodin
c8515af2c2 Move spawn and register methods to a separate Worker trait 2018-06-08 09:44:20 +03:00
Denis Kolodin
8c3e075ae2 Add an environment for agents 2018-06-08 09:44:20 +03:00
Denis Kolodin
8c4f60480e Add fetch service to multi thread example 2018-06-08 09:44:20 +03:00
Denis Kolodin
6e0dd80e3e Add agents 2018-06-08 09:44:20 +03:00
Limira
a81c8538e0 Add error handling error npm_and_rest example 2018-06-03 23:50:17 +07:00
Denis Kolodin
4de5c1223b Set types for events of html macro 2018-05-22 08:03:08 +03:00
sainth
44d82caaa4 Use raw stdweb events for key- and mousevents 2018-05-18 22:55:29 +02:00
Denis Kolodin
29f018f7f1 Use multi-target rand crate version for game_of_life example 2018-05-14 21:21:31 +03:00
Denis Kolodin
90a02de907 Use thread_rng instead of deprecated random function 2018-05-13 10:15:56 +03:00
huangjj27
1f895e276a bugfix(index): cargo web command consistence
Notice that the "cargo web start" command indexing "js/app.js"
while the output "cargo web deploy" command have only "game_of_life.js".
Tried running proving the latter referencing also work with "start"
command.
2018-05-13 10:15:56 +03:00
huangjj27
94d86af5d0 refactor(logging): replace console with web-logger 2018-05-13 10:15:56 +03:00
huangjj27
f1daf4786d chore(version): update version message 2018-05-13 10:15:56 +03:00
huangjj27
69aa458777 bugfix(logging): use browser console for logging
As the stdout is not included in wasm32-unknwon-unknown target,
replace the println! macros with yew's ConsoleService.

fix #228
2018-05-13 10:15:56 +03:00
huangjj27
8a84565baa bugfix(rand): add stdweb feature
This is a temporary bugfix to make the game of life example work.
It traces the newest source code in order to use the stdweb feature
to make it work. The version of rand crate should be locked once
the 0.5 version is released on crates.io

close #227
2018-05-13 10:15:56 +03:00
Denis Kolodin
ef209bae20 Use web_logger crate in the showcase example 2018-05-11 10:34:46 +03:00
Limira
bea2fcfde0 Add onchange event and example 2018-05-06 15:20:45 +03:00
Denis Kolodin
c4320fd43a Add TOML format to dashboard example 2018-05-05 14:38:17 +03:00
Denis Kolodin
a7fd3daebd Support binary format for WebSocketService 2018-05-05 14:03:25 +03:00
Denis Kolodin
89280622a9 Add binary fetching format to dashboard example 2018-05-05 12:04:53 +03:00
Denis Kolodin
ffd8a9890c Rename Msg type of Component to Message 2018-04-26 15:47:33 +03:00
Denis Kolodin
4eb37aed55 Adapt examples to a new loop with a scheduler 2018-04-25 11:52:13 +03:00
Denis Kolodin
177035fd9a Hide ComponentUpdate inside the crate 2018-04-25 10:16:35 +03:00
Denis Kolodin
b25a6a2602 Implement scheduler with slab 2018-04-24 22:49:52 +03:00
Denis Kolodin
894f071ebb Add an example to test a context borrowing race 2018-04-23 22:54:24 +03:00
Denis Kolodin
deb838b2e1 Fix examples for the new context reference 2018-04-23 22:54:24 +03:00
Denis Kolodin
7f6db78510 Replace scheduler and channels by cells held by Activator
This it good refactoring of the main loop and the scheduler.
Now we don't need JS scheduler anymore and it will have a
positive impact on preformance.
2018-04-23 22:54:24 +03:00
Denis Kolodin
992c4e21a7 Hide Scope behind App 2018-04-20 22:24:52 +03:00
Denis Kolodin
6530de086c Example of a standalone callback which sends nothing to a scope 2018-04-20 20:46:03 +03:00
Denis Kolodin
a5325026a9 Move Callback struct to a separated module 2018-04-20 20:11:07 +03:00
Denis Kolodin
8cff051a5b Derive Default for ConsoleService and DialogService 2018-04-20 09:42:06 +03:00
Denis Kolodin
0aa5d54d2c Use WebSocket from stdweb 2018-04-19 10:16:30 +03:00
Denis Kolodin
8f227f949b Move examplef out of showcase 2018-04-15 09:41:51 +03:00
Garrett Berg
acdcba49ba fix #194, fix #189: allow for VNode::VRef to be rendered 2018-04-11 12:27:46 -06:00
Denis Kolodin
faa457e3f7 Build the full showcase with CI 2018-04-10 23:00:54 +03:00
Denis Kolodin
c5bd5ba359 Add index page to the showcase 2018-04-10 22:19:46 +03:00
Denis Kolodin
153bb5a263 Add two_apps demo to the showcase 2018-04-10 12:43:32 +03:00
Denis Kolodin
f542b7a0fe Add todomvc demo to the showcase 2018-04-10 12:00:56 +03:00
Denis Kolodin
5043c53e91 Add timer demo to the showcase 2018-04-10 11:42:35 +03:00
Denis Kolodin
53e24310fe Add textarea demo to the showcase 2018-04-10 11:21:14 +03:00
Denis Kolodin
2c4d6fb668 Add npm_and_rest demo to the showcase 2018-04-10 11:12:38 +03:00
Denis Kolodin
4f087753b2 Add mount_point demo to the showcase 2018-04-10 10:55:43 +03:00
Denis Kolodin
33cc1725bb Add large_table demo to the showcase 2018-04-10 10:52:46 +03:00
Denis Kolodin
97f773783b Add game_of_life demo to the showcase 2018-04-10 10:46:17 +03:00
Denis Kolodin
46af8ed056 Add fragments demo to the showcase 2018-04-10 10:38:14 +03:00
Denis Kolodin
47ba9a13df Add dashboard demo to the showcase 2018-04-10 10:10:13 +03:00
Denis Kolodin
625fcf5231 Add custom_components demo to the showcase 2018-04-09 23:05:45 +03:00
Denis Kolodin
986b47ec9c Adapt crm demo for showcase
Also change ConsileService to expect a mutable self reference
because it changes the console and it's more clear semantically
2018-04-09 22:26:41 +03:00
Denis Kolodin
86af2b9d1c Move demos into the showcase 2018-04-09 22:04:57 +03:00