Commit graph

2813 commits

Author SHA1 Message Date
Ed Sanders bf04f98306 MMV lightbox: Allow notifications to appear on top of the lightbox
Bug: T312778
Change-Id: I1e4a32325b36721b51ffb199df3471fc75e9498e
2022-07-11 16:01:14 +01:00
Ed Sanders f08e51741c Remove monobook selectors that assumed the '*' selector might not be available
None of the browsers we send JS to don't support the '*'
selector, so we can remove the fallback for monobook.

Change-Id: I691a71fc8bf4cfa62e8056fdf1021f6513517f75
2022-07-11 16:00:24 +01:00
Translation updater bot 6aa5081c01 Localisation updates from https://translatewiki.net.
Change-Id: Ic5e6d1531708eb8d3a89c47f6d81b3b06acf2f41
2022-07-11 09:50:08 +02:00
Translation updater bot f5f298f51c Localisation updates from https://translatewiki.net.
Change-Id: I4bba90f98a56e824478a52e7d73d3b55ea4d2079
2022-07-08 08:52:46 +02:00
Translation updater bot cce15b4645 Localisation updates from https://translatewiki.net.
Change-Id: I7d065989491df9edf2ceb0a7ac5c79698dcb6514
2022-07-06 10:18:23 +02:00
jenkins-bot c536aaee17 Merge "Remove instrumentation" 2022-07-05 17:53:24 +00:00
Sam Smith 34e4968b2c Remove instrumentation
The MediaViewer and MultimediaViewer* instruments were disabled circa
October 2021 in Ie7dd8739efc.

This patch removes those instruments and any supporting code and data.
Notably, this patch does not remove the mw.mmv.logging.ViewLogger
instrument, which is responsible for logging image views.

Bug: T310890
Change-Id: I97d41be93849b2ae9d1adba6660546ea716657fd
2022-07-05 17:41:24 +00:00
Translation updater bot ed2ba5cff0 Localisation updates from https://translatewiki.net.
Change-Id: Ia651ba50795e6bb727cff3999226333bb2523444
2022-07-04 08:22:33 +02:00
Translation updater bot 7f50f646b7 Localisation updates from https://translatewiki.net.
Change-Id: Ic6afff60cec2ab0645649e095e04583c2aaac911
2022-06-27 08:18:22 +02:00
jenkins-bot 10c83c188f Merge "Remove EventLoggingSchemas entries" 2022-06-21 23:09:49 +00:00
Translation updater bot 5c34db520e Localisation updates from https://translatewiki.net.
Change-Id: Ib4c36c60e25aadb9b6994489aed85a767289f0d2
2022-06-20 08:17:32 +02:00
Sam Smith a286166f88 Remove EventLoggingSchemas entries
The MediaViewer and MultimediaViewer* instruments were disabled circa
October 2021 in Ie7dd8739efc. However, the EventLoggingSchemas entries
are still included in the ext.eventLogging RL module, which is fetched
on the majority of pageviews.

At the time of writing it is not clear whether the instrumentation code
will be archived. If it is not archived, it should be migrated to the
Event Platform, in which case the EventLoggingSchemas entries can be
reinstated.

Bug: T310890
Change-Id: I2e99664f4c00513dc61fdf9f3b53da241902e13d
2022-06-17 14:53:16 +01:00
Translation updater bot 17fedae00b Localisation updates from https://translatewiki.net.
Change-Id: I8a0ec7ef256db606a41a0b8b076af65160d730f1
2022-06-13 08:28:42 +02:00
dylsss 9d265ee1d0 Fix credit fallback not updating when switching image
jQuery object gets converted to "[object Object]" which results in an ununique array key in HUP.htmlToTextWithTags cache.textWithTags, instead pass HTML string.

Bug: T308958
Change-Id: If6fc934d263107a0d3346ccea8e91cade72db666
2022-06-07 23:29:49 +01:00
Translation updater bot 564800ac3e Localisation updates from https://translatewiki.net.
Change-Id: I000fe2cd9924f52fc16cee0cbe9d0676828c33c3
2022-06-06 09:26:13 +02:00
jenkins-bot 67035ba546 Merge "Support mw:File as well as mw:Image" 2022-05-26 20:40:21 +00:00
Translation updater bot b35d1fda75 Localisation updates from https://translatewiki.net.
Change-Id: I01a23fa562e6d8a9e11dd3f231697f4369c29b4d
2022-05-25 08:32:35 +02:00
Translation updater bot bf7f0b998d Localisation updates from https://translatewiki.net.
Change-Id: I67337c4ffdbdc4d19b8cf56e057f9faef09ecda7
2022-05-23 08:17:14 +02:00
libraryupgrader 17544ff203 build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

Additional changes:
* Set `name` in package.json.

Change-Id: I007086b21111a75ecac8ff3c76bce61abe8efd13
2022-05-21 07:55:49 +00:00
Ed Sanders 70b4410e30 eslint: Fix qunit/no-loose-assertions
Change-Id: I61a1ade103e421aa1f447d441f3bb198258b50ad
2022-05-20 01:18:43 +01:00
Ed Sanders e131da48f9 build: Update eslint-config-wikimedia to 0.22.1
Change-Id: I275ecfa03b3df8554b30f2a0f6d94d4b66da8088
2022-05-20 00:05:49 +01:00
Ed Sanders 3a61a45a53 build: Update stylelint-config-wikimedia to 0.13.0
Change-Id: I1b6de87b8a1b48220104af42a4e43d81a289438c
2022-05-19 23:58:01 +01:00
Ed Sanders 73e59d396d style: Remove vendor-prefixes no longer required
Change-Id: Ide19cd0decb8a6ef26ccb94bfc89376b3a886748
2022-05-19 23:48:51 +01:00
Arlo Breault 65cba344ad Support mw:File as well as mw:Image
Bug: T273505
Change-Id: I5734593936e620b4c74789080263ef1ea3b99c9d
2022-05-19 17:46:46 -04:00
Translation updater bot f13d696748 Localisation updates from https://translatewiki.net.
Change-Id: Ia3cdd3ad89e738e62988ae1d42a1257c019461b8
2022-05-17 08:28:31 +02:00
Timo Tijhof 0f092b6cb3 tests: Minor clean up of mmv.ui.metadataPanel.js and other tests
* Declare variables inline, as per the current code conventions.

* Use `assert.true()` or `assert.false()` in a few places.

* Clarify some test names and simplify some surrounding code.

Change-Id: Id0bca942e34564b9c011e89c0b2298cbb4f8a582
2022-05-13 22:13:01 +01:00
Timo Tijhof 5e1dece304 tests: Make mmv.ui.metadataPanel.js pass with non-English locale
My browser is configured with en-GB as its locale. This meant that
when qqx was passed down, it fell back to my browser's default locale
and thus made the tests fail, as the expected data was set against
lang=en.

Ironically, MMV actually prefers the en-GB date format, and outside
tests even replaces 'en' with 'en-GB' when formatting dates in the
user interface. It was only in the tests that it asserted the 'en'
format that would otherwise never be used by MMV.

Ironically, the reason my locale is affecting the test is because
we switched from hardcoded lang=en to hardcoded lang=qqx which is
meant to disable any influence from localisation. However, when
passed to browser-native Intl API, qqx is not valid and thus
caused us to not have a hardcoded 'en' but a completely variable
UI language based on the developer's browser settings.

Bug: T250045
Change-Id: I94ad25cc7060ac5e9db41c6b6767aa9fd687a0db
2022-05-13 21:49:51 +01:00
Timo Tijhof c8eae3585a tests: Remove use of QUnit 1.x setup()/teardown()
Bug: T250045
Change-Id: I22641fa8ca8231ef3fcac6075a604e1478fa1145
2022-05-13 21:41:15 +01:00
Translation updater bot ecf31cb15b Localisation updates from https://translatewiki.net.
Change-Id: Ic213413cc3aae4120c50e918f1cb99f97cbdfc99
2022-05-13 08:26:18 +02:00
Translation updater bot 5018c4acf5 Localisation updates from https://translatewiki.net.
Change-Id: I574063017b2ee70da408f7bcd014ac5ba39e8298
2022-05-10 08:09:47 +02:00
Translation updater bot 0b4cb2592e Localisation updates from https://translatewiki.net.
Change-Id: Ia600f399228deb3e8aeef5ae821e2b28dafac54e
2022-05-02 08:19:58 +02:00
Translation updater bot 98fa6fece3 Localisation updates from https://translatewiki.net.
Change-Id: Ibed05e268af3c50e1e10c739bdcbf3d4ccda75c7
2022-04-29 08:43:26 +02:00
Translation updater bot 8762cc329e Localisation updates from https://translatewiki.net.
Change-Id: Ibbe7e0f088c210ba36b8f4b09c408d7667963a53
2022-04-28 09:28:45 +02:00
jenkins-bot ea612b82a3 Merge "Add word-break rule for mw-mmv-image-links to prevent overflow" 2022-04-20 23:26:38 +00:00
Translation updater bot badba728b9 Localisation updates from https://translatewiki.net.
Change-Id: I99662ebe639e030f63fa8f1d7226a8ca12a932fe
2022-04-12 08:14:34 +02:00
Translation updater bot 1071d4df6c Localisation updates from https://translatewiki.net.
Change-Id: I05ce7ba9c3209b2c0dcdb0f384eda99e2c7462f3
2022-04-04 09:34:48 +02:00
stang 52f2d40c8e Add word-break rule for mw-mmv-image-links to prevent overflow
image-links section may overflow if file has a long filename,
and a horizontal scroll bar may appear. Add a
"word-break: break-word" rule to prevent it from happening.

Bug: T305328
Change-Id: Ief395b66525b686fdcd7dec0909775065240a724
2022-04-03 15:55:52 +00:00
Translation updater bot 24cfa6ab7b Localisation updates from https://translatewiki.net.
Change-Id: I930646be9a1e7e747ace306421d100546682f471
2022-04-01 08:27:11 +02:00
Translation updater bot 5f5ccb0ba4 Localisation updates from https://translatewiki.net.
Change-Id: I026e8f056ed07b4a6705c6f14a08a467bb2cb9ab
2022-03-30 08:18:24 +02:00
Translation updater bot 299b8b6ab0 Localisation updates from https://translatewiki.net.
Change-Id: Ie38db6b7bee82d06a476561412e4931a2555d9c8
2022-03-28 08:21:31 +02:00
Translation updater bot 7a16681e6a Localisation updates from https://translatewiki.net.
Change-Id: I1eb64a4010d5761f23e44873bf2465b4a88b0d4f
2022-03-09 08:09:49 +01:00
Translation updater bot 7ad5726489 Localisation updates from https://translatewiki.net.
Change-Id: Ibba98c03bcb85c3545f38dba5f3c17f547197c55
2022-03-08 09:01:53 +01:00
jenkins-bot 861cdad1a6 Merge "Separate processing for Parsoid thumbs" 2022-03-08 00:46:43 +00:00
Translation updater bot f8afde6399 Localisation updates from https://translatewiki.net.
Change-Id: I6636fc53d8b5c6fd33bb7494e504ea90026c7f9b
2022-03-07 08:11:19 +01:00
Arlo Breault ae5a7aeac1 Separate processing for Parsoid thumbs
Take advantage of the regularity of the structure.

Limit selection to .mw-description links, which serves an equivalent
purpose to .image in the legacy output.

Bug: T292657
Change-Id: Ic652576f84e07c9fc8ef8be216a6fc94466198a6
2022-03-04 18:36:26 -05:00
Arlo Breault 681e1afe36 s/thumbContain/thumbContainer/
Change-Id: I57738c705b3be7aade3e5ba64c879eecc1727383
2022-03-04 18:34:06 -05:00
Translation updater bot ed053a394a Localisation updates from https://translatewiki.net.
Change-Id: I2d109f7d828443ee41d6132009a5163469bb1e36
2022-02-28 14:29:04 +01:00
Volker E d1c468f909 build: Update 'svgo' to latest v2.8.0
Updating 'svgo' to v2.8.0 and newest Wikimedia SVG guidelines –
mainly around new whitespace features of SVGO.

Change-Id: I2b1ea90124b0f5793ffe76bc94d050654cc8baf7
2022-02-27 02:42:31 -08:00
Translation updater bot 94e34729d2 Localisation updates from https://translatewiki.net.
Change-Id: I7690a9eaf091b3fc878243e310932f9f109c65b0
2022-02-25 09:44:43 +01:00
Translation updater bot d33dd6e587 Localisation updates from https://translatewiki.net.
Change-Id: Ic04cb0554401909b0ddda7eff5aae7e6db42e8da
2022-02-24 08:49:36 +01:00