Commit graph

3029 commits

Author SHA1 Message Date
Translation updater bot 7dc0f3d573
Localisation updates from https://translatewiki.net.
Change-Id: I347d32de7e0b4c3d1b74f81f1d21f4f20c332a44
2024-11-13 08:25:51 +01:00
Translation updater bot 1c9fb726cf
Localisation updates from https://translatewiki.net.
Change-Id: Ib1b6f44120e2238166793a35677dd23aa7ebb925
2024-11-11 08:23:26 +01:00
jenkins-bot b0c2cc5671 Merge "mmv.js: Store comingFromHashChange as a class property" 2024-11-07 19:50:26 +00:00
Translation updater bot 9a5d57f7d1
Localisation updates from https://translatewiki.net.
Change-Id: I2f88890cd4e6ba4546a5a1f9d2c61d42084867de
2024-11-07 08:19:09 +01:00
Translation updater bot 9b9b45db23
Localisation updates from https://translatewiki.net.
Change-Id: I43c58ab1ffcd93ea1ef28bd63aa61815df827d68
2024-11-04 08:22:42 +01:00
libraryupgrader 38c938af55 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: I2b7f554ae070414ba7e4960f97e40ef5356750a6
2024-11-02 21:36:09 +00:00
Simon Legner 7c89a3e18b It should be possible for editors via a gadget or Special:MyPage/common.css to hide the start and end arrows
Set mw-mmv-prev-image-loop, mw-mmv-next-image-loop classes.

Bug: T377791
Change-Id: If4c398274ef5b86f1220ef6ed8a8265ddebc0d6b
2024-11-01 19:19:54 +00:00
Simon Legner 8dab698605 MMV should have an affordance for which image is being viewed in the article (i18n)
Additional change:
* Bump bundle size for Codex module due to recent Codex update.

Follow-Up: I701632faa6890bd1577eb725ac4b25579fb510b8
Bug: T377791
Change-Id: I110335dabbec15c9290b771440d172c877351d5a
2024-11-01 18:03:16 +00:00
Translation updater bot 2c68c20994
Localisation updates from https://translatewiki.net.
Change-Id: Iddba545a75ad82ca9096489c40340ee693e95f74
2024-10-31 08:16:04 +01:00
jenkins-bot c203a5bde6 Merge "Remove unused eslint rule" 2024-10-29 17:17:13 +00:00
Simon Legner 69e4e77044 MMV should have an affordance for which image is being viewed in the article
Bug: T377791
Change-Id: I701632faa6890bd1577eb725ac4b25579fb510b8
2024-10-28 20:56:16 +00:00
Ed Sanders b5ed0e6c04 mmv.js: Store comingFromHashChange as a class property
Code in mmv.bootstrap.js sets viewer.comingFromHashChange directly,
assuming it to be a class property, not a local variable.

Change-Id: I8b10243768118e84d916f50f1a48ff10463d1db4
2024-10-28 17:30:29 +00:00
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
Ed Sanders 4a4997a8e5 Remove unused eslint rule
Change-Id: I702749b60aaaf5528af28ce44fb73f586f256105
2024-10-22 15:34:55 +01: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