Commit graph

4824 commits

Author SHA1 Message Date
Jon Robson 8c49b1eb49 Client preferences supports toggle switches
Bug: T350418
Change-Id: I359924874e7232eaee73b7dc3678b9e8e26794ac
2024-01-19 12:56:27 -08:00
Jon Robson 7d5caf3f66 Generalize skins.vector.clientPreferences library for use in MobileFrontend
Bug: T354224
Change-Id: I6949c4f49ec34b8e47036da4222a5f3ff491af32
2024-01-17 14:51:29 -08:00
Translation updater bot b43a9aaaa2 Localisation updates from https://translatewiki.net.
Change-Id: I9d0874d37c38dd70a31575ea471a5403d6b70787
2024-01-12 09:03:21 +01:00
jenkins-bot 6a40112ceb Merge "VectorComponentUserLinks: Replace array_reduce with array_filter" 2024-01-12 02:02:26 +00:00
jenkins-bot 23d1927e92 Merge "build: Upgrade eslint-config-wikimedia from 0.25.1 to 0.26.0" 2024-01-12 01:47:30 +00:00
jenkins-bot ced3d7ec00 Merge "Hooks: Minor cleanup" 2024-01-12 01:46:30 +00:00
jenkins-bot 991c63f3db Merge "Remove empty MakeGlobalVariablesScript hook" 2024-01-12 01:17:47 +00:00
jenkins-bot 5c4e379fb5 Merge "SkinVector22: Minor cleanup" 2024-01-12 01:02:25 +00:00
jenkins-bot ea84f40af4 Merge "build: Update 'svgo' to latest v3.2.0" 2024-01-12 01:00:07 +00:00
Umherirrender 4d8c06cadb VectorComponentUserLinks: Replace array_reduce with array_filter
Looks easier to understand:
array_reduce adds the count() of all inner arrays and returns an
integer, 0 when all is empty and the count when items in there.
array_filter removes the empty inner arrays and when the returned outer
array still has an inner array, it is non-empty.

Change-Id: Ib0acb9be8d4d64cfb7d7d124c5a3de500f6b0232
2024-01-12 01:25:54 +01:00
Umherirrender b2f091ea95 Remove empty MakeGlobalVariablesScript hook
Last usage was removed in d983dada

Follow-Up: I2c28a4e253b4dc17578793e1e4ce73e80392d08c
Change-Id: I76947280762b33943bb5df53444067d61116b0e1
2024-01-12 01:13:50 +01:00
jenkins-bot 32d9da47fb Merge "FeatureManager: Avoid $this assignment" 2024-01-11 23:13:35 +00:00
Umherirrender 994e005e3b Hooks: Minor cleanup
- Remove unused local variable
- Use pass-by-ref on foreach value
- Use else instead of a second if
- Use camelCase variable name
- Avoid Skin::getRelevantTitle when not used
- Use RequestContext::getSkinName without getting a skin object

Change-Id: Ib84464d739516b8a17ef48c94cd60676e361bcaa
2024-01-12 00:08:42 +01:00
Volker E 26f47fe0c3 build: Update 'svgo' to latest v3.2.0
The latest update of 'svgo' dependency includes three optimizations on
converting path commands, which
- improves closing paths and how we determine if to use absolute or
  relative commands.
- round arc or convert to lines based on the geometric sagitta
- convert cubic Bézier curves to quadratic Bézier curves where possible
Also unifiying npm command to qua standard notation `minify:svg`.

Bug: T354875
Change-Id: I4fffd9efd430786911fe36e409d2575bfab719bd
2024-01-11 23:28:28 +01:00
Umherirrender 829fb38450 VectorComponentPageTools: Remove unused User
Usage was removed in 448a9066

Follow-Up: Idca2ccfe4aeef0a2ac0970f7baf54849a64a4070
Change-Id: I001805e955711c8343097f72370719310f63ed94
2024-01-11 23:00:37 +01:00
Umherirrender 62cf2e94c0 SkinVector22: Minor cleanup
- Remove unused override of getDefaultModules
- Call getActionName() directly
- Remove some use of empty()
- Fix line indent
- Call some functions only once
- Write query parameter as array
- Have all parent:: at function top

Change-Id: I4c807b0a170eef0742586beb87b80eaade4bb4c5
2024-01-11 22:57:41 +01:00
Umherirrender 4fcd95bcb4 FeatureManager: Avoid $this assignment
Just make the callback non-static

Change-Id: I409857dffdbcdd80dfbbe2fb8c64858e9a8f80ef
2024-01-11 22:36:03 +01:00
James D. Forrester 1c93d0514b build: Upgrade eslint-config-wikimedia from 0.25.1 to 0.26.0
Bug: T345100
Change-Id: I51fdef33d517ce4f2f50930bc46dddb2f497677c
2024-01-11 14:19:57 -05:00
James D. Forrester 8a0961c815 .nvmrc: Update now we're using Node 18
Change-Id: I0daaa2bbe2dd7f29601be9fb99ec4e379bb0534a
2024-01-11 10:51:48 -05:00
jenkins-bot cb96b7b379 Merge "Remove cache related FIXMES for CSS" 2024-01-11 12:52:34 +00:00
Translation updater bot 52eba4f4c4 Localisation updates from https://translatewiki.net.
Change-Id: If830007e1f012c46db6449d189f2fc309ff76798
2024-01-11 10:12:02 +01:00
Translation updater bot 792f3f3733 Localisation updates from https://translatewiki.net.
Change-Id: Icf8f38208eea496b117083f461a1a1ac23e6e24e
2024-01-10 08:34:43 +01:00
Moh'd Khier Abualruz 0d7f38ccc2 [Zebra] Remove !important
- Complying to fix me comment

Bug: T347712
Change-Id: Iacd0065b5a736249046ba89bb618bb13f7c0250a
2024-01-09 19:21:20 +01:00
Jon Robson 0ec9d2ecd6 Remove cache related FIXMES for CSS
Change-Id: I0b8bff3e880bef3e97341c24e40405401381006a
2024-01-09 09:48:06 -08:00
Moh'd Khier Abualruz f83cca3cc5 [Zebra] Merge skins.vector.zebra.styles module into skins.vector.styles
Merges all of the styles in the Zebra module into the default styles.

- skins.vector.zebra.styles ResourceLoader module is removed.
- FIXME's related to Zebra styles are removed.
- Top-level "&" that were used for scoping to feature-flag are removed.
- `$wgVectorZebraDesign` feature flag is removed.

Bug: T347712
Change-Id: I0177541ae87a5d070d5317629ca38de93613d620
2024-01-09 15:46:11 +01:00
Translation updater bot 2e1d67a81c Localisation updates from https://translatewiki.net.
Change-Id: Iabccc0ea1e3fb22139967678a796a34d2dbc02cf
2024-01-09 09:02:59 +01:00
jenkins-bot 8232b6dcc1 Merge "Support conditional user defaults" 2024-01-09 04:43:06 +00:00
Steph Toyofuku 02681c150f Rename "Theme" to "Appearance" in reading accesibility preferences
Appearance better communicates this section than theme, so let's change
the heading to reflect.  Note this only updates the english heading and
the qqq remains unchanged at this time

Visual diff in english as it updates text on all pages

Bug: T354371
Change-Id: I6824d1d970a3fd4e6d7292d8a493abbcb736bd5d
2024-01-08 14:12:12 -08:00
Translation updater bot e781eed47c Localisation updates from https://translatewiki.net.
Change-Id: I78eed7d0bed354de3ec79186feb8f454344c8a81
2024-01-08 11:34:10 +01:00
Translation updater bot b620b7083a Localisation updates from https://translatewiki.net.
Change-Id: Ic1a0e553f5b2c52971767a69cba267ca1295e3aa
2024-01-05 09:16:31 +01:00
Martin Urbanec aa13694fea Support conditional user defaults
Thanks to T321527, MediaWiki makes it possible for default
values of user properties to vary by user.

Depends-On: I1549c3137e66801c85e03e46427e27da333d68e2
Bug: T354329
Change-Id: Ib7c80f0b065617f9e76315eb4a652486681247cc
2024-01-04 13:12:03 +01:00
Translation updater bot 7cd24be30e Localisation updates from https://translatewiki.net.
Change-Id: I5a677358d867c2c031e4ceaa355c9fee61784ef7
2024-01-04 09:57:59 +01:00
Volker E 60607a3daf build: Update 'oojs-ui' to 0.48.3
This also includes the replacement of WikimediaUI Base with Codex tokens
in OOUI – all backwards-compatible.

Bug: T334934
Change-Id: I2e05852424ab5db90b94c65a6c409cb40b66d04c
2024-01-03 21:46:40 +00:00
Umherirrender f8ffcd20d2 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statements done manually

Change-Id: I9b8f447ea4d715bc815cc782184bca288ee001a0
2024-01-02 20:54:08 +01:00
jenkins-bot 8b0ae93581 Merge "Deploy VectorClientPreferences to beta" 2024-01-02 16:50:26 +00:00
Fomafix 981555e528 Use MediaWiki\ResourceLoader\Context instead of ResourceLoaderContext
ResourceLoaderContext is deprecated since 1.39.

Change-Id: I466cd4d0c9dcd17fe7de95959a64db5459e288e1
2024-01-02 10:44:10 +00:00
Translation updater bot 04019da168 Localisation updates from https://translatewiki.net.
Change-Id: I2517ca295eee209c0ef2e203351db0b746f038c6
2024-01-02 10:20:03 +01:00
Translation updater bot 300f67078f Localisation updates from https://translatewiki.net.
Change-Id: Ib24c8e3223625bed14139614ddf23b941684a646
2023-12-28 14:52:15 +01:00
Translation updater bot 224c34326d Localisation updates from https://translatewiki.net.
Change-Id: I3145f384bdfa98e639264144c695864836e51a5a
2023-12-26 14:45:38 +01:00
Translation updater bot 34f6d93d37 Localisation updates from https://translatewiki.net.
Change-Id: Icf89f60a84cb2c7d42803b1d1f9bc2d5cf9a29f0
2023-12-22 17:49:26 +01:00
Translation updater bot 997e291c54 Localisation updates from https://translatewiki.net.
Change-Id: I1915d6b93e8c79827a4187e4a93f979436770a9c
2023-12-21 19:47:50 +01:00
Translation updater bot 994e21da72 Localisation updates from https://translatewiki.net.
Change-Id: Id0bea5a7abc15e2a2b776d71aa1ae0580a388892
2023-12-20 14:07:10 +01:00
Jan Drewniak a749da6e6d Change client preferences beta config
Change the default value for client preferences
config to beta=true.

Bug: T351339
Change-Id: Ia2adf58cc2461685162f57410cca499390c6c0e5
2023-12-19 18:08:47 -05:00
Translation updater bot 5b96cbaef1 Localisation updates from https://translatewiki.net.
Change-Id: Ib11c7507b2dcb98bb392d3c1ec58a6ce2b700a4c
2023-12-18 18:22:10 +01:00
Translation updater bot 021590709f Localisation updates from https://translatewiki.net.
Change-Id: If9b1e6943da722c11f56b31166d13181118f03d9
2023-12-15 09:06:10 +01:00
Translation updater bot c7b000ada4 Localisation updates from https://translatewiki.net.
Change-Id: I1c19b847bf2f2fc85238dc132db34f39ec2b0d17
2023-12-14 08:30:06 +01:00
Translation updater bot c644438d53 Localisation updates from https://translatewiki.net.
Change-Id: I4dd8b5a1823b1f6589b82dcc945876639fd6ec84
2023-12-13 08:43:51 +01:00
Translation updater bot 73fc1b1b24 Localisation updates from https://translatewiki.net.
Change-Id: I066b72d9495e9837a6f0e3e7253d74dbc204e227
2023-12-11 10:46:17 +01:00
jenkins-bot ab3ced39ad Merge "Fix scrolling behavior in dropdowns" 2023-12-08 16:12:58 +00:00
Translation updater bot fbcda02ed1 Localisation updates from https://translatewiki.net.
Change-Id: I741aef564e473bd569343ca872afbc40f70d607a
2023-12-08 14:49:15 +01:00