idradm
581715eb46
XW-2444 renders refactoring
2016-12-29 11:28:26 +01:00
Mateusz Rybarski
52d85ec2a1
XW-2444: reducing number of notices and warnings in tests
2016-12-29 10:16:53 +01:00
Mateusz Rybarski
81a6a74f30
XW-2444: fallback to default color instead of displaying error when wrong color is provided
2016-12-29 09:46:05 +01:00
Mateusz Rybarski
6925fdf759
XW-2444: removing wfProfileIn and out
2016-12-28 16:44:16 +01:00
Mateusz Rybarski
bf5ef7ae26
cr remarks
2016-12-28 16:41:36 +01:00
Mateusz Rybarski
129d8bb49a
cr remarks
2016-12-28 16:39:53 +01:00
Mateusz Rybarski
e4b28b1691
XW-2444: adding # to color if not provided, formatting
2016-12-28 16:30:24 +01:00
Mateusz Rybarski
2498b0111a
XW-2444: cr remarks
2016-12-28 15:14:54 +01:00
Mateusz Rybarski
c5c1a2c071
XW-2444: adding tests
2016-12-28 13:36:57 +01:00
Mateusz Rybarski
39ccd95df9
XW-2444: render custom accent colors
2016-12-28 13:10:57 +01:00
Mateusz Rybarski
0db0229550
XW-2444: fixing tests
2016-12-28 12:10:57 +01:00
Mateusz Rybarski
3ad591cec6
Merge branch 'pi-render-service-refactor' into XW-2444
2016-12-28 11:29:36 +01:00
Mateusz Rybarski
9f96ab9f45
XW-2444: unittests for color validation
2016-12-28 10:12:21 +01:00
idradm
e4736fc79c
add empty values check, make sure asJson is run only on mobile, set mobile image width
2016-12-28 09:32:06 +01:00
Mateusz Rybarski
9e89577acf
XW-2444: extracting validation from ParserTagController
2016-12-28 09:27:25 +01:00
idradm
39d9302a93
refactor template engine logic to separate class
2016-12-27 15:58:01 +01:00
idradm
51e2cbfb18
make mobile renderer service a child of desktop renderer
2016-12-27 15:34:21 +01:00
idradm
36b582a164
refactor render service to skin based services
2016-12-27 15:09:55 +01:00
Mateusz Rybarski
3a3894a1a3
XW-2444: fixing unittests for render service, cleanup
2016-12-27 14:35:48 +01:00
Mateusz Rybarski
1ec85d8594
XW-2444: validating hex color, support for accent-color-text params
2016-12-27 13:50:53 +01:00
Mateusz Rybarski
be71d1b0f4
XW-2444: accent-color param without validation
2016-12-27 12:10:11 +01:00
idradm
7166ca0470
XW-2415 make sure render data is an array
2016-12-19 15:17:40 +01:00
idradm
b4f12c868f
XW-2415 reparse if parser version missing
2016-12-19 13:27:19 +01:00
Igor Rogatty
4705117c83
XW-2415 | test getSourcesMetadata method and fix an issue that was found
2016-12-14 15:46:17 +01:00
Igor Rogatty
380c2900b9
XW-2415 | fix unit tests
2016-12-14 13:54:53 +01:00
Igor Rogatty
74eaae9559
XW-2415 | reparse only the pages with infoboxes property
2016-12-14 12:44:23 +01:00
Igor Rogatty
f138e36089
XW-2415 | make TemplatesHelper more generic
2016-12-14 12:31:25 +01:00
Igor Rogatty
c599b34595
XW-2415 | simplify logic in getSourcesMetadata()
2016-12-13 17:56:33 +01:00
Igor Rogatty
38aec59849
XW-2415 | treat infobox templates and articles with infoboxes separately
2016-12-13 17:41:55 +01:00
Igor Rogatty
80a9500997
XW-2415 | keep it dry
2016-12-09 17:11:17 +01:00
Igor Rogatty
6dea854d48
XW-2415 | use parser tag version and reparse infoboxes if needed
2016-12-09 16:55:42 +01:00
Igor Rogatty
7ad06f684a
XW-2415 | handle images inside groups
2016-12-09 15:56:57 +01:00
Igor Rogatty
5712de9f05
XW-2415 | save infobox metadata, not just labels
2016-12-09 14:01:49 +01:00
Igor Rogatty
3b704769ff
XW-2415 | infobox dialog in VE knows the source types
2016-12-07 19:02:00 +01:00
Damian Jozwiak
4acf41caef
XW-2307 | Whitelist videos in Portable Infoboxes
2016-11-22 13:02:56 +01:00
Weronika Rudnicka
8d055fb35c
XW-2307 | fixed whitespaces, using getMediaType method
2016-11-21 23:15:51 +01:00
Weronika Rudnicka
33210522f2
XW-2307 | in infobox only image files are displayed
2016-11-21 15:13:13 +01:00
idradm
3e586523e4
XW-2278 fix wikitext lists after variables were replaced
2016-11-14 11:24:44 +01:00
Weronika Rudnicka
ee7404ef6b
XW-2234 | added srcset to infobox image, to display better quality images for retina
2016-11-03 14:27:43 +01:00
grunny
8186618eb9
(DAT-4494) Fix galleries and tabber in PortableInfoboxes
2016-06-16 16:59:48 +00:00
Warkot
10f96eaa96
XW-1478 | extendImageData has to be run even for the first PI
2016-05-31 00:20:39 +02:00
Warkot
1fa29ea03b
XW-1478 | don't render the whole hero module including the title on Mercury
2016-05-30 21:30:25 +02:00
Warkot
908327db5d
XW-1478 | don't render hero image in first infobox on Mercury
2016-05-30 18:35:11 +02:00
Igor Rogatty
27e695e569
XW-1225 | remove $wgEnableSeoFriendlyImagesForMobile and clean up
2016-05-18 14:44:36 +02:00
idradm
9ceba1d2d0
DAT-3942 make sure isVideo param is always set, update tests
2016-04-20 10:38:44 +02:00
Bogna Knychala
1dc864dd5a
Merge remote-tracking branch 'origin/dev' into XW-1300
2016-04-08 13:13:17 +02:00
Daniel Grunwell
e8c9a1611a
Merge pull request #10117 from Wikia/CE-3554
...
CE-3554: Improve infobox input fields labels in VE dialog
2016-04-08 17:40:54 +10:00
Igor Rogatty
498aa90f26
Merge branches 'XW-1300' and 'dev' of https://github.com/Wikia/app into XW-1300
2016-04-06 12:30:54 +02:00
Igor Rogatty
455e4b5e75
XW-1300 | support for image collections
2016-04-05 17:42:21 +02:00
Lukasz Konieczny
9f7c54012b
CE-3554: Combine two lines to one
2016-04-05 09:58:19 +00:00
Lukasz Konieczny
d340841e17
CE-3554: Improve code after CR
2016-04-05 07:27:18 +00:00
Igor Rogatty
3bc774edaa
XW-1300 | use global properly
2016-04-04 17:09:08 +02:00
Igor Rogatty
17a045e1aa
XW-1300 | add tests for Mercury experimental markup
2016-04-04 15:50:36 +02:00
Igor Rogatty
065bf53428
XW-1300 | add hero-mobile-wikiamobile to sanitizer builder
2016-04-04 13:49:48 +02:00
Igor Rogatty
55c6cf6c11
XW-1300 | use isMercury helper method
2016-04-04 13:13:52 +02:00
Igor Rogatty
4c150d9885
XW-1300 | support for WikiaMobile
2016-04-01 17:33:29 +02:00
idradm
dc868173b3
DAT-4041 fix regex to much only empty infobox tags
2016-04-01 16:54:04 +02:00
idradm
c15314dd7b
DAT-4041 empty portable infobox will be supported
2016-04-01 16:43:41 +02:00
Lukasz Konieczny
06fad58042
CE-3554: Support more sources
2016-04-01 12:54:43 +00:00
Lukasz Konieczny
4f11b96e48
CE-3554: Changes after CR
2016-04-01 11:07:30 +00:00
Igor Rogatty
52f6c9b389
XW-1300 | remove accidental var_dump
2016-04-01 12:29:36 +02:00
Igor Rogatty
07cdefb0f5
XW-1300 | use mercury-component-attrs name and fix unit tests
2016-04-01 12:06:10 +02:00
Igor Rogatty
d5587fbc25
XW-1300 | use new media components in portable infoboxes
2016-03-31 18:08:57 +02:00
Lukasz Konieczny
a773ee1a49
CE-3554: Extract labels from infobox markup and save them in page props
2016-03-31 09:58:34 +00:00
idradm
508635c08f
DAT-4018 make europa theme solely var dependent
2016-03-29 12:31:03 +02:00
Rafal Leszczynski
677b272351
add pi-europa class to infobox if europa is enabled
2016-03-29 12:12:11 +02:00
idradm
8dd35e8146
DAT-3934 remove comment
2016-03-17 12:13:17 +01:00
idradm
cbc0a10a78
DAT-3934 add tests for custom width
2016-03-17 12:12:36 +01:00
idradm
af041c9196
DAT-3934 provide a way to decide on image size while infobox rendering
2016-03-17 10:37:18 +01:00
idradm
a1e34471c2
DAT-3934 set image width to 100%
2016-03-16 10:09:54 +01:00
idradm
60d87fc123
DAT-3934 make image bigger and adjusted by css
2016-03-16 09:50:01 +01:00
Rafal Leszczynski
604e9da6df
DAT-3937, remove special case for europa thumbnail width
2016-03-14 10:36:08 +01:00
Rafal Leszczynski
5c75f627a2
DAT-3937, set different image width for europa theme only
2016-03-14 08:57:58 +01:00
Rafal Leszczynski
7a12be6310
DAT-3855, round image display dimensions
2016-03-09 10:45:31 +01:00
Rafal Leszczynski
6e8866bf03
DAT-3855, add comment about changing image thumbnail width
2016-03-09 10:23:55 +01:00
Rafal Leszczynski
971a012f8c
DAT-3855, increase default image thumbnail width to match europa default infobox width
2016-03-08 15:27:46 +01:00
Mateusz Rybarski
5637f4d6ed
fetching infobox markup, checking if there is only one infobox
2016-02-16 13:37:48 +01:00
Bogna Knychala
402d4e3c8c
XW-41 add template to experimental image collection
2016-02-15 18:44:02 +01:00
Bogna Knychala
ba822f6176
XW-41 add comment to method and fix the log message format
2016-02-15 15:48:42 +01:00
Bogna Knychala
46683ca8e4
XW-41 fix xpath to media in hero image in infobox
2016-02-12 18:20:14 +01:00
Bogna Knychala
c6aa0fb787
XW-41 handle experimental content
2016-02-12 17:13:48 +01:00
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
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
Sebastian Marzjan
531fc700e6
Provide explicitly encoded XML to loadHTML (libxml issues ;-) )
2016-01-08 08:24:09 +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
Sebastian Marzjan
72392d0edd
Normalize whitespace when processing infobox contents
2016-01-05 09:05:50 +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