Commit graph

2561 commits

Author SHA1 Message Date
Fomafix 00dd5b2bce Use text direction based on the context
A categorytree can be part of the user interface (in the sidebar) or
part of the content. The user interface and the content can have a
different text direction.

This change use the usual way to of bidi flipping based on the user
interface language direction and on the content direction like the class
mw-editsection in core.

The direction of the bullets in mixed directions will be fixed in
Ibfb0cb28f0086fb1b7d0997be2246bc120eea85e.

Bug: T288910
Change-Id: Ia420ef120cf4aa66a1e63c9cf3aa2438cc68da52
2021-08-21 13:06:27 +00:00
Translation updater bot adbc46dd3f Localisation updates from https://translatewiki.net.
Change-Id: Ic4675421ff46289f7ea5c4f6ed39c7d0cfd33890
2021-08-19 08:13:08 +02:00
Translation updater bot 5340565529 Localisation updates from https://translatewiki.net.
Change-Id: I71925c3c65017a9c136ff401bd8534acfc0967e1
2021-08-16 08:15:56 +02:00
libraryupgrader d334b65eed build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I5e5aa36c2c534aaee713618e344a5fbc90949cc6
2021-08-11 15:01:18 +00:00
Translation updater bot c8d85702c7 Localisation updates from https://translatewiki.net.
Change-Id: I6bb6e0f6a89e7a5d886cf1d6b2f44b27609601b5
2021-08-09 08:23:31 +02:00
Translation updater bot f4effa1999 Localisation updates from https://translatewiki.net.
Change-Id: I8d84b44bbf341897d7a66834aab1b8ee9d125ed3
2021-08-05 08:21:51 +02:00
Translation updater bot 8418f10e33 Localisation updates from https://translatewiki.net.
Change-Id: I7c5db737453080a444b36644c12f11ddfa139c38
2021-07-29 08:44:41 +02:00
Translation updater bot b19cd7d8db Localisation updates from https://translatewiki.net.
Change-Id: Ia04f20d981b4d40279669415702776bd11d4879c
2021-07-28 08:20:47 +02:00
libraryupgrader 97d57800a8 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.0 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: I3661ee3bfb047c9f43ef02bb4052196913c5b38d
2021-07-22 11:41:27 +00:00
Translation updater bot 72a62cb10e Localisation updates from https://translatewiki.net.
Change-Id: I51145874f756bc56fed727e91b488c5a43bbd884
2021-07-19 08:15:26 +02:00
Translation updater bot 5301219aa0 Localisation updates from https://translatewiki.net.
Change-Id: Id4c5357147ff71b6ccde8f7c064f3c72606f5798
2021-07-14 08:02:41 +02:00
Translation updater bot 3a4461485b Localisation updates from https://translatewiki.net.
Change-Id: I566adf53c8001324c72bbfcd69262d171179633c
2021-07-13 08:11:30 +02:00
Translation updater bot 0cfdcc6d14 Localisation updates from https://translatewiki.net.
Change-Id: I0df8e4a667571c22c35c2a6cbc34edf4365b5293
2021-07-12 08:06:10 +02:00
Matěj Suchánek c7b79338d5 Simplify CategoryTree::capDepth
Current master of CategoryTree requires MW 1.35, which requires PHP 7.3.

Change-Id: Ibec271bf45465cd61ac383595041e0475304f31c
2021-07-07 12:42:08 +00:00
Fomafix 6e77d4defc Remove LEFT-TO-RIGHT MARK (U+200E) from source code
Change-Id: Ifc545b536bdd951c2829c248d82f81c2e3d3da35
2021-07-01 17:55:53 +00:00
Translation updater bot c504ecdec1 Localisation updates from https://translatewiki.net.
Change-Id: I97cb52f65342755a93ed202dcf36a7d500a18140
2021-06-29 08:13:30 +02:00
daniel 734e2af35c Put onMediaWikiServices into a separate handler class.
The MediaWikiServices hook runs before the service container is fully initialized, so it cannot have services injected. For this reason, it needs to be separate from the handlers for other hooks.

Change-Id: I1519aea8bca2f3977fcf15ee8776a1b3319687b5
2021-06-24 15:17:34 +00:00
Translation updater bot 06dde64f45 Localisation updates from https://translatewiki.net.
Change-Id: Ide7376da37a1ae38af158c3e3967e5f859a4bb2e
2021-06-23 08:11:35 +02:00
jenkins-bot ffe5ad53de Merge "Restore category link to sidebar" 2021-06-23 01:50:29 +00:00
Translation updater bot 4064a12dbc Localisation updates from https://translatewiki.net.
Change-Id: I45e8c188778cb3928608f6d2b0c012db885092b2
2021-06-22 08:09:18 +02:00
Translation updater bot fea1360c0f Localisation updates from https://translatewiki.net.
Change-Id: Ie4895e75d1fbd170435ac038e79ef9a079c3b3f8
2021-06-21 14:11:24 +02:00
Translation updater bot bb9c9b0b34 Localisation updates from https://translatewiki.net.
Change-Id: I99219615ef923742158ae49a20111920953939bd
2021-06-18 08:20:32 +02:00
jdlrobson 46d2de89da Restore category link to sidebar
Bug: T272705
Change-Id: I2911562a902aab82783d696282bbbdd2a287e962
2021-06-15 11:55:22 -07:00
jenkins-bot f6c6a8341a Merge "Re-apply: Convert to new hook system (Workshop)" 2021-06-15 01:50:02 +00:00
Translation updater bot 707f29378f Localisation updates from https://translatewiki.net.
Change-Id: I264a28104887a88683b9aa927b5985908523fb93
2021-06-14 08:36:15 +02:00
daniel ece310d7be Re-apply: Convert to new hook system (Workshop)
This converts the CategtoryTree extension to the new (MW1.35) hook system.
The patch was written live during a hackathon workshop.
A recording of the workshop is available at
<https://www.youtube.com/watch?v=ZOj44Rbh0tM&t>.

Re-applying after fixing: premature access to $wgRequest
Restores change: Ie52c393af378a980a2dac4ae7076fd6c016a8e0e
Reverts revert: Ieee300c7b35b7069bd7e781610c915f2ecae1bf1

NOTE: the "mode" parameter for category pages seems to be broken,
as the mode is not proeprly propoagated to dynamic requests.
This was already the case before this change, and this change
does not try to fix that issue. I was tempted to just remove
the feature entirely, but T137812 inidcates that it may be useful to
some. I will comment there to see if this should be fiexed or removed.

Bug: T282110
Bug: T271011
Change-Id: Ic3ee05e9dc382f4ada5cfeb9ff5d9a69249cc60d
2021-06-11 11:20:38 +02:00
jenkins-bot 038fd0f718 Merge "Revert "Convert to new hook system (Workshop)"" 2021-06-11 06:24:34 +00:00
Tim Starling ef81879337 Revert "Convert to new hook system (Workshop)"
Fatal error observed on beta.

This reverts commit 2ee5743cfa.

Change-Id: Ieee300c7b35b7069bd7e781610c915f2ecae1bf1
2021-06-11 06:07:27 +00:00
jenkins-bot b6fbffde99 Merge "Convert to new hook system (Workshop)" 2021-06-11 00:58:27 +00:00
Translation updater bot 6c37625ea3 Localisation updates from https://translatewiki.net.
Change-Id: Ib410285242aa4b1e1408f582de6ccddefccd23b7
2021-06-04 08:35:53 +02:00
daniel 2ee5743cfa Convert to new hook system (Workshop)
This converts the CategtoryTree extension to the new (MW1.35) hook system.
The patch was written live during a hackathon workshop.
A recording of the workshop is available at
<https://www.youtube.com/watch?v=ZOj44Rbh0tM&t>.

Bug: T282110
Bug: T271011
Change-Id: Ie52c393af378a980a2dac4ae7076fd6c016a8e0e
2021-06-02 14:26:57 +00:00
Translation updater bot 4e4c4d6019 Localisation updates from https://translatewiki.net.
Change-Id: I05701f76aa1c9ff6a168a7cd12e75c4f4e60890b
2021-05-31 08:30:13 +02:00
Translation updater bot be05304e1d Localisation updates from https://translatewiki.net.
Change-Id: Icfd5138320a0ce54f31edcee62306c2216300f58
2021-05-27 14:07:28 +02:00
Translation updater bot 65626b034a Localisation updates from https://translatewiki.net.
Change-Id: Icefe7613a25e7782c5b0cc90124f9c14851e5d75
2021-05-27 12:04:52 +02:00
libraryupgrader 75f278b957 build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I09f49fd2fc23736edc43d93a51047f095b277ba1
2021-05-27 00:36:39 +00:00
Translation updater bot 82593f31ed Localisation updates from https://translatewiki.net.
Change-Id: I7a19fcd4f5176a207d88272c34a28d6fdfaa5cf7
2021-05-25 08:51:29 +02:00
Translation updater bot e2dfe579eb Localisation updates from https://translatewiki.net.
Change-Id: Ic617882ba5cade4ea054ff608e8583c0f62b51a6
2021-05-24 09:53:04 +02:00
Translation updater bot 31314b9332 Localisation updates from https://translatewiki.net.
Change-Id: I22b0f889f9a3ed49aa37e4938ac95182f61696fb
2021-05-20 09:09:53 +02:00
Translation updater bot fccb6c3398 Localisation updates from https://translatewiki.net.
Change-Id: I2d3927e819d5c48569feb975a44649528ec82acb
2021-05-19 08:42:18 +02:00
jenkins-bot 21d5b72420 Merge "Unify list-style CSS" 2021-05-18 16:50:25 +00:00
Translation updater bot 03bd92fa89 Localisation updates from https://translatewiki.net.
Change-Id: Iccfbdea6a6c5d967751d5b1c98f7a338a57c3a65
2021-05-17 08:41:14 +02:00
libraryupgrader 16cba63b40 build: Updating postcss to 8.2.15
* https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: I42bf38c32ef6ad999e23fdf448a438b9203f0614
2021-05-16 02:31:34 +00:00
Translation updater bot b78ae7948f Localisation updates from https://translatewiki.net.
Change-Id: I1e1e29751927ea30eb77febae1d5ee22578b63fc
2021-05-12 09:20:45 +02:00
Translation updater bot 19981d8734 Localisation updates from https://translatewiki.net.
Change-Id: I2b2961d47cf71dafe99f01883450ccbd32af9615
2021-05-11 09:05:37 +02:00
Translation updater bot ac26e0a6cd Localisation updates from https://translatewiki.net.
Change-Id: I0937a5676330a48e1093a0b7d71ccf134f9f5c49
2021-05-10 08:50:33 +02:00
libraryupgrader fb414cedab build: Updating npm dependencies
* grunt: 1.3.0 → 1.4.0
* hosted-git-info: 3.0.8 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)

Change-Id: Ib20baaa20999c8319a1623678428b801f52a5b41
2021-05-09 01:14:06 +00:00
libraryupgrader 3b062dcc77 build: Updating npm dependencies
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 3.0.7 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)

Change-Id: I5a9a458a61a27d77f6fdc5593cbba79beb89e707
2021-05-07 13:53:34 +00:00
Translation updater bot dac8f7da34 Localisation updates from https://translatewiki.net.
Change-Id: Ia82ea36845bc2115e931b597974187eefccb3e9d
2021-05-07 08:40:28 +02:00
Translation updater bot 15e39cc9d0 Localisation updates from https://translatewiki.net.
Change-Id: I4e5ba9f1431c8974773dcf8c0b020df1a173d1c7
2021-05-06 08:53:27 +02:00
Translation updater bot cb75ecf016 Localisation updates from https://translatewiki.net.
Change-Id: Id78c3953d569acef3ce462ce25028485646050e5
2021-05-04 08:51:18 +02:00