Commit graph

546 commits

Author SHA1 Message Date
Prateek Saxena d760c12fe0 Stop showing popup for cancel link on the Wikitext editor
Bug: T122078
Change-Id: Ib275605c649829a1a04b9bdcb8ffe446921aed0c
2015-12-23 19:08:33 +05:30
Kunal Mehta 131563a68c Move EventLogging schema registration into extension.json
Change-Id: I9dea6584d5e811d761542f207a5f63357479d644
Depends-On: I01aa2887a9b98c2ef52cacc3a892390a72b4a3ba
2015-12-22 16:50:39 -08:00
Kunal Mehta 1dc7725389 Use ExtensionRegistry to determine whether TextExtracts is installed
Bug: T121777
Change-Id: Ic017615993b7d1ba746424ce6b576b71ba72b25f
2015-12-19 22:59:31 +00:00
jenkins-bot 8df9d2fae1 Merge "Add 'lang' and 'dir' attributes to '.mwe-popups-extract'" 2015-12-17 20:27:32 +00:00
Translation updater bot 214ab887ac Localisation updates from https://translatewiki.net.
Change-Id: I6fc72138be6cd4a2eed90ef5d832a1baa46e9fcd
2015-12-15 22:24:27 +01:00
Translation updater bot bc8b53cb8a Localisation updates from https://translatewiki.net.
Change-Id: Id2f3602c4f77a6a3337920aac54bd1c95ae38c18
2015-11-30 21:35:49 +01:00
Translation updater bot 03c9c86ea0 Localisation updates from https://translatewiki.net.
Change-Id: I81998ece2115376ca03615203e6ca97e032e3a16
2015-11-19 21:39:24 +01:00
Paladox a087ea3334 Add composer.json
Test entry point for CI. Just composer install && composer test

This can later on let us easily add support for PHP CodeSniffer.

Also normalized /.gitignore

Signed-off-by: Antoine Musso <hashar@free.fr>
Change-Id: I827d29abedb32e59627fcdaf0a90815fe52efd20
2015-11-19 14:30:20 +01:00
Fomafix 0a386fa141 Add 'lang' and 'dir' attributes to '.mwe-popups-extract'
This change uses I26d033e33bfa60c8ff72ba70bb564cba4303a8b6 from core.

Bug: T68114
Change-Id: Iede17b777d5bb2863ea08ba5b0549b4cd7ef5a56
2015-11-04 16:53:47 +00:00
Translation updater bot 1bb736770a Localisation updates from https://translatewiki.net.
Change-Id: I6a68032c6e49753b12d8c025263e5c7c65ca1fdf
2015-11-03 21:52:33 +01:00
Prateek Saxena 4460321e5a renderer: Use NavigationPopups settings where available
Change-Id: I47e11d07561ebf710d39042c2a3bc4b213a821da
2015-11-01 16:39:46 +05:30
Translation updater bot ab262f1987 Localisation updates from https://translatewiki.net.
Change-Id: I6971e257fe93ae6aa687adfd8b26cc0234cac0d2
2015-10-31 21:07:02 +01:00
Translation updater bot 8c9f021951 Localisation updates from https://translatewiki.net.
Change-Id: I09a1c2eb7557ea80065765742a0f972dc5eda7e0
2015-10-30 21:49:48 +01:00
Translation updater bot 6a4834ca15 Localisation updates from https://translatewiki.net.
Change-Id: I863e51d65475d97e1ed5fbce7cef740fc8720517
2015-10-29 21:25:35 +01:00
jenkins-bot cfce026e26 Merge "build: Updating development dependencies" 2015-10-26 09:00:49 +00:00
Paladox a39af9b58e build: Updating development dependencies
* grunt-contrib-jshint: 0.11.2 → 0.11.3
* grunt-jsonlint: 1.0.4 → 1.0.5

Change-Id: Ide62f02ded3a74b94454fd98d4ca7b9f20470883
2015-10-26 08:58:24 +00:00
Paladox c8c37b8af4 Update Gruntfile.js
Target all JS files, not just the ones in resources.

Change-Id: I036360365ebbd5e5654b5a74694e2656e63e56e6
2015-10-26 08:49:33 +00:00
Translation updater bot 9fa09b6b2a Localisation updates from https://translatewiki.net.
Change-Id: If7244fcee645459e31c272ad2f85afdca455a73f
2015-10-20 22:49:47 +02:00
Translation updater bot 7182c75fa1 Localisation updates from https://translatewiki.net.
Change-Id: I0f2f47e654c4661a0b735642e055c50e330ce533
2015-10-15 09:49:25 +02:00
jenkins-bot 0fec4def5a Merge "Remove dead space" 2015-10-14 17:35:23 +00:00
Baha 7c6ccb3d1a Remove dead space
Make sure the popup is displayed right above or below the link.

Bug: T68317
Change-Id: Ib6ba9f1ffc5244842a1535937aa0990eae6943ae
2015-10-14 15:49:39 +05:00
jenkins-bot eaf71a1d4b Merge "ext.popups.renderer.article.js: Use mw.RegExp.escape() for RegExp escaping" 2015-10-14 00:31:07 +00:00
jenkins-bot 68500e7256 Merge "Check renderers' matcher method to find the appropriate renderers for a link" 2015-10-14 00:30:16 +00:00
jenkins-bot f931e0d5ef Merge "Update indentation to use tabs" 2015-10-13 07:13:18 +00:00
Siebrand Mazeland 9973b943b4 Update indentation to use tabs
Change-Id: I0e446a18bde79547a81adb92a7e51a51f997a345
2015-10-13 08:39:24 +02:00
Translation updater bot 30abbe8d25 Localisation updates from https://translatewiki.net.
Change-Id: I92011a6ecc985f8850df4efaae618d661a267b8b
2015-10-12 21:05:40 +02:00
Kunal Mehta 8b27b96d3a build: Updating development dependencies
* grunt-banana-checker: 0.2.2 → 0.4.0

Change-Id: I40eacb11872f82d23c7324237fa7b1c78b11dd3a
2015-10-11 11:56:05 -04:00
Translation updater bot aaac91a701 Localisation updates from https://translatewiki.net.
Change-Id: Iaeb8240010128ddadacfddef9937a3c86b949a6a
2015-10-09 22:33:06 +02:00
jenkins-bot 3a543f7f5d Merge "settings: Remove navPopEnabled property" 2015-10-09 00:53:45 +00:00
Translation updater bot 5271c303e3 Localisation updates from https://translatewiki.net.
Change-Id: I412017ac4fd789d29a66d3b35336182aa7f2495a
2015-10-07 22:02:23 +02:00
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