Commit graph

1664 commits

Author SHA1 Message Date
thiemowmde f3be60464e Minimize .length checks in JavaScript
This doesn't change anything but is just a code style question. I
find it less confusing than a numeric comparison, to be honest.

Change-Id: I6ef220e85e395fe4769103e20402e1e540946778
2024-11-21 09:50:19 +01:00
Translation updater bot 4396f4453f
Localisation updates from https://translatewiki.net.
Change-Id: Iafff89c3e47a812b5d1a32963f4a7aa0bf823bf3
2024-11-14 08:20:22 +01:00
Cole White 35af63c202 migrate metrics to StatsFactory
Bug: T359244
Change-Id: I0c0a23535dd8b3114d18157f29ad0bbb2afb2a02
2024-11-05 21:01:18 +00:00
libraryupgrader b9c29995bb build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: I66a0dde62c46a0a06938bbc3cf366c7c6cdace1f
2024-11-03 03:42:57 +00:00
Translation updater bot fbfe8a81a7
Localisation updates from https://translatewiki.net.
Change-Id: I70701b2692ceb85d2d8e77140001afeeb0034487
2024-10-29 08:41:51 +01:00
Umherirrender 4f4efd1f1d Use namespaced NullStatsdDataFactory class
Change-Id: I5206b9aaa024796f9419180c281a981f4056e7b4
2024-10-20 11:32:20 +02:00
Translation updater bot 8740f9c2a8
Localisation updates from https://translatewiki.net.
Change-Id: I3186ed5d2512b99456e67d6d05559c131683ac43
2024-10-17 09:22:29 +02:00
Translation updater bot 8adf610d60
Localisation updates from https://translatewiki.net.
Change-Id: Ia77621c9dafa0a82d772743baf0ec0da3b3cc2ac
2024-09-25 09:18:34 +02:00
Translation updater bot fecf0a7081
Localisation updates from https://translatewiki.net.
Change-Id: Ibfe45682b09d6459f92d8f66dbec396514748c11
2024-09-23 09:22:31 +02:00
Translation updater bot 9f996d37e5
Localisation updates from https://translatewiki.net.
Change-Id: Ifb97eda8809c0e258e189adff3727d196b24fc17
2024-09-04 09:16:53 +02:00
Translation updater bot 51a1d340fa
Localisation updates from https://translatewiki.net.
Change-Id: I7dafe0dab9af044c84dba1d1a882ffbd626fadef
2024-08-28 09:39:54 +02:00
jenkins-bot 9abb0bf56f Merge "build: Update MediaWiki requirement to 1.43" 2024-08-24 13:00:35 +00:00
libraryupgrader f68e564817 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I5e0f0a911e339282bdf679be089e25e722357504
2024-08-24 08:48:50 +00:00
James D. Forrester a90536467b build: Update MediaWiki requirement to 1.43
All extensions in Wikimedia production are expected to track MediaWiki's release directly.

Change-Id: I9d2faa08bf1ee898f8742a6ea22e42a3c8308333
2024-08-22 18:13:40 -04:00
Translation updater bot 140bb026d0
Localisation updates from https://translatewiki.net.
Change-Id: I533cbe71bdca5bdbcd077258583906701dd6b92b
2024-08-22 09:22:51 +02:00
Translation updater bot da4aaca9ae
Localisation updates from https://translatewiki.net.
Change-Id: I88bd8d1301757048a497012d5102f47d35ab6a97
2024-08-19 09:24:51 +02:00
libraryupgrader c95d2f8a17 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: Ic6de0ab08d170282ebdd66613ca0e32d7e91a387
2024-08-12 13:36:25 +00:00
Translation updater bot 168803f272
Localisation updates from https://translatewiki.net.
Change-Id: I3f3f9ebed0c614f0e0a13a416d1b98f15d32f447
2024-07-29 09:28:19 +02:00
Translation updater bot 58e58ff318
Localisation updates from https://translatewiki.net.
Change-Id: Id3da114b60191b016cfe83e90d0dd9654c980716
2024-07-26 09:46:34 +02:00
WMDE-Fisch b6f82d5fa8 Fix broken JSDoc
Sneaked in while introducing the the history injection.

Change-Id: Icb5206751a55582acfb108230cd2d57d22d5a6f0
2024-07-25 11:01:35 +02:00
Antoine Musso 85d5d2f4db Remove Sinon.JS from package.json
The library was introduced in 37dc0b5ad to mock the History API. However
the extension package.json is solely used for linters such as eslint.
The JavaScript dependencies should be provided by a Resource Loader
module and mediawiki/core already provides Sinon.JS for the QUnit tests
(see tests/qunit/QUnitTestResources.php).

Remove sinon from this extension package.json and thus partially revert
37dc0b5ad. The sinon variable is still defined to please eslint.

Bug: T370573
Change-Id: I03d7fef161730d9f36b1367d931641430df4bfed
2024-07-24 19:19:08 +02:00
jenkins-bot 5a7e33d9f9 Merge "Replace some more colors with LESS design tokens" 2024-07-24 11:05:33 +00:00
jenkins-bot 208b59ed01 Merge "Remove meaningless CSS, dead code since 2016" 2024-07-24 11:05:31 +00:00
Taavi Väänänen 7fd058e8e7 Fix borders on dark mode
Updates the borders for the RevisionSlider box to use Codex design
tokens with dark mode support instead of hard-coded colors. The slider
itself still doesn't look ideal on dark mode to my eyes, but at least
with the slider in collapsed state it looks better now.

Bug: T370570
Change-Id: I6035781169e9a18f1c959032f605b8e72878aba5
2024-07-24 10:47:59 +00:00
thiemowmde 93d33916a4 Replace some more colors with LESS design tokens
This doesn't fully solve T370572 but already improves the situation
a bit, without causing any change in light mode. Notably: The 1px
separator between the individual bars was hard-coded white before.

I suggest to continue working on this in separate patches, not make
this patch more complicated.

Bug: T370572
Change-Id: I1a2159221bfc37f23e85e6aa7d6beed1f149163f
2024-07-23 20:34:28 +00:00
thiemowmde c2e8f82319 Remove meaningless CSS, dead code since 2016
The border color was added 20016-08-12 via Id561485.
The border was removed 2016-09-15 via I1fdc0ec.
The color is meaningless since then.

Bug: T370572
Change-Id: Ic7a190bf3b56903f2afdd989eb1e78fa02ac01d9
2024-07-23 20:34:20 +00:00
WMDE-Fisch 37dc0b5adb [QUnit] Avoid manipulating the global history
Also introducing sinon to mock some parts.

Bug: T370573
Change-Id: I5a7573bcac9501a7b37a12b86bb0d4f46055f70e
2024-07-23 22:19:58 +02:00
Translation updater bot 5815371cf1
Localisation updates from https://translatewiki.net.
Change-Id: I2707094a84b1465dac3ea3bf79d44fd7c95c455f
2024-07-16 09:41:15 +02:00
Translation updater bot 337ef4430f
Localisation updates from https://translatewiki.net.
Change-Id: I723f7e055bee90a9e8a56b5cab418bccbdad530c
2024-07-08 09:33:52 +02:00
Translation updater bot 3882b297da
Localisation updates from https://translatewiki.net.
Change-Id: Ic0545d638a80bdeefda93896c8780b8239e5ec4e
2024-07-01 09:26:16 +02:00
Translation updater bot 50592ba9cc
Localisation updates from https://translatewiki.net.
Change-Id: I2b927d6e221d0860585bf4654d53b376eb4d459f
2024-06-28 09:42:31 +02:00
Translation updater bot fcf6e9687c
Localisation updates from https://translatewiki.net.
Change-Id: Ie8667e8710eb3546c016239ba2861caa817d546e
2024-06-26 09:22:09 +02:00
libraryupgrader 18c3b0a87a build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: I798f739b5b2f12e5c6eedc88ecac557de28be129
2024-06-21 20:28:54 +00:00
Translation updater bot 56374a2ce5
Localisation updates from https://translatewiki.net.
Change-Id: I10cf2232e0485743827f02ca4091677139a45495
2024-06-17 09:32:39 +02:00
Translation updater bot f7e11cf77f
Localisation updates from https://translatewiki.net.
Change-Id: Ia2840afbace6b48f507524af43b6efbd13c622a4
2024-06-14 09:49:49 +02:00
jenkins-bot 4a9dd26aee Merge "build: Updating npm dependencies" 2024-06-13 12:07:55 +00:00
Umherirrender ef3f96742c Use namespaced Message class
Change-Id: Ib358324d32156dc219c40dd1286ab9a9d3c3d21d
2024-06-10 20:17:27 +02:00
libraryupgrader f5de8ee108 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
  The following rules are failing and were disabled:
  * modules:
    * no-mixed-spaces-and-tabs
    * no-jquery/no-extend
    * implicit-arrow-linebreak
  * tests/qunit:
    * no-jquery/no-extend

* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: I3fd3c4a2cbb03d3aa4c8efb658e33d14d24cd518
2024-06-08 12:04:26 +00:00
Translation updater bot 6abac2d0c3 Localisation updates from https://translatewiki.net.
Change-Id: I81e6aef4ee8b50d0f3483aeb64b06f3bc8ced41b
2024-06-07 09:46:04 +02:00
jenkins-bot bc3d1b7868 Merge "Fire mw.hook 'wikipage.diff' like in core module 'mediawiki.page.ready'" 2024-05-28 14:46:34 +00:00
Translation updater bot a3f016b378 Localisation updates from https://translatewiki.net.
Change-Id: Ie5072003463f28fa656e05ee3ea1953df13a2b33
2024-05-28 09:31:13 +02:00
jenkins-bot fa8300af53 Merge "Streamline element replacement when updating the view" 2024-05-27 07:56:44 +00:00
WMDE-Fisch ff555fb62c Streamline element replacement when updating the view
I mostly refactored what's there. Instead of replacing parameters in specific links,
I'm going for the parent menues where these links live in and replace them completely.

Thereby I could also merge the edit and ve-edit selectors.

Also adding the footer that includes the link to the mobile view and seemed missing.

Bug: T211557
Change-Id: I263c82e80c675918683340d1bb01291213797f9f
2024-05-27 07:10:51 +00:00
Translation updater bot b7c6ed30e9 Localisation updates from https://translatewiki.net.
Change-Id: I5b15ab7e62e3b937503221d42c948135146a012d
2024-05-20 09:26:02 +02:00
libraryupgrader f11cfc95ff build: Updating grunt-banana-checker to 0.13.0
Change-Id: I1bd723ec50ae4a1e98b908f0972d52d59352d3c8
2024-05-19 00:31:07 +00:00
Translation updater bot e99585f3b1 Localisation updates from https://translatewiki.net.
Change-Id: I2cdfb1dbc45656dbd0454feda293946bafe0279f
2024-05-17 09:49:39 +02:00
Translation updater bot b4d4e74885 Localisation updates from https://translatewiki.net.
Change-Id: I7f800152d66299e04604f821c517cf39b58c95ba
2024-05-13 09:27:53 +02:00
libraryupgrader 663a20a03d build: Updating dependencies
composer:
* mediawiki/minus-x: 1.1.1 → 1.1.3

npm:
* grunt-banana-checker: 0.11.1 → 0.12.0

Change-Id: I78c57df954b4fbdde6559598d15f00af13e9681c
2024-05-10 22:05:50 +00:00
Fomafix dd4f849805 Fire hook 'wikipage.categories' before change of the catlinks DOM
Also use the selector
	'.catlinks[data-mw="interface"]'
instead of
	'#catlinks'
like in mediawiki.page.preview.js. This prevents selector injection by
the wiki content.

This change allows consuments of the hook 'wikipage.categories' to work
together with RevisionSlider.

Change-Id: I274e3d3b8ac94cc21c7b0878425c9a785a09b964
2024-05-05 08:13:37 +00:00
Fomafix a8d1a07c0c Use $( '#t-permalink' ).parent() instead of $( '#mw-panel' )
The selector '#mw-panel' from skin Vector and some other skins is not
stable to use and not available on other skins like Vector-2022.

The update of '#mw-panel' breaks CollapsibleVector: T211557.

Using $( '#t-permalink' ).parent() is also a dirty hack but it probably
works on all skins.

The .parent() also updates siblings like '#t-urlshortener' from
extension UrlShortener.

Also add $( '#ca-delete' ).parent() to update the other portlet links.

Bug: T211557
Change-Id: I084c93e8fe7c7663d9de8a39433a9e92a3827196
2024-05-04 09:45:53 +00:00