Commit Graph

10452 Commits

Author SHA1 Message Date
Rostislav Wolny
c1180cd0aa Inject dependencies into form blocks parent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
d0acad5c3b Inject WPFunctions to FieldNameObfuscator using DI
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
7d596e3407 Extract unrelated date conversion functionality from date block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
dc5a296133 Inject dateBlock to services which use it
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
6827eb93e6 Add block renderers to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
d9b9e13a04 Extract rendering of a single block to extra class
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
a759530b9d Refactor recatcha and honeypot rendering to extra private methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
73281f0851 Inject settings and style utils to renderer using constructor
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
f559d5f479 Add typehints to form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
5193d4641c Refactor getBlocks and getBlock methods from static to instance methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
37423908d7 Refactor getStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
087a610be5 Refactor renderHTML method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
b8dd243ec1 Refactor renderStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
8e9c41145d Mark renderer method which is not used out of renderer as private
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
2306be6b16 Register form renderer to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
e72b1ec71d Remove unused public method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Jan Jakeš
fb7e87706b Remove unnecessary usages of $subscriber for preview links
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
b22198f599 Use only one preview link in preview modal
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
369675626c Make endpoint response method private, fix naming
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
4c4a0e4caa Fix and refactor ViewInBrowserRendererTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
ce21cc2085 Move Newsletter\ViewInBrowserTest to ViewInBrowserRendererTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
4be306230b Fix findOne() method annotation
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
e3cc5a0ec0 Fix and refactor ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
216341d5f6 Move ViewInBrowserTest to ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
a3b8aa78a5 Refactor ViewInBrowserController to use methods and descriptive exceptions
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
88d76d5efa Rename Newsletters\ViewInBrowser to ViewInBrowserRenderer
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
edb18399a1 Extract view-in-browser logic to a controller
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
077591ae3c Use DI for Newsletter\ViewInBrowser
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
3cd5af448e Rewrite view-in-browser to always require newsletter ID and hash, refactor
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
ddfc9647dd Use array instead of \stdClass, fix coding style
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
923dc0d1dd Simplify and unify getViewInBroserUrl calls
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
e5fcf5819d Remove 'type' parameter for view-in-browser, always include hash
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
eb1c7673e3 Make $preview = true default for view-in-broser URL
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
2f59ab4c50 Add new tab link to newsletter preview
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
wxa
d41eca48b2 Fix captcha case in comparison [MAILPOET-2698] 2020-02-12 18:11:06 +00:00
Rostislav Wolny
931447e050 Update react-tooltip library
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
d00c690252 Update codemirror editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
f31f46d049 Allow drag and drop reordering of blocks in form editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
73854a20c5 Update form editor layout to work with new version of Gutenberg post editor css
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
42723592e2 Update Gutenberg packages for form editor
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
675df7a4a6 Update babel plugins
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
368883eeb6 Update babel packages except plugins
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
19f2716138 Update react related libs
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Rostislav Wolny
09bf2584df Update react and react-dom
[MAILPOET-2696]
2020-02-12 18:05:19 +00:00
Pavel Dohnal
ea3fc7d5d3 Increase test timeout
[MAILPOET-2694]
2020-02-12 13:43:31 +01:00
wxa
42278347cc Import missing functions from polyfill-mbstring [MAILPOET-2695] 2020-02-11 18:21:48 +00:00
wxa
6f5581e1f2 Release 3.45.1 2020-02-11 17:25:01 +03:00
Amine Ben hammou
4516a44d9e Add test for newsletter stats
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
22b9103460 Fix statistics
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
0069380da6 Add getChildrenCount()
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00