Commit Graph

57 Commits

Author SHA1 Message Date
Géry Debongnie 0e1e0da3e7 move notifications tests to proper place 2019-02-02 18:09:23 +01:00
Géry Debongnie e26cf25bd3 rework registry 2019-02-02 18:08:33 +01:00
Géry Debongnie c9f2a6147c move some files around 2019-02-02 16:30:34 +01:00
Géry Debongnie 27f5845799 load widget templates separately (so no more inline) 2019-02-02 16:26:20 +01:00
Géry Debongnie 4d30180862 small cleanup 2019-02-02 11:36:45 +01:00
Géry Debongnie bfe83c5b70 add loadtemplates method to qweb 2019-02-02 11:32:07 +01:00
Géry Debongnie 37a8b3c7e7 add findInTree function in utils 2019-02-01 21:41:16 +01:00
Géry Debongnie c46bad6e35 throw qweb error if invalid loop in t-foreach 2019-02-01 11:28:03 +01:00
Géry Debongnie 7e90aec028 fix issue with subwidgets not being mounted/unmounted 2019-01-31 15:32:14 +01:00
Géry Debongnie 92bea3df52 small refactoring... 2019-01-31 13:19:30 +01:00
Géry Debongnie bac075dbbd preliminary support for home menu 2019-01-31 10:55:41 +01:00
Géry Debongnie 25da2b2230 add t-keep-alive directive 2019-01-31 10:55:06 +01:00
Géry Debongnie c627f87463 add basic support for mobile mode 2019-01-30 21:26:04 +01:00
Géry Debongnie 6012d76388 fix issue with vnodes being patched twice 2019-01-30 21:09:34 +01:00
Géry Debongnie 4e4702c6cf fix context issue after loop t-foreach 2019-01-30 13:33:37 +01:00
Géry Debongnie 68973b3321 add isMobile key to env 2019-01-30 12:10:08 +01:00
Géry Debongnie c0c7414b18 widget: add t-key option, add better error handling 2019-01-30 11:35:38 +01:00
Géry Debongnie be7ff1faf0 use snapshot testing 2019-01-30 10:22:24 +01:00
Géry Debongnie 0b3dc0301e allow closing notifications on click 2019-01-29 20:42:05 +01:00
Géry Debongnie 0bbeabd55c improve notification system 2019-01-29 16:42:03 +01:00
Géry Debongnie d029f87a0f add notification widget/full system 2019-01-29 16:07:37 +01:00
Géry Debongnie 552d8a0809 add notification service 2019-01-29 14:35:51 +01:00
Géry Debongnie dd75a17448 add test helpers, add navbar tests 2019-01-29 10:48:05 +01:00
Géry Debongnie 2ea569f7aa make widget class generic on props 2019-01-28 21:32:21 +01:00
Géry Debongnie 6ae6ddadc8 implement shouldUpdate method/hook 2019-01-28 16:16:22 +01:00
Géry Debongnie ee255993a8 prevent issue when widget is toggled 2019-01-28 15:53:24 +01:00
Géry Debongnie 851d01b7ad do not destroy and rerender sub widgets if not necessary
add failing test on rerendering sub widgets...
2019-01-28 15:18:16 +01:00
Géry Debongnie 2b27249136 allow dynamic expressions in t-props directive 2019-01-28 12:13:25 +01:00
Géry Debongnie d8c37a2942 handle situation when widget is destroyed before willStart 2019-01-27 21:50:22 +01:00
Géry Debongnie fb6ad6e56b fix: destroying a parent should also destroy its children 2019-01-27 21:08:43 +01:00
Géry Debongnie 9b1841bfa5 properly call willunmount and destroy hooks 2019-01-27 18:25:41 +01:00
Géry Debongnie d40f88cf50 add widget test 2019-01-27 15:12:35 +01:00
Géry Debongnie 37175df9ad change children implementation, remove parented link on destroy 2019-01-27 13:50:53 +01:00
Géry Debongnie 0dfa47e405 add memoize function and use it for makeEnvironment 2019-01-27 09:23:48 +01:00
Géry Debongnie 90f30c6c72 make sure env is propagated to child widgets 2019-01-26 20:33:23 +01:00
Géry Debongnie 8488c41b38 move test files in subfolder 2019-01-26 20:23:34 +01:00
Géry Debongnie 5fe72757a7 rename _ into __widget__ 2019-01-26 18:23:43 +01:00
Géry Debongnie 7bfc0d6cb6 call destroyed hook only once 2019-01-26 18:20:49 +01:00
Géry Debongnie bfa76e9de5 fix tricky issue with sub widgets modifying el 2019-01-26 18:13:09 +01:00
Géry Debongnie a47a65d333 make sure subwidgets have proper parents 2019-01-25 20:05:31 +01:00
Géry Debongnie 37b275d40e fix issue with mounted widget without proper vnode 2019-01-25 16:08:25 +01:00
Géry Debongnie 6f6e2d887d qweb: make sure on directive is properly bound 2019-01-25 16:01:02 +01:00
Géry Debongnie c3221663a9 refactor widget test suite 2019-01-25 15:28:21 +01:00
Géry Debongnie 9fc7cf0c68 move internal stuff in _, add unique id for each widget 2019-01-25 14:27:16 +01:00
Géry Debongnie c1dd38bf03 allow new widgets to be mount in mounted hook 2019-01-25 14:05:14 +01:00
Géry Debongnie dbada21890 work on mounted hook, make sure widgets are uniquely defined... 2019-01-25 12:03:12 +01:00
Géry Debongnie 9c0b63cd29 call mounted hooks at proper timing 2019-01-25 11:01:43 +01:00
Géry Debongnie 2894d74db9 prevent directives from polluting rendering context 2019-01-25 09:24:21 +01:00
Géry Debongnie 299a6b4977 small improvements to widget, add clock widget 2019-01-24 22:15:23 +01:00
Géry Debongnie 3415d830c7 small cleanup 2019-01-24 13:26:42 +01:00