Commit graph

16958 commits

Author SHA1 Message Date
jenkins-bot 2f63c31614 Merge "API: Use ParamValidator constants" 2020-07-21 12:20:45 +00:00
Ed Sanders b49ab55548 Gruntfile.js fixes
* Allow screenshot lang as option
* Remove unnecessary extensions option from eslint

Change-Id: Ie85fff074bbd9c0ebeae23e4b46f20ccd2faff26
2020-07-21 11:01:28 +00:00
Translation updater bot f2ba8f2360 Localisation updates from https://translatewiki.net.
Change-Id: Icae9c0a72b06ec792e35c9638e2f2d6114290855
2020-07-21 09:14:07 +02:00
Ed Sanders 9089993417 API: Use ParamValidator constants
Also drop mustBePosted functions as the default implement
is already correct.

Change-Id: Ib8e0fe3f2638892df768438c9f47f90b4ca66968
2020-07-20 21:43:59 +01:00
James D. Forrester d9afc7cc3d Update VE core submodule to master (f5fca4289)
New changes:
3aaa5e05d build: Updating grunt to 1.2.1
7f21a8356 ve.dm.Model: Fix typo in a comment
9585ffb94 ve.ui.CommandHelpDialog: Make it possible to reuse fancy CSS for shortcuts

Change-Id: Ida448be1658ff9781900ec6f1322b5db0c8499c5
2020-07-20 10:18:29 +01:00
Translation updater bot 5c18288189 Localisation updates from https://translatewiki.net.
Change-Id: I5f8d1d09ad69976ed8af616dfdccfb1abce55440
2020-07-20 09:02:28 +02:00
Ed Sanders f092685401 Update VE core submodule to master (549d3c3a0)
New changes:
549d3c3a0 Follow-up I4c34e936: Check deletion sequences after programmatic delete

Change-Id: Ic813a3bef4c2bb778f5a79cf769ce99e96b12f11
2020-07-18 13:27:26 +01:00
jenkins-bot 9d1b3a6d49 Merge "Always rebuild category list from Parsoid data on surfaceReady" 2020-07-17 16:01:23 +00:00
David Lynch c190fab8ea Always rebuild category list from Parsoid data on surfaceReady
Rebuild the category list from the data we got from the API. This makes
it work regardless of whether we came here from activating on an
existing page, switching from source mode, or loading via an edit URL.

Because Parsoid doesn't include redlink status on the <link>s it
represents the categories as, we do have to manually update those
styles.

Bug: T251398
Change-Id: Iaaef3223816269bba1371fbb07956119a120c1ca
2020-07-17 10:24:00 -05:00
Translation updater bot 151cb95b80 Localisation updates from https://translatewiki.net.
Change-Id: I305b253bf5af7a528267910fbe413528a042507c
2020-07-17 08:29:38 +02:00
jenkins-bot f847a946c6 Merge "Update VE core submodule to master (99d104900)" 2020-07-16 08:57:14 +00:00
Translation updater bot c0d1b44ce3 Localisation updates from https://translatewiki.net.
Change-Id: I177a9ef33b9092e887a55fc719ce952ee479e44c
2020-07-16 08:21:57 +02:00
libraryupgrader 88efa3ab45 build: Updating grunt to 1.2.1
Change-Id: I0a890aa01c0867083c1c5420caaa91e5b07afaf2
2020-07-16 03:34:46 +00:00
Bartosz Dziewoński cdd5ebd3a2 Update VE core submodule to master (99d104900)
New changes:
14fea0603 Localisation updates from https://translatewiki.net.
99d104900 ve.ui.LinearContextItem: Fix alignment of the close button on mobile

Bug: T257151
Change-Id: Id658e2764f976a04a9e1d9d52a9cce3e7fd0c155
2020-07-16 01:46:57 +02:00
Bartosz Dziewoński 8702d59879 Toggle TemplateStyles at a better time during (de)activation to avoid flashing
Change $originalContent to $editableContent, as counter-intuitively
the editing surface is attached inside $originalContent, while
$editableContent contains only the hidden existing page content.
It was not a problem previously because of the order.

Bug: T254518
Change-Id: I68f7ddb45f09dff475b183ccfeaf98e67b83066e
2020-07-15 21:27:27 +00:00
C. Scott Ananian ed3579245e French spacing (mw:DisplaySpace) doesn't have mw:Placeholder any more
The mw:Placeholder attribute semantically means, "don't touch this,"
but french spacing should be freely editable.  It's just a funny way
to write a plain wikitext space.

Bug: T254502
Depends-On: Ia164dd1318d45924aa965919e7939c6f817f5d0d
Change-Id: I56e0f0c6526649ea041e023698a48936176dec4b
2020-07-15 20:14:30 +00:00
David Lynch df8b452017 Remove invalid empty translation
Added in 5105fc6ea1 /
I417d3ebe5b2caa8795a80f8e9645150ecde9c2f9.

Change-Id: I05872afe0692c24abbc537f98ea64ec4d767dc99
2020-07-15 14:58:58 -05:00
Translation updater bot 5105fc6ea1 Localisation updates from https://translatewiki.net.
Change-Id: I417d3ebe5b2caa8795a80f8e9645150ecde9c2f9
2020-07-15 09:05:14 +02:00
Bartosz Dziewoński d43266f061 Update VE core submodule to master (0cab1cfbb)
New changes:
94448b786 Adds tabindex to document node

Bug: T255314
Change-Id: I76f150dedaec73ec28b6037f1630bbe6325eaf61
2020-07-13 23:29:15 +02:00
jenkins-bot ca8c828787 Merge "Update VE core submodule to master (1a42033ce)" 2020-07-13 21:07:03 +00:00
jenkins-bot b097557733 Merge "Fix: focus order and screen reader issue in help popup dialog" 2020-07-13 19:58:59 +00:00
jenkins-bot c17c7047ef Merge "Fix: provide proper focus order to Category popup" 2020-07-13 19:58:56 +00:00
Akinwale Alagbe 92f2fb1522 Fix: focus order and screen reader issue in help popup dialog
Bug: T257175
Change-Id: Ib1e72caf06de827d5867e2badfd16408d32e9593
2020-07-13 21:32:43 +02:00
Akinwale Alagbe 2f7765d1e8 Fix: provide proper focus order to Category popup
Bug: T257173
Change-Id: I99e9332adb83bf1197da827583b9f22f68b2f395
2020-07-13 21:30:38 +02:00
C. Scott Ananian 4b04f413fa Zero-configuration VisualEditor + PHP for MediaWiki LTS
This copies the Parsoid extension code into includes/VEParsoid
to allow a "one extension, zero-configuration" install of
VisualEditor for MW's LTS release. The Parsoid code has been
re-namespaced (`VEParsoid` instead of `MWParsoid`) to avoid
autoloader conflicts if you actually install Parsoid as an
extension (as we do in Wikimedia production). Similarly, we
arrange that the ServiceWiring and RestRoutes configurations
are skipped unless running in zeroconf mode, to avoid
conflicts with the Parsoid extension.

This import matches Parsoid commit b30f223.

Bug: T248343
Change-Id: Ic63ce40f59c4be8f4fdc5f9ac17798353fc86866
2020-07-13 18:39:08 +00:00
jenkins-bot 939437632a Merge "MWMediaDialog: Show user uploads when no query provided" 2020-07-13 13:31:44 +00:00
James D. Forrester ec244f4e62 Update VE core submodule to master (1a42033ce)
New changes:
72ee5f358 Update OOUI to v0.39.3
eb9f726d5 Localisation updates from https://translatewiki.net.
1a42033ce build: Updating lodash to 4.17.19

Change-Id: Iff81328d669ba0b2795795c3b537c4bcff25fc86
2020-07-13 10:38:16 +01:00
C. Scott Ananian 5e83b1da2c Enable VisualEditor by default
This provides a "zero configuration" installation option for VisualEditor
for the MW 1.35 LTS release.

Depends on a change to mediawiki-config to reset the default in production
to disabled, so that we don't change user experience on the projects.

Bug: T248343
Depends-On: Ic32a4dc4436c8304e9fde4e1ec18401a8403b167
Change-Id: I5e422bc3eaf8a59a098e13802f511c2519583c0a
2020-07-13 08:56:30 +00:00
Ed Sanders 7d722c5f9a MWMediaDialog: Show user uploads when no query provided
Bug: T62398
Depends-On: Iff4b9fab47764e5b775f6757de1163a245f58ed5
Change-Id: I0a1a88933efa9003a75373c61f194f56bb083219
2020-07-13 08:39:40 +00:00
libraryupgrader 8d83473fe1 build: Updating lodash to 4.17.19
* https://npmjs.com/advisories/1523
* CVE-2019-10744

Change-Id: I04c3216bd76c2493e1d0be418e23320712174fe7
2020-07-11 09:26:35 +00:00
Translation updater bot cd8ab9925a Localisation updates from https://translatewiki.net.
Change-Id: I4c047fa33902346e8b94dae86501d655c6a6c868
2020-07-10 08:26:35 +02:00
Translation updater bot b22b02bd71 Localisation updates from https://translatewiki.net.
Change-Id: Ife17b98686017d224625cd7afa33a6c71125937c
2020-07-09 08:25:51 +02:00
Bartosz Dziewoński 39b6eb1256 Update VE core submodule to master (806716154)
New changes:
3375a5e83 GeneratedContentNode: Don't try to render if model is detached
c85a59d71 Clear surface.activeNode when table cell is torn down
71b9a08fe CompletionWidget: Use getCoveringRange
530d34e49 Fixes table edit buttons (<>) missing name and role

Local changes:
* Add localisation messages for table edit buttons

Bug: T256500
Bug: T256969
Bug: T257267
Change-Id: Ia75180e0b782b0dbe11e94689f8cee32418b4ae8
2020-07-08 21:03:34 +00:00
jenkins-bot 6ccaee2828 Merge "MWSignatureNode: Use template's rendering hash object" 2020-07-08 20:47:20 +00:00
jenkins-bot f197832398 Merge "MWSignatureNode: Don't inherit from TransclusionNode" 2020-07-08 20:44:16 +00:00
Ed Sanders 5a017602c6 MWSignatureNode: Use template's rendering hash object
Bug: T256969
Change-Id: Ie573c677d1bf7f4e0306bcfcb0052e2b64025e89
2020-07-08 22:18:35 +02:00
Ed Sanders a8753df147 MWSignatureNode: Don't inherit from TransclusionNode
We don't share much functionality, and we have to do a bunch
of hacks to disable functionality we don't want.

Change-Id: I9861123d8f1cbab1923f1aa5be713c2dadaed53d
2020-07-08 22:18:35 +02:00
jenkins-bot 51b8ff5a72 Merge "Remove warning shown when editing a translatable page source" 2020-07-08 20:18:19 +00:00
jenkins-bot f817ea3a0f Merge "Update VE core submodule to master (b1cc9bcff)" 2020-07-08 19:51:52 +00:00
jenkins-bot 0e67319854 Merge "ArticleTargetSaver: Use request action to fetch data from response" 2020-07-08 19:51:01 +00:00
jenkins-bot c7dedaa353 Merge "ve.ui.MWSignatureContextItem: Keep the $body element, just empty" 2020-07-08 18:34:34 +00:00
James D. Forrester 6c39b8db8f Update VE core submodule to master (b1cc9bcff)
New changes:
d2e6d8ec5 Localisation updates from https://translatewiki.net.
f3656e4b5 Localisation updates from https://translatewiki.net.
a9aaedd16 Localisation updates from https://translatewiki.net.
b1cc9bcff Fix typo: vender->vendor

Change-Id: I881ae462a46f50449fc9e4be7bc0e9eb50588632
2020-07-08 19:24:35 +01:00
jenkins-bot 657d46eace Merge "getPreferredEditor() shouldn't return VisualEditor if it's disabled by the user" 2020-07-08 11:13:16 +00:00
Translation updater bot 04827ba357 Localisation updates from https://translatewiki.net.
Change-Id: I8d15bb25b641fa171e32083611f2d0e830be0343
2020-07-08 09:11:20 +02:00
Bartosz Dziewoński b819b8a657 getPreferredEditor() shouldn't return VisualEditor if it's disabled by the user
Bug: T257234
Change-Id: I68002cc7bf6935bad705497df6531e3611bd2ca6
2020-07-07 21:58:12 +02:00
Bartosz Dziewoński 4ea0cf0cab MobileArticleTarget: Double-check that section is not 'undefined'
It's supposed to be a string or null. The parent class sets
`this.section = null` for us by default.

Bug: T257355
Change-Id: I375a3f6724235f22888bb7f0cb77a7081153768e
2020-07-07 20:50:59 +02:00
Abijeet 24c8b2d2b6 Remove warning shown when editing a translatable page source
Translate itself will show an warning dialog when user tries to edit
a translatable page in visual mode. Editing in the source mode is
allowed.

Bug: T192052
Depends-On: I03ea64353b2d5b28d684f90936cab75ea4fd40d2
Change-Id: Ie4f3a6003c27773c6d0c5086c876fe424befe25a
2020-07-07 11:49:19 +05:30
jenkins-bot 93cc9bcdd6 Merge "Change default value of VisualEditorEnableVisualSectionEditing to 'mobile'" 2020-07-06 19:50:46 +00:00
Akinwale Alagbe 2a581819ec Fix: Adding accessibility labels to Visual Editor template elements
Bug: T245669
Change-Id: I3b792ffde571047d9900920188e92634b8f50298
2020-07-06 18:46:59 +00:00
Translation updater bot 6e749e1904 Localisation updates from https://translatewiki.net.
Change-Id: I73b22d231fdb8248e4b6d6c1afa98821edc135d6
2020-07-06 09:55:11 +02:00