Commit graph

3029 commits

Author SHA1 Message Date
libraryupgrader f006c2e731 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I6785b12bbbce556f330503f95b652dd08a793b9d
2024-08-25 06:13:19 +00:00
Translation updater bot b10d2d0a30
Localisation updates from https://translatewiki.net.
Change-Id: I305f31f04af9efcb703bb5949db51a2bb8888b85
2024-08-23 09:46:35 +02:00
James D. Forrester 00c8c54a7b build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Ie042ed29c2dbe1381862a6e0a5ac5e5ad432d679
2024-08-22 17:46:12 -04:00
Translation updater bot 630237eacd
Localisation updates from https://translatewiki.net.
Change-Id: Ic4b1fde25e2963576ef3fa6857004d52e1eb41a4
2024-08-22 09:22:34 +02:00
Translation updater bot 9fd4ffe10c
Localisation updates from https://translatewiki.net.
Change-Id: I6dd4710fed11ea7e6b3f325e1eb455b860a379f4
2024-08-19 09:24:09 +02:00
jenkins-bot 0ac3ccd8a9 Merge "Make remaining functions in Config class static" 2024-08-15 19:38:52 +00:00
jenkins-bot 3b9df554f8 Merge "Replace wgMultimediaViewer with config.json packageFiles" 2024-08-15 19:36:53 +00:00
jenkins-bot 6f90d124cc Merge "Use mw.storage.get/set/remove directly" 2024-08-15 19:36:52 +00:00
jenkins-bot a7d1495e03 Merge "Use mw.Api.prototype.saveOption directly" 2024-08-15 19:36:50 +00:00
jenkins-bot a1ceb9fb17 Merge "Use mw.config directly" 2024-08-15 19:36:49 +00:00
jenkins-bot 1de1055972 Merge "Use mw.user directly" 2024-08-15 19:36:47 +00:00
jenkins-bot 4a8f104624 Merge "Use mw.storage directly" 2024-08-15 19:10:06 +00:00
Translation updater bot dfc26bd856
Localisation updates from https://translatewiki.net.
Change-Id: I6ae8eb46538b55c3c71760f02bb14963858165c3
2024-08-14 09:23:12 +02:00
Translation updater bot 72f31d9471
Localisation updates from https://translatewiki.net.
Change-Id: Ia4c40f1d76293c517bb4a210c9a1e058e011f8cb
2024-08-13 09:51:34 +02:00
Translation updater bot 27317ae25e
Localisation updates from https://translatewiki.net.
Change-Id: I85fc12df67a5d697b7812ec021c53cd0948025fc
2024-08-12 09:22:56 +02:00
libraryupgrader fce7daf67c build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: Icc34b563d0582914677b196b2bd57451e14b4e1a
2024-08-11 22:09:43 +00:00
Simon Legner 3c11f01c5f Make remaining functions in Config class static
Bug: T77349
Change-Id: I40d3ccd34df20943b33c3923fabbd0b59a94e5ae
2024-08-11 12:03:30 +02:00
Simon Legner 01437fd521 Replace wgMultimediaViewer with config.json packageFiles
Practically, the variable wgMultimediaViewer is not used inside user common.js, see https://global-search.toolforge.org/?q=wgMultimediaViewer

Ref: https://www.mediawiki.org/wiki/ResourceLoader/Package_files
Bug: T77349
Change-Id: Ib086c6184f76ca2dbeb701f79c3b18b336ff5433
2024-08-11 11:34:46 +02:00
Simon Legner d698b8b006 Use mw.storage.get/set/remove directly
Bug: T77349
Change-Id: I5b670ed617c8359f28029cf117cfda26b635e871
2024-08-11 09:56:43 +02:00
Simon Legner 8c4186962e Use mw.Api.prototype.saveOption directly
Bug: T77349
Change-Id: I531995fd2224705a612c0f1aef8cfc545c8b4228
2024-08-11 09:48:49 +02:00
Simon Legner 6309f26238 Use mw.config directly
Bug: T77349
Change-Id: I1dff714af371a8e605f35a2ac198f4eecad28cb8
2024-08-11 09:47:04 +02:00
Simon Legner 2602867d7c Use mw.user directly
Bug: T77349
Change-Id: Ib0901b88e9d85a7544bbce386a37a56b45955ec3
2024-08-11 09:28:38 +02:00
Simon Legner aa2951f436 Use mw.storage directly
Bug: T77349
Change-Id: I8a494f20b4d9f4930fa89681857990416c0e840c
2024-08-10 14:39:31 +02:00
jenkins-bot f27c355342 Merge "Make thumbnail bucket widths configurable using wgMediaViewerThumbnailBucketSizes" 2024-08-09 17:01:07 +00:00
Simon Legner 64e0cfeab5 Make thumbnail bucket widths configurable using wgMediaViewerThumbnailBucketSizes
Bug: T269987
Change-Id: Ib1b590c5c6fe353a86ac1527d19617975113ff8a
2024-08-09 15:56:48 +02:00
Simon Legner 85968f2022 Fix commons icon on commons
Regression of: Ia4388fe4d5e1d6112a992e826453cd5799a6a4b4

Bug: T77349
Change-Id: I5c987e3794eeb031f4a4019d5999bbc34fc19a6d
2024-08-09 12:30:20 +00:00
Translation updater bot 3ef4e4a15c
Localisation updates from https://translatewiki.net.
Change-Id: Ic12e5fb2dc6d636ae814014e49b9a5ea2a5c4967
2024-08-09 09:36:01 +02:00
Translation updater bot 5d3ff84ecd
Localisation updates from https://translatewiki.net.
Change-Id: I3d3b895ae1de347d72fe11eb792543cef6b7b589
2024-08-08 09:20:12 +02:00
Translation updater bot 5bc3040ae3
Localisation updates from https://translatewiki.net.
Change-Id: I01c225b7dbf65359e1294f00943093ef44ec77d6
2024-08-06 09:48:01 +02:00
Translation updater bot 23f6736f0b
Localisation updates from https://translatewiki.net.
Change-Id: I7de7493fe8252e42549658ffb55fad8803e3c1a1
2024-08-01 09:18:41 +02:00
Translation updater bot b10b72d71b
Localisation updates from https://translatewiki.net.
Change-Id: I46c3843ed92f3e86537c12052f3131e8d607003d
2024-07-31 09:23:06 +02:00
Timo Tijhof 70375cac12 tests: Change use of unrelated Map to mw.Map
This partially reverts commit 07ba0e43a9, which changed the test to
inject an ES6 Map rather than a mw.Map, which diminishes the value of
the test, including risk of false positive since that isn't what
the code actually accepts. See also T353076.

Change-Id: I4877d0d9820dfff42996ddbd4c9e26573d84d19c
2024-07-28 23:43:53 +01:00
Translation updater bot bf0a735579
Localisation updates from https://translatewiki.net.
Change-Id: Ifeb1ef1bcfa9871d47b88d97519a09fac54bedef
2024-07-26 09:45:50 +02:00
jenkins-bot 4670e09260 Merge "Remove small piece of dead code from mmv.bootstrap.js" 2024-07-18 21:49:43 +00:00
jenkins-bot 4aeadfab12 Merge "Use much more precise original size for ratio calculations" 2024-07-18 21:49:42 +00:00
Translation updater bot 68381d1002
Localisation updates from https://translatewiki.net.
Change-Id: I4fe09a37c61599402f4b9f5571441c6a85674d9a
2024-07-16 09:40:39 +02:00
thiemowmde 4a37c70c95 Use much more precise original size for ratio calculations
Nowadays our HTML contains data-file-width="…" and data-file-height="…"
attributes. Previously this code was using <img width="…" height="…">
from the tiny thumbnail to calculate the aspect ratio. But this is
only a rough estimate and can be off by a significant amount of
pixels. Example:

Original image size: 4000 x 2100
Thumbnail in the article: 220 x 116
Available canvas height: 630
When using the thumbnail's size: 1195 x 630
When using the original size: 1200 x 630

I still use the old thumbnail size as a fallback just to be sure.
It's possible this is unreachable code by now. But it doesn't hurt
to keep it.

Change-Id: Iabd89762b09523249375bcbc7e4a573ef974e02e
2024-07-15 12:00:53 +02:00
thiemowmde ac2e3c4cbb Remove dead code from 2014 related to fullscreen pre-loading
This is disabled since 2014. See Ic145c8a for a longer explanation.

Bug: T66135
Change-Id: If0a1564676a25ba3ed2bcae099db77ec8fd3bae3
2024-07-15 11:59:20 +02:00
thiemowmde 92d400b9d6 Remove small piece of dead code from mmv.bootstrap.js
Calling .eq( 0 ) on a jQuery set that's known to contain only a
single element is pointless and doesn't do anything. .eq() is
documented to reduce the set to a single element.

Change-Id: I3f3a08d65a0490771e0282408e8c4711f3772c99
2024-07-15 11:45:10 +02:00
Translation updater bot 7e38d2e3f2
Localisation updates from https://translatewiki.net.
Change-Id: I12c76de56a0174684dbc5246f9ff691f0d0f43df
2024-07-15 09:24:29 +02:00
jenkins-bot 81e43b4136 Merge "Fix icons in RTL by using an element instead of ::after" 2024-07-12 11:33:27 +00:00
Translation updater bot d8b34f3cf4
Localisation updates from https://translatewiki.net.
Change-Id: I36df8bb78b59eaa289c25b737a1b0256e7065695
2024-07-12 09:41:32 +02:00
Ebrahim Byagowi 6fd605d4b2 Fix icons in RTL by using an element instead of ::after
Codex icons are auto-mirrored for RTL scripts but a pseudo-element
causes the auto-mirror selector to have incorrect order and that
builtin auto-mirror functionality of codex icons to not get trigged.

This change fixes it by adding a span to each icon so auto-mirror
can target an actual element instead of ::after pseudo-elements.

Bug: T369659
Change-Id: Ib5f9793a8ad10980d2742d1046c59306c943f960
2024-07-11 20:07:46 +03:30
jenkins-bot 3c1ece16c4 Merge "Fix dark mode issues with an extended 'Permission details' box" 2024-07-08 16:36:51 +00:00
jenkins-bot 21f3992cff Merge "Support djvu thumbnails in Mediaviewer" 2024-07-08 16:36:49 +00:00
Taavi Väänänen 1ea305b03b Fix dark mode issues with an extended 'Permission details' box
Fixes the shadows and borders that come with an extended 'Permission
details' box to use Codex tokens that support dark mode. To test this
out, view any image from Commons with a VRT permissions template (for
example [[File:Gordon_Highlander_steam_locomotive.jpg]]).

Bug: T369531
Change-Id: Ie2873b2ef2836c5b7ac2ded860dc2404f293f119
2024-07-08 16:16:15 +00:00
Translation updater bot b576891cff
Localisation updates from https://translatewiki.net.
Change-Id: Idef061be7688054a389046a5ad61ebdbe317ff3d
2024-07-08 09:33:29 +02:00
jenkins-bot afe1c08d2f Merge "ThumbnailInfo: support multi lingual SVG" 2024-07-04 19:30:11 +00:00
Derk-Jan Hartman a9bd92c734 Support djvu thumbnails in Mediaviewer
Bug: T72912
Change-Id: Ib71a60eef98d845be69c2fa4ac2044bb43a1c5b9
2024-07-04 21:28:39 +02:00
Translation updater bot fb91c37b1f
Localisation updates from https://translatewiki.net.
Change-Id: I284638089d8140dfb61f6b0c2f39e17b24b3c0a8
2024-07-02 09:50:09 +02:00