129 Commits

Author SHA1 Message Date
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
Frank Panetta
2016d9c585 Add support of pure wasm target for the counter demo 2018-04-01 19:36:15 +03:00
Andrew Straw
46eba9da51 add textarea example 2018-03-28 11:03:44 +02:00
Denis Kolodin
e38774b6f2 Build all examples before start any in showcase script 2018-03-23 09:35:22 +03:00
Ilya Bogdanov
98ab16ea79
Improve game_of_life example 2018-03-15 10:38:03 +03:00
Denis Kolodin
63b335157d Add large_table example
This example is necessary to test and improve framework perfomance
2018-03-09 19:00:05 +03:00
Denis Kolodin
e3545c2946 Send initial event on start in game_of_life example 2018-02-25 10:36:15 +03:00
Denis Kolodin
e4c37cdc4f Update examples (add failure's Error to the format module) 2018-02-22 23:34:28 +03:00
Denis Kolodin
99d8131ff7 Fix examples: use tasks explicitly 2018-02-10 18:45:05 +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
03285783bd Use fragment in template of the example 2018-01-28 12:38:32 +03:00
Denis Kolodin
4d07cc6389 Use Reform for VComp 2018-01-27 16:54:24 +03:00
Denis Kolodin
e84f2e1b8c Modify virtual dom entry with Reform rule 2018-01-27 16:22:24 +03:00
Denis Kolodin
d8087418d8 Add fragments example 2018-01-25 23:49:35 +03:00
Denis Kolodin
e38164bce2 Store todo entries only
Don't save full model
2018-01-21 18:24:24 +03:00
Denis Kolodin
506169ebb9 Remove unnecessary enclosing div 2018-01-19 13:40:30 +03:00
Denis Kolodin
daed071e6d
Merge pull request #91 from DenisKolodin/components
Components implementation
2018-01-15 21:00:50 +03:00
Denis Kolodin
daf1ddd51d Add Renderable trait, remove redundant App struct, rename ScopeRef to Env 2018-01-15 02:07:47 +03:00
CYBAI
92666dda11 Use peekable to check if filtered iterator is none or not 2018-01-13 23:59:23 +08:00
CYBAI
c667ffc454 Use all method to prevent allocating vector 2018-01-13 19:03:49 +08: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
f84e08c712 Revert part of examples back to App type workflow 2018-01-12 00:40:13 +03:00
Denis Kolodin
ecf364173f Reimplement App type based on scope
Add prelude module
2018-01-11 23:50:58 +03:00
Denis Kolodin
b5949c349f Add scopes hierarchy example
Shows how to send a message to a parent scope
2018-01-11 22:23:39 +03:00
Denis Kolodin
5228e39a87 Send messages from child component to a parent 2018-01-11 18:06:50 +03:00
Denis Kolodin
5a75b70da6 Link callback with parent's component scope 2018-01-11 17:36:57 +03:00
Denis Kolodin
5071dd0582
Merge pull request #95 from gabisurita/typed-fetch
Use typed Request/Response objects in Fetch Service
2018-01-11 13:14:14 +03:00
Denis Kolodin
40913f8c9a Add events to components
Allow to have callbacks in properties. It's not finished,
because callback should send messages to a parent scope.
2018-01-11 10:13:43 +03:00
Andrew Brassington
ba961f15a1 Fix todomvc enter removing entry, add onblur event to exit edit 2018-01-10 22:38:45 -08:00
Denis Kolodin
1d51d1cca0 Replace internal serialization with memory transmuting
Reasons:
1) Better perfomance
2) User not forced to use serde crate
3) The only one way to send callbacks through a channel
2018-01-11 01:12:19 +03:00
Denis Kolodin
0570e6b278 Add should_update flag 2018-01-10 23:55:08 +03:00
Denis Kolodin
64404426d7 Send a new properties set to a component when it was changed 2018-01-10 23:33:41 +03:00
Denis Kolodin
7ec28249c4 Fix custom components example
Properties work not so fast because we should use pool of calls for
components update (now `setTimeout` used which is throttled)
2018-01-10 22:18:28 +03:00
Denis Kolodin
6c6ef1847f Update properties when tree rerendered 2018-01-10 21:52:24 +03:00
Denis Kolodin
c172ff7b04 Add minimal properties implementation
It works on component initialization only.
2018-01-10 16:22:41 +03:00
Denis Kolodin
928ce71643 Replace message type to complex component type 2018-01-10 11:10:41 +03:00
Gabriela Surita
4e4168bb7a Update examples 2018-01-10 10:07:40 +03:00
Denis Kolodin
0d67a33480 Add Properties type parameter and optimize MSG requirement of Scope 2018-01-10 01:00:54 +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
c07e921cc7 Add reuse method to App to reuse a shared context
Method new expects ownership to a unwrapped context instance
2018-01-08 23:18:54 +03:00
Denis Kolodin
a7d9bf5952 Use reference to a local sender (context)
According to the upgrading of counter demo
2018-01-08 22:37:44 +03:00
Denis Kolodin
d043202259 Add context specification to components 2018-01-08 12:53:10 +03:00
Denis Kolodin
d6b087272f Add minimal components implementation 2018-01-07 18:53:37 +03:00