Commit Graph

3431 Commits

Author SHA1 Message Date
Timo Tijhof
49ed2a5ac4 ULSJsonMessageModule: Remove language code validation
The ResourceLoaderContext class already performs a stricter
version of this.

Change-Id: I46b920cbc0f9024e5ed2027ff30c40400a73fef3
2019-04-17 04:37:46 +00:00
Fomafix
6fadfa783b Remove addModules( 'ext.uls.init' )
The modules 'ext.uls.init'/'ext.uls.common' provides only a library and
no own funtionality. The modules get automatically loaded through
dependencies by other modules when needed as library. An explicit
loading on all page is not necessary. For example the MediaWiki API
help page does not have any ULS elements.

Bug: T145186
Change-Id: Ida99704ca2846e6adf154255bee3148e80c957d8
2019-04-17 04:37:44 +00:00
Timo Tijhof
ea671b1f24 ext.uls.eventlogger: Use mw.track() and remove EventLogging dep
Given the code no longer uses any EventLogging methods directly,
but rather mw.track(), this means it also doesn't need to declare
any dependencies, including for older MediaWiki versions this
will work as-is.

Change-Id: I8cdcef54321d0887c509fc3683acf132c113e628
2019-04-17 04:04:01 +00:00
Timo Tijhof
c578db020d ext.uls.eventlogger: Remove use of mw.eventLog.logEvent() promise
I guess the expectation was that for browsers that don't support
Navigator.sendBeacon, the promise would wait for the 'new Image'
fallback to complete.

However, EventLogging never did that. In browsers where the Beacon API
is not supported, 'new Image' starts asynchronously and either
way the returned promise is immediately resolved.

The only purpose of the returned promise was to detect errors
in the format of the event (e.g. missing properties), which this
code is not concerned with (given that it uses "always",
not "done"). And besides, for that you'd probably want to use
the EventLogging debug mode [1] instead.

This is the last step before ULS can switch to a soft EL dependency
by using mw.track instead, which I'll do in the next commit.

Change-Id: If016b73dcd7320ddf1478c1678d2cc6371fe0fa1
2019-04-17 04:03:47 +00:00
Translation updater bot
5fb1804872 Localisation updates from https://translatewiki.net.
Change-Id: I012316ac3b2636718f1ef42966eed64ae5425a02
2019-04-15 22:54:38 +02:00
Ed Sanders
aec4604b76 Disable ULS in VE readOnly mode
Bug: T217740
Change-Id: I217cf957f853bf0ed701f997f36bdbcc58f4a23d
2019-04-12 22:03:34 +01:00
Translation updater bot
56e01064d3 Localisation updates from https://translatewiki.net.
Change-Id: I2c5fa55374ca7e662c3fc38e615668d8250729b9
2019-04-12 08:32:40 +02:00
Translation updater bot
0e4002a4df Localisation updates from https://translatewiki.net.
Change-Id: I664ce0c0a5e8acc8f65f58a16610c7a96d2d459b
2019-04-09 09:03:27 +02:00
Translation updater bot
43cdff5b68 Localisation updates from https://translatewiki.net.
Change-Id: I5f9f5bf557a5ac75b676f798a1629be3d9f123da
2019-04-04 14:55:06 +02:00
Kartik Mistry
092182786d Update package.json
Fixes security issue detected by `npm install`.

Change-Id: I53a67f564b73a19837c880ae3c3401f3e4f86a7d
2019-04-01 15:12:42 -07:00
Santhosh Thottingal
da0aad3e03 Add fonts for Church Slavonic
Adding Ponomar, Fedorovs, Menaion and Monomakh restaurant.

Bug: T156843
Change-Id: I8f7c4861fc667bba3dfd4359f2c59633fa6f83ff
2019-04-01 12:39:33 -07:00
Translation updater bot
22cb63ad7c Localisation updates from https://translatewiki.net.
Change-Id: Ib9810547bdc41f723e5b96cf5fc4cd4fdc0c4366
2019-03-31 22:17:21 +02:00
Amir Aharoni
a85bc8171c Major update of jquery.ime from upstream
Changes:
* New tilde-based layouts for several languages of Africa:
  Kabyle, Kabiye, Kikuyu, Luganda, Lingala, Malagasy,
  Northern Sotho, Koyraboro Senni, Sango, Sotho, Venda
* Latin Pinyin transliteration keyboard
  https://github.com/wikimedia/jquery.ime/pull/545
* CSS and JS cleanup, to switch to stylelint and eslint.

Updating to
22407cf992

Bug: T212637
Change-Id: I167e572a6cc0f7c1c727e87e8ff361d88f87b40f
2019-03-29 15:02:33 -07:00
Fomafix
ce063ac705 ULSJsonMessageLoaderTest: Expect a generic Exception
This allows to change from MWException to
Wikimedia\Assert\ParameterTypeException by
I8287118cf8ec01326ead9c90a38f7b4134c3eba9.

Change-Id: Ib0cb388958cf720052ca6df73d5145b7ab3f9529
2019-03-14 10:05:59 +00:00
Ed Sanders
c080452013 build: Update eslint-config-wikimedia to 0.11.0
Change-Id: Ic59891fab5f8e35420bddbed34072841883fa543
2019-03-13 23:41:14 +00:00
Translation updater bot
595693a3f5 Localisation updates from https://translatewiki.net.
Change-Id: I6007780862fc401fb03e81ff6b703f0349b7c02f
2019-03-13 22:16:29 +01:00
Timo Tijhof
232b6a8a58 ext.uls.eventlogger: Remove unused class
* Simplify as pure functions.
* Remove unused 'schema' parameter to log().
* Remove unused 'module.exports'.

Change-Id: I900303f29cc425cc579acc7379a88ef4f0e882af
2019-03-13 18:11:57 +00:00
Amir Aharoni
7d46d19e0c Update jquery.ime from upstream
Updates the title for the Danish layout.
Requested at https://www.mediawiki.org/wiki/Topic:Uv1x6fv5fi0yipe0

Updating to
930e6ba05d

Change-Id: I9d9f84265a99398687bd058df8322ff6762af6b8
2019-03-13 15:06:16 +00:00
Translation updater bot
5e2edaa3bd Localisation updates from https://translatewiki.net.
Change-Id: Iabf16060aede705368bbbc3480d09e84b90c5c4c
2019-03-12 22:29:35 +01:00
Umherirrender
fbf3f3b214 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
MLEB extensions now supporting php7

Change-Id: I582418eb4038114d0e751797bc17929ca4633867
2019-03-11 22:36:40 +01:00
Translation updater bot
c7de323ee6 Localisation updates from https://translatewiki.net.
Change-Id: If0904897b9b254b8c5bd2058968315000b3e4da6
2019-03-07 22:41:06 +01:00
Translation updater bot
1ab81a9a93 Localisation updates from https://translatewiki.net.
Change-Id: I18ebf0aae99b36d26d073e51b13afd5873369cdb
2019-03-04 22:16:24 +01:00
Umherirrender
df2aa345a3 Use ::class for class name resolution
Available since php5.5

Change-Id: I31f5157146f5977feecbd9537f8b4a1c292b0d22
2019-03-03 15:17:57 +01:00
Translation updater bot
00ba839e46 Localisation updates from https://translatewiki.net.
Change-Id: I951e3a124756c91f633e1be4b9014f42f965ad0c
2019-03-02 22:42:48 +01:00
Reedy
f8e9ed1299 Move some more php files under includes
Change-Id: I55d536e05c50a90f0805a6dc4252cc003ee0c7bb
2019-03-02 20:11:49 +00:00
Reedy
e1c7ad82bd Use ExtensionRegistry rather than class_exists
Change-Id: I973768e0c1d87858f97ce3f1961850439672f638
2019-03-02 19:46:13 +00:00
Umherirrender
03bc19fab2 Use ::class for class name resolution
Available since php5.5

Change-Id: Ie71b7f9d289a34532f6e3e1f32ac25bf08b9903f
2019-03-02 20:11:12 +01:00
Translation updater bot
1ab40133d6 Localisation updates from https://translatewiki.net.
Change-Id: I8dfc81a9b8c8a33dd3ec238385285b8eec59ef6a
2019-02-28 22:25:21 +01:00
Timo Tijhof
1c99196ef8 ext.uls.eventlogger: Remove unused code
Follows-up e58be7c411, 1ad0c9c819.

* The mw.uls.eventlogger property does not appear to be
  used anywhere indexed by Codesearch. It was also undocumented.
  Removed without deprecation. Kept exposed for debugging purpopses
  via module.exports, which could be retreived in tests via require(),
  or via mw.loader.require() from the browser console.

* Remove redundant $.Deferred wrapper.

Change-Id: Id081038e5d4902c7e38967353c6f551c12517311
2019-02-19 08:44:36 +00:00
Translation updater bot
5cadad9ec1 Localisation updates from https://translatewiki.net.
Change-Id: Iccd6e18716e342f6d539867a54dbb357358da71f
2019-02-18 22:23:28 +01:00
Timo Tijhof
30894fb6c1 ext.uls.eventlogger: Avoid deprecated schema module on MW 1.33+
Bug: T209629
Change-Id: Ia77273e0a63dcd31e636ba3a52d188fb743bb2df
2019-02-16 22:59:41 +00:00
Translation updater bot
bd33db04a8 Localisation updates from https://translatewiki.net.
Change-Id: I65cdcfb9488946071de907ac78bfc0ec45261183
2019-02-11 22:28:26 +01:00
Translation updater bot
d71f413cf5 Localisation updates from https://translatewiki.net.
Change-Id: I6b697931bb28dc4dc4df49e482aff1942e821add
2019-02-05 22:38:01 +01:00
Fomafix
808e7cc8cd Get context from hook PersonalUrls
The hook PersonalUrls provides as third parameter an instance of the
SkinTemplate class. This provides the context.

Also fix the type of the $title parameter from string to Title in the
@param comment.

Change-Id: I35f4445292a4562718ab094bd62c0fa988abec19
2019-02-04 18:58:26 +00:00
Translation updater bot
cad808c722 Localisation updates from https://translatewiki.net.
Change-Id: I61b8a742b4e2e1388da2aafcbc5f6f9c8a874518
2019-02-03 22:38:55 +01:00
Translation updater bot
ecf2074bb4 Localisation updates from https://translatewiki.net.
Change-Id: I81a89c356f5e7fc3234558868e043e893bb1b786
2019-01-30 22:14:39 +01:00
Translation updater bot
69ad30b34a Localisation updates from https://translatewiki.net.
Change-Id: If7c228c0b231fa24448056d7337182da680ad74f
2019-01-28 22:27:23 +01:00
Translation updater bot
b5ba43b684 Localisation updates from https://translatewiki.net.
Change-Id: I3851098e4f653a44b33a4330feb40ef0618e57f6
2019-01-18 22:19:20 +01:00
Kartik Mistry
a79c1f5038 MLEB: Update version
Change-Id: I2a7814532bdb8c94ae6cf0c05228b67de38f45d1
2019-01-17 15:58:46 +00:00
Translation updater bot
053bdfe3be Localisation updates from https://translatewiki.net.
Change-Id: I643dfb421ffc652d9e538021e1d3a3eb00acf92f
2019-01-17 09:13:03 +01:00
Translation updater bot
a2c5a13648 Localisation updates from https://translatewiki.net.
Change-Id: Ib2d8f8054a91accb8eb28dc55b47d3bc4a1353e0
2019-01-09 22:19:00 +01:00
Niklas Laxström
4e5a1d2173 Remove extra empty line in css
Change-Id: I05245d755423e2ed4d7642e68c35d0d9662d728b
2019-01-09 09:06:42 +01:00
Translation updater bot
05aa491b9a Localisation updates from https://translatewiki.net.
Change-Id: Ic0b67d58f23a3f04b4342378eb146372e7d033fc
2019-01-05 22:34:05 +01:00
Translation updater bot
53c6659575 Localisation updates from https://translatewiki.net.
Change-Id: I422ac6dea2a3a2e5d3bda61d286784b5ae4875ba
2019-01-03 22:52:44 +01:00
Translation updater bot
b4453986ba Localisation updates from https://translatewiki.net.
Change-Id: Idd19cc02797b88efbbb47edbc82d480bf8887c2d
2019-01-01 22:22:01 +01:00
Translation updater bot
5aed3f7810 Localisation updates from https://translatewiki.net.
Change-Id: I583d6f07d9421cdf76f06998d4a645862530a04c
2018-12-27 09:52:28 +01:00
Thiemo Kreuz
24559cd1af Add basic tests for ULS' ResourceLoader modules
This is a starting point to increase the test coverage in this code
base.

Change-Id: I215713e928e9b55615afd17ccf7a7082ef559e01
2018-12-22 00:00:00 +00:00
Translation updater bot
f97a4df3bc Localisation updates from https://translatewiki.net.
Change-Id: I4eea13edd1eedd1ff3a23d8695d82c633f317966
2018-12-20 22:41:51 +01:00
Kunal Mehta
68419f70ed build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I5ec93fff138f9821e151b28f6ecd9f891e4912c6
2018-12-17 18:59:21 -08:00
Amir Aharoni
6c9f718058 Update jquery.webfonts and jquery.uls from upstream
* Minor spelling corrections in jquery.webfonts code.
* Localisation updates for cop and gcr in jquery.uls.

Updating jquery.webfonts to
e00b689399

Updating jquery.uls to
db3a8b3703

Bug: T212075
Change-Id: I47737da480334986e6fdde9e930242b8e05f64c1
2018-12-17 07:45:03 +00:00