Commit Graph

3496 Commits

Author SHA1 Message Date
Amir Aharoni
01f9a1453d Update jquery.uls from upstream
Localization updates (ban, grc, lez).

Updating to
dd8555bad4

Change-Id: If37dda33b1fc4fa352a7bf8bf8304bcd6ee89da3
2020-12-07 13:23:45 +02:00
libraryupgrader
f17391c7f3 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: I258d7faae294759233fbc98301bdabed9ef1b878
2020-12-07 06:34:30 +00:00
Amir Aharoni
7a0d559dc0 Add the Boyo Gagrai for the Ho language in the Warang Citi script
Bug: T233301
Change-Id: Iad328485531b97428f795b154f8181e71947a5fd
2020-11-30 15:31:31 +00:00
Translation updater bot
2ddc451d5e Localisation updates from https://translatewiki.net.
Change-Id: Ie6be35bf9f68cb9afca205655c6ed5a745f762e9
2020-11-26 08:28:37 +01:00
Translation updater bot
84c47d81ff Localisation updates from https://translatewiki.net.
Change-Id: Id8d6a841aed72587dd5f67a5922f5f0cdd20100d
2020-11-24 08:40:51 +01:00
Translation updater bot
1e8558942c Localisation updates from https://translatewiki.net.
Change-Id: I0b343584b54503d1ddd910bdf3b93ae16bf32ddc
2020-11-23 08:40:16 +01:00
libraryupgrader
4cbb7dbacf build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: I3f607402859275cdcfe34dcc5ed62ab48985a6c5
2020-11-22 12:05:00 +00:00
libraryupgrader
c7e711e103 build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Change-Id: I39296449f9b3c8c12385a165900c98b67f6fe878
2020-11-20 21:35:36 +00:00
Translation updater bot
d75fa810da Localisation updates from https://translatewiki.net.
Change-Id: I90a0f9167b214a39988a3baf41574da068a70beb
2020-11-19 09:10:45 +01:00
jdlrobson
d69d5773e5 Compact language links module is loaded via server side
This provides an alternative mechanism to
I0518ecdf402ebf5eb6bad2c430f6462322c0d8e1 for loading the compact
language link module. Instead of relying on the client, the HTML
is inspected.

Bug: T264824
Change-Id: I977a998388b3e70f7fe4d97fa05be3c1ac1bf676
2020-11-18 17:07:59 +00:00
jdlrobson
ab6decae11 Allow skins to register their own button and disable compact
Example usage:
Iabd4688c6081b4de391b9655b92a16f3a414e018

We will skip loading the compact link if we don't need
to compact the languages.

Note special handling is known for Timeless which stops
propagation of events. This will be fixed in Timeless at a
later date.

Bug: T264824
Change-Id: I0518ecdf402ebf5eb6bad2c430f6462322c0d8e1
2020-11-18 17:06:40 +00:00
Amir Aharoni
077a3ac844 Make a more specific CSS selector in getLangsWithBadges
This should avoid problems with elements that are not real
interlanguage links, which may be added by other code,
for example user scripts.

Bug: T267887
Change-Id: I3f9c618b417363f667a31e9dad335c1aec15b055
2020-11-17 10:25:43 +02:00
Niklas Laxström
4387bb9d61 CompactLinks: Better handling of opening links to new tab/window
* Check for any of Shift, Ctrl or Meta
* Only do it for links
* Support both mouse and keyboard

Change-Id: I0b331b802e1d96ae0e0511746d6b42663db924b1
2020-11-16 14:51:47 +00:00
Amir Aharoni
78884e87b2 Update jquery.uls from upstream
Return an empty array if there are no languages in territory.

Addresses T265158.

Updating to
9a1f5c0e5a

Bug: T265158
Change-Id: I36f69a2007791a4469eff6415eedbaecc3f60f70
2020-11-16 13:32:50 +02:00
Amir Aharoni
835d1dd586 Update jquery.ime from upstream
Return an empty array if there are no previous IMEs
in preferences.

Addresses bug T262865.

Updating to
77bd142ad4

Bug: T262865
Change-Id: Ifce6707914be0033239bc88ce0dc869ba8626e2c
2020-11-16 10:41:09 +02:00
Translation updater bot
47973849ad Localisation updates from https://translatewiki.net.
Change-Id: If70c5da7cf8f01d2b2775fe82fe02b30188ef9e6
2020-11-09 08:36:02 +01:00
jdlrobson
61e66598b5 Update jquery.uls
https://github.com/wikimedia/jquery.uls/commit/967eec093edb153f4fdd0e5e4

Updates:

1) Always send event when triggering onSelect
The $.uls function in jquery.uls.core in createLanguageFilter passes the
onSelect function to the $.fn.languagefilter so the onSelect there should be
made compatible.

2) Removal of png images no longer needed for old browsers.

Bug: T261973
Change-Id: Ie316cc627178dde15d22607b2099d0da96dd6fda
2020-11-05 17:06:23 +00:00
jdlrobson
e3569d32a7 Separate compacting of language list from launching of dialog
This refactor will allow us to separate these two functions so that
the modernized version of Vector can avoid loading the compact
language list.

Changes:
* `options` is now optional to the CompactInterlanguageList constructor
The max value is already defined in
CompactInterlanguageList.prototype.init
* this.interlanguageList is now initialized inside the constructor
Previously calling CompactInterlanguageList.prototype.createSelector
or getCompactList before calling init would throw an exception.
This will be important in I0518ecdf402ebf5eb6bad2c430f6462322c0d8e1 when
the responsibilities of wiring up the button and compacting the languages
is separated.

Bug: T264824
Change-Id: I9606df30a050d0cdaf7add2deff849cd5b895bab
2020-11-05 08:44:06 +00:00
libraryupgrader
7ed148646d build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected

Change-Id: Ie51d2cbd02d94196ef523b55b7beb84ff893d331
2020-11-04 18:26:16 +00:00
Amir Aharoni
43deb543b7 Update jquery.ime from upstream
* Add Obolo keyboard

Updating to
c794c46252

Change-Id: I3b11cdf10f6c2d122177879f9f27612cc319cb22
2020-11-04 14:22:43 +02:00
Translation updater bot
50b3e3ccc9 Localisation updates from https://translatewiki.net.
Change-Id: I160e9350b016997a6ed69b025b44a52bec6ce1d0
2020-11-04 08:44:57 +01:00
Volker E
f5c4fe1826 Remove unnecessary rules and properties
Active state is already covered with `mw-ui-button`. Color needs to
become darker for better contrast ratio when button is toggled.

Change-Id: If888a862c0b642aaa200e8207f3804f76f05b8b0
2020-11-03 13:56:05 +00:00
Translation updater bot
97f878a314 Localisation updates from https://translatewiki.net.
Change-Id: I301425c1a4eddfde12c676f174fa21aebaa4af3b
2020-11-03 08:45:22 +01:00
Volker E
8d54c3faf7 Amend compact links icon to use latest WikimediaUI version
Also amending `color` & `padding` to be closer to button standard appearance and
increase `margin-bottom` to make “Edit links” link not stick to button.

Bug: T170137
Change-Id: Iabb6abfdb8fa69c9f2634b190cb5fa6c005eb17c
2020-11-02 07:00:55 -08:00
Niklas Laxström
79a038f166 Handle Apply button little bit more sanely
Change-Id: I55d48de703662f139549d764bf7c1f235111d5ab
2020-11-02 11:08:25 +00:00
jdlrobson
740ff490e0 Drop unnecessary ext.uls.init module
This module is just an alias at this point. It's only consumer
is taken care of in the depends on.

Depends-On: I7c362ad391b076d3c4214c7b01fca7bbaaa320b9
Change-Id: I842c1ba10b24967a3888107806788f7e7844339b
2020-10-29 11:52:47 +00:00
Niklas Laxström
5cb2aec0a1 Fix language switching using the undo tooltip
Introduced in I740600d18859422b2f98a5ef92d0321f6e9615a2.

We need to prevent the default action (navigating a link) so that
our custom code has a chance to run. Before it was synchronous so
it called location.href before default action had a chance to execute.
When it was made asynchronous, the default action got executed before
our custom code.

Change-Id: I292f99aa5f5ff536d8197174c317018462685866
2020-10-28 11:44:33 +00:00
Niklas Laxström
094c30bc1c Fix language selection using [...] button
Introduced in I740600d18859422b2f98a5ef92d0321f6e9615a2.

When onSelect was called for the new language, it set dirty to true.
Then the, now delayed, render function reset the dirty status to false.

There is no need to set dirty to false on render, so moved it to the
constructor.

Change-Id: Ibfa23f545c9d358e7e03fb299c238182ea449d7c
2020-10-28 09:29:47 +01:00
Translation updater bot
5ce38ab35c Localisation updates from https://translatewiki.net.
Change-Id: Ib7828e1d62f26ad4d83dcf935b900431a56daf56
2020-10-28 08:36:59 +01:00
Kartik Mistry
eab051abe1 Update version before MLEB release
Bug: T265886
Change-Id: I1821a7dfc72cd44ffc37c8cc8e1146978d5c3c6d
2020-10-26 12:09:04 +05:30
Timo Tijhof
09862cffec ext.uls.eventlogger: Remove more obsolete deferred complexity
Follows-up c578db02 and ea671b1f, which I thought removed
all code relating to the old async EventLogging method.
I didn't notice this UI code at the time, because I only took a
single pass over the code to find dead code. Now that that code
is gone, it is clear that the UI code is also redundant.

The mw.track() and logEvent() methods don't track the Beacon API's
async fetches, which also isn't needed, since the loss of browser
context upon navigation doesn't abort background beacons.

The loading of the EL library itself is already ensured via a
dependency so we already know there won't be an async fetch for
that.

What that leaves is some portion of older browsers in which a
EventLogging falls back to 'new Image'. This is basically just
IE 11 per <https://caniuse.com/beacon>, and for those some portion
of events will have been lost since EventLogging removed support
two+ years ago for tracking those fallback fetches via a Promise
(because of the perf issues caused by what the removed code here
was able to do).

Change-Id: Idf4378f983b6ba0e755ebadb97aa6d87cf95f7a5
2020-10-22 23:45:52 +00:00
jdlrobson
f8fde38197 Use require to clarify ext.uls.preferences
ext.uls.preferences only depended on ext.uls.common because of its
use of the uls global. This is unnecessary, and made clearer by using
require and module.exports to access it.

Change-Id: Ied2a1b560d19a18529fd766ced778c912199fa2f
2020-10-20 16:08:59 +00:00
jdlrobson
5cd10ce862 Reduce JS loaded on critical path
As a precursor to incorporating a new language switcher in the new
version of Vector I'd like to improve the performance of loading
the switcher.

It seems most code can be deferred until the language selector
button is clicked.

This shaves around 30kb of resources off the critical path for
most users. There's potential here for a positive performance
impact so we should follow up the deployment by checking the
associated performance graphs to see if there's improvement.

Note, if the compact personal links feature is enabled
there is no performance saving for now. This will be addressed in follow
ups.

Bug: T153844
Bug: T153845
Bug: T237061
Change-Id: I740600d18859422b2f98a5ef92d0321f6e9615a2
2020-10-20 13:40:49 +00:00
Niklas Laxström
8d5d63b996 Regular update of language name search database
Change-Id: I7325d18a2da7f3a84f3d43efcc84029586319acd
2020-10-20 08:17:48 +00:00
Translation updater bot
343bd1b9aa Localisation updates from https://translatewiki.net.
Change-Id: I9fc99711b8e3a9083326030f02b147af79b8b9ed
2020-10-20 08:31:41 +02:00
Niklas Laxström
67ac68a412 Update jquery.webfonts
23dc38d059

Bug: T265325
Change-Id: I56ada1b32b9c68c286abfc503ed7f9aec49c76e8
2020-10-19 09:02:36 +02:00
jdlrobson
a1963ce12d Merge ext.uls.inputsettings into ext.uls.displaysettings
These modules are always loaded together. There is no need to load
them in separate ResourceLoader modules

Change-Id: Ibdf7d1bbd9090ffed6a142055ee684ad97dd6680
2020-10-14 21:11:03 +00:00
Nikerabbit
fe6ae65c98 Revert "Update jquery.webfonts"
This reverts commit e0e69d35b2.

Reason for revert: causes more JS errors

Change-Id: Iceef32eb2f858d7b28e1e173d63c060c4407c2bd
2020-10-14 15:27:49 +00:00
Niklas Laxström
98f0bb42bd Remove ULSCompactLinksForNewAccounts and ULSCompactLinksEnableAnon
These are disabled by default and on production. They are only enabled
in the beta cluster, which is not needed.

Change-Id: Ifa847fd8a1f3d7d2695a7c1c4a1a93f136091604
2020-10-14 13:02:25 +00:00
Niklas Laxström
e0e69d35b2 Update jquery.webfonts
https://github.com/wikimedia/jquery.webfonts/commit/95ff58e089

Bug: T265325
Change-Id: Id28fbfa12dc7a9aba21c26cafb5427db8b052d0f
2020-10-13 13:35:32 +02:00
Amir Aharoni
1ae44d3b1b Update jquery.ime from upstream
Add the macron character to the Igbo tilde keyboard.

Updating to
3177f3ce24

Change-Id: I2f8d02ab1d0d93781d3889bfef700438a0ca2d2a
2020-10-02 20:45:12 +03:00
Amir Aharoni
c2ff179d5e Update jquery.uls from upstream
* Localization updates: az, mn, ti, tly, udm, yue, zgh
* New localizations: mnc, mni
* Update language-data: fixes autonyms for Altai languages, redirect for cbk

Updating to
5b615109ea

Bug: T263717
Change-Id: I039a9e629305bc930e772f69fb5350f34e202be9
2020-09-29 12:27:48 +03:00
libraryupgrader
2613a88399 build: Updating mediawiki/mediawiki-phan-config to 0.10.3
Change-Id: I4d36e8c0a37a2052e839f8de9ff039c2c07541ae
2020-09-25 11:52:47 +00:00
Translation updater bot
69c2dd8f65 Localisation updates from https://translatewiki.net.
Change-Id: I110c86b2fb09750fe50a67ab8255c34fc10795e3
2020-09-23 08:25:35 +02:00
Translation updater bot
42c79a47e1 Localisation updates from https://translatewiki.net.
Change-Id: I7bf96dbb7b3dbde6c1458579edc5ea9f665d4bb0
2020-09-21 08:30:49 +02:00
Niklas Laxström
d3b07d2ef0 Update language name search database
Change-Id: I2aaa0f975fc80ea42d88092f3bebfd505a48d253
2020-09-17 08:33:24 +00:00
Translation updater bot
acd845b6c4 Localisation updates from https://translatewiki.net.
Change-Id: I45ad72c44c1d17ef24141fd2c3360dc50d71cbdd
2020-09-16 09:09:45 +02:00
Reedy
99937ba18b Add GochiHand font
Bug: T258839
Change-Id: I38eacbfbc3293c7b7a2a6bf4f680b2f70f1a43ad
2020-09-16 05:20:07 +00:00
Reedy
c7caa09b0b Remove comment about eot file format
No eot fonts in the repo, and I presume we don't support those versions of IE anymore either...

Change-Id: I6a2d45592933cc9d1dfa0d0d0a0618a32aaee693
2020-09-15 13:09:11 +01:00
Translation updater bot
678d69747f Localisation updates from https://translatewiki.net.
Change-Id: I93c02e3a08884fd42802757255fb134189dcbb17
2020-09-10 09:50:14 +02:00