Commit graph

2325 commits

Author SHA1 Message Date
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
Translation updater bot 6514dca0af Localisation updates from https://translatewiki.net.
Change-Id: Ib01fdb1be90c476cb5aaf5811a3ed66cde3a0b42
2020-03-26 08:33:34 +01:00
Translation updater bot c943c9d21f Localisation updates from https://translatewiki.net.
Change-Id: I44f1e074d8188155faf67edac43285c5726c7605
2020-03-25 08:34:05 +01:00
libraryupgrader 04476d96ae build: Updating npm dependencies
* mkdirp: 0.5.1 → 0.5.3
  * https://npmjs.com/advisories/1179
* eslint: 6.5.1 → 6.8.0
  * https://npmjs.com/advisories/1179

Change-Id: I4754082fa41929dd272005420fa33146e8eed838
2020-03-21 09:07:44 +00:00
Translation updater bot 6458744b62 Localisation updates from https://translatewiki.net.
Change-Id: I62e66801f090714e5001731d6a909d8402e71ab4
2020-03-20 08:25:23 +01:00
libraryupgrader 0831476636 build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I277b996ff31292e88ee3ff25ec440e6d547f004a
2020-03-19 21:31:33 +00:00
jenkins-bot d050676356 Merge "Improve accessibility of expandable controls" 2020-03-13 19:36:35 +00:00
Akinwale Alagbe b2222d0afa Improve accessibility of expandable controls
Fixing aria-* attributes to the Heading menu and roles property to 
the menu dropdown items in order to make the element function like an 
ideal menu to screen readers. 

Adding aria-expanded attribute to Expandable panes(Advanced, 
Special Characters and Help) widgets to allow
screen readers announces of the state expandable buttons. 

Bug: T244426
Change-Id: I0cb47afd7f3622ed83a57410086984d9abc9acfd
2020-03-13 19:23:10 +00:00
jenkins-bot 792ef7c8ed Merge "Preload modules of the file upload dialog" 2020-03-13 17:10:36 +00:00
jenkins-bot cc358744f1 Merge "Lazy load the modules for the upload dialog" 2020-03-13 17:10:27 +00:00
jenkins-bot f7b8e34a5c Merge "Fix double escaping" 2020-03-13 15:57:25 +00:00
Translation updater bot cae77665c5 Localisation updates from https://translatewiki.net.
Change-Id: If102eda35ca75985774f39b5eb136d5b87229e08
2020-03-12 08:43:53 +01:00
Translation updater bot 05f24df566 Localisation updates from https://translatewiki.net.
Change-Id: I8ba8094cb7551fbe272253314e57145d98117b87
2020-03-09 08:58:26 +01:00
libraryupgrader a188151e52 build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I1c4533a7810ac5205b80f11938286c61682cb208
2020-03-08 15:49:09 +00:00
jenkins-bot 707fa69276 Merge "Increase clickable area of tabs buttons" 2020-03-07 00:26:55 +00:00
Translation updater bot 0ec37de599 Localisation updates from https://translatewiki.net.
Change-Id: I126d946ed8b5fd4605064fa69975a548890280a5
2020-03-05 08:40:30 +01:00
Fomafix 6ced54bdf6 Increase clickable area of tabs buttons
This makes the clickable area of the tabs buttons like the other
buttons.

Change-Id: I7987aed0627def6b177ef54aa8a787917e9b40f0
2020-03-03 06:48:25 +01:00
Fomafix 9542561b9c Preload modules of the file upload dialog
This prevents a delay when showing the file upload dialog.

Change-Id: I0c29def8e65302078d4fd528abee7c07373803e7
2020-03-03 06:26:10 +01:00
Fomafix 47a7e21216 Lazy load the modules for the upload dialog
This reduces the initial loaded modules.

Also add the dependency on module 'oojs-ui-widgets' because
jquery.wikiEditor.toolbar.js uses OO.ui.ToggleButtonWidget.

Change-Id: I03d0f73fb77bb389dd4e5ad2aa15b3ff5a97e5f5
2020-03-03 06:25:51 +01:00
jenkins-bot b3709d5ad4 Merge "Add z-index: 1 to menu options" 2020-03-02 18:38:33 +00:00
Translation updater bot f6f8dcad92 Localisation updates from https://translatewiki.net.
Change-Id: I6624865afa81d92ac7873b37ec46a84589035add
2020-03-02 09:12:15 +01:00
Fomafix 3303e4b25d Add z-index: 1 to menu options
This avoids overlapping of wrapped icons with the heading pull down
menu.

Bug: T246550
Change-Id: Ia05773f2e41c2a50a6341546922dce2f8e196ab7
2020-02-29 22:45:17 +01:00
Umherirrender 8af7b2df71 Improve param docs
Change-Id: I0fa1d6aef74f434306d665f39085cd41f710bed1
2020-02-29 22:18:42 +01:00
Translation updater bot ede68eb9e1 Localisation updates from https://translatewiki.net.
Change-Id: Id7b370a598f8bad3eb8e9fe1e11ca6b5e14917ee
2020-02-24 09:04:29 +01:00
libraryupgrader 4787c733d6 build: Updating npm dependencies
* grunt-stylelint: 0.13.0 → 0.14.0
* stylelint-config-wikimedia: 0.8.0 → 0.9.0

Change-Id: I13751d02f31523b4306d9c43c4f63b5564b2e5e3
2020-02-21 04:36:26 +00:00
Translation updater bot 8ca98bf140 Localisation updates from https://translatewiki.net.
Change-Id: I63296cf86cf7981d66ebda105e302f6d3d292a33
2020-02-20 09:28:10 +01:00
Translation updater bot 7870f34f4b Localisation updates from https://translatewiki.net.
Change-Id: I593f6217ef3fff4430ee90831d03cd951fa079d1
2020-02-19 08:27:06 +01:00
Translation updater bot 9ac4a9d326 Localisation updates from https://translatewiki.net.
Change-Id: Ia3c7c57a4aacb5a58dd38b4579a23dd9b5abb1fe
2020-02-17 08:48:14 +01:00
Translation updater bot 3473aaecc6 Localisation updates from https://translatewiki.net.
Change-Id: Id2b5f6123cfa5c70e564036b9bb9a67d35ca7c33
2020-02-14 08:26:51 +01:00
jenkins-bot 5944820dd6 Merge "Use WikimediaUI toolbar styling in Vector" 2020-02-11 21:49:27 +00:00
Ed Sanders 0df5223a20 Use WikimediaUI toolbar styling in Vector
Bug: T223155
Change-Id: I4730a78836e8db0b4116f09e07929d8b883c9fa4
2020-02-10 14:44:06 -08:00
Translation updater bot f85aa78aab Localisation updates from https://translatewiki.net.
Change-Id: I70fcd0810dade2b9427b51282974adc4ac8c58cd
2020-02-06 08:20:16 +01:00
Ricordisamoa e4d02b5e9a Fix double escaping
e75284e528 escapes a few messages too
eagerly but 1fc00749fb only fixes one
of such mistakes.

Without this change, the labels of some toolbar buttons (e.g. Italian
'Redirect', Welsh 'Numbered list') display '&#039;' where apostrophes
should be.

Change-Id: I3265631512c5d22ecc3dafb9d56acecc7d50ad1d
2020-02-05 19:11:01 +01:00
Ed Sanders ef38bdfe2f Align toolbar styling with Apex
Also separate out Apex-specific styling into a separate file.

The current toolbar is already supposed to be aligned with Apex
so the visual changes here are minimal.

Bug: T223155
Change-Id: I7a0a21809018e0094d50992054523d20be3c5473
2020-02-04 17:16:37 -08:00