Commit graph

4831 commits

Author SHA1 Message Date
Jon Robson 6b81214687 Fix issues with addPortlet handler
Follow up to I35a51df6ece2e48e086e722337d4c6bba427eeb4

1) the insertBefore function raises a JS error
2) We must take into account portlets added before the
Vector hook is registered.
3) Register the portlet in main. Loading the module should
not have side effects.

Bug: T303488
Change-Id: Iee6b308d6da63bc53bcba0fa5bb383d88787892a
2023-07-26 13:51:06 -07:00
jenkins-bot 48af341410 Merge "Add hook support for mw.util.addPortlet method" 2023-07-26 11:42:17 +00:00
Moh'd Khier Abualruz 4b4fc6c6c9 Add hook support for mw.util.addPortlet method
- Hooking into mw.util.addPortlet
- merged in tests from: I3258388d74c103515e3f0680304f9a376e439a35

possible follow-ups:
- tooltips support
- custom attributes support
- Adapting portlets of types dropdown, tab to vector skin. Check patch set 10 for a starting point

Depends-on: I79bad8661e34e653d41e6cb1cd4462ac5c6bc3b1
Bug: T303488
Change-Id: I35a51df6ece2e48e086e722337d4c6bba427eeb4
2023-07-26 13:37:09 +03:00
Translation updater bot 835106d884 Localisation updates from https://translatewiki.net.
Change-Id: Iebe6b2e949378634aa053ee5138f96db366c3579
2023-07-26 10:29:23 +02:00
bwang 20c216c829 Fix text showing on icon only buttons
Change-Id: Ie1ab40cd479b5a8e83ce13537a7e8d6387f7a441
2023-07-25 11:15:46 -05:00
Translation updater bot 1a60251500 Localisation updates from https://translatewiki.net.
Change-Id: Iea64d5ba3481372d00ab63ca014af852a04f7bb2
2023-07-25 10:45:04 +02:00
jenkins-bot 80b58924dd Merge "Limit button only icon resizing to Vector header button icons" 2023-07-24 21:28:05 +00:00
Jon Robson 46dece0b56 Limit button only icon resizing to Vector header button icons
Bug: T342190
Change-Id: I5ccc1e83b28a6ffa63d351900eba02343fc48659
2023-07-24 16:00:46 -05:00
Jon Robson d3748704ca Show limited width icon alongside help button
Depends-On: Ia4495f75b51626ab6dd2805574dfdc6199535015
Bug: T341740
Change-Id: I3b8881ad37fa0fb06b60e50f2a7608f7d7b3e0ab
2023-07-24 20:14:59 +00:00
Winston Sung f2f44f8e33 Fix attribution for "Localisation updates from https://translatewiki.net."
Change-Id: I5c667123f6b106736586bbaed559a65558cce67b
2023-07-24 17:06:49 +00:00
Translation updater bot e664f0cc66 Localisation updates from https://translatewiki.net.
Change-Id: I0ab30a670f3a417ee86827c679ae095c0d2a24ae
2023-07-24 09:43:39 +02:00
Jon Robson 0630a96d3a Do not hardcode uls key
The menu may have other items. This is needed by
WikiLambda extension.

Bug: T341500
Change-Id: I6884b04f3137dc1111bdc7642068aa436907caf6
2023-07-21 17:27:51 +00:00
jenkins-bot 11c8d6a132 Merge "Remove anonymous user icon" 2023-07-21 15:58:36 +00:00
Translation updater bot 1dcb773e96 Localisation updates from https://translatewiki.net.
Change-Id: I9b30e9e36439d17bd1ada44cfe173c950e28aa2a
2023-07-21 08:46:45 +02:00
Jon Robson 4ce3c38c5a Remove anonymous user icon
Bug: T340789
Depends-On: Iba0d5532bdb7134330a452e16c05d848c1c3b2a3
Change-Id: I55676b472f48777f657573b68fc56ae84c6e1f82
2023-07-20 16:08:09 -07:00
Jon Robson bcc7a977c1 Add temporary user icon
Bug: T340789
Change-Id: Ice9bf9c51e7b6ad875417090d05d4630e11f26c2
2023-07-20 18:32:58 +00:00
Translation updater bot 2872d0e1ae Localisation updates from https://translatewiki.net.
Change-Id: I56baf9c28f007a6630eaf6b549ccbf2dc32919c8
2023-07-20 09:35:54 +02:00
Translation updater bot 5b9ded95a5 Localisation updates from https://translatewiki.net.
Change-Id: I5674784d68147300d3debed961a12e66ae5ec581
2023-07-19 09:04:10 +02:00
Translation updater bot 8996335cb2 Localisation updates from https://translatewiki.net.
Change-Id: I76077eb57a85de0d9e49e72252457a8ac90b4429
2023-07-18 09:51:35 +02:00
Winston Sung c0deb443b1 Follow-up of "Localisation updates from https://translatewiki.net."
Change-Id: I17ddf203a06e9faf9361468e4245da892fc7e1c5
2023-07-17 08:54:06 +00:00
Translation updater bot b25ee48c8d Localisation updates from https://translatewiki.net.
Change-Id: I9d52bb3d1c287b015e4bb796e559ca8128855514
2023-07-17 10:21:48 +02:00
jenkins-bot 67dd12439b Merge "Reset line height on tab elements" 2023-07-14 23:53:22 +00:00
Translation updater bot b84caa893a Localisation updates from https://translatewiki.net.
Change-Id: I6baa2b91b6fb3db9e23f6451ff0cb443f3f0f05b
2023-07-14 09:41:38 +02:00
Translation updater bot 0176470644 Localisation updates from https://translatewiki.net.
Change-Id: I16abc6f3c834647e3f76d986d9ea04425d989203
2023-07-13 10:52:30 +02:00
jenkins-bot 565ff35779 Merge "Update html-label to use label-class" 2023-07-13 00:17:13 +00:00
Jon Robson cb4265f003 Reset line height on tab elements
Bug: T315219
Change-Id: Ia7cd11d76cc84744806a311ec4e6a25b226d1f95
2023-07-12 14:33:34 -07:00
jenkins-bot 5d666f43ab Merge "Make bottom dock expansible via portlet links" 2023-07-12 19:08:35 +00:00
Jon Robson fe03bb50ef Make bottom dock expansible via portlet links
New menu items can be added via
```
var node = mw.util.addPortletLink('p-dock-bottom', '#', 'hello' )
if (node) {
node.querySelector('a').classList.add( 'mw-ui-icon', 'mw-ui-icon-element', 'mw-ui-button' )
}
```

Bug: T336431
Change-Id: I8c5c5414cda9d268631ba0fade90e1a44c104ff1
2023-07-12 12:37:38 -05:00
Translation updater bot 0bfd103db8 Localisation updates from https://translatewiki.net.
Change-Id: Id85ea6852d02290cf52ee780bfe42605fe05fec3
2023-07-12 08:58:17 +02:00
Noa wmde 2c96f9b3d7 Allow overriding the search pattern highlighting for Wikibase
Use a php hook to override the highlightQuery attribute.
This allows us to turn off search higlighting for all
wikibase repo instances.

Bug: T327510
Change-Id: I0ef27da9cf4ac66151d1a391e9f606100097d7f0
2023-07-11 23:56:29 +00:00
bwang e0eeb1a8c9 Update html-label to use label-class
Follow-up: I64e4780102a743c5ace332a562b4f9d73ea10d16
Change-Id: I255e12f22436b567ec01fafe667138ffd981afed
2023-07-11 16:49:40 +00:00
Translation updater bot 274c97acb5 Localisation updates from https://translatewiki.net.
Change-Id: I8db2805ef132d3ac1e45367c1e3bdc3cab1e7137
2023-07-11 08:52:24 +02:00
bwang ecd221fe37 Add option for html label in Menu template
Bug: T340217
Change-Id: I64e4780102a743c5ace332a562b4f9d73ea10d16
2023-07-10 16:42:58 -07:00
bwang 3a3c6120e2 Fix echo icon sizing after ULS enhances them
Bug: T341490
Change-Id: Ic9142c318d8046fc19ae2faa8005a625859446d5
2023-07-10 15:43:57 -05:00
jenkins-bot a49e8d1cf8 Merge ".nvmrc: Update to v16.19.1" 2023-07-10 17:59:16 +00:00
Translation updater bot 92ac25302b Localisation updates from https://translatewiki.net.
Change-Id: Ie5ad54e57e35a3a4d378746182e37ccb70f32a09
2023-07-10 09:42:05 +02:00
jenkins-bot d8707520a1 Merge "Performance: Language dropdown menu should be hidden when ULS is enabled" 2023-07-07 17:49:45 +00:00
Jon Robson 48b1263533 Performance: Language dropdown menu should be hidden when ULS is enabled
The language dropdown currently impacts rendering due to making use of
visibility: hidden as space must be allocated for it on the page.

However when ULS is installed it is never used. As some JS to take
that into account so it doesn't impact the rendering of the page.

Since ULS may not be installed we have to consider that case and
retain the existing behaviour for those wiki (this should only
impact 3rd parties)

Bug: T340715
Change-Id: Ic83eaa34ffa74a42c7cf6df7c0857dd7a9401aba
2023-07-07 17:17:42 +00:00
Translation updater bot 217f930cf1 Localisation updates from https://translatewiki.net.
Change-Id: I2db69d695fdbb92a5855e33c8174ec2c34c9f047
2023-07-07 09:19:41 +02:00
jenkins-bot 2e71c618f7 Merge "Avoid setting large z-index on headers" 2023-07-06 23:50:24 +00:00
jenkins-bot 7b7f5267c2 Merge "Remove unecessary whitespace and new lines from HTML" 2023-07-06 20:49:55 +00:00
bwang 2eb8fe89ea Remove unecessary whitespace and new lines from HTML
Change-Id: I8fe04d458da292e2990543afa232a91b6dd4db59
2023-07-06 14:07:29 -05:00
bwang a8013e9db4 Avoid setting large z-index on headers
Bug: T340747
Change-Id: If78b2b6f0d98dc6b83263f5d94a7527afebde91c
2023-07-06 17:19:52 +00:00
Translation updater bot aa681007f2 Localisation updates from https://translatewiki.net.
Change-Id: Id6df508106ed5c711984823b539db55c7602d237
2023-07-06 10:19:50 +02:00
jenkins-bot fed8c81a97 Merge "Vector 22 has some missing whitespace internal to HTML elements" 2023-07-05 17:36:14 +00:00
Translation updater bot 32cefa9550 Localisation updates from https://translatewiki.net.
Change-Id: I605b2075b01b5c4eba168cb1d0ca339d0e01d6d1
2023-07-05 08:33:59 +02:00
Moh'd Khier Abualruz 288b802d45 Vector 22 has some missing whitespace internal to HTML elements
Bug: T338691
Change-Id: Ic4657505ff92027d3c83373c7000e452f00ac07e
2023-07-04 19:05:36 +02:00
Translation updater bot be3c1abdd4 Localisation updates from https://translatewiki.net.
Change-Id: Ib8e887519fd1195abac9c8b4e8967ec274833a4f
2023-07-04 09:25:01 +02:00
Translation updater bot 952afb2705 Localisation updates from https://translatewiki.net.
Change-Id: I7cb4bd7796fc885b16f8edb1bf6e59d393ba16cd
2023-07-03 10:20:07 +02:00
James D. Forrester 771433f013 .nvmrc: Update to v16.19.1
Change-Id: Icdf97dd9ee86f43d2f3b9ed87570ad8aa38c8089
2023-06-30 15:21:54 -04:00