Commit graph

2318 commits

Author SHA1 Message Date
jenkins-bot 17b14f3251 Merge "Update VisualEditorFeatureUse with new fields" 2020-06-10 19:53:46 +00:00
David Lynch 7ab9ac2a73 Update VisualEditorFeatureUse with new fields
Bug: T252925
Change-Id: Id6f3748bfd3865e7bb0e4ef5e882206438063e0f
2020-06-09 15:57:07 -05:00
Bartosz Dziewoński 036b7c28a3 Use jQuery.textSelection API for compat with CodeMirror extension
We were already using it for almost all interactions with the editing
area, except for this code which restores the selection after closing
a dialog.

Bug: T254612
Change-Id: I26d22d9c5d64fe8c861405e65cd4464c349aeac9
2020-06-08 18:45:14 +00:00
Translation updater bot 6703fdefae Localisation updates from https://translatewiki.net.
Change-Id: I16ede587e996c552bf42ab74bc60459a5ec691e4
2020-06-08 08:53:17 +02:00
Translation updater bot 7cc976c452 Localisation updates from https://translatewiki.net.
Change-Id: I1a27223db3521e14eed27e4865094664e8695ef9
2020-06-02 08:27:37 +02:00
libraryupgrader 205cf761f4 build: Updating mediawiki/mediawiki-phan-config to 0.10.2
Additional changes:
* Removed phan-taint-check-plugin from extra, now inherited from mediawiki-phan-config.

Change-Id: I2a6fcd0a1ebb3c5174e6c6a919d72d4be49a3261
2020-06-02 04:46:50 +00:00
Translation updater bot 0faee8ff3f Localisation updates from https://translatewiki.net.
Change-Id: I161232be204c952286d17d2c7cf703e1d7ead2e7
2020-06-01 10:09:37 +02:00
libraryupgrader 4207655cee build: Updating composer dependencies
* php-parallel-lint/php-console-highlighter: 0.4.0 → 0.5.0
* php-parallel-lint/php-parallel-lint: 1.0.0 → 1.2.0

Change-Id: I85f0a15a49addcf1adb8ed6c1eece8ac0f68fa4c
2020-05-31 19:08:44 +00:00
libraryupgrader 1d1369bc83 build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".

Change-Id: I48f2788b7dbd69cf99ddbc023f9a5ef9c2e2cabb
2020-05-30 11:27:12 +00:00
jenkins-bot 45b7e7666f Merge "Restores focus after dialog closes" 2020-05-28 12:42:43 +00:00
bkudiess-msft 44e82ec089 Restores focus after dialog closes
Bug: T253595
Change-Id: I125d6c00239091cb3028818e3b72c212babf10b3
2020-05-28 12:23:14 +00:00
Translation updater bot 27e81c0ca9 Localisation updates from https://translatewiki.net.
Change-Id: Ifdddb50ee4f69e5cdf0d54f4b7e6180a6204c708
2020-05-28 08:41:41 +02:00
Translation updater bot 71dbd4536e Localisation updates from https://translatewiki.net.
Change-Id: I14aee7d150f7a085b503c4e5388af3e4c6648aea
2020-05-21 08:20:21 +02:00
Translation updater bot d6bf20d4d0 Localisation updates from https://translatewiki.net.
Change-Id: I4c03aeb11b5d7388873f1c13d48c23ca6e9ce8d3
2020-05-20 08:36:09 +02:00
Translation updater bot 6dac2b25dd Localisation updates from https://translatewiki.net.
Change-Id: Ia868d1aab8f7c45cb9bdff3b81203ba98229efde
2020-05-15 08:54:49 +02:00
Translation updater bot 7a25b614f9 Localisation updates from https://translatewiki.net.
Change-Id: Ibf3eed7079badf5a4ad893e063bbe1bf7bf59fcb
2020-05-14 08:33:49 +02:00
jenkins-bot b2f709e5ff Merge "Replace use of old $wgVersion constant with MW_VERSION" 2020-05-13 22:16:53 +00:00
James D. Forrester 4551332586 Replace use of old $wgVersion constant with MW_VERSION
Change-Id: I31e524694ca2e7399b235b89aeeb779a4d13811d
2020-05-13 15:02:38 -07:00
jenkins-bot b38a83c670 Merge "Extend comment on overqualified selector from code example" 2020-05-12 19:22:53 +00:00
Translation updater bot 6c613bdf8e Localisation updates from https://translatewiki.net.
Change-Id: Ie960c9b99502af7165e398382e777eb23666c3c6
2020-05-12 08:22:06 +02:00
jenkins-bot 1cf6ab0c9e Merge "Convert to manifest_version 2" 2020-05-12 06:03:29 +00:00
Volker E b51d815435 Extend comment on overqualified selector from code example
Change-Id: Ic5d91d862f1ec2e986be3b0a2b95c0427dc7eda3
2020-05-11 22:49:24 -07:00
Reedy 9ff90afde4 Convert to manifest_version 2
Bug: T252470
Change-Id: I8e58023cb044c9000325a275d0ae7e2f44142414
2020-05-12 02:12:31 +01:00
pcoombe a822d1c197 Add caption when inserting table
Data tables should always include a caption for accessibility reasons.
So add a placeholder caption when using the "insert table" button.

Bug: T252350
Change-Id: I6773e2274007946de516ae34e841f66ad20ebc0c
2020-05-11 11:09:23 +01:00
Translation updater bot 19520cce29 Localisation updates from https://translatewiki.net.
Change-Id: I0854f1b6eb70ad4bf12d6a2bc49e364a53165d8b
2020-05-11 08:39:22 +02:00
Translation updater bot 200349d368 Localisation updates from https://translatewiki.net.
Change-Id: I66076ee0d74d3731cbc57e6e245917c7019ae771
2020-05-08 09:29:07 +02:00
Translation updater bot e1029c49a9 Localisation updates from https://translatewiki.net.
Change-Id: I6e9c310569f6d52e476261d42144f7c7f2d988d1
2020-05-07 08:36:05 +02:00
Translation updater bot 07242a8f42 Localisation updates from https://translatewiki.net.
Change-Id: Iea9aae94faa4eb250aad2b97fe3dc20a30abb360
2020-05-06 08:32:41 +02:00
Translation updater bot c7477b34a3 Localisation updates from https://translatewiki.net.
Change-Id: I7f48229c0272ee24ab424448de85cc538d190cdd
2020-05-04 09:16:48 +02:00
Ed Sanders 90c0b245fc Move 32px dropdown height to -wikimedia.less
Bug: T251682
Change-Id: I86afcb66b8d5d8fdff4f95944c863b10a1949518
2020-05-03 21:17:03 +01:00
Translation updater bot 57ba9e34f4 Localisation updates from https://translatewiki.net.
Change-Id: I1059cc645b626a97100bcc969ccd8fe4cf33086e
2020-04-30 08:40:52 +02:00
jenkins-bot 0af9afb631 Merge "Use WikiPage::exists instead hard-deprecated Article::exists" 2020-04-29 17:51:51 +00:00
jenkins-bot d4db64d19f Merge "Create a toolbarReady hook for attaching toolbar tools" 2020-04-29 17:14:39 +00:00
BAGArt e366cc041f Use WikiPage::exists instead hard-deprecated Article::exists
Bug: T251278
Change-Id: Ib617a144279e63c2905d6a0c1048bba65a19115c
2020-04-28 19:20:18 +03:00
Translation updater bot af059b649f Localisation updates from https://translatewiki.net.
Change-Id: I7b5f5e61d958f923014622baa2ef30ac9bbaa586
2020-04-27 09:04:28 +02:00
libraryupgrader 18dcb04836 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0
  The following sniffs now pass and were enabled:
  * MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3
  The following rules are failing and were disabled:
  * mediawiki/class-doc

* grunt-stylelint: 0.14.0 → 0.15.0
* stylelint-config-wikimedia: 0.9.0 → 0.10.1

Change-Id: I892964b1b124914f76d75173a23aec54baf03257
2020-04-22 23:06:54 +00:00
Ed Sanders 8e9d306510 Create a toolbarReady hook for attaching toolbar tools
Using an event introduces a race condition where the extension
adding the listener has to do so before WikiEditor finishes loading.

Change-Id: I5a8dc6f8fd1b1939b5d98307b20ef1fd355cee99
2020-04-21 15:28:40 +01:00
Translation updater bot d86e85e26d Localisation updates from https://translatewiki.net.
Change-Id: I14a8b81b5b100e99082b574e46482154ca1d5105
2020-04-20 08:43:38 +02:00
libraryupgrader e49f2f12e0 build: Updating grunt-banana-checker to 0.9.0
Change-Id: I7ca3f78c44f077452b23a27ee5bbe1cd21e11a91
2020-04-19 23:40:46 +00:00
Reedy d5d3104a41 WikimediaEventHooks was namespaced
Change-Id: Ic33ec8f08b6fc755e4749e34f734831b8f519be1
2020-04-20 00:24:13 +01:00
Translation updater bot 633ee66f41 Localisation updates from https://translatewiki.net.
Change-Id: Iddedb3f55738fa4889f12b6aa9bceebf48bb0fb9
2020-04-14 08:25:53 +02:00
Translation updater bot b688d3a178 Localisation updates from https://translatewiki.net.
Change-Id: I2509c1326365bb9b443231ab966c02713d2d9a9d
2020-04-13 09:03:41 +02:00
Translation updater bot dcd68e424c Localisation updates from https://translatewiki.net.
Change-Id: I9eef417c1817d34b66a4b2a5ad202c9f5448746a
2020-04-10 09:52:12 +02:00
jenkins-bot 3f46f25c79 Merge "jquery.wikiEditor: change autoIcon() to no longer append version string" 2020-04-08 01:29:08 +00:00
DannyS712 d43e91726a Remove use of WikiPage::getRevision
Bug: T249393
Change-Id: I26dc2f750bc1a6315865c5bbfab54799c6b18486
2020-04-07 23:37:53 +00:00
Timo Tijhof 0f24c10873 jquery.wikiEditor: change autoIcon() to no longer append version string
Remove use of mw.loader.getVersion, which I'm planning to remove
from the public API. The only valid use case I found of it (not
in WMF repos) is to check if a module exists, for which one can
use mw.loader.getState() already.

The code path here handles with the 'icon' property of a
WikiEditor "toolbar group tool". In other words, the buttons
you can click in the toolbar to open a dialog or insert markup.

I found two ways to reach this code path:

* For the built-in tools and icons that are part of WikiEditor.
  These are all based on OOUI now and no longer use inline styles
  with background-image etc., they are class-based instead, with
  the URLs and language variants handled server-side by RL.

* For user scripts that register a custom tool and icon.
  To try this, copy snippets to the console on an edit page from
  <https://meta.wikimedia.org/wiki/User:Krinkle/Scripts/InsertWikiEditorButton>

  These pass urls as the 'icon' property and thus don't satisfy
  the hasOwn condition in this code. And even if they did, there'd
  be no reason for the module version to be helpful to the thumbnail
  url the user would have passed.

This line of code has existed with the mw.loader.getVersion() call
since the repository's very first commit in 2010 (9d278e8dee).

The worst that can happen is if there are stil some internal icons
hitting this path, they'll be cached for 1 hour instead of 7 days
(per /w/static.php rules in production). For third parties, there
would be no difference and such static paths have no caching by
default either way (outside WMF).

Change-Id: I6ec29abde0085d04b662b56b5ebcc2bd7fa267f8
2020-04-07 20:55:01 +01:00
jenkins-bot 855a7d73fa Merge "Simplify the CSS definition and extend the clickable area by 4px" 2020-04-07 09:48:15 +00:00
Translation updater bot 399e7ef303 Localisation updates from https://translatewiki.net.
Change-Id: I18d2a6a58ca1bc94e53ccadb17680fbacbf22b82
2020-04-07 08:53:03 +02:00
Translation updater bot 334b4adf16 Localisation updates from https://translatewiki.net.
Change-Id: Id357257eda939f258d17632e9e2a66fea62da14c
2020-04-06 09:03:09 +02:00
libraryupgrader db60537a19 build: Updating postcss-sass to 0.4.4
* https://npmjs.com/advisories/1179

Change-Id: Ieda0ea6d08f84e2a28b39f1e9359d506d113f00f
2020-04-05 11:24:15 +00:00