Commit graph

2827 commits

Author SHA1 Message Date
Translation updater bot cbeb4e1f35 Localisation updates from https://translatewiki.net.
Change-Id: Ia2fdb58ecb62d1af616c88658e9144179f59400b
2023-10-02 10:57:50 +02:00
Simon Legner 6ee3f05104 Use Codex styles for buttons in mmv.ui.download.pane
Bug: T340258
Change-Id: I30a7ab4a6732fd87a68c67593d322be2347b2ff8
2023-09-28 10:02:57 -07:00
Umherirrender fb1de7786c Improve special page handling in onBeforePageDisplay
Avoid creating of Title object to get the "fixed special name" (which is
the localized name) and compare that against the local name of the
current page, just use the SpecialPageFactory to get the canonical name
(which is the english internal name, not the english visible name) and
compare against the list of canonical allowed pages (adjust the existing
list to the canonical names, that are "old" names in different cases)

Change-Id: Ia6f6574bf6e65c75f8977ff016feda6ecdca3776
2023-09-23 00:03:01 +02:00
Ed Sanders 2212255fe2 Add mw-no-invert class to MMV overlay
Bug: T345281
Change-Id: I2f2659809ef8e4fc2e1c752d8fd0eb3533c3cb78
2023-09-12 14:02:36 +01:00
Translation updater bot ed07de63f7 Localisation updates from https://translatewiki.net.
Change-Id: I2288d2314809b44d97e52ff1beb63dab6e6587e9
2023-09-11 09:04:24 +02:00
Translation updater bot 9bb5f5d628 Localisation updates from https://translatewiki.net.
Change-Id: I40eb5c5e37598074258834bbc7753a8d8b71a7c7
2023-09-07 11:12:07 +02:00
Translation updater bot 7bf796e93d Localisation updates from https://translatewiki.net.
Change-Id: Ie572ce9adc7da7fe57e0459f0d1fa4e67e397ee3
2023-09-06 08:42:42 +02:00
Translation updater bot cc189fc45a Localisation updates from https://translatewiki.net.
Change-Id: Ifcc7f4a02529356a400f52b3c857af6556c9f4f9
2023-08-28 09:30:30 +02:00
jenkins-bot ee93b4875b Merge "build: Update MediaWiki requirement to 1.41" 2023-08-24 03:33:46 +00:00
James D. Forrester 886a7e722c build: Upgrade jsdoc-wmf-theme from ^v0.0.5 to v0.0.8
Change-Id: I93c4a73d229b47f11027923a5b5c5065a9987ed1
2023-08-23 09:56:07 -04:00
jenkins-bot 231c28eb6a Merge "Replace some moved Title class uses, now MediaWiki\Title\Title" 2023-08-19 18:35:17 +00:00
gerritbot 2c25dcfe59 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I61ad6f6178ca7cd4f6f52a303d10d47e8ba4476e
2023-08-19 13:08:12 +00:00
James D. Forrester 8d95d367a5 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I833380e20616462633f2e0b84bfd9a823ad085e4
2023-08-19 13:54:25 +08:00
James D. Forrester c17cc34efe build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I4e07c2174c6f712d798ec3a5e4fbf9b22edb3b14
2023-08-19 13:54:20 +08:00
Translation updater bot c8fca24f43 Localisation updates from https://translatewiki.net.
Change-Id: I7cbf091a2db29fa9dc931277d83f2f8f3936119b
2023-08-15 08:26:15 +02:00
jenkins-bot 783fc61dcc Merge "Use HookHandlers for core hooks" 2023-08-15 02:28:36 +00:00
Umherirrender ad1f6a6ee0 Use HookHandlers for core hooks
The use of "HookHandlers" attribute in extension.json makes it possible
to inject services into hook handler classes in a future patch.

Bug: T271019
Change-Id: I57dac8d590b5afa7524000d93c8477a10148c052
2023-08-14 20:47:02 +02:00
Umherirrender b4e7477150 Escape use of commons.wikimedia.org in regular expression
Dots needs escaping

resources\mmv\model\mmv.model.Repo.js
  129:11  warning  Unsafe Regular Expression
security/detect-unsafe-regex
  169:11  warning  Unsafe Regular Expression
security/detect-unsafe-regex

The plugin does not like the backtracking for "https?", but that does
not looks like a performance problem when given long strings here.

Change-Id: Iac4c88b591c2e8ebb2ce037bbd99b774319a261c
2023-08-10 00:30:27 +02:00
Translation updater bot 5ed21318bc Localisation updates from https://translatewiki.net.
Change-Id: Ic3b9a35f9ffb506a4b676063e825e289ecd9a3e8
2023-08-07 08:39:04 +02:00
jenkins-bot d8b4eaf524 Merge "QUnit: Use .toFixed() before compare .height() values" 2023-08-06 21:52:42 +00:00
jenkins-bot 0c25150766 Merge "Avoid errors in Special:JavaScriptTest with non-default settings" 2023-08-06 09:22:10 +00:00
Translation updater bot f30adcab3b Localisation updates from https://translatewiki.net.
Change-Id: I5cce81f5452e25b64b5df6ea48ab95509de16066
2023-07-31 08:59:25 +02:00
Fomafix d4c17edccd QUnit: Use .toFixed() before compare .height() values
https://api.jquery.com/height/ may return fractional in some cases on
zoom.

Change-Id: I446e7eccbb50da594cd1509a3cf1c3f31c716610
2023-07-28 09:57:33 +00:00
Fomafix f4858976ca Avoid errors in Special:JavaScriptTest with non-default settings
This change reverts b3ba9676e and solves it by a different way.

Change-Id: Ieefcbf9feb873233777c0f706c48620e308e1e93
2023-07-28 09:04:12 +00:00
Translation updater bot 96ae9d46a0 Localisation updates from https://translatewiki.net.
Change-Id: I08ce3376ce945d26e492982d52c6b63846c5da27
2023-07-26 10:27:18 +02:00
Translation updater bot d1a59a8a91 Localisation updates from https://translatewiki.net.
Change-Id: I5f3548d5608da3a85dc9ac189a569e40089b180d
2023-07-24 09:38:49 +02:00
Simon Legner de2349a509 Use Codex styles for buttons in mmv.bootstrap
Bug: T340258
Change-Id: I11fdbabae0ed996ed2e830259ccd3e02c3f035fc
2023-07-17 20:19:05 +00:00
Translation updater bot 0f9026a76e Localisation updates from https://translatewiki.net.
Change-Id: Ifea4992f7ec65e593006b35196daa23e5b2a7e12
2023-07-13 10:49:38 +02:00
Translation updater bot a5ba64d266 Localisation updates from https://translatewiki.net.
Change-Id: Id7c941f5ec8dd4101a55618ebdcec69c349471cb
2023-07-12 08:56:02 +02:00
Translation updater bot 76feb4ba02 Localisation updates from https://translatewiki.net.
Change-Id: Id235aa02b928db222c8f35b858048e9a95df6c19
2023-07-10 09:38:32 +02:00
jenkins-bot a4151f7d21 Merge "IP masking update" 2023-07-07 11:38:00 +00:00
Translation updater bot 56b40e0376 Localisation updates from https://translatewiki.net.
Change-Id: I88ed39f516466b87a166a94b6ac9c63dfe766ec5
2023-07-07 09:09:48 +02:00
Cormac Parle 6bb1cbaddb IP masking update
Use localstorage to store MMV preference for anon and temp users,
use regular user preference for non-temp accounts only

For embed default to wikitext for temp and regular users, html
for anon users

Bug: T340534
Change-Id: Ic19e8a6b6fbdeb2c86be14a33a306dd0f3088b1b
2023-07-04 11:52:40 +01:00
Translation updater bot ea84eb650a Localisation updates from https://translatewiki.net.
Change-Id: Idebd5ad4b0a459ffad883267cf034bdbad46aff9
2023-07-03 10:15:48 +02:00
jenkins-bot 748dade204 Merge "Handle translated special page names" 2023-06-30 18:10:14 +00:00
Matthias Mullie 23ae8d39c3 Handle translated special page names
On certain special pages, like Special:Search, MMV is
intended to launch anyway. The existing check, however,
assumes that those pages will actually be called that,
but in non-English languages, it's often something
different (e.g. Recherche or Pesquisar).
This then results in MMV not being present on those
pages in those languages, even though it was intended to.

The fix is to simply make sure to case both titles to
the local form and then compare them.

Bug: T323650
Change-Id: Iec01ddf4c1ea4ec5d9c42de5a6a3140470ad5052
2023-06-30 14:09:00 +02:00
Ed Sanders 67188f8c31 eslint: Enforce max-statements-per-line
Change-Id: I416d0c951d18f2fb3b477695ab0913f75fb60a68
2023-06-28 19:12:48 +01:00
Ed Sanders a33f7e5c57 Update linters and fix issues
Change-Id: Ib562131bbb3a9940d56602e0c4dbbe810ce7358c
2023-06-28 19:12:48 +01:00
Translation updater bot d9174d8f8e Localisation updates from https://translatewiki.net.
Change-Id: I6b5d8abcfa38c6c32005e44c2c39612f8fd44d85
2023-06-27 19:27:55 +02:00
Translation updater bot a0e11bebc8 Localisation updates from https://translatewiki.net.
Change-Id: Ic25a00a22c607521fb741fb7606ffc7fef95ef7e
2023-06-26 12:40:02 +02:00
jenkins-bot b2c7f6747d Merge "Add mw-parser-output to file captions" 2023-06-21 23:33:13 +00:00
Simon Legner 9215d30471 Add shortcuts Home/End to jump to first/last image
Switch keydown handler to use KeyboardEvent.key
Ref: https://caniuse.com/?search=KeyboardEvent.key

Bug: T163976
Change-Id: Ia0d5b2b8d28324c89b0fa11916de9cdd6d16434a
2023-06-21 22:09:24 +00:00
Saint Johann fc42f2c39b Add mw-parser-output to file captions
Bug: T284857
Change-Id: I1c18ece776d615e58f3d694ef475c2a8b586f18f
2023-06-21 22:09:19 +00:00
Bartosz Dziewoński 900ce9d74c Update localStorage mocks for changes in mw.SafeStorage
Since MediaWiki change 6f9d4829b2fefc98a1969bb8f7ab3d04ef0268fe
mw.SafeStorage sometimes calls removeItem() before calling setItem(),
so we need to mock it as well.

Bug: T340069
Change-Id: Ife6c4cc032689bb75e572d7936ce33afa76cf396
2023-06-21 22:09:11 +00:00
Translation updater bot a5e74a3ef1 Localisation updates from https://translatewiki.net.
Change-Id: Ie46da6cf27c23ac797c3ccc2f906b13a615262e0
2023-06-19 11:07:34 +02:00
jenkins-bot a397dc6062 Merge "Add jsdoc to MMV" 2023-06-16 19:24:59 +00:00
Volker E efdbd6bdf3 build: Update SVGO to v3.0.2
svgo         2.8.0  →   3.0.2

Amending to new `cleanupIds` plugin name.

Bug: T339162
Change-Id: Idf0bb67aba5f225c7989bbe6794c6d2888bafb5f
2023-06-15 08:43:20 -07:00
Translation updater bot 0175b87a9e Localisation updates from https://translatewiki.net.
Change-Id: I20fd1384d1d94f75f6ea73f00e23175cc89639d4
2023-06-14 13:07:28 +02:00
Simon Legner 5f781b7a9b Add jsdoc to MMV
This replaces the jsduck implementation that we recently removed.

Changes:
* Document events on Document element.

Bug: T337039
Change-Id: Iaa9f54c7838159a75a38eec0d49f203803aadee7
2023-06-12 22:08:14 +02:00
Simon Legner 48b6c76601 Notify user and close MMV if image from route not present on page
Fixes: only a black screen without any controls or messages is shown

Bug: T77327
Bug: T336619
Change-Id: I53687fce2c767ff6681707da424b974ecf51675a
2023-06-12 19:13:48 +00:00