Commit graph

324 commits

Author SHA1 Message Date
Andreas Rumpf
775a4a1289 nextgen example works now 2017-08-28 12:10:48 +02:00
Andreas Rumpf
f663d2f21b removed debugging code 2017-08-28 11:48:04 +02:00
Andreas Rumpf
4032bed306 created a nice 'makeReactive' macro 2017-08-28 11:29:43 +02:00
Andreas Rumpf
cb2dd6331d improvments to the new local diff algorithm 2017-08-28 11:29:12 +02:00
Andreas Rumpf
2482c772f8 more reactive stuff works now 2017-08-23 19:35:27 +02:00
Andreas Rumpf
9fce711bd6 wip; nothing works 2017-08-22 18:04:49 +02:00
Andreas Rumpf
56a50679de reactive sequence works now 2017-08-19 14:54:10 +02:00
Andreas Rumpf
46b1259498 added .track macro 2017-08-17 11:28:11 +02:00
Andreas Rumpf
bfb9985754 nextgen uses the karax DSL and DOM diffing 2017-08-17 08:36:17 +02:00
Andreas Rumpf
7c08c6bb76 first version; wip 2017-08-16 19:42:16 +02:00
Andreas Rumpf
bb846644b5 added support for a --define:karaxDebug switch 2017-08-08 13:29:29 +02:00
Araq
f9525dc646 added support for i18n (candidate for the stdlib?) 2017-07-14 16:17:06 +02:00
Andreas Rumpf
e94071b077 components work without 'key' attribute set 2017-07-12 13:23:58 +02:00
Andreas Rumpf
2ced690387 better event merging for components 2017-07-12 12:23:24 +02:00
Andreas Rumpf
e4d8cb4c20 make tests green again 2017-07-11 22:26:46 +02:00
Andreas Rumpf
b3c83ed119 optimized the diff algorithm further 2017-07-11 20:41:01 +02:00
Andreas Rumpf
507094bdfd better event handling for components and in the DSL 2017-07-11 18:59:38 +02:00
Andreas Rumpf
91d7ba25ea renamed key to 'index'; all virtual components have a 'key' attribute 2017-07-11 12:54:53 +02:00
Andreas Rumpf
5838271f8b nicer indentation 2017-07-11 12:43:32 +02:00
Andreas Rumpf
1e378b2ac2 separate component updating from diffing algorithm 2017-07-11 00:20:43 +02:00
Andreas Rumpf
6c152ed516 smart attribute comparisons 2017-07-10 21:42:22 +02:00
Andreas Rumpf
ec4a413a7b bugfix: better diff'ing for complex components 2017-07-10 18:00:35 +02:00
Andreas Rumpf
dc88eeaae3 make todoapp work again 2017-07-07 17:37:29 +02:00
Andreas Rumpf
920bd2db9d bugfix: component handling 2017-07-07 16:40:48 +02:00
Andreas Rumpf
dc7409e52e Merge branch 'stateful-components3' into devel 2017-07-06 20:26:51 +02:00
Andreas Rumpf
907c372c27 code cleanups 2017-07-06 18:53:07 +02:00
Andreas Rumpf
7779560b6b more tests and diff fixes; wip 2017-07-06 18:34:32 +02:00
Andreas Rumpf
a93e739081 new component system: blur.nim example now works 2017-07-05 16:07:52 +02:00
Andreas Rumpf
5f7f33bb02 wip 2017-07-04 08:04:04 +02:00
Andreas Rumpf
43ee890356 fix exponential blowup in diff algorith; wip 2017-07-03 23:03:30 +02:00
Araq
d538b7bc93 try to make components aware of the previous state 2017-07-02 09:34:58 +02:00
Andreas Rumpf
ea7eee7564 better input element handling 2017-06-29 17:10:29 +02:00
Andreas Rumpf
8e777a0c19 different detach handling to make event handlers work better 2017-06-29 12:25:08 +02:00
Andreas Rumpf
e739909466 rollback dom.value behaviour; fixes removeEventListener problem 2017-06-29 11:04:43 +02:00
Andreas Rumpf
8eef2074b4 make setFocus: bool work 2017-06-28 22:54:24 +02:00
Andreas Rumpf
c681f0055f update value property of real DOM nodes; minor DOM diff speedups; allow setFocus=false in the DSL 2017-06-28 15:23:19 +02:00
Andreas Rumpf
4199c42e3b combined components work 2017-06-28 12:56:51 +02:00
Andreas Rumpf
0ad9d68c81 fixes #35 2017-06-28 11:26:09 +02:00
Andreas Rumpf
ba88fb9a0b cancel redraw requests as an attempt to improve performance 2017-06-28 09:46:26 +02:00
Andreas Rumpf
c987323dba test nested components (still buggy) 2017-06-28 09:44:50 +02:00
Andreas Rumpf
fe7d72fa4e special treatment for input and textarea fields; minor code cleanups 2017-06-28 08:46:48 +02:00
Andreas Rumpf
418c027f6c smart-diff algorithm works now 2017-06-27 23:54:58 +02:00
Andreas Rumpf
8a1424669f optimized diff algorithm further; fixed a stupid bug; cleaned up the tests 2017-06-26 21:03:39 +02:00
Andreas Rumpf
09a5e1c34e optimized the new diff algorihtm 2017-06-24 08:23:22 +02:00
Andreas Rumpf
4bfe66edd6 optimized VStyle representation 2017-06-24 08:22:31 +02:00
Andreas Rumpf
74c07f0634 code cleanups 2017-06-23 22:21:06 +02:00
Andreas Rumpf
f89da765fa another bugfix for smart-diffing 2017-06-23 21:33:48 +02:00
Andreas Rumpf
64bc900456 rewritten diff algorithm 2017-06-23 21:03:31 +02:00
Andreas Rumpf
cd74cd9d4e another attempt to fix bug #31 2017-06-23 11:09:22 +02:00
Andreas Rumpf
9aa3ba545d wip 2017-06-22 21:21:54 +02:00