Commit graph

5481 commits

Author SHA1 Message Date
Translation updater bot 7ca12c2dcb Localisation updates from https://translatewiki.net.
Change-Id: If1792b34ddffb1982c31ac0841322e499ac1bcaa
2020-04-22 08:56:04 +02:00
Edward Chernenko 87053b91a6 Be compatible with third-party extensions that use NewMessagesAlert
1. Preamble:
Currently Extension:Echo unconditionally suppresses NewMessagesAlert,
because "You have new messages" is replaced by Echo notification.

2. Problem:
Some third-party extensions (such as Extension:Moderation) can use
GetNewMessagesAlert hook to inject their own notification, which must
not be suppressed.
By returning "false" from GetNewMessagesAlert hook, Echo stops those
third-party extensions from showing their notifications too.

3. Solution:
Allow those third-party extension to tell Echo "don't suppress this"
by returning false from the hook EchoCanAbortNewMessagesAlert.
This change has no impact on situations when no such third-party
extensions are installed.

4. How it was handled before this change:
Old solution for those extensions was to remove the hook of Echo from
$wgHooks, which was a dirty hack and is not compatible with T240307.

Change-Id: I433e30c5f639b5f20838804e8fa7c94a4bcf5349
2020-04-21 10:12:51 +03:00
Translation updater bot e8065dc6fe Localisation updates from https://translatewiki.net.
Change-Id: If6ccd5cc8669b06196c21839c67f7427ca44011c
2020-04-20 08:41:20 +02:00
libraryupgrader 610dd6adfd build: Updating grunt-banana-checker to 0.9.0
Change-Id: Ic87b561f247f140d1e772d34c4b3b7f9426762b7
2020-04-19 03:52:47 +00:00
DannyS712 aa681141af Remove use of Article:: and WikiPage::getRevision()
Remove use of Revision objects from
GenerateSampleNotifications::generateReverted

Bug: T250532
Change-Id: I887c2d0b5599ba3acb7657b1a7636d5474f334dc
2020-04-18 01:57:36 +00:00
Translation updater bot dbd753a0a9 Localisation updates from https://translatewiki.net.
Change-Id: Iabbfa195725125592c53b0c9c4ea6766588a6168
2020-04-17 09:06:38 +02:00
Volker E e85d881817 Replace static border radius value with var
In a distant future those might be replaced by core WikimediaUI Base
and this is a sane preparation for it.

Change-Id: I8907c8908f3b775be36b16a6782d7e9719e30c4c
2020-04-15 18:09:48 -07:00
Volker E 32c1c8e5f1 Amend Base10 color, add and amend WikimediaUI Base variables notation
Amending Base10 to slightly darker `#202122` to fulfill WCAG
requirements in connection to Accent50.
Also adding and amending WikimediaUI Base variables where in connection
with the color change.

Bug: T248393
Change-Id: I3b0c1666f7f883908a3778aa9e3fcbf51b57fefe
2020-04-15 18:02:21 -07:00
Translation updater bot 0ff96d0b1e Localisation updates from https://translatewiki.net.
Change-Id: Ie6ba7a275befe2883a5141611617b5cb9f36d4d5
2020-04-15 08:23:44 +02:00
Translation updater bot f7497d1da0 Localisation updates from https://translatewiki.net.
Change-Id: Ibae2054e0eee23b012789eaf7e2607587a52e892
2020-04-14 08:23:36 +02:00
Translation updater bot c0cbcdd24f Localisation updates from https://translatewiki.net.
Change-Id: If02584e66e06a207a0d8719383e89747641ef2a2
2020-04-13 09:00:20 +02:00
Translation updater bot 0dbfedbcc9 Localisation updates from https://translatewiki.net.
Change-Id: I25be16c5cb699b04c53bdbb3c688b38fc1fff3fd
2020-04-10 09:51:21 +02:00
DannyS712 c87da1142f Remove unneeded dependency on 'mediawiki.notify'
The single line of code it contained is part of mediawiki.base as of
MW 1.35, and the extension only supports MW 1.35+

Bug: T233676
Change-Id: Idcd456bd924e84ea53e1bb090267ef8d1ed35a94
2020-04-09 02:53:25 +00:00
DannyS712 55b018cdd4 Use LinksUpdate::getRevisionRecord
Bug: T249397
Change-Id: I335e12fc2f57a9ca07f985482eb4c339933ef13f
2020-04-08 02:31:43 +00:00
Translation updater bot bb47d976ed Localisation updates from https://translatewiki.net.
Change-Id: I10b912d8b143409270cb57c6f6b55c6a0d1c97c8
2020-04-07 08:39:52 +02:00
jenkins-bot 01c00b670a Merge "Use MediaWikiServices::getAuthManager" 2020-04-06 09:37:49 +00:00
jenkins-bot 8b81354cda Merge "Add getter for EventPresentationModel::$distributionType" 2020-04-06 07:56:07 +00:00
Translation updater bot 8241fa93f3 Localisation updates from https://translatewiki.net.
Change-Id: Ie886d7423addf7619b658a01f15ad2ae0f2c5684
2020-04-06 09:01:47 +02:00
Reedy 2661c3a787 Add getter for EventPresentationModel::$distributionType
There are cases where we want to vary on $distributionType what is sent.
If it's an email (for example), we might want more information and
context which is unneeded via the web notification.

Bug: T249408
Change-Id: I68cedfa8389e1d935b02ca7475bf42262005d2bc
2020-04-05 19:00:16 +00:00
Umherirrender 4337586f4a Use MediaWikiServices::getAuthManager
This required MediaWiki 1.35

Change-Id: I91de51208be72ad0eebc15c3d74069360014085e
2020-04-04 16:59:12 +02:00
jenkins-bot ce186cf03e Merge "Add aria-label to Notifications page “Recent activity” filter widget" 2020-04-03 21:18:37 +00:00
Akinwale Alagbe b49fdb88c3 Add aria-label to Notifications page “Recent activity” filter widget
Adding `aria-label` to the filter widget, with `listbox` role assigned 
to allow screen readers parse read the content.

Bug: T244543
Change-Id: I72a4045abe9a7c391ee3fe471ed944d96259b79e
2020-04-03 20:00:22 +00:00
Translation updater bot 99eaaec519 Localisation updates from https://translatewiki.net.
Change-Id: I1be70dfa2887e55e85285149fb757321d28a7628
2020-04-03 08:28:23 +02:00
Translation updater bot 45ae01db45 Localisation updates from https://translatewiki.net.
Change-Id: I454d6bb2235542bac197601920762d27a3b87197
2020-04-02 08:24:31 +02:00
Translation updater bot 37ed47d933 Localisation updates from https://translatewiki.net.
Change-Id: I5ddbb72362309b2e03999ba4a0d6ede44eb23667
2020-04-01 08:24:51 +02:00
Translation updater bot 98efbf3415 Localisation updates from https://translatewiki.net.
Change-Id: I3d9cc4d317cd474297e33369d86e440421f32dfa
2020-03-31 08:28:40 +02:00
libraryupgrader e3df8797ff build: Updating gonzales-pe to 4.3.0
* https://npmjs.com/advisories/1179

Change-Id: I6f0ab6acf71850638c40077fa8b92f225de3501e
2020-03-31 02:39:48 +00:00
Translation updater bot 6999655ab2 Localisation updates from https://translatewiki.net.
Change-Id: I93a2dfb2f61084bf73bd0b4964d97ae6b97ff91f
2020-03-27 08:41:09 +01:00
Translation updater bot e65eda6479 Localisation updates from https://translatewiki.net.
Change-Id: Ifd7884b999ddb8ac264b69a91252c53b9e6e28b1
2020-03-26 08:31:37 +01:00
Translation updater bot f2d4c98d43 Localisation updates from https://translatewiki.net.
Change-Id: Ibd9010a5d328ce749b1655f2226ce87b5a6e6f2c
2020-03-25 08:32:39 +01:00
jenkins-bot 92e72e9bad Merge "Replace deprecated User::isAllowed with PermissionManager" 2020-03-24 21:00:09 +00:00
Translation updater bot 42f3a2ccff Localisation updates from https://translatewiki.net.
Change-Id: I80e50a1b8447aacfb5f000efd78da3be947af954
2020-03-24 08:49:04 +01:00
Translation updater bot 8e2e036d2c Localisation updates from https://translatewiki.net.
Change-Id: Ib093d38d61e29da6465ab0449ac276de48ec26b5
2020-03-23 09:02:57 +01:00
libraryupgrader 4b602d791f build: Updating npm dependencies
* mkdirp: 0.5.1 → 0.5.3
  * https://npmjs.com/advisories/1179
* eslint: 6.6.0 → 6.8.0
  * https://npmjs.com/advisories/1179
* svgo: 1.2.2 → 1.3.2
  * https://npmjs.com/advisories/1179

Change-Id: Ie46e0ecad8f7ca193227c57c824e6068e5569f66
2020-03-20 22:32:47 +00:00
DannyS712 1d8170a540 Use lowercase for primitive type 'string'
Change-Id: I7e4a3a198b973cf9037b283253c1e2dda6e8b873
2020-03-20 15:37:50 +00:00
libraryupgrader 64b389fdfe build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I5c0763efa647e01971afeb15017d31a991079fbc
2020-03-18 07:17:15 +00:00
Ammar Abdulhamid ad8340ea59 Replace deprecated User::isAllowed with PermissionManager
Bug: T220191
Change-Id: I321a1d67a9272dfb305d76589c6371176f1afc16
2020-03-14 19:14:37 +00:00
Daimona Eaytoy 1be7adf0a8 tests: Avoid calling Title::__construct
Change-Id: Icfe39e0835b4779bf538c2aea9a15cacbdcd6ff5
2020-03-14 18:41:08 +00:00
Umherirrender a933412ea5 Use MediaWikiServices::getMessageCache
This required MediaWiki 1.34 (already set in extension.json)

Change-Id: Ib9f9fe6581c3019fa32dff53acf33edb4266e44d
2020-03-14 14:04:32 +01:00
Translation updater bot e874ca054e Localisation updates from https://translatewiki.net.
Change-Id: I20425dbc2f238ba79f4d3442ce940895a5b7beba
2020-03-13 08:54:15 +01:00
Translation updater bot d479f0c8da Localisation updates from https://translatewiki.net.
Change-Id: I8ec7fd9c8bb138c8b66a0a7c38b391c4151271f6
2020-03-12 08:42:26 +01:00
Translation updater bot e61a45abcf Localisation updates from https://translatewiki.net.
Change-Id: I894a5a6a4ddddb104fb0a613b888a5bd8c9dd5f2
2020-03-11 08:29:15 +01:00
Translation updater bot 98681d2019 Localisation updates from https://translatewiki.net.
Change-Id: I75d0d6912bf0364801a8ee6736725792514b9968
2020-03-10 08:15:04 +01:00
Translation updater bot d27c2f623d Localisation updates from https://translatewiki.net.
Change-Id: Ic6169135f6cbf50843931d63956282a9fa291c0d
2020-03-09 08:56:39 +01:00
libraryupgrader fa58c4d56c build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I068bd41310061388f6dd8ed5d2a5d01ea471e055
2020-03-08 21:26:46 +00:00
DannyS712 ee8118da41 Don't call mediawikiservices::getMainWANObjectCache if not needed
Change-Id: Iafbd3dfd0dfaec26c2f2b0b28b1b0dfecffd2a27
2020-03-08 10:00:28 +00:00
DannyS712 72f30649d5 Pass a user when creating a new ParserOptions
Bug: T246861
Change-Id: Ie6b6504d3b78a33ecb89a5c431bc225622d715c2
2020-03-04 21:53:33 +00:00
Translation updater bot df0f12c195 Localisation updates from https://translatewiki.net.
Change-Id: I23ec5d5929a055f78d70ba63f05e3eedd9a1faf0
2020-03-03 08:14:12 +01:00
Translation updater bot 495bf0693e Localisation updates from https://translatewiki.net.
Change-Id: I482353c3e038795e1a1f19c399a58d4fc060b060
2020-03-02 09:09:56 +01:00
Umherirrender bca8d5c6ef Improve param docs
Change-Id: I664c107f324155b808e55cd6ff586fa38e0f5a0c
2020-02-29 22:20:56 +01:00