Commit graph

18143 commits

Author SHA1 Message Date
jenkins-bot b3eca2075e Merge "Make import button progressive (but not primary)" 2020-07-31 16:38:15 +00:00
Ed Sanders dd862a837d MobileArticleTarget: Move MWBackTool to a separate file
Change-Id: I1561f454bcc779f97c758ba7178b09d15f52fe42
2020-07-31 16:15:10 +00:00
Ed Sanders 76cea9b235 ExportWikitextDialog: Make height of wikitext input fit dialog
Change-Id: If60dc55a442ffb255248d3bf5c3e1d0e14b2821f
2020-07-31 16:27:27 +01:00
Ed Sanders 61edb5c2f7 ExportWikitextDialog: Add explicit editfont dependency
Change-Id: I74e3dd7a78093dd52b5ae6b0474ff3c1e1712775
2020-07-31 16:14:38 +01:00
Ed Sanders b32a066bbf Make import button progressive (but not primary)
Change-Id: I38136b05f59eb5a2ad59d4aee4f560289d02e1a6
2020-07-31 16:10:05 +01:00
Ed Sanders f57cfef00f Update VE core submodule to master (0866080cf)
New changes:
0866080cf GCN: Don't try to resolveAttributes when rendering.length=0

Change-Id: Iede8756df1fc98d72964871cc1c798b3d5803d02
2020-07-31 15:34:08 +01:00
jenkins-bot 31d7b7efa2 Merge "Special:CollabPad: Replace getPageClasses as if the page were an article" 2020-07-31 13:40:10 +00:00
Ed Sanders 341e86decb Special:CollabPad: Replace getPageClasses as if the page were an article
This stops Vector2 treating the page as a special page where
fixed width doesn't apply.

Change-Id: I4dfed639cfc46be565e491d0df7375e3248e1602
2020-07-31 13:36:04 +01:00
Translation updater bot 4fb995ba58 Localisation updates from https://translatewiki.net.
Change-Id: I41343c3a4e22386a0ee3f49470dbe32f60cdbe1b
2020-07-31 08:46:51 +02:00
jenkins-bot d377cbe9d1 Merge "Use mw.cookie instead of jquery.cookie" 2020-07-30 22:36:46 +00:00
David Lynch deb218aeec Use mw.cookie instead of jquery.cookie
jquery.cookie is no longer maintained, and we're coming up on maybe
running into issues with sameSite which jquery.cookie doesn't support.
Moving to mw.cookie will let us centralize that fix.

Also, removed some dependencies on jquery.cookie in code that doesn't
seem to ever use it.

Bug: T252597
Change-Id: I8634cfd42c2a5ab3c9d712417a7d1a55508274fd
2020-07-30 17:07:40 -05:00
jenkins-bot 42c533cfdd Merge "Follow-up I0a1a889: Show user uploads in gallery dialog" 2020-07-30 17:10:02 +00:00
Ed Sanders 69d8a195e5 Follow-up I0a1a889: Show user uploads in gallery dialog
Gallery dialog should behave the same as media dialog.

Bug: T62398
Change-Id: I601df9370b82868ba981e415fe24bd4f29399cdb
2020-07-30 17:01:04 +01:00
Ed Sanders ec872093aa ExportWikitextDialog: Add help text
Change-Id: I5508c167aa8119eb86356858fc0eedf69cc093bf
2020-07-30 16:43:59 +01:00
Ed Sanders a9d7884d3b ExportWikitextDialog: Add ellipses to "Export" buttons
This indicates these are not the final actions in the process.

Change-Id: I88227a1025f56ea59ef76a59b81cde22e81a959a
2020-07-30 16:23:02 +01:00
Ed Sanders 3ebcf5695d ExportWikitextDialog: Add copy button to wikitext
Change-Id: I8ed63a0ac38a812b09e51738b25b6b384ba30c04
2020-07-30 16:17:32 +01:00
Ed Sanders d8a0f475e4 ExportWikitextDialog: Fix title comparison
getImportTitle may be null

Change-Id: I04d3504e1b4d815859d3ea57fb846ea2277ee5fa
2020-07-30 16:17:32 +01:00
Translation updater bot a9155f2d2b Localisation updates from https://translatewiki.net.
Change-Id: I4a5efb5857d64d35ced6aeacc829a114fcf6f01b
2020-07-30 08:36:38 +02:00
James D. Forrester 6102c26842 Update VE core submodule to master (15f16a8c5)
New changes:
87cf61fe5 Localisation updates from https://translatewiki.net.
15f16a8c5 Localisation updates from https://translatewiki.net.

Change-Id: Ibce50e7ef6daf8a49426af011f9e86d4a6056019
2020-07-29 17:41:01 +01:00
Translation updater bot ea26fccddf Localisation updates from https://translatewiki.net.
Change-Id: I9e3b7223253f5a1dcdcf2417866c4e4cda0f5171
2020-07-29 08:36:26 +02:00
Translation updater bot fd7912d2f6 Localisation updates from https://translatewiki.net.
Change-Id: Ibbacdc893ddbf6388874dd843a39acf4aa9240b6
2020-07-28 08:25:21 +02:00
jenkins-bot 9e265b8091 Merge "Edit API: Run OutputPageBeforeHTML hook on output" 2020-07-27 22:14:42 +00:00
Ed Sanders a63133776a Edit API: Run OutputPageBeforeHTML hook on output
The output is assumed to be the same as you would get if you
fetched the page again, so this output-modifying hook needs to run.

Bug: T258980
Change-Id: I015ac183a0c25dafb9b95c577edd4ef59c112d43
2020-07-27 21:41:33 +00:00
jenkins-bot b55ba6f1dc Merge "Also check for revid conflict when RESTBase says page doesn't exist" 2020-07-27 21:29:50 +00:00
jenkins-bot 5c75faed31 Merge "Move parseWikitextFragment up to ApiParsoidTrait" 2020-07-27 17:01:13 +00:00
jenkins-bot 9d6713bb2d Merge "Refactor postHTML in ApiParsoidTrait" 2020-07-27 16:59:31 +00:00
jenkins-bot 5ebb340b55 Merge "Always add the mw-editsection-visualeditor class to veeditsection" 2020-07-27 12:13:42 +00:00
Translation updater bot fe93c62a88 Localisation updates from https://translatewiki.net.
Change-Id: Icc607ba5e7a9d7a553285fe990e7f4737091bcd4
2020-07-27 08:38:54 +02:00
mainframe98 c5c7e173d0 Always add the mw-editsection-visualeditor class to veeditsection
Previously, when the editsection link of the section edit links had
a class defined (either by the skin or through an extension), the
mw-editsection-visualeditor class would not be added, as the + operator
on arrays does not merge existing entries.

The side effect of the mw-editsection-visualeditor class missing is
that the initialization code in ve.init.mw.DesktopArticleTarget.init
would add an additional link to the section edit links, resulting in
three links shown when VisualEditorUseSingleEditTab is false.

Change-Id: I4b25c63884fa367fb0e44c61323a19a71fb6b9d8
2020-07-26 20:44:38 +02:00
jenkins-bot 25a51531b4 Merge "Gruntfile.js fixes" 2020-07-25 18:13:47 +00:00
David Lynch d2242731b3 VisualEditorFeatureUse should respect oversampling config as well
Bug: T252925
Change-Id: Ic8fbbcdf65e24e13d3f6fdfb35e7ae733c61dc6b
2020-07-23 17:21:59 -05:00
Translation updater bot 8faabdc576 Localisation updates from https://translatewiki.net.
Change-Id: I4fcea4815899d50243bd41e70037f244886e0a08
2020-07-23 08:29:16 +02:00
Ed Sanders eb98439453 Move parseWikitextFragment up to ApiParsoidTrait
Rename to 'transformWikitext' and rename 'postHTML' to match.

Change-Id: Icb1f519c7a3a88f36c51479333be8cfb5617dbe0
2020-07-22 14:44:11 +01:00
Ed Sanders 90bf7e0488 Refactor postHTML in ApiParsoidTrait
* Remove postHTML/postData separation, not very useful.
* Pass $oldid instead of full params object.
* Return full repsonse like other methods, instead of just body.

Change-Id: I0fe301475adeb0fd5952809c3f74f0cb19f89cfe
2020-07-22 14:44:11 +01:00
Translation updater bot c9cb15dda1 Localisation updates from https://translatewiki.net.
Change-Id: Ie97dfdfa078c6f41e1ed235071a1832d9efdf90e
2020-07-22 08:27:31 +02:00
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