Commit graph

1066 commits

Author SHA1 Message Date
Prateek Saxena ba919e5d0a settings: Remove navPopEnabled property
This doesn't need to be a property. Its being used exactly once, and
because we try to test for NavigationPopup's availability so soon we
mostly get an incorrect answer.

Moving the condition to the render method instead. Chances of NavPop
being loaded when the settings' screen is being rendered are much
higher.

Bug: T109912
Change-Id: I3723dc1e3e9400b6ed2e0160104c849a25a71881
2015-10-08 00:11:28 +05:30
Translation updater bot d3f5cacc17 Localisation updates from https://translatewiki.net.
Change-Id: Id200977a953fc1d0566ffd757e3d181b11c20638
2015-10-02 23:49:21 +02:00
Fomafix 7ac7a2abd1 ext.popups.renderer.article.js: Use mw.RegExp.escape() for RegExp escaping
mw.RegExp.escape() is already used in ext.popups.core.js and
the dependency to module 'mediawiki.RegExp' is set.

Change-Id: Iaa7ab6902693c787234fd589276fa38ce75b82da
2015-10-02 20:58:26 +00:00
Prateek Saxena 93ef48221e Check renderers' matcher method to find the appropriate renderers for a link
Right now the main renderer always picks the article renderer, no matter
if any other renderers is registered. It will now run the 'matcher'
method in the rendered, and if it returns true, we use that renderer.

Not sure how we'll avoid matchers stepping on each other.

Bug: T69434
Bug: T102921
Change-Id: Ib06812836cdbd3a5bfd54d4bc6147012fb891694
2015-10-01 10:56:15 +02:00
jenkins-bot 486e34fb38 Merge "Move the article renderer in to the renderers property" 2015-10-01 08:50:39 +00:00
Prateek Saxena 1565a1d3c9 Move the article renderer in to the renderers property
To allow multiple renderers (for different types of content)
to be defined.

Change-Id: I50320646e26f36a0a2bc425c82ccc58912840f84
2015-10-01 08:48:00 +00:00
Baha 495014a917 Feature detect SVG support
'document.implementation.hasFeature' has been deprecated and is not
reliable. See
https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature

Bug: T113200
Change-Id: I5901768d8c8642caac31884c5e9ac5b6ac74d035
2015-09-30 22:36:03 +05:00
jenkins-bot 2652cd325a Merge "core.less: Visual refinement & drop shadow" 2015-09-23 22:24:03 +00:00
Translation updater bot 3c496f48b9 Localisation updates from https://translatewiki.net.
Change-Id: I1d409c3e3c01fa78b90e75fb32d34133ee7d788d
2015-09-15 22:49:03 +02:00
jenkins-bot 2f7475d325 Merge "Hi-DPI/Retina support for hovercard images" 2015-09-09 14:19:34 +00:00
Brion Vibber d90c492275 Hi-DPI/Retina support for hovercard images
Requires core changeset Ic9cb1654 for $.bracketedDevicePixelRatio()

Bug: T97935
Change-Id: I452b87a90769463328840c6c7e46b583e6148439
2015-09-09 15:40:33 +02:00
Translation updater bot 589b48d35b Localisation updates from https://translatewiki.net.
Change-Id: Iea2fac1cddb8aa810a6a8c99d2760fceb7931edc
2015-09-08 21:48:54 +02:00
Translation updater bot 363b6ae3e1 Localisation updates from https://translatewiki.net.
Change-Id: Ie5239515c5521462de17f49210409cc691bf2894
2015-09-06 21:42:22 +02:00
Prateek Saxena 6eef4f325b Add jscs and jshint tasks to the Gruntfile
Adds the jscs and jshint packages for development and their tasks in
Grunt. Also fixes all the code convention errors.

Change-Id: If1c9dfdbe22d4912d78b6a51b1292866970a85cc
2015-09-04 13:57:52 +05:30
Translation updater bot 795e59c3cf Localisation updates from https://translatewiki.net.
Change-Id: I4a2fc4223cacfb3bad97c9224c17a916f48bcad3
2015-08-31 22:27:38 +02:00
jenkins-bot b1dd60ccf5 Merge "Use pg.fn.disablePopups to detect and stop NavigationPopups" 2015-08-27 20:17:37 +00:00
Timo Tijhof 41c12d3f9a Remove stray ")" from the "Enable previews" link
Follows-up dd98179a15.

Change-Id: I07b039dae272c9e66f091dd07b6e9b7d20b6d275
2015-08-27 03:06:20 +02:00
Prateek Saxena 1270c240c9 Use pg.fn.disablePopups to detect and stop NavigationPopups
The global disablePopups function from NavigationPopups got scoped to
pg.fn.disabledPopups at some point. We were relying on that function
to both detect and disable the gadget.

Bug: T109912
Change-Id: I3d6de60ca2a387e45675ddb04cdc45b0f967e46a
2015-08-26 16:52:22 +05:30
Translation updater bot 4df4d5caaa Localisation updates from https://translatewiki.net.
Change-Id: I013996049f09696359667993db2fce4e6e4b11d8
2015-08-24 21:33:48 +02:00
Translation updater bot 56ec557e22 Localisation updates from https://translatewiki.net.
Change-Id: I965c1f548fecb84ca04b1f82544d34e24e7f8eea
2015-08-23 21:38:17 +02:00
Translation updater bot b931bb0126 Localisation updates from https://translatewiki.net.
Change-Id: Idde5240ffad7f78b36ceab213b2d52055f28d1d4
2015-08-22 23:13:16 +02:00
Translation updater bot 4ab1c66a36 Localisation updates from https://translatewiki.net.
Change-Id: I954b314bf4a22e3cfd1a7f4a2c79a9e6c14c0541
2015-08-21 20:59:25 +02:00
Translation updater bot faa464d19d Localisation updates from https://translatewiki.net.
Change-Id: Iec8883c1112f512f8a2dea525e33fea48c5b3e64
2015-08-14 22:11:46 +02:00
Translation updater bot d441b171c8 Localisation updates from https://translatewiki.net.
Change-Id: Ief9f9bdf95612e673b245f7b71b9d72e39b27a09
2015-08-13 20:57:29 +02:00
Translation updater bot 5767deeed8 Localisation updates from https://translatewiki.net.
Change-Id: I430b74a8e3b46d96bda5ae7d34a92636653d7398
2015-08-08 21:14:53 +02:00
Translation updater bot ce70ee8232 Localisation updates from https://translatewiki.net.
Change-Id: I3c498444fc6c7e3781c142aeed2b338230b75d11
2015-08-05 22:36:18 +02:00
Prateek Saxena 07d76da27e Setup jsduck to run on 'npm run doc'
Change-Id: If49922acd1d8af9caac54ed46360ff6c780833ce
2015-08-03 15:54:25 +05:30
Translation updater bot e2c78262a0 Localisation updates from https://translatewiki.net.
Change-Id: If6ffa4e3c3b84c66beab6defc790aabf94cd5aed
2015-07-26 21:41:08 +02:00
Prateek Saxena 947f644991 Move all images to resources/images
Change-Id: Iac712668baf8cefedf036c4d479687e3f5da5a46
2015-07-18 22:27:18 +00:00
Prateek Saxena 51884d39e9 renderer.article: Increase exsentences to 5 in the API call
Bug: T93160
Change-Id: Ie61555b845ab2207aa62040f6d5e13b490e53e15
2015-07-08 18:30:45 +05:30
jenkins-bot 99c134dbf1 Merge "Add maxage, s-maxage and uselang parameters in API call" 2015-07-03 20:14:25 +00:00
Translation updater bot f1e3ec33b2 Localisation updates from https://translatewiki.net.
Change-Id: Iba3170c64dc0350dc02679de7d782bcf5f154deb
2015-07-03 20:42:06 +02:00
Prateek Saxena d0486550e9 Add maxage, s-maxage and uselang parameters in API call
Bug: T97096
Change-Id: I8b4a21b725d25c704eedf3c29ea139a777327a4c
2015-07-03 04:30:57 +00:00
paladox 0331a4747e Remove i18n shim
Change-Id: I64b73782d1d4640e04a9e4264c201ae95b6ce7a9
2015-07-02 15:45:02 -07:00
Prateek Saxena e7d2451d0f Add extension.json, empty php entry point
Bug: T87961
Change-Id: I52e93fd290b1e5d8438467896a159fc7230c5813
2015-07-02 22:19:24 +00:00
jenkins-bot c58e93ad28 Merge "API query improvements" 2015-06-30 06:02:45 +00:00
Prtksxna 0ccedb678c Merge "Use actual booleans in API request" 2015-06-30 05:33:13 +00:00
Translation updater bot ac6739092f Localisation updates from https://translatewiki.net.
Change-Id: I38d074ca5649367c06e804a2083bf5e6364c554f
2015-06-28 22:15:33 +02:00
Translation updater bot 8fdb452d40 Localisation updates from https://translatewiki.net.
Change-Id: Ibc8b745257ec18fc2a4d89d36939817073cf82cd
2015-06-26 21:56:43 +02:00
S Page 6c53f13845 API query improvements
Don't request unused prop=info and its rvprop=watched;
use formatversion=2 instead of indexpageids to simplify processing the
returned query object.

Bug: T103981
Change-Id: I1c0f9b0245a823413f5fed78bc1d0d46ef978cef
2015-06-26 03:57:34 -07:00
S Page 4ac8f1b48b Use actual booleans in API request
Popups' API query request specifies the string 'true' as the value for
some boolean request parameters, but that's functionally identical to
specifying boolean true -- both get encoded as param=true in the HTTP
request.

Change-Id: Icc5f4b8ef6faaffe4a23c964f8cd8c2582d28381
2015-06-26 03:49:55 -07:00
Fomafix 7713e343fe Replace 'jquery.mwExtension' by 'mediawiki.RegExp'
Replace $.escapeRE from 'jquery.mwExtension' by
mw.RegExp.escape from 'mediawiki.RegExp'.

Bug: T103610
Change-Id: I1d23e4c02d92828291b98a52b4e8050fbebc06d9
2015-06-26 07:48:18 +00:00
Translation updater bot ceed34d0e8 Localisation updates from https://translatewiki.net.
Change-Id: I6eae204cd1b092ae2fc389512c2d311ec7700fe5
2015-06-25 20:46:16 +02:00
Kunal Mehta 47d5daf74d build: Configure banana-checker and jsonlint
Change-Id: Id3f1d601f6b99e9646c7a1c6b430b1dd777e952b
2015-06-19 22:09:03 -07:00
Translation updater bot 179c32a92a Localisation updates from https://translatewiki.net.
Change-Id: I85f235eaab29ccac678d92ddb8fdc4ecca45951e
2015-06-13 22:31:08 +02:00
Translation updater bot 3295670fc3 Localisation updates from https://translatewiki.net.
Change-Id: Iaa0398b263d27e9b870677f4af3b17c55c19262b
2015-06-09 22:48:49 +02:00
Translation updater bot 76a58d7bcc Localisation updates from https://translatewiki.net.
Change-Id: If4f3ac8f9e3156a58f61ef48751d8e7c07747e5f
2015-06-06 22:21:46 +02:00
Translation updater bot 70ff0ebd45 Localisation updates from https://translatewiki.net.
Change-Id: I41e2879248367e2da868b2cf385e9373d24c08e4
2015-06-01 22:57:42 +02:00
Translation updater bot 2c0b4f842e Localisation updates from https://translatewiki.net.
Change-Id: Idf246d5e8503438bb61daf66a2f15db1d70af5d9
2015-05-25 22:35:10 +02:00
Translation updater bot 1351467b11 Localisation updates from https://translatewiki.net.
Change-Id: Ia9ae5ca01e9390a1ec1ffd2db682298b91522c7f
2015-05-24 00:12:53 +02:00