Commit graph

2783 commits

Author SHA1 Message Date
Fomafix 23ddd8cfd1 Remove unused parameter PPFrame $frame
Change-Id: Ic014850a01fbf5820c2ad77d89ae98e1525dcb7b
2024-10-27 04:42:31 +00:00
Andre Klapper 63688178e9 Use explicit nullable type on parameter arguments (for PHP 8.4)
Implicitly marking parameter $... as nullable is deprecated in PHP
8.4. The explicit nullable type must be used instead.

Bug: T376276
Change-Id: I40bb7a0a02aaa467cbf0ae182adf5601ccbcb58e
2024-10-26 14:43:49 +02:00
Translation updater bot 669a25fa43
Localisation updates from https://translatewiki.net.
Change-Id: I679491d874a30883bbfd511a5933ea45d494581b
2024-10-25 09:46:06 +02:00
Translation updater bot bb36ea0527
Localisation updates from https://translatewiki.net.
Change-Id: I821e55fa005080f7c4e6d6627bc441d2dbb21f8f
2024-10-21 09:19:38 +02:00
Umherirrender 113ece0e54 Use namespaced PPFrame class
Change-Id: I5fff88a0c944cfbda33ffcab1bb6a01e5440a52a
2024-10-19 23:22:14 +02:00
Translation updater bot 8f0dca767d
Localisation updates from https://translatewiki.net.
Change-Id: I4ff3b3e2152cc63fad279b0bda90571c40cf1866
2024-10-15 09:39:49 +02:00
Translation updater bot b8ca605185
Localisation updates from https://translatewiki.net.
Change-Id: I86c3657c6e34ade49adaa484a4eeadd002e80d1a
2024-10-14 09:28:36 +02:00
Umherirrender e745abd03b build: Run stylelint for less file
less is used since 451aeceba1

Change-Id: I0b1af80a776b174a4a716f4698b81c93fa2c4eb0
2024-10-12 13:43:49 +02:00
Translation updater bot 8a5ebf8acc
Localisation updates from https://translatewiki.net.
Change-Id: Ib5bd554d6de0f7eac8ee544c683084d1872fe119
2024-10-11 09:24:28 +02:00
jenkins-bot bcdc686cac Merge "Stay on mode=categories after the first submit with all namespaces" 2024-10-10 16:45:11 +00:00
jenkins-bot 9399909bf3 Merge "Trigger CategoryTree::setHeaders only if subcategories available" 2024-10-10 16:45:10 +00:00
jenkins-bot 5a8fdcab95 Merge "Add link to T290062 on onlyroot deprecation message" 2024-10-10 16:45:09 +00:00
jenkins-bot 12e5a3a1cf Merge "Use namespace for ServiceWiringTest" 2024-10-10 16:45:08 +00:00
jenkins-bot fbc82558e8 Merge "Remove duplicate/unnecessary trim" 2024-10-10 16:45:07 +00:00
jenkins-bot 4d2836760f Merge "Move all Parser handling to Hooks::parserHook" 2024-10-10 16:45:06 +00:00
jenkins-bot ee0a3f1aab Merge "Remove $allowMissing and make the check directly on the hook" 2024-10-10 16:01:18 +00:00
jenkins-bot bb50f5e006 Merge "Remove redundant closure for all modules with packageFiles" 2024-10-10 15:53:44 +00:00
jenkins-bot a6eb9c0e57 Merge "Use ES6 features" 2024-10-10 15:53:42 +00:00
Fomafix 7f52cbc5b7 Stay on mode=categories after the first submit with all namespaces
After the first submit the URL contains &namespaces= with empty value.
This must be handled like a missing URL parameter.

Restore the default value '' removed in aec8d755.

Bug: T334289
Change-Id: I22d0eb334365472d411252f805d0d78a3cc265ab
2024-10-10 14:20:23 +00:00
Translation updater bot 267183e8d9
Localisation updates from https://translatewiki.net.
Change-Id: I9364d158c214b73370ef0b729ca4e8eb3fc0b736
2024-10-10 09:21:18 +02:00
Translation updater bot abb3b265d6
Localisation updates from https://translatewiki.net.
Change-Id: I5ca23a1eab9d219905157a23e2a1cf060b7345bb
2024-10-08 09:41:56 +02:00
jenkins-bot 77c080c761 Merge "Use margin-inline mixin to simplify direction specific styles" 2024-10-06 09:53:08 +00:00
Ebrahim Byagowi bd4efc18ee Define a variable to reuse a value
Change-Id: I2d9c62f5920bf82f564bd01a38a213e7a95b0205
2024-10-06 12:34:27 +03:30
Ebrahim Byagowi 6f8049b2ed Use margin-inline mixin to simplify direction specific styles
Bug: T371265
Change-Id: Iffc9c8ad36ae53b36c9135c206d1c1e02d67b6e2
2024-10-06 11:52:27 +03:30
jenkins-bot 3684f26994 Merge "Make CategoryTree arrow expansion work outside mw-content-{ltr,rtl}" 2024-10-06 06:18:58 +00:00
jenkins-bot c409cf2663 Merge "Make disabled arrow more distinguishable" 2024-10-06 05:42:45 +00:00
Ebrahim Byagowi b66d6a38c4 Make disabled arrow more distinguishable
Change-Id: I2b70195ce5135dc181ef8b80af1aead0304a9cfc
2024-10-06 00:03:30 +03:30
jenkins-bot 7aaf9f42be Merge "Replace use of getDirMark with HTML markup" 2024-10-05 17:32:34 +00:00
Ebrahim Byagowi be7320b4fc Make CategoryTree arrow expansion work outside mw-content-{ltr,rtl}
The old code relies on CSS Janus to transform the default case outside
mw-content-{ltr,rtl} which can't be applied here so let's consider
this case also by relying only on dir attributes, the same direction
as T371265.

In future we can use &:dir( ltr ) and &:dir( rtl ) as we do in new
codes but as that isn't supported on all browsers we support.

Change-Id: Icf6b8e184ce981e6e8f16dafa9e14a19154ff0e3
2024-10-05 16:59:46 +03:30
Fomafix 9c5ccf4b74 Remove redundant closure for all modules with packageFiles
Modules loaded with packageFiles are always executed in module scope
(with a closure), even in debug mode.

The behaviour of non-packageFiles debug mode is the only reason files
have closures.

https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Closure

Change-Id: I7ea2057029a63148a96333af7ff09a7885d2daa8
2024-10-05 06:49:13 +00:00
Fomafix 0eb9b7d86c Use ES6 features
Bug: T334853
Change-Id: I48eef3424f4b4028f4ac668a12692af95d79c288
2024-10-05 06:49:00 +00:00
jenkins-bot 5ba10fcef7 Merge "Make category links arrow link to actual categories" 2024-10-04 23:12:32 +00:00
Ebrahim Byagowi fcc3334125 Make category links arrow link to actual categories
I believe having arrows linked to the actual pages can
be much more useful than linking to '#' of the same
page. Linking to the correct page makes user to notice
if the page is already visited also using color of
the arrow.

If we didn't like link visited logic to be not used we
could've used a different link rather than color of links
and going makes us able to :visited logic of
If8b2b45b24351ee5c8fc9ee1380563f5d5b88678 also.

Personally however I'm in believe that having a useful
link that can be opened on a different tab using
Ctrl (or long click on phones) is always more useful.

Change-Id: Ib56fad0b711853d67b2d55617b36deff56141c74
2024-10-05 00:48:31 +03:30
Ebrahim Byagowi 451aeceba1 Use Codex provided arrow icons for the tree
It also adds an animation for the arrow matching other
recently Codex provided arrow icons adopted animations.

Change-Id: If8b2b45b24351ee5c8fc9ee1380563f5d5b88678
2024-10-05 00:07:05 +03:30
Fomafix 092797b0e2 Remove duplicate/unnecessary trim
CategoryTree::makeTitle also makes a trim and an early return.

A trim on the return value of renderChildren() is not needed.

Change-Id: I1fc2705277491797eb6c0d0900152b63913ca875
2024-10-04 19:55:50 +00:00
Fomafix 921e6fe3f9 Move all Parser handling to Hooks::parserHook
Change-Id: I5d35c6d87b610ffb566588a3d0c75067c1d06962
2024-10-04 19:55:24 +00:00
Fomafix a918bdea16 Remove $allowMissing and make the check directly on the hook
This change avoids a super category expand button on not existing
categories.

This change even avoids loading the modules if there are no valid
categories.

Change-Id: I38a2b49aaef7cf46d9f89e1cc9fd65e2382155f5
2024-10-04 19:53:37 +00:00
Ebrahim Byagowi fe71840c56 Replace use of getDirMark with HTML markup
Bug: T375975
Depends-On: I2ee6d8fb9161a5434eacad819c6d7784aee8aac3
Change-Id: Ia1ab65222c486ea89e6b916fd1d5a6860439205e
2024-10-04 22:06:26 +03:30
Fomafix b1e3b5f06d Update namespaces of PHP classes
Change-Id: I8c4e81631b4c3f7321837e12713a8a33762a8fcc
2024-10-03 19:55:44 +00:00
Translation updater bot 27dfa4bd86
Localisation updates from https://translatewiki.net.
Change-Id: Ie6a8690faf6c60bff7859356c74f2b126d792c7d
2024-10-02 09:23:44 +02:00
Translation updater bot f68f1e3fb9
Localisation updates from https://translatewiki.net.
Change-Id: I8e06484614807accb3583a8353341e3723dc4b78
2024-09-27 09:18:09 +02:00
Translation updater bot b7939a760f
Localisation updates from https://translatewiki.net.
Change-Id: Iee8ad6e404e8fa1e0e02c240d3636d5bab7b9f6a
2024-09-23 09:20:55 +02:00
Fomafix 5d3c9b7788 Use namespace for ServiceWiringTest
Change-Id: I4cebe9b0f28160a13f0cd8360c90b3463eaf94fb
2024-09-20 09:32:34 +00:00
Translation updater bot f6b9e3a473
Localisation updates from https://translatewiki.net.
Change-Id: I8e1acb6ee85709a65386912e384fc25f1dbaa09d
2024-09-16 09:25:21 +02:00
Translation updater bot dc39ac4b3a
Localisation updates from https://translatewiki.net.
Change-Id: Iece388102e7caad95c8bb901290de61f7e1d6458
2024-09-11 09:20:20 +02:00
jenkins-bot b0d8410812 Merge "Use IConnectionProvider instead of ILoadBalancer" 2024-09-10 16:41:38 +00:00
Translation updater bot 49bf9fbaed
Localisation updates from https://translatewiki.net.
Change-Id: I4a1c249022f1e9ac3aee02e437e9d2634a30f478
2024-09-09 09:22:05 +02:00
jenkins-bot 63fb60b3e4 Merge "Use new hook OutputPageRenderCategoryLink" 2024-09-05 20:51:09 +00:00
Translation updater bot 1ad442f05a
Localisation updates from https://translatewiki.net.
Change-Id: Ida20a831263b07ad9ad85eb4e24d763f8e80c6b6
2024-09-05 09:22:38 +02:00
Fomafix 58afeaf93c Use IConnectionProvider instead of ILoadBalancer
Change-Id: Id1071e0a61030c2ddd01fecebf6bf8a99c5948e0
2024-09-04 13:28:31 +00:00