Géry Debongnie
6ea9ccf56f
fix: remove exprCache, as formatting is contextual
...
Formatting expressions now depends on the currently defined variables, so
it cannot be put in a cache.
2019-03-22 14:46:47 +01:00
Géry Debongnie
a444e3dcac
imp: export utils in main bundle
2019-03-22 12:08:55 +01:00
Géry Debongnie
a7d2edd0c9
imp: qweb compiler now condenses whitespaces
...
This is a pretty big breaking change: the html output by qweb is now
different.
The main goal is to optimize the compiled templates:
- condense all consecutive whitespaces into a single spaces
- if possible, drop completely some text nodes, based on the following
heuristic: if a text node is only composed of whitespaces, and
contains at least one linebreak, then it can be dropped.
This leads in my benchmark test to an improvement of about 10%, in
rendering speed and in memory consuption.
Note: whitespace here means anything that matches the \s regexp: newlines,
tabs, ...
close #8
2019-03-22 12:04:50 +01:00
Géry Debongnie
d81e5d8f4f
imp: add debug mode to store
2019-03-22 10:56:34 +01:00
Géry Debongnie
d48cb5aae4
imp: work on store, refactor, improve todoapp
2019-03-22 10:47:59 +01:00
Géry Debongnie
a236ae396a
fix: make sure props are always defined
...
fix #7
2019-03-22 09:28:56 +01:00
Géry Debongnie
add380f59b
ref: move PureWidget back to core, use updateEnv
2019-03-21 16:33:08 +01:00
Géry Debongnie
ad9fb77458
fix: force children to rerender when env changes
2019-03-21 16:06:06 +01:00
Géry Debongnie
4326d18961
imp: update build scripts
2019-03-21 14:51:54 +01:00
Géry Debongnie
88a3b6d25e
add some tests to store class
2019-03-21 12:09:17 +01:00
Géry Debongnie
a34fc39100
imp: allow object descriptors for attributes
...
close #6
2019-03-21 11:15:06 +01:00
Géry Debongnie
a8b3ec7726
support using object variables in t-esc
2019-03-21 10:47:08 +01:00
Géry Debongnie
d799e3dd47
prevent useless rerenders when updatingEnv on unmounted component
...
fix #4
2019-03-21 10:39:09 +01:00
Géry Debongnie
b446d5d338
add src/ folder to jest config
2019-03-21 10:37:24 +01:00
Géry Debongnie
71c1469124
update examples doc
2019-03-21 10:23:44 +01:00
Géry Debongnie
1020b35fe5
bump to v0.3.0
v0.3.0
2019-03-21 09:55:33 +01:00
Géry Debongnie
da8dd58490
add date and hash in build
2019-03-21 09:55:04 +01:00
Géry Debongnie
8e82a8612a
small cleanup of the store
2019-03-21 09:11:44 +01:00
Géry Debongnie
c32f1d1e38
complete base implementation of todoapp
2019-03-20 15:17:53 +01:00
Géry Debongnie
9baf3ad4a7
add support for boolean properties, such as 'checked'
...
fix #5
2019-03-20 13:19:08 +01:00
Géry Debongnie
5da7df8bf0
add todoapp
2019-03-20 11:49:45 +01:00
Géry Debongnie
c9796e6bdc
add store class to core
2019-03-20 11:49:41 +01:00
Géry Debongnie
6a2e4dbf2f
rename demo example into benchmarks
2019-03-19 13:55:27 +01:00
Géry Debongnie
91e7e00f97
clean component file, add some documentation
2019-03-19 13:46:18 +01:00
Géry Debongnie
38f307ef57
implement updateEnv feature
2019-03-19 13:26:05 +01:00
Géry Debongnie
bd7a2bfc67
fix crash in template compilation with objects in props
...
fix #1
2019-03-19 10:44:01 +01:00
Géry Debongnie
695636e60e
cleanup, rename setState into updateState
2019-03-19 10:35:41 +01:00
Géry Debongnie
7d10e57cc0
remove a leftover d.ts file
2019-03-18 16:15:08 +01:00
Géry Debongnie
1f602512a5
improve demo app
2019-03-18 16:15:08 +01:00
Géry Debongnie
65a65bd241
remove memory leak...
2019-03-18 16:15:08 +01:00
Géry Debongnie
cf289323c8
add demo application (benchmark)
2019-03-18 14:26:33 +01:00
Géry Debongnie
050025a922
update documentation
2019-03-17 15:44:02 +01:00
Géry Debongnie
9e608dae49
update documentation
2019-03-17 08:57:18 +01:00
Géry Debongnie
46aedf78af
move demo code to examples/
2019-03-15 12:21:55 +01:00
Géry Debongnie
d99ea4c9f4
rename updateState into setState
2019-03-15 11:54:59 +01:00
Alexandre Kühn
9be0b65cd3
make t-set works with t-props
...
test by aku, fix by ged
2019-03-15 11:06:05 +01:00
Géry Debongnie
733d5f81e6
slightly improve build script
2019-03-14 16:22:50 +01:00
Géry Debongnie
7b3938e56e
add tests/ to typescript config file
2019-03-14 15:54:40 +01:00
Géry Debongnie
46c8d5a4ee
add support for ES6-like syntax for props
2019-03-14 15:53:31 +01:00
Géry Debongnie
d4928858de
update to v0.2.0
v0.2.0
2019-03-14 14:32:47 +01:00
Géry Debongnie
ce8c176578
rename qweb_vdom into qweb
2019-03-14 14:32:29 +01:00
Géry Debongnie
43955f7bfd
add gpl license
2019-03-14 14:27:52 +01:00
Géry Debongnie
f1a18efd8b
update component and qweb doc
2019-03-14 14:23:27 +01:00
Géry Debongnie
5d87ee5c9e
add quick start section to doc
2019-03-14 14:14:13 +01:00
Géry Debongnie
80745c6b09
update documentation and readme
2019-03-14 13:17:19 +01:00
Géry Debongnie
a9d5cab3b6
rename WEnv to Env
2019-03-14 12:51:51 +01:00
Géry Debongnie
8d95f46fce
move test helpers from demo app to tests/
2019-03-14 11:50:39 +01:00
Géry Debongnie
e95af73065
move core tests to tests/ folder
2019-03-14 11:40:23 +01:00
Géry Debongnie
027318bb98
move snabbdom into libs/
2019-03-14 11:30:49 +01:00
Géry Debongnie
f08ff9e5c2
move demo/static/src/ts/core to src/
2019-03-14 11:23:10 +01:00