Commit graph

921 commits

Author SHA1 Message Date
Warkot 3026d6ce41 Merge remote-tracking branch 'origin/dev' into XW-41 2016-02-08 18:39:59 +01:00
Tomasz Napieralski 2e5f90f543 hide changes after flag 2016-02-08 15:57:57 +01:00
Tomasz Napieralski 1b2a5bb417 use SEO friendly images for mobile in infoboxes 2016-02-05 18:02:02 +01:00
Nikodem Hynek 37f07b8f11 Merge pull request #9659 from Wikia/DAT-3624
DAT-3624 Fix for broken references in infobox image captions
2016-02-05 15:25:10 +01:00
idradm b9af596dbc DAT-3622 always pass array to custom frame on api call 2016-02-04 16:52:51 +01:00
Sebastian Marzjan c5d17f315e DAT-3624 Rename 'Infobo' to 'Infobox' 2016-02-03 12:06:44 +01:00
Rafal Leszczynski 6a40c864e6 Merge branch 'dev' into DAT-3613 2016-01-12 13:40:32 +01:00
dianafa 6406fb53d5 move helper to an independent place 2016-01-12 10:50:24 +01:00
dianafa ebfb01d73d use createDOMDocumentFromText helper 2016-01-12 10:08:37 +01:00
Sebastian Marzjan 168bf09348 DAT-3621 Unified tests for hero image and regular caption
* Disable sanitization on Oasis
* Handle previously unsupported case of nested tag ( <b><a></a></b> )
* Unify test formatting
* Change list handling (yes, I am not proud of that)
2016-01-12 09:21:21 +01:00
dianafa 96192e1fc2 silence libxml errro 2016-01-11 18:01:04 +01:00
Diana Falkowska e68ce57c7a Merge pull request #9396 from Wikia/DAT-3615
Provide explicitly encoded XML to loadHTML (libxml issues ;-) )
2016-01-08 15:42:05 +01:00
Sebastian Marzjan 531fc700e6 Provide explicitly encoded XML to loadHTML (libxml issues ;-) ) 2016-01-08 08:24:09 +01:00
Sebastian Marzjan dc561a4157 DAT-3614 Always pass an *ARRAY* of params to the infobox NodeFactory 2016-01-08 07:44:30 +01:00
Sebastian Marzjan 2171b5c02c Merge pull request #9366 from Wikia/DAT-3331
make infoboxes use params same way as mediawiki, enable 0 param
2016-01-05 17:18:33 +01:00
Adam Robak f1a8f2490a Merge pull request #9358 from Wikia/DAT-3465
DAT-3465 add infobox image caption sanitization
2016-01-05 10:27:44 +01:00
Sebastian Marzjan 72392d0edd Normalize whitespace when processing infobox contents 2016-01-05 09:05:50 +01:00
idradm c477600b9d DAT-3331 update comment, reformat 2016-01-04 15:57:25 +01:00
idradm 5f42ce9742 make infoboxes use params same way as mediawiki, enable 0 param 2016-01-04 14:34:10 +01:00
marzjan a5ad283fca Further code reorg 2016-01-04 12:09:39 +00:00
marzjan 7dfc5a828f Small code reorganization and cleanup 2016-01-04 11:09:50 +00:00
Sebastian Marzjan 2fdebcdffb DAT-3465 Change approach to sanitization; use XML parsing 2015-12-30 11:00:10 +01:00
Sebastian Marzjan a0569a829b Move the implements statement to base Sanitizer class 2015-12-29 08:13:02 +01:00
Sebastian Marzjan 0ce0b500fe Use the Builder for Sanitizers.
Cover the sanitizer build step in tests too
2015-12-28 12:04:36 +01:00
Sebastian Marzjan 8f437fb1e7 DAT-3465 Update the caption behavior 2015-12-28 10:21:32 +01:00
dianafa a4e03f9147 add sanitizer tests 2015-12-23 16:08:43 +01:00
dianafa 8afcb73d10 move sanitizers to a separate folder 2015-12-23 15:54:03 +01:00
Adam Robak 5bd3cd3db6 Merge pull request #9227 from Wikia/DAT-3372
DAT-3372 Correctly decode '+' sign in infobox image
2015-12-23 15:33:39 +01:00
dianafa ed73d4f525 move sanitizing to PortableInfoboxRenderService 2015-12-23 13:20:55 +01:00
dianafa 0de509246f add caption sanitization in getImageData 2015-12-23 11:20:39 +01:00
dianafa a6aeaec4ac Merge branch 'dev' into DAT-3372 2015-12-22 13:08:51 +01:00
dianafa 1b1de67f22 fix data-image-key param 2015-12-22 13:06:50 +01:00
idradm 46c4ec5f32 DAT-3079 remove old styling 2015-12-22 11:54:10 +01:00
Rafal Leszczynski f154200a97 DAT-3576, add test for thin portrait image edge case 2015-12-11 16:34:03 -08:00
Rafal Leszczynski 432341a974 DAT-3576, fix edge case with broken aspect ratio for tall thin images if portable infobox custom image width is set 2015-12-11 16:05:10 -08:00
marzjan 46fbb2b9c3 Make test cases make sense :) 2015-12-11 10:40:40 -08:00
Sebastian Marzjan f1896da8ab Add tests 2015-12-11 10:01:23 -08:00
dianafa f8312c6484 add getImageSizesToDisplay description 2015-12-11 12:06:44 +01:00
dianafa 33af8b75e9 rename getAdjustedImageSize to getImageSizesForThumbnailer 2015-12-11 12:02:00 +01:00
dianafa cc54d4478d move logic to other place & add tests 2015-12-11 11:56:41 +01:00
Rafal Leszczynski 02a2c62332 DAT-3576, allow for overwrite thumbnail physical dimensions in portable infobox via wikifactory variable 2015-12-10 16:41:07 -08:00
Inez Korczynski 3647cb2f37 VE-1965: Caption comes from Parser as a safe HTML so there is no need and it shouldn't be escaped 2015-12-09 00:47:05 +00:00
Inez Korczynski 52f7f4e083 VE-2069: By default use "===" comparison in PHP (instead of "==") 2015-12-07 22:37:56 +00:00
Inez Korczynski 53f762bfec VE-2069: Small code refactoring to avoid multiple nesting inside one method 2015-12-07 22:36:56 +00:00
Inez Korczynski b1efc457c3 VE-2069: Adjust tests to data that ImageNode is returning 2015-12-07 22:11:19 +00:00
Inez Korczynski 19fc47e23e VE-2069: Adjust getImages method to work well with recent changes to ImageNode
I'm not very happy with how nested this method is but it seems that it is the convention taken within PortableInfobox project.
I would much better prefer if there was more object oriented way to delegate for instance task of retrieving images list directly to NodeImage but that would be much greater refactoring.
2015-12-07 22:05:45 +00:00
Inez Korczynski f084fd5fba VE-2012: Load PortableInfobox.js for all skins including monobook 2015-12-04 23:56:29 +00:00
Inez Korczynski 553f4521a0 VE-2013: Fix problem with PI JS not being executed in preview by using wikipage.content hook
JavaScript for PortableInfoboxes MediaCollections and CollapislbeGroups initialization was executed once while loading the file - so it was working propery for most common case which is displaying article (the view page). However sometimes content is loaded dynamically, after JavaScript already loaded and executed, and for such cases intialization was not happening. In particular such case is loading article preview from within the Classic Editor. Problem is solved by using solid and common MW approach of MediaWiki JavaScript hooks - specifically one named 'wikipage.content' which is meant to be fired whenever wikipage (in any context) is being displayed.
2015-12-04 20:38:10 +00:00
adamkarminski 7ba8f0e658 CE-3014 Remove the deprecated PortableInfoboxClassification class 2015-12-03 10:42:21 +01:00
Inez Korczyński cb48a06b79 Merge pull request #9145 from Wikia/VE-2049
VE-2049: Emergency Broadcast System
2015-11-25 12:08:11 -08:00