Commit graph

17630 commits

Author SHA1 Message Date
Timo Tijhof 48c4dfd59e Remove redundant dependency on 'mediawiki.notify'
The 1 line of code this module contained (to lazy-load
'mediawiki.notification', and forward the function call) was
moved to 'mediawiki.base' and requires no dependency.

Bug: T233676
Change-Id: Ifcb1bca030bede62065a87dc7a8594fe17e017cc
2020-04-08 17:47:21 +01:00
Translation updater bot 403071cced Localisation updates from https://translatewiki.net.
Change-Id: Ic78d4925d724c0deb6a4529873f638e9b463bcb0
2020-04-07 08:52:40 +02:00
Akinwale Alagbe 3b7a567bfc Fix: Adding label to source editor switch editor tool
Change-Id: I7cd90bbbd0f65c0a5b0588fd337e922a63b618b5
2020-04-06 18:10:26 +00:00
Translation updater bot 080097b3be Localisation updates from https://translatewiki.net.
Change-Id: Iacd44754a5e5944fd1a7ace56503c1db5f62f3e7
2020-04-06 09:03:07 +02:00
libraryupgrader a87fe877c5 build: Updating npm dependencies
* postcss-sass: 0.4.2 → 0.4.4
  * https://npmjs.com/advisories/1179
* decompress: 4.2.0 → 4.2.1
  * https://npmjs.com/advisories/1217

Change-Id: Id9d5a69ebff0e7966f03f6a0451961c52a79e8d8
2020-04-05 11:11:32 +00:00
Translation updater bot 88b450015c Localisation updates from https://translatewiki.net.
Change-Id: I138b3e4c9eafd5052221c70ae9edef3da0b79f1f
2020-04-03 08:29:05 +02:00
Akinwale Alagbe 229a249cca Adding accessibility label to template and field name edit textbox
Change-Id: Ieeb29de8534300751956eb76477b38578478b4a2
2020-04-02 21:02:55 -07:00
Translation updater bot df2dd3950f Localisation updates from https://translatewiki.net.
Change-Id: Id5edd9c0d78d4a6bc3561c9d48aa1b2dae537bc6
2020-04-02 08:25:42 +02:00
jenkins-bot 443cb0fe55 Merge "Overwrite "edit source" link only when needed" 2020-04-01 21:51:56 +00:00
jenkins-bot 65b9f4ff46 Merge "Fix issues with treating section "numbers" as integers" 2020-04-01 20:57:12 +00:00
Bartosz Dziewoński 92c3055628 Fix issues with treating section "numbers" as integers
In MediaWiki, section numbers may be prefixed with 'T-' if they refer
to sections on a transcluded page, so they are not really numbers.

Change e2cb9ce93e caused us to treat them as strings most of the time,
but it looks like there are several places where we treated them as
integer numbers, which I missed when making that patch.

The first two changes in ArticleTarget#restoreEditSection fix T248795
and T248968/T249112, respectively. The other changes are cleanup.

Bug: T248795
Bug: T248968
Bug: T249112
Change-Id: I8373a7ab515595769ce6f3051a182c922415b643
2020-04-01 21:41:17 +02:00
Translation updater bot 5a70975163 Localisation updates from https://translatewiki.net.
Change-Id: Id6aa06da1a76941bf7c3b1bc3ce459538d394d5b
2020-04-01 08:25:50 +02:00
jenkins-bot 55a868812c Merge "Remove use of Revision::newFromId" 2020-03-30 12:38:10 +00:00
Translation updater bot ba2895ca5d Localisation updates from https://translatewiki.net.
Change-Id: I2b4bd2cda45d17f374dd8dd8f674196879073f03
2020-03-30 09:15:41 +02:00
DannyS712 de392e6133 Remove use of Revision::newFromId
Bug: T246284
Change-Id: Ia3de1caeac5edb2a8ee272fb9b80d36e1d778314
2020-03-30 04:45:24 +00:00
MtMNC fd0b145db3 Overwrite "edit source" link only when needed
Prevent JS from overwriting the contents of the "edit source" link
if the change is unnecessary as it can break third-party skins.

Bug: T248025
Change-Id: Ica1e45488813877583efadabc72526544e8943ac
2020-03-27 12:20:33 -07:00
Translation updater bot e4065c3781 Localisation updates from https://translatewiki.net.
Change-Id: Ia9353a1f402cb369b2409888a396a582ecfea497
2020-03-27 08:42:25 +01:00
Translation updater bot a718e9dcca Localisation updates from https://translatewiki.net.
Change-Id: I01f23e3092cada2cecca181f650d7fa19fe62bec
2020-03-26 08:33:28 +01:00
Translation updater bot 4b0f8c621d Localisation updates from https://translatewiki.net.
Change-Id: I17d6622f88ee3ced73f8dcddb32ea292ed81f99d
2020-03-25 08:34:03 +01:00
jenkins-bot 774c3ec1e4 Merge "Move MWutils to preinit and rename to parsoid utils" 2020-03-24 22:31:17 +00:00
Ed Sanders de47496b19 Move MWutils to preinit and rename to parsoid utils
Bring in ve.dm.MWInternalLinkAnnotation.static.getTargetDataFromHref
and ve.resolveUrl, so that the file has no dependencies on VE.

Change-Id: I03bc455d5484a6c51f3fa2397c64936b829fe7e3
2020-03-24 23:13:16 +01:00
Bartosz Dziewoński 494fc439fd Fix new section title when switching from NWE to OWE
This code path is triggered when saving a new section in NWE causes an
edit conflict, which should be impossible, but apparently does happen.

Add some TODOs for parameters being added to the API calls in weird
places, instead of the dedicated methods.

Bug: T248364
Change-Id: I0686671e86e35f9ba503d0dd84e9074dde72dc10
2020-03-24 21:57:03 +01:00
Translation updater bot 57a0d7d847 Localisation updates from https://translatewiki.net.
Change-Id: Iae5ac813cdf3e486e87d4ff5bb710e0252a10b90
2020-03-24 08:50:52 +01:00
libraryupgrader d0d6af8e5a build: Updating composer dependencies
* mediawiki/minus-x: 1.0.0 → 1.1.0
* mediawiki/mediawiki-phan-config: 0.9.1 → 0.9.2

Change-Id: Ie52ba7af4b21933036f906cffe18c9c89c728012
2020-03-23 21:08:47 +00:00
Bartosz Dziewoński dbad345881 Update VE core submodule to master (55426fb18)
New changes:
ef37e8ea8 build: Updating minimist to 1.2.5
e535a827e Localisation updates from https://translatewiki.net.
27175748f Move ve.resolveUrl method to 've.utils.parsing'

Change-Id: I8da3c52b197f1d58fc260d9371710d9f4cc43ba3
2020-03-23 19:27:23 +01:00
Bartosz Dziewoński 73dcfb7122 ApiVisualEditorEdit: Fix handling of 'minor' parameter
The client-side code sends the empty string as the value of this
parameter when the edit should be marked as minor, and doesn't set it
at all when it shouldn't (this is the normal convention for boolean
parameters). However, the API code here was incorrectly handling the
empty string, and not marking the edit as minor as a result.

This was revealed by 50883dd7fe. Prior
to that change the original 'minor' parameter was forwarded to the
action=edit call if it was provided, overriding the 'notminor'
parameter, which was effectively added unconditionally.

Bug: T248257
Change-Id: I37fd73851d94906d79943692fb9136da03ea95fa
2020-03-23 17:36:34 +01:00
Translation updater bot fa3363972d Localisation updates from https://translatewiki.net.
Change-Id: I0412c631608f401ecf5d38f3c2138f394089e536
2020-03-23 09:04:53 +01:00
libraryupgrader ad8e396f1c 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

Change-Id: Id41d07d66980cb34e6a8053a54a01364417b188c
2020-03-21 08:51:54 +00:00
jenkins-bot 8384559296 Merge "ApiVisualEditorEdit: Remove unused output values 'basetimestamp', 'starttimestamp'" 2020-03-20 19:37:47 +00:00
Translation updater bot 316161de03 Localisation updates from https://translatewiki.net.
Change-Id: I95b3ff58b3fb984175117754399beff16a02a9be
2020-03-20 08:25:21 +01:00
libraryupgrader e88f23f9ad build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: Ic6036834e3af1ed97d8e36882922ffedf09b37ae
2020-03-19 20:59:47 +00:00
jenkins-bot 3a598e4543 Merge "Update VE core submodule to master (61d8fefba)" 2020-03-19 20:07:11 +00:00
jenkins-bot 6c29d69e33 Merge "MWTransclusionDialog: Set 'aria-expanded' on "Show/hide options" button" 2020-03-19 19:57:37 +00:00
James D. Forrester 993cd8949d Update VE core submodule to master (61d8fefba)
New changes:
2e0e2a303 build: Upgrade grunt from 1.0.4 to 1.1.0
301ab9ab1 Add accessibility labels to all `type: 'list'` toolbar groups

Bug: T245776
Change-Id: Ic4c309e755c03790a8d0303363a2ecdf096695f0
2020-03-19 12:53:50 -07:00
jenkins-bot 007604dd24 Merge "Update VE core submodule to master (cf72879d2)" 2020-03-19 19:51:19 +00:00
Akinwale Alagbe 2aeae1c3f9 MWTransclusionDialog: Set 'aria-expanded' on "Show/hide options" button
Adding the ability for screen reader to announce 
the state of the Transclusion dialog 
when the show/hide options button is clicked.

Bug: T248089
Change-Id: I89b86179bcb63376e480cb8df55e24b9d29df037
2020-03-19 19:43:14 +00:00
jenkins-bot fe15e3cc89 Merge "Add accessibility labels to all type: 'list' toolbar groups" 2020-03-19 19:35:52 +00:00
Ed Sanders 788c57a3ea Update VE core submodule to master (cf72879d2)
New changes:
cf72879d2 Show sum/average when selecting multiple numeric cells

Local changes:
Implement number parsing/formatting for table summing

Bug: T247877
Change-Id: I52af622dc8cfe7e77fd7ce88428be092d5b092a2
2020-03-19 12:26:26 -07:00
Translation updater bot 884ffbb0b9 Localisation updates from https://translatewiki.net.
Change-Id: I246d4c306bba7bb56da090fe5f6a77696435c958
2020-03-19 08:34:47 +01:00
Bartosz Dziewoński e2cb9ce93e Remove incorrect handling for 'T-' prefix in section numbers
When a page is preprocessed for transclusion, sections are numbered
differently, and the 'T-' prefix indicates this. It can't just be
removed.

It seems that all of our other code can handle section "numbers" like
"T-1" just fine.

Bug: T246164
Change-Id: If19a2d48f94411a89525fb605169c7f8dd4b1797
2020-03-18 21:23:38 +01:00
Translation updater bot e1e1656818 Localisation updates from https://translatewiki.net.
Change-Id: I45098df48cffb567a9d81b5e9a4e55e39d0393a2
2020-03-18 09:33:45 +01:00
Bartosz Dziewoński 9e859a6145 ApiVisualEditorEdit: Remove unused output values 'basetimestamp', 'starttimestamp'
Our client-side code doesn't use them, and they should not be needed.

ApiVisualEditor still returns those, and they are needed there; this
method used to be shared by both classes until 25afae342a.

ApiVisualEditorEdit still has 'basetimestamp' and 'starttimestamp'
input parameters.

Change-Id: I7108468df2ff20f05bd141cb617e4e0f90c027ce
2020-03-17 21:04:51 +01:00
Bartosz Dziewoński 0039ca5bd3 ApiVisualEditorEdit: Remove unused variable $links
It was added in 78a52f1f80 (2014)
and apparently was never used?

Change-Id: I44a3305f805333f8ea3d35f4f937cc6210eb54eb
2020-03-17 20:38:53 +01:00
Bartosz Dziewoński 6d254de92e ApiVisualEditorEdit: Remove use of deprecated 'modulescripts'
It's unused and always empty, as of MediaWiki 1.33 (c6f34408).

Change-Id: I7997e8dcc5ce7221cf5586173dbb0fe62f9a7953
2020-03-17 20:31:45 +01:00
Translation updater bot d6de945517 Localisation updates from https://translatewiki.net.
Change-Id: Ic5c68c2001225d62c44757f9624af82a2daac83a
2020-03-17 10:26:37 +01:00
jenkins-bot f22a8733df Merge "Update VE core submodule to master (31fe99c3f)" 2020-03-17 00:14:18 +00:00
jenkins-bot 39a8ecf890 Merge "Remove X-Parsoid-Variant configuration value, which is no longer needed" 2020-03-17 00:13:39 +00:00
Bartosz Dziewoński 7367881daf Update VE core submodule to master (31fe99c3f)
New changes:
31fe99c3f Localisation updates from https://translatewiki.net.

This restores translations for the 'visualeditor-pagemenu-tooltip'
message, which was moved to the submodule.

Change-Id: I9095d3d5450cd3517d70d590fde568e4f44672b8
2020-03-16 17:47:16 +00:00
Translation updater bot 6efa7b337a Localisation updates from https://translatewiki.net.
Change-Id: I58c766e7efcfd9a08574755c5efb98f6b0399a61
2020-03-16 16:03:04 +01:00
Bartosz Dziewoński 7b47575a45 Add accessibility labels to all type: 'list' toolbar groups
Bug: T245776
Change-Id: I67d8e239f4fed7dd7ac4b98be3362426e753076b
2020-03-14 14:13:53 +01:00