Géry Debongnie
9d389d972e
fix: a few small bugs, restore proper tab on layout change
2019-04-01 10:55:15 +02:00
Géry Debongnie
a4ecdc541d
imp: add vertical resize feature
2019-04-01 10:32:54 +02:00
Géry Debongnie
453080e9db
imp: update code samples
2019-04-01 09:40:03 +02:00
Géry Debongnie
328043abf6
imp: use split layout by default
2019-04-01 09:22:12 +02:00
Géry Debongnie
14a8110b5d
imp: add split editor mode to playground
2019-04-01 09:14:33 +02:00
Géry Debongnie
cc33c9f5cf
ref: split app widget in 2
2019-03-31 22:14:45 +02:00
Géry Debongnie
f7e46784b4
imp: use arguments in sample code
2019-03-31 09:34:53 +02:00
Géry Debongnie
ee4ecb5bd3
imp: add horizontal resize feature
2019-03-30 20:42:59 +01:00
Géry Debongnie
f77625ffc1
imp: improve benchmark code
2019-03-29 16:48:16 +01:00
Géry Debongnie
b18310db9b
ref: rename playground => app
...
also, add version in title
2019-03-29 16:14:36 +01:00
Géry Debongnie
c7c0cb7d44
imp: allow adding templates in xml tab
2019-03-29 16:11:18 +01:00
Géry Debongnie
8319e34f0e
fix: update url in right pane
2019-03-29 15:18:52 +01:00
Géry Debongnie
064baedff8
imp: remove need for playground-iframe.html file
2019-03-29 13:44:21 +01:00
Géry Debongnie
9477faa52a
add: add demo benchmark application
2019-03-29 13:23:36 +01:00
Géry Debongnie
24e4a9fc4b
fix: fix issue with wrong editor content when changing sample
2019-03-29 13:13:36 +01:00
Géry Debongnie
2cabdf8d5c
imp: properly inject css in iframe, as expected
2019-03-29 13:06:57 +01:00
Géry Debongnie
4be15febb9
imp: improve code samples to make them work on firefox
2019-03-29 10:14:02 +01:00
Géry Debongnie
8063316f1a
ref: move playground at root of folder
2019-03-29 09:59:39 +01:00
Géry Debongnie
afc89e6f66
fix: if t-props is not defined, should fallback on {}
2019-03-28 17:35:08 +01:00
Géry Debongnie
e53287b52e
ref: reorganize exports into core/extras
2019-03-27 15:18:25 +01:00
Géry Debongnie
2758269139
add patch/unpatch utility methods
2019-03-26 14:30:27 +01:00
Géry Debongnie
766d2f2301
ref: qweb context cleanup
...
Some code was uselessly duplicated. We simplify in this commit the
handling of subcontexts.
closes #9
2019-03-22 15:02:07 +01:00
Géry Debongnie
597adb3981
ref: improve qweb implementation
2019-03-22 14:51:02 +01:00
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
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
8e82a8612a
small cleanup of the store
2019-03-21 09:11:44 +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
c9796e6bdc
add store class to core
2019-03-20 11:49:41 +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
65a65bd241
remove memory leak...
2019-03-18 16:15:08 +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
46c8d5a4ee
add support for ES6-like syntax for props
2019-03-14 15:53:31 +01:00
Géry Debongnie
ce8c176578
rename qweb_vdom into qweb
2019-03-14 14:32:29 +01:00
Géry Debongnie
a9d5cab3b6
rename WEnv to Env
2019-03-14 12:51:51 +01:00
Géry Debongnie
027318bb98
move snabbdom into libs/
2019-03-14 11:30:49 +01:00