Commit graph

2308 commits

Author SHA1 Message Date
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
Fomafix b3335607e6 Simplify the CSS definition and extend the clickable area by 4px
Change-Id: I7fd42f647eccc24561474e6e977768bc0d1bfd07
2020-04-05 11:27:50 +02:00
Translation updater bot 1f93ae28bd Localisation updates from https://translatewiki.net.
Change-Id: I50053df3b23d031ea3bec0cf5ec265ecb273cd6e
2020-04-01 08:25:54 +02:00
Translation updater bot fb114d6a25 Localisation updates from https://translatewiki.net.
Change-Id: Ic618af56f83d9cbbf2595e7864fb91846ca9f463
2020-03-31 08:29:39 +02:00
jenkins-bot ce1640bae9 Merge "Localize numbers before passing to mw.msg" 2020-03-30 08:16:56 +00:00
Translation updater bot 047f9e0107 Localisation updates from https://translatewiki.net.
Change-Id: Ia319c62e4908ce31248a5de8675472628630925e
2020-03-30 09:15:45 +02:00
Alexander Jones 884991e4a0 Localize numbers before passing to mw.msg
This commit localizes numbers before passing to mw.msg. This occurs
in two places, the successful replacement count and the error message
where too many cells are used in the table tool. The comment above the
second call was not correct, as the existing message used a substitution.

Bug: T244812
Change-Id: I00f83bd478bc42cb536edceba2bcc9daf0b13b3d
2020-03-27 14:04:27 +00:00
jenkins-bot a28517c4c2 Merge "Localisation updates from https://translatewiki.net." 2020-03-27 07:45:39 +00:00
Translation updater bot b0c534a958 Localisation updates from https://translatewiki.net.
Change-Id: Icce5be77165424edbe6a03960115aebc8123211a
2020-03-27 08:42:27 +01:00
jenkins-bot 52bdc80a21 Merge "Replace arrow variants with CSS transformations" 2020-03-27 07:36:58 +00:00
Ed Sanders ec78f1a2b6 Replace arrow variants with CSS transformations
* Allows us to briefly animate the transition between
  expanded and collapsed
* Remove the left/right-arrows, and just use a single
  down-arrow with rotations.
* Remove the up-arrow used by the dropdown, we don't
  use that elsewhere in WMUI.
* Remove PNG fallback as `transform` works only with IE 9+
  and we're not supporting WikiEditor on Grade C browsers.

Change-Id: I29ab0c35b890689bdea8de5f6bbeef0948483fa5
2020-03-26 16:20:36 -07:00