Commit graph

2708 commits

Author SHA1 Message Date
jenkins-bot e4df34f82e Merge "Remove jquery.tipsy and use OO.ui instead" 2023-05-05 16:39:15 +00:00
Jon Robson 00b65d02cd Remove jquery.tipsy and use OO.ui instead
Bug: T77402
Change-Id: I63328cf86872019fc9832162b26ffa8075382acd
2023-05-05 16:32:00 +00:00
Translation updater bot c1607a29c5 Localisation updates from https://translatewiki.net.
Change-Id: I44df15d1a77b7e23dae95541bce157022c230264
2023-05-05 10:40:06 +02:00
Jon Robson d41884b8e5 Fix file page integration
Bug: T335997
Change-Id: I1c7b6a9b8f0903670d1ac40e3d29239674f5365f
2023-05-04 11:39:23 -07:00
libraryupgrader 3d2efea28b build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I1e91af933628429e9e7306adc9268acac11a65e6
2023-05-04 08:00:43 +00:00
jenkins-bot acd340b5de Merge "Remove most uses of jquery.tipsy in MediaViewer" 2023-05-02 19:27:10 +00:00
Simon Legner d2ab19fdac Remove most uses of jquery.tipsy in MediaViewer
Tipsy was added in I993bf60909024453a14de85af6239bded02eb8a6 however
has since been deprecated and usage is discourage.

Falling back to standard HTML `title` attribute display seems fine. Some
buttons (such as previous/next arrow) have not had a tipsy tooltip.

To be done separately: TipsyDialog which is used for StatusInfo

Bug: T77402
Change-Id: I2f7ae189734ba6d6e67ca703a42ae899ec56729d
2023-05-02 18:21:57 +00:00
Bartosz Dziewoński 3bca077968 Remove some IE 11 support code
No longer supported by MediaWiki.

Change-Id: Ib16ecd8fc2ca8060deabf39142d5294a7b8f316f
2023-05-02 15:54:46 +02:00
Bartosz Dziewoński c2e0cccbfe Remove some redundant tests
Follow-up to b1ade19388.

Change-Id: Iba4a2d7886798ba59b811dd6be4f51517e476b24
2023-05-02 15:50:53 +02:00
jenkins-bot 999893fd25 Merge "Router handling code should be centralized into mmv.bootstrap" 2023-05-02 13:14:27 +00:00
Translation updater bot 858e4b5607 Localisation updates from https://translatewiki.net.
Change-Id: Iedd6c17779bde9cc9dca2ff5af7881a6fa613b5d
2023-05-02 09:00:19 +02:00
Jon Robson d556e73a00 Router handling code should be centralized into mmv.bootstrap
- mediawiki.router is available inside mmv.bootstrap so move
the handlers into the bootstrap file
- Remove direct loading of images from mmv.js instead modify
event handlers to modify the location which will trigger the loading of
the image
- Copy what we previously did in MobileFrontend (Bartosz's idea)
to allow page refreshing and escaping overlay on page load.
- Remove some no longer relevant tests

Bug: T236591
Change-Id: Ie5d33fca5174db58380a63f5cf97f44e5df10d42
2023-05-01 17:22:39 -07:00
jenkins-bot e5f9cb140a Merge "Use .text( '\u00A0' ) instead of .html( ' ' )" 2023-05-01 18:54:17 +00:00
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