40 Commits

Author SHA1 Message Date
Justin Starry
f48bc90edb
Use callbacks in examples (#781) 2019-12-07 16:56:26 -08:00
Justin Starry
ffbb9e0ac3
Rename methods and loosen mutability for component link and agent (#780)
* Rename methods and loosen mutability for component link and agent

* Update send_back to callback

* mut link -> link
2019-12-07 18:18:33 -05:00
Benjamin Reynolds
01c0dd0633 Use trait objects with explicit dyn in examples (#687)
Fixes #685

Address deprecations warnings in the examples directory:

warning: trait objects without an explicit `dyn` are deprecated
2019-10-08 09:53:44 -04:00
Justin Starry
43e9347269
Add render method to Component and auto implement Renderable (#563)
* Add render method to Component and auto implement Renderable

* More cleanup

* Rename Renderable method from view to render

* Doc fixes

* fix

* Update CHANGELOG.md
2019-09-30 22:23:25 -04:00
Justin Starry
38300e6597 cargo fmt --all 2019-07-30 00:51:18 -04:00
Justin Starry
fe3d6249d3 Use updated jsx syntax in examples and documentation 2019-07-05 21:49:12 -04:00
Justin Starry
f9cf5ea47f Bump example recursion limits 2019-06-13 10:29:53 -04:00
Denis Kolodin
2a1903cb4d Update all examples to Rust 2018 2019-02-02 16:03:07 +03:00
Denis Kolodin
fc7f7a97ea Add start_app method 2019-02-02 01:26:04 +03:00
Denis Kolodin
07573eb4b8 Require mutable reference for send_back method call 2018-08-20 21:40:24 +03:00
Denis Kolodin
126f847d34 Remove CTX type of examples 2018-06-08 09:44:20 +03:00
Denis Kolodin
e73f025b09 Remove context argument from examples 2018-06-08 09:44:20 +03:00
Denis Kolodin
a8dd243d09 Add component's link to all examples 2018-06-08 09:44:20 +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
deb838b2e1 Fix examples for the new context reference 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
8f227f949b Move examplef out of showcase 2018-04-15 09:41:51 +03:00
Denis Kolodin
86af2b9d1c Move demos into the showcase 2018-04-09 22:04:57 +03:00
Denis Kolodin
1cec52140f Set properties on component creation
Fixes bug with initial value in custom_components example
2018-02-08 22:05:37 +03:00
Denis Kolodin
daf1ddd51d Add Renderable trait, remove redundant App struct, rename ScopeRef to Env 2018-01-15 02:07:47 +03:00
Denis Kolodin
4618497bf7 Merge branch 'master' into components 2018-01-12 22:43:20 +03:00
Denis Kolodin
8a6f387eac Fix missing docs 2018-01-12 10:57:24 +03:00
Denis Kolodin
7b758fbd1e Fix all examples 2018-01-12 01:53:18 +03:00
Denis Kolodin
808d8b4fab Add create method to Component trait
And remove Default trait requirement.
2018-01-09 10:47:20 +03:00
Denis Kolodin
5cd1fc688d Rewrite examples with Component approach
Models were not split into multiple small components
2018-01-09 01:20:11 +03:00
Denis Kolodin
baaaaf1a2e
Merge pull request #85 from rivertam/mount-point
Add mount points
2018-01-07 12:09:17 +03:00
Denis Kolodin
4a1873e79d Rename land method to mount 2018-01-07 11:53:11 +03:00
rbalicki2
51a310117a fix a bunch of typos 2018-01-06 22:35:56 -05:00
Denis Kolodin
85ef55f8c9 Extract event loop from App instance 2018-01-06 16:52:45 +03:00
Denis Kolodin
70e0786277 Add support of used-defined contexts to TimeoutService and IntervalService 2017-12-31 19:00:36 +03:00
Denis Kolodin
665223066b Remove name parameter from count method of the console service
Remove trace call from timer demo.
2017-12-29 23:40:40 +03:00
Ben Berman
6304d989cb Add many console methods 2017-12-29 15:16:06 -05:00
Denis Kolodin
c28f985e20 Little refactoring and cleaning 2017-12-29 08:31:54 +03:00
雷东升
9420386cdd add ConsoleService 2017-12-29 12:21:35 +08:00
Denis Kolodin
ce864db352 Add Interval Service to Timer example 2017-12-26 22:15:15 +03:00
Denis Kolodin
8a574cd017 Split services to separate modules 2017-12-26 21:02:09 +03:00
Denis Kolodin
7990e8bbe1 Rename Handle to Task
And fix readme too.
2017-12-26 20:15:37 +03:00
Denis Kolodin
67674c3ff0 Add Timeout Service
And implement services concept.
2017-12-25 23:18:46 +03:00