Commit graph

3016 commits

Author SHA1 Message Date
Translation updater bot 995bb6da2b
Localisation updates from https://translatewiki.net.
Change-Id: Icdfa82f5bd2d999090b0949b7d81e297a3c5ca0e
2024-10-28 08:23:31 +01:00
jenkins-bot 850b558e9f Merge "Remove support for legacy route #/mediaviewer/File:" 2024-10-23 15:39:26 +00:00
Simon Legner dbe57993a4 Remove support for legacy route #/mediaviewer/File:
This route has been declared legacy in 2015 via I0936ada35141ddd85e0aa232b833d315e3246ce3.

On English Wikipedia for a given day there was no usage of this
route.

Change-Id: I41b33697669500670bea6506dc45c5c6a613c502
2024-10-23 15:34:41 +00:00
jenkins-bot baf46f5835 Merge "Hide next/prev buttons when there is only one image" 2024-10-21 20:18:14 +00:00
Simon Legner 9eb3439d1b Hide next/prev buttons when there is only one image
In addition, prefer `this.ui` over passing `ui` as method argument.

In addition, hide the next/prev buttons while loading.

Bug: T77877
Change-Id: I316687f1a180605c6014e93d963ce9e5fd325850
2024-10-21 18:58:06 +02:00
Translation updater bot 1927e304af
Localisation updates from https://translatewiki.net.
Change-Id: I2073f4ceddd2a136dabf54d557da18041d2698f5
2024-10-21 18:18:06 +02:00
Ebrahim Byagowi 81abf7ba8b Increase specificity to avoid rare white boxes
This increases specificity of the mw-mmv-button to make
sure it wins over '.cdx-button:enabled' and
'.cdx-button.cdx-button--fake-button--enabled' that right
now sometimes fail due to load order.

Bug: T374373
Change-Id: I402aa0761615eeb0e080bb6087e0de778b6f493a
2024-10-19 06:07:11 +00:00
Simon Legner fb4e80a1b1 Move HtmlUtils from mmv.bootstrap to mmv module
HtmlUtils is used for stripping HTML code. This is the responsibility of the individual UI components.

More specifically, MultimediaViewerBootstrap.processParsoidThumb no longer strips HTML code. Various UI components were already calling HtmlUtils.htmlToTextWithLinks. Only the error case in MultimediaViewer.loadImage newly needs HTML stripping applied.

Bug: T65504
Change-Id: If24b9c220a6ec43f35251a4ec6a716fd4ba03df6
2024-10-17 22:51:20 +00:00
Simon Legner fe5687b6ef MMV options dialog: remove leftover code
Follow-Up: I707ef2c0b6b8d4d13c05182078b82ddc99e32d12
Bug: T77349
Change-Id: I2693cd36ec390e0ca059030d264276492ed0a2fe
2024-10-17 09:31:51 -07:00
jenkins-bot d882ec8a93 Merge "Merge MultimediaViewer bootstrap modules" 2024-10-16 23:38:19 +00:00
jenkins-bot 525d333998 Merge "Back button doesn't close MediaViewer if the URL has a fragment with "/"" 2024-10-16 23:33:49 +00:00
Simon Legner 630a45a3ba Merge MultimediaViewer bootstrap modules
There is no need for them to live in separate modules and they bloat the size of our ResourceLoader startup module unnecessarily.

Bug: T77349
Change-Id: Ieb830486a280e607cad3be6418c46db9c6477491
2024-10-16 23:20:46 +00:00
jenkins-bot e49c6d8e58 Merge "Fix warning icons on dark mode" 2024-10-16 23:10:20 +00:00
Simon Legner 81c47fb174 Fix warning icons on dark mode
Use @background-color-warning-subtle, @border-color-warning for the warning box.
Use @color-base for the warning icon.

Bug: T374871
Change-Id: I9a90d2d3a1b58d92fac7aca67660c76bc117b249
2024-10-16 15:36:23 -07:00
Translation updater bot 8dc9eec8b9
Localisation updates from https://translatewiki.net.
Change-Id: Iac4e1b0e0aca3ecb1a5d05beb7fd410c5207d481
2024-10-15 09:41:34 +02:00
jenkins-bot 029f84c5ec Merge "Use browser provided URL object instead of mw.Uri" 2024-10-14 15:53:36 +00:00
jenkins-bot d356fafe7e Merge "Drop "About Media Viewer" link" 2024-10-14 15:53:32 +00:00
Translation updater bot a858c11322
Localisation updates from https://translatewiki.net.
Change-Id: I8808c459c1f286e0d511a31dc0e6db1647e423d1
2024-10-14 09:29:41 +02:00
Simon Legner a12565e8aa Back button doesn't close MediaViewer if the URL has a fragment with "/"
Bug: T361612
Change-Id: I1a516dbe62bd3a8c621a148c3fb36111128a57ef
2024-10-13 14:12:58 +02:00
Simon Legner 161adf921d Drop "About Media Viewer" link
Bug: T376972
Change-Id: I85a308afe7c805a147bfcc5e9adf0293378859f1
2024-10-13 08:46:50 +02:00
Ebrahim Byagowi 32a575f739 Use browser provided URL object instead of mw.Uri
Bug: T374314
Change-Id: I7de5ac9ba2de70e5a3a84fca1608c64ea1cd1aaf
2024-10-11 17:22:40 +02:00
jenkins-bot fc75d3aabe Merge "Remove MMV options dialog in favour of Special:Preferences" 2024-10-11 00:23:53 +00:00
jenkins-bot bae1dcaeb0 Merge "Make next/prev buttons jump to first/last image when viewing last/first image" 2024-10-10 22:38:37 +00:00
jenkins-bot 8ded5568e0 Merge "Update namespaces of PHP classes" 2024-10-10 22:38:36 +00:00
Simon Legner 3d350a29ab Fix mmv.ui.metadataPanel.test.js
Regression of I3a4024ccf90e50558152d4ee012e492f49e14a0e: unless mw.messages.exists the license shortName CC-BY-2.0 is returned, breaking "License is correctly set" in setImageInfo() in mmv.ui.metadataPanel.test.

Change-Id: I35f67fa3d160d771970b5695fb93f5de7ea2d41d
2024-10-10 12:40:33 +02:00
Simon Legner e3badef708 Remove MMV options dialog in favour of Special:Preferences
MMV options dialog only allows to disable/enable MVV. Rely on Special:Preferences instead. Strips more than 2kB off the bundlesize.

Bug: T77349
Change-Id: I707ef2c0b6b8d4d13c05182078b82ddc99e32d12
2024-10-08 20:56:04 +02:00
Simon Legner f3786ff249 Make next/prev buttons jump to first/last image when viewing last/first image
Bug: T77877
Change-Id: I10f4d1b51b909ac8683afbd21f9529254a25ff37
2024-10-08 20:35:52 +02:00
Translation updater bot 683ca2a2dd
Localisation updates from https://translatewiki.net.
Change-Id: Id51be0ae095e2555e28ef47139c3ecf4adf2faf2
2024-10-08 09:44:07 +02:00
Fomafix 249f30c88c Update namespaces of PHP classes
Change-Id: I23543c35ec6eead4d7cb5c0805833d1ff283fd5b
2024-10-04 21:43:09 +00:00
Translation updater bot 87b81d0f79
Localisation updates from https://translatewiki.net.
Change-Id: I6fc7331949b785a73507e78ec19e7302c7cef7f0
2024-09-25 09:18:16 +02:00
Translation updater bot 9121b14204
Localisation updates from https://translatewiki.net.
Change-Id: I7fba3fe3b9bf685099379a40a82376b92414b11e
2024-09-19 09:18:25 +02:00
Translation updater bot 4ba760ae26
Localisation updates from https://translatewiki.net.
Change-Id: Ia37b43ffccd1300b8f7520e93b1de45795e93cde
2024-09-16 09:27:24 +02:00
Translation updater bot be693dc63b
Localisation updates from https://translatewiki.net.
Change-Id: I0eb464d8cdc410800700bfdd5d3a234ef55d1fc8
2024-09-09 09:22:49 +02:00
Translation updater bot 182b5fb0d1
Localisation updates from https://translatewiki.net.
Change-Id: I615312342831a41be0462b61917d6f1bcc041c24
2024-09-02 09:21:07 +02:00
Translation updater bot 2b17483e6e
Localisation updates from https://translatewiki.net.
Change-Id: I6c185851809a629983c183b35e4cedf25b227d30
2024-08-28 09:39:16 +02:00
Translation updater bot 3c3666a1a9
Localisation updates from https://translatewiki.net.
Change-Id: Ic2e935c792c7837f45a31eaabc0791db6d321b33
2024-08-27 09:48:14 +02:00
jenkins-bot 8aef3bcbe3 Merge "build: Update MediaWiki requirement to 1.43" 2024-08-26 16:51:05 +00:00
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