Commit graph

2816 commits

Author SHA1 Message Date
Translation updater bot 9cb4f459cc Localisation updates from https://translatewiki.net.
Change-Id: I60c27057f67b9f768f4feaf15d6bf7274630a418
2022-12-21 09:17:24 +01:00
Translation updater bot 845c859828 Localisation updates from https://translatewiki.net.
Change-Id: I29dc1623225620b5c786a2ad6c518111d7c42b22
2022-12-19 09:04:37 +01:00
Fomafix 76e2339cec Inject service UserOptionsManager in Hooks
Change-Id: I690699210c041f950a076904b863bc014833e5ad
2022-12-15 22:13:23 +00:00
Jon Robson 7295ee3a6a Account for syntax errors in closest selector
Certain browsers have the closest method but do not
support not selectors with multiple arguments. This
variant caters for both.

Bug: T325113
Change-Id: Ib5fc912bfe0f831fea4c9882c25b27541d83b66f
2022-12-13 14:14:35 -08:00
Jon Robson 01e3ddcda5 Child elements also trigger previews
Follow up to
Iefe98c1f0422dbf034e385b1a41a859d030a2cf4 where we switched from the
jquery event delegation pattern to native methods. One thing that we
overlooked was that we also need to consider the case where the selector
matches the parent of an element, for example a span nested inside an
eligible link. I've rethought this logic, to first find the closest
eligible element to normalize the element passed to model methods
before running matchesSelector.

Bug: T325007
Change-Id: I4133751dc900a51829173e9c0d965cbb18e6a33e
2022-12-13 00:52:37 +00:00
Translation updater bot f642345625 Localisation updates from https://translatewiki.net.
Change-Id: I4c62abd08e3e85e85df6efbdac2d79b6724bc18b
2022-12-12 08:22:53 +01:00
Jon Robson 898fc81998 Avoid syntax error on hover in grade C browsers
Adjust the logic of elementMatchesSelector to fallback
to jQuery when the native matches fails.

Follow up to
Iefe98c1f0422dbf034e385b1a41a859d030a2cf4

Bug: T324514
Change-Id: I0e9e894e77e2eb29fee65853aa98b141bc2a11a3
2022-12-06 07:41:22 -08:00
jenkins-bot 94c251583e Merge "Extensible previews" 2022-12-02 17:02:04 +00:00
Translation updater bot 37e6bf20ac Localisation updates from https://translatewiki.net.
Change-Id: I3dc42dcc53f85bd0b9d0ad9f435b6863e46fbd7d
2022-12-01 08:16:33 +01:00
Translation updater bot 79d3b32947 Localisation updates from https://translatewiki.net.
Change-Id: I9525080a41141116168e8c18d75b48e77b3ac5aa
2022-11-25 08:26:38 +01:00
Translation updater bot d0f6e7df8b Localisation updates from https://translatewiki.net.
Change-Id: I7e80d694ae6fae3faf6fbab8528e28ea5e4de283
2022-11-24 08:18:02 +01:00
Jon Robson 0febc3f54d Extensible previews
Allow extensions to register new types of previews via
extension attributes.

Changes:

- The check for reference previews doesn't make sense
as $('a[ href*="#" ]' ) will match any elements with a hash
fragment, so the additional check to Title.getFragment
will not provide a different result. This was introduced in
I9ec57e0fbb0d21beaaa7b359c1c2bef64d2c14f5
- Links that point to themselves are marked with mw-selflink
in MediaWiki so this can use the not selector we already have.
- The new API is used internally and only available via extension
Attributes
- An example is provided in SkinJSON
(https://github.com/jdlrobson/mediawiki-skins-skinjson/pull/14)

Bug: T233099
Change-Id: Iefe98c1f0422dbf034e385b1a41a859d030a2cf4
2022-11-22 08:45:27 -08:00
Translation updater bot 658a417891 Localisation updates from https://translatewiki.net.
Change-Id: I7765745a9676f380d8127f32026dc906d31c323b
2022-11-22 08:34:23 +01:00
Translation updater bot 714d843423 Localisation updates from https://translatewiki.net.
Change-Id: I751c6255e77e7070a2c113b5cbdb6a2c6f2b531e
2022-11-21 08:16:53 +01:00
Translation updater bot f686f04750 Localisation updates from https://translatewiki.net.
Change-Id: I67bdd2c864bd01da76360e178ae8159267c0d285
2022-11-18 09:19:17 +01:00
Translation updater bot 4d500e1ff1 Localisation updates from https://translatewiki.net.
Change-Id: Ic0b959340b0aac933f33d21ba570b704cd9cf08a
2022-11-17 08:27:45 +01:00
jenkins-bot 0f3d501cf3 Merge "Replace deprecated @borderRadius var with successor @border-radius-base" 2022-11-09 21:50:19 +00:00
Translation updater bot 465b6f493c Localisation updates from https://translatewiki.net.
Change-Id: Id24436f78556de16dfa0545010dba62bc83ca0da
2022-11-07 08:35:14 +01:00
gerritbot a4cdeafe25 Replace deprecated @borderRadius var with successor @border-radius-base
Replacing deprecated mediawiki.ui `@borderRadius` variable with successor
@border-radius-base.
Former got deprecated in MW 1.35 about 2 years ago. Latter is in alignment
with mediawiki.skin.variables.less standardization. It's also in
accordance to Codex design tokens.

Bug: T322478
Change-Id: Idbd315d14525d75dea951d4144bc84bceb700c0a
2022-11-06 22:46:31 +00:00
Fomafix c58f9234fc Use $this->getServiceContainer() in test cases
Change-Id: Ic03f4d692720cd9810c44700f7bf27d1cf07d26d
2022-11-05 09:50:56 +00:00
Fomafix 56d8a8df55 Inject service SpecialPageFactory
Change-Id: Ia38b468741bdfd5bab5bb34df79bf01d549498a9
2022-11-05 09:28:08 +00:00
Fomafix 4874172242 Use short array destructuring instead of list()
Introduced in PHP 7.1. Because it's shorter and looks nice.

Change-Id: I68273c79e8d15ef7b69e2642087e425d8bf0dfa6
2022-11-05 09:08:33 +00:00
Translation updater bot 29dfa3633c Localisation updates from https://translatewiki.net.
Change-Id: Icdc0a1597398941e768c185ea6d0ff3c45038b9e
2022-10-26 08:19:55 +02:00
Translation updater bot 59e8b2a946 Localisation updates from https://translatewiki.net.
Change-Id: Ia805890e73f53ccdb9af99ae9b314af7d7272071
2022-10-24 08:23:25 +02:00
Translation updater bot 6e58049ea2 Localisation updates from https://translatewiki.net.
Change-Id: I1fb5444c1c3adfd0c0b0f9c181d390b5cef5f6dc
2022-10-20 08:32:04 +02:00
Translation updater bot d23109d7f4 Localisation updates from https://translatewiki.net.
Change-Id: Id7c671b092cea4e119ad05a239005f5e822db8c9
2022-10-17 08:22:20 +02:00
Translation updater bot 8ec3440be5 Localisation updates from https://translatewiki.net.
Change-Id: Ic00385cc3d12cc12dcc127896175750e20f2046e
2022-10-13 08:09:34 +02:00
Translation updater bot e85ff90688 Localisation updates from https://translatewiki.net.
Change-Id: I8a1dba45c08548ec8c7bf4ccf855cc85b0e57473
2022-10-12 08:08:08 +02:00
Translation updater bot 4052c1fc34 Localisation updates from https://translatewiki.net.
Change-Id: I2f47cdffdd1beff9754f02c3901c173ba5efbee8
2022-10-11 09:17:13 +02:00
Translation updater bot 80b1c00220 Localisation updates from https://translatewiki.net.
Change-Id: I3ec6e3392c52d2ec734280363f7125966d1807fc
2022-10-05 08:25:05 +02:00
Thiemo Kreuz 988fe3fe07 Lowercase {jQuery…} type hints everywhere
I think this is the more canonical variant.

Change-Id: I7dcdfeb82153f5b903378027712f16c20cc111eb
2022-10-04 15:54:20 -07:00
Thiemo Kreuz dd3bff0d2a Use PHPUnit's convenience shortcuts where possible
Change-Id: I5cc75a66f5971de409a9debdd4f4ebfb8ee94b22
2022-09-29 14:41:35 +02:00
Translation updater bot 0f1c9cea91 Localisation updates from https://translatewiki.net.
Change-Id: Ib504949cf3d7b47ab871a2f4d75654c5b1af93d0
2022-09-27 08:32:38 +02:00
Translation updater bot 463c2f801c Localisation updates from https://translatewiki.net.
Change-Id: Ibd5f630ac7366382126d1cbdb05142003e6bd7f4
2022-09-26 08:16:05 +02:00
Translation updater bot d129174ec7 Localisation updates from https://translatewiki.net.
Change-Id: I7bc92900ffd1441423104c91cd11b14b118bc798
2022-09-23 08:29:55 +02:00
Translation updater bot b13f4dad58 Localisation updates from https://translatewiki.net.
Change-Id: Ie33701a7b1e32fbbd601eacf3c56d7e946035560
2022-09-20 08:34:41 +02:00
Translation updater bot dc45d55ef4 Localisation updates from https://translatewiki.net.
Change-Id: I7d8eb23a45140a4da2c09bf32699745e07ff19c7
2022-09-19 08:25:45 +02:00
jenkins-bot 498bdd9a8e Merge "build: Upgrade jQuery test install to 3.6.1 to align with MediaWiki" 2022-09-15 18:03:48 +00:00
Translation updater bot 1263815c7a Localisation updates from https://translatewiki.net.
Change-Id: Ifa1b6522d29b6e49999cf915f9feb296fba940cf
2022-09-15 09:55:26 +02:00
Translation updater bot 6a9e1d5c0d Localisation updates from https://translatewiki.net.
Change-Id: I38ecd7fdb4cf8ef78cefdc4816cbc2d34cad4fb0
2022-09-12 09:37:02 +02:00
Translation updater bot b14c536c41 Localisation updates from https://translatewiki.net.
Change-Id: Ic2a23ea4e334ff03253015cb0367eba69751c68b
2022-09-05 10:11:41 +02:00
James D. Forrester e1ea210f6f build: Upgrade jQuery test install to 3.6.1 to align with MediaWiki
Bug: T316516
Change-Id: I76a4aad525975e7fde7c70a2d0edb9801c1c939b
2022-08-31 09:22:27 -04:00
Translation updater bot 399ae99e31 Localisation updates from https://translatewiki.net.
Change-Id: I092ad3a3d0b7515a0854084f617d6cb92673d9e1
2022-08-30 09:30:34 +02:00
Translation updater bot 0d8ee18c64 Localisation updates from https://translatewiki.net.
Change-Id: I956c2999a3f376be461dfd220bfe5778557370f2
2022-08-29 09:15:27 +02:00
Translation updater bot 3b729f2f17 Localisation updates from https://translatewiki.net.
Change-Id: Iac46eb2a38562176dd05a7edbbec504bc2a5076f
2022-08-22 08:23:39 +02:00
Translation updater bot bf304d0942 Localisation updates from https://translatewiki.net.
Change-Id: I75b151a6f295c788e5a6662ad255a44fe1e182a4
2022-08-19 08:30:15 +02:00
Translation updater bot d503c6cbb9 Localisation updates from https://translatewiki.net.
Change-Id: Ie7ec2e30f07016a441c50631994654c9d1df03d2
2022-08-15 08:27:02 +02:00
Translation updater bot 5a90aab919 Localisation updates from https://translatewiki.net.
Change-Id: I19957de10b8c7c2528316e636daba144f52e2ca0
2022-08-08 08:59:16 +02:00
Translation updater bot 396858409b Localisation updates from https://translatewiki.net.
Change-Id: Id7e6ce3b36ffa613f8d4e5bf0874615dc57daf19
2022-08-01 08:23:17 +02:00
Translation updater bot 27d6c51144 Localisation updates from https://translatewiki.net.
Change-Id: I4723f3e03352b72c37b1d929d7dda26eaad3a5e3
2022-07-27 08:26:40 +02:00