Commit graph

2795 commits

Author SHA1 Message Date
Fomafix 90a1949444 Use .text( '\u00A0' ) instead of .html( ' ' )
On reading the HTML by .html() in the tests the content is still
' '.

Bug: T154300
Change-Id: I2f43909c5539a5882af354fc8f64b03e43697647
2023-05-01 18:41:48 +00:00
jenkins-bot 9f77efa7ad Merge "Avoid errors in Special:JavaScriptTest on non 'en' content languages" 2023-04-29 16:46:07 +00:00
jenkins-bot d23984ac52 Merge "Avoid HTML in jQuery constructor" 2023-04-29 16:46:05 +00:00
libraryupgrader a8f1558f08 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: If42aad2afc29c14df58c4ecb31ed80969513f3e7
2023-04-29 07:33:44 +00:00
jenkins-bot 3a427c6e3d Merge "Use formatversion=2 in API requests" 2023-04-29 00:12:49 +00:00
jenkins-bot ee70866a6a Merge "Fix qunit tests" 2023-04-29 00:10:43 +00:00
Fomafix b3ba9676ec Avoid errors in Special:JavaScriptTest on non 'en' content languages
Change-Id: I5a2e265875d2a01314205796a5c652f9a4dda57b
2023-04-28 16:59:25 -07:00
Fomafix 412765d8b5 Avoid HTML in jQuery constructor
See: https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Creating_elements

Change-Id: I6e037eb03d932bb50edecbfbbd56a06f24c287f8
2023-04-28 16:57:24 -07:00
Translation updater bot 3ecf93b038 Localisation updates from https://translatewiki.net.
Change-Id: I323130915a824ab4fe36f99ab9997cef0c38abba
2023-04-27 09:15:02 +02:00
Fomafix b5e3c3b8cd Fix qunit tests
The
	progressBar: {
		hide: this.sandbox.stub()
	}
fixes the following exception in the JavaScript console:

jQuery.Deferred exception: progressBar.hide is not a function MMVP.setupProgressBar

The
	router: {
		checkRoute: function () {}
	}
fixes the following exception in the JavaScript console:

jQuery.Deferred exception: viewer.router is undefined

Change-Id: Ia7658937ebdbb77a5889d6462f7706bb2fd4e08f
2023-04-25 09:46:04 +00:00
Fomafix 8013fde051 Use formatversion=2 in API requests
The response of prop=imageinfo is now an array instead of an object.
Therefor it is not needed to interate over the elements anymore.
The array contains exact one element if one title is used in the query.

The function getNormalizedTitle not needed anymore because the
requested title is always the first element of the array.

Change-Id: I7a226d3950615a2152c3f55127b218cac2d21fcc
2023-04-24 20:32:11 +00:00
jenkins-bot 7ce1741121 Merge "styles: Replace old variables calls with skin variables" 2023-04-19 14:25:23 +00:00
Fomafix a8ccfb4092 Remove .join( '|' ) for API parameters
mw.Api automatically joins parameters which are from type array.

Change-Id: I17d7ba6f2fdc36963e984062827d69ff45656a93
2023-04-17 11:50:01 +00:00
Volker E bee73f7520 styles: Replace old variables calls with skin variables
Replacing 'mediawiki.ui/variables.less' `@import`
with new skin-aware 'mediawiki.skin.variables.less' standard.
Also replacing and removing scattered WikimediaUI Base variables
with new skin variables.

Also
- replacing several static values with new Codex design tokens featuring
  skin variables for following properties:
  - `background-color`
  - `color`
  - `border*`
  - `border-radius`
- replacing local variables with new skin variables where applicable.

Bump required MediaWiki core version to >= v1.41.0.

Bug: T319381
Bug: T332541
Co-Authored-by: Volker E. <volker.e@wikimedia.org>
Depends-On: I04f9e48a1cf9dee915cf51e1e12b17ff0a595a06
Change-Id: Ie834b3f652bd22d9bf96c112166a5b7fcc3ecf2d
2023-04-16 03:32:27 -07:00
Translation updater bot 06003bde34 Localisation updates from https://translatewiki.net.
Change-Id: Ic81bbaf51d21803ccd599817ed58657d475a0bb9
2023-04-12 08:44:29 +02:00
Taavi Väänänen fb4ad597a0
Refresh Geohack URL
Change-Id: I86719937bca606f757f6f144bc287a0e61b09915
2023-04-10 17:58:25 +03:00
Raimond Spekking 5ecf6da9d3 Merge "Localisation updates from https://translatewiki.net." 2023-04-10 12:35:21 +00:00
Translation updater bot c6fcfa0a57 Localisation updates from https://translatewiki.net.
Change-Id: I15952fa69a3c614492d75ec0661ecedbe11f8899
2023-04-10 09:46:09 +02:00
Translation updater bot 83cacdf658 Localisation updates from https://translatewiki.net.
Change-Id: I2c15c5ec80dcf6938d1109c3a6a7847003445efa
2023-04-10 09:22:14 +02:00
Umherirrender a9dad10f32 stylelint: Enable selector-pseudo-element-colon-notation
Via stylelint --fix

Change-Id: I9ea62e799573164a37181bc9b991c817a3786732
2023-04-04 08:18:59 +02:00
Translation updater bot 7085aa8df8 Localisation updates from https://translatewiki.net.
Change-Id: If7a40e40e7bb34daed5d7404b639b6e3ba42d57f
2023-03-31 09:58:28 +02:00
libraryupgrader ae401d9156 build: Updating npm dependencies
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.1 → 0.14.0
  The following rules are failing and were disabled:
  * selector-pseudo-element-colon-notation

Change-Id: Ibbe87825fc58e5766fd963123488f0d3d3d5d2d9
2023-03-31 01:19:03 +00:00
jenkins-bot c177deeab8 Merge "build: Updating npm dependencies" 2023-03-30 07:12:05 +00:00
Translation updater bot 6de29661d3 Localisation updates from https://translatewiki.net.
Change-Id: I3412b7ed8f3dd83e231785138f0378da359250d9
2023-03-30 09:02:14 +02:00
Umherirrender 8a7182b27a build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0

Change-Id: I8d3b6ca9d9e0d0c0b2019f0a165eb51618e829b8
2023-03-25 22:33:26 +01:00
Translation updater bot 308e2e55d4 Localisation updates from https://translatewiki.net.
Change-Id: Iad28a68d697b1a486355275d56ad5a151020cc1b
2023-03-13 08:39:19 +01:00
libraryupgrader a0c0072a48 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I1569404f0c904c3986d33b5df9e9dd845a4ef6e5
2023-03-12 06:36:22 +00:00
Translation updater bot ba437ea862 Localisation updates from https://translatewiki.net.
Change-Id: I2b809f45484badccac76ca9de9b9c199ba8dd73d
2023-03-08 08:42:35 +01:00
Timo Tijhof cd4da296c2 mmv: Use mediawiki.router instead of underlying oojs-router module
This is in preparation for merging the two modules in core and not
exposing oojs-router directly. mediawiki.router is merely 1 line
of code to hold a singleton, and indeed it appears there is no need
for multiple instances to exist given it communicates exclusively to
and from the 'window' object, which is also a global singleton.

Change-Id: Ice09b523dfbefd67493175554eeb525771e8f29d
2023-03-06 02:34:13 +00:00
Translation updater bot b1ff2dc44b Localisation updates from https://translatewiki.net.
Change-Id: I43d26cff06f1db68a1d6ccb1afe0172ab9c4baf1
2023-02-27 08:27:51 +01:00
Translation updater bot 92864adfa9 Localisation updates from https://translatewiki.net.
Change-Id: Ibfb4c3b7d87ade0c16238642f260828b8d138dbe
2023-02-22 09:01:06 +01:00
Translation updater bot ae23671204 Localisation updates from https://translatewiki.net.
Change-Id: I2cf79385df01a4e0b312ee8bdda60b9636778c79
2023-02-01 09:18:27 +01:00
Translation updater bot 817b8f337a Localisation updates from https://translatewiki.net.
Change-Id: I8da04c837ac437726ad6ddd074773eba106a93e5
2023-01-24 08:49:13 +01:00
Translation updater bot 30b38895a5 Localisation updates from https://translatewiki.net.
Change-Id: Iaca3b650c15bc7ff2930e2ac64831fde5e957738
2023-01-23 08:23:33 +01:00
Gergő Tisza 298f1f77d2
Use checkered background for transparent WebP images
Bug: T327019
Change-Id: I445f1fdd562100f5788d31ec8dd506f8242a29c2
2023-01-15 21:57:04 -08:00
alistair3149 00ae50ea49
Allow WebP to be previewed in viewer
WebP support was added to core but MMV was not updated to
allow WebP to be previewed. This should enable the functionality.

Bug: T282202
Change-Id: I4fd6a0a2189a58faa6bccfc1282de57b8beb16cc
2023-01-05 09:25:27 -05:00
Translation updater bot 51be4ec6f9 Localisation updates from https://translatewiki.net.
Change-Id: I37d2b643dc923c9fbabc914d0f7051e8a86fbc19
2022-12-29 10:02:01 +01:00
Translation updater bot ef396c3037 Localisation updates from https://translatewiki.net.
Change-Id: Ie46c88621868c28823c734cf936e9c8e77a8be56
2022-12-26 09:10:32 +01:00
Translation updater bot 785352e326 Localisation updates from https://translatewiki.net.
Change-Id: I4d3c588b1f454f7bb1e292a192d807949c31f6a2
2022-12-23 09:07:22 +01:00
Translation updater bot 549ab5c63e Localisation updates from https://translatewiki.net.
Change-Id: I7b189dcf92669dfd27da40ff8682c676d2a8b70b
2022-12-21 09:16:43 +01:00
Translation updater bot 54498c52a6 Localisation updates from https://translatewiki.net.
Change-Id: Idd4a3f1d58540c641adf2a35c92f2b5b413f76c0
2022-12-19 09:04:22 +01:00
Translation updater bot 24057ff676 Localisation updates from https://translatewiki.net.
Change-Id: Ia4523e38f1197401596be8b4ae924db2463148dd
2022-12-05 08:34:01 +01:00
Translation updater bot e88810292c Localisation updates from https://translatewiki.net.
Change-Id: I6b0d03e23c95a432328635c8538f12bdb350de03
2022-12-01 08:16:14 +01:00
Translation updater bot e74b0d26e5 Localisation updates from https://translatewiki.net.
Change-Id: Iabb89efadaa36b656c33b60f4eb6483b4ece2f6d
2022-11-29 08:58:58 +01:00
Translation updater bot bd2a3627ad Localisation updates from https://translatewiki.net.
Change-Id: I88311944f64d7fd38f9e86679e80ab0ed81a3b0d
2022-11-25 08:26:23 +01:00
Translation updater bot 1e1b530f02 Localisation updates from https://translatewiki.net.
Change-Id: I72064a1b5aa79776ccfe5cf17b900d5613b94e99
2022-11-22 08:34:07 +01:00
libraryupgrader 2cb5b98be4 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 39.0.0 → 40.0.1

npm:
* stylelint-config-wikimedia: 0.13.0 → 0.13.1

Change-Id: I6b2a1dad9973d7c6047a86a73db0288f0a5a41bb
2022-11-16 10:03:46 +00:00
Translation updater bot d4e4ace8b8 Localisation updates from https://translatewiki.net.
Change-Id: I19eff558a5122fa32bba70979eb82869b44c1ca0
2022-11-01 08:53:37 +01:00
jenkins-bot 09fb7e4b76 Merge "Use Parsoid's regularity to find caption" 2022-10-27 20:24:48 +00:00
Arlo Breault b0f83b39fb Use Parsoid's regularity to find caption
Follow up to Ic652576f84e07c9fc8ef8be216a6fc94466198a6 where this was
hinted at.

The comment about active formatting elements is removed due to
I7b4e9df8490357f44d31d6a869fa9b7a15f029ea.

Bug: T321440
Change-Id: Ifb12dac64bd7a7fb8444ac2ada557868502cf213
2022-10-27 20:17:05 +00:00