Commit graph

2753 commits

Author SHA1 Message Date
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
Simon Legner 30fad6b8b8 Use ES6 features
* classes
* arrow functions
* const/let
* string templates
* Object.assign

Bug: T337102
Change-Id: I757b9993a2feeed707fb4ad213944001498f3f6a
2023-06-12 16:45:08 +00:00
Translation updater bot 2a83c45655 Localisation updates from https://translatewiki.net.
Change-Id: Ibfe8b4927e5a7562d75c423f9afa41bc6225553b
2023-06-12 13:07:48 +02:00
Translation updater bot 4ba4b761d3 Localisation updates from https://translatewiki.net.
Change-Id: I2e8e2eb3a60425d12701d6c210c72c3a91ca6319
2023-06-05 08:41:07 +02:00
Translation updater bot 72ff83aa8b Localisation updates from https://translatewiki.net.
Change-Id: Iaa59a6da1657a92f41df8f2479f103c0407e04a9
2023-05-30 08:57:03 +02:00
Translation updater bot 2618f5d3a8 Localisation updates from https://translatewiki.net.
Change-Id: Ic80aa34741b6b44dcdf7ca2864138dd1a8a85bd2
2023-05-29 09:59:40 +02:00
Simon Legner 0683f3ecc8 Remove global mw.mmv
Bug: T337030
Change-Id: I90e8507cb1b7c30f6ba29dbdec8966e84b46aff2
2023-05-21 08:02:54 +00:00
Simon Legner 74a76718d7 Use packageFiles in mmv.test
Bug: T337030
Change-Id: Iaea2deec35003e306a8e1f12f890879c80cd8289
2023-05-21 06:41:31 +00:00
Simon Legner d82910fbb3 Use packageFiles in mmv
Bug: T337030
Change-Id: I833c7e91230272b82a2512fd55f1c7c0f61233b4
2023-05-20 10:04:41 +03:00
Simon Legner 35cd0f18c0 Use packageFiles in mmv
Bug: T337030
Change-Id: I90cdfb626c176b27b59db6b92b9edd6b2fe49b68
2023-05-20 09:34:56 +03:00
jenkins-bot 91bb566fec Merge "Use packageFiles in mmv.ui.ondemandshareddependencies" 2023-05-19 16:45:57 +00:00
Simon Legner 4709abae0a Use packageFiles in mmv.ui.ondemandshareddependencies
Bug: T337030
Change-Id: I09b4d1fecd1940a1a767d2033c4449b5002a88a8
2023-05-19 18:08:39 +03:00
Simon Legner 26f4c60495 Use packageFiles in mmv.ui.reuse.shareembed
Bug: T337030
Change-Id: Ic54d1a1a40ee5318f65ee1245e261db7059583ba
2023-05-19 18:05:56 +03:00
Simon Legner d0066039ac Deep-link to the license section of a file page
The necessary anchor link depends on the language used on Wikimedia Commons:

* https://commons.wikimedia.org/wiki/File:GATEWAY_(Moon_Space_Station).png?uselang=en#Licensing
* https://commons.wikimedia.org/wiki/File:GATEWAY_(Moon_Space_Station).png?uselang=de#Lizenz
* Ref: https://commons.wikimedia.org/wiki/Template:License-header

Remove jsduck due to lacking support for ES6 string templates.

Bug: T336708
Change-Id: Ib71e647682835baa71bd375ae3098966ae01f26c
2023-05-19 13:57:54 +00:00
jenkins-bot e91cddba2b Merge "Update moved class Category" 2023-05-15 13:26:53 +00:00
Translation updater bot 0198fd5fda Localisation updates from https://translatewiki.net.
Change-Id: Ic58130b27982234cba688369777790eb9ae3ffc5
2023-05-15 08:33:18 +02:00
gerritbot ae9ed54305 Update moved class Category
See T321882. Moved in I0b86acfdea

Bug: T321681
Change-Id: Id444a14c41cdf9a887fbd81fa9abd47d187c8df0
2023-05-12 14:33:11 +00:00
Volker E b64642a527 styles: Remove obsolete mixin
Duplicated in core mixins with `.user-select()` since v1.38.0.

Change-Id: Ia0d36bbd2fd417a7195c235854ddd81ac76e51c1
2023-05-09 18:56:17 -07:00
Volker E 132763dd70 styles: Remove deprecated .background-image() mixin call
Deprecated since v1.38.0.

Change-Id: I5723bddcf4ffa529a5a89118ec4a7d36b480408d
2023-05-09 18:24:39 -07:00
Translation updater bot 4743ce366a Localisation updates from https://translatewiki.net.
Change-Id: Icbbcfad9057c9733d6f6cc53c09bf2a1da522b8a
2023-05-08 10:32:34 +02:00
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