Commit graph

2226 commits

Author SHA1 Message Date
bwang 34344adbf5 Remove UserMenu and use Menu template instead
- Adds html-before-portlet to Menu.mustache
- Removes UserMenu.mustache and type def
- Factors out getCreateAccountHTML and getLoginHTML for generating HTML used in Menu
- Scopes UserLink template data under "data-vector-user-links"

Follow up to: 298f945983
Bug: T284584
Change-Id: I91104eb7c4fd12756e770561666f4c9a64da57d6
2021-06-11 09:41:58 -05:00
Translation updater bot 210a305d35 Localisation updates from https://translatewiki.net.
Change-Id: Id18358ca02c7eb36760ca7d36ad08879c47c4ed9
2021-06-11 08:35:52 +02:00
Clare Ming 9ec5d6ded0 Hide language links on print version
Add selector to hide language links for print version of pages.

Bug: T282304
Change-Id: I6b17676e7491863e684c1704d0a849f0ba3827f5
2021-06-10 16:35:28 -06:00
Translation updater bot ad95c880a1 Localisation updates from https://translatewiki.net.
Change-Id: I4fd31f6faa700d98143f135bdb898a534a5403e6
2021-06-10 08:36:06 +02:00
jenkins-bot 320b7708f4 Merge "Prefix user links menu items with icons" 2021-06-08 14:35:57 +00:00
Translation updater bot 0b65f84d40 Localisation updates from https://translatewiki.net.
Change-Id: I246252f7ebba77b14a30e32d1595fa6fa50e1ae1
2021-06-08 08:37:33 +02:00
Clare Ming b80d97b1e8 Prefix user links menu items with icons
- Add logic in Vector hooks to prefix user menu links with icons.
- Add method for getting icon name based on user menu key.
- Add constant to map user menu keys to associated icon references.
- Include icon treatment for both logged in/out users.

Bug: T276562
Change-Id: Ia69366eb4fbd50b48fe5513ef99048bdc5df64fb
2021-06-07 18:10:54 -06:00
Translation updater bot dbfcfdfac0 Localisation updates from https://translatewiki.net.
Change-Id: Ib19e284bd24ceca84dae9a9b23261c63628ff4ec
2021-06-07 08:45:28 +02:00
jenkins-bot 6f2c6f7776 Merge "Storybook: Add stories for logged in and logged out UserLinks" 2021-06-05 02:28:05 +00:00
jenkins-bot fcb1bf7a19 Merge "Update styles for user-interface-preferences in user links menu." 2021-06-05 02:26:39 +00:00
Clare Ming 06d0afbcb3 Update styles for user-interface-preferences in user links menu.
- Add new menu to UserLinks template.
- Fix styles for user links toolbar.

Bug: T282196
Change-Id: I42d6e6e11d76b2d25b2720a617f2fb2e545eb4b6
2021-06-05 02:01:17 +00:00
James D. Forrester 5c50fa8fd2 .nvmrc: Update to Node 12.21.0 as CI has migrated
Bug: T284345
Change-Id: Idd32bce55a3f8b0e0f2191738e89311539eb3d98
2021-06-04 14:45:10 -07:00
Translation updater bot 571764fdc6 Localisation updates from https://translatewiki.net.
Change-Id: Ib1cd3cecf279c9a3b208cda88058f9d83b696b0b
2021-06-04 08:39:36 +02:00
bwang b4c0e8e67d Storybook: Add stories for logged in and logged out UserLinks
- Update menu helper params to support additional data
- Add UserLinks typing

Follow up to: 298f945983
Change-Id: I0f9d1ac3289101566f437213714b872f6fa9199b
2021-06-03 21:42:28 +00:00
jenkins-bot 8021270bce Merge "Update UserLinks styles to use classes instead of ids" 2021-06-02 22:38:04 +00:00
bwang b5aa055900 Update UserLinks styles to use classes instead of ids
Follow up to: 298f945983

Change-Id: I5bc28501d0ae4c2597796dbf1ed9c10eacadad62
2021-06-02 22:16:59 +00:00
Roan Kattouw 02638ff59d Use the new wvui-search module from MW core
Depends-On: Ifa3abeab2a929e15597fa51b95b4442fe818ef31
Change-Id: I24712ca8e4d9558a17c029a4c59484dc0f5b8fad
2021-06-02 13:40:20 -07:00
jenkins-bot a15fd2eb80 Merge "search: Add option to disable highlighting query" 2021-06-02 19:21:30 +00:00
jenkins-bot 0141be5080 Merge "Create new user menu template for consolidated user links in logged out users" 2021-06-02 19:09:54 +00:00
Sam Smith 2b05a6a203 search: Add option to disable highlighting query
... for the WVUI search autocomplete widget.

The VectorWvuiSearchOptions object is sent to the client whole and
already used as the base props for the app component constructed in the
skins.vector.search RL module. We also define the highlightQuery prop on
that component so that its value can be passed to the WVUI
typeahead-search component.

Bug: T281797
Depends-On: I142810c177b850ecd7015f835bb6630bae00a6ea
Depends-On: Ia5e14fb9d0073a5126a0918f7a94213c671e773a
Change-Id: I551414b111226e690f6a2bc69dabf5edc6fb0a96
2021-06-02 18:51:01 +00:00
bwang 298f945983 Create new user menu template for consolidated user links in logged out users
- Adds mustache template for the new user menu
- Uses new functions for getting user link data that have been factored out of SkinTemplate in the dependent patch
- Refactor new user menu styles to be namespaced inside UserMenu.less

Notes:
- Originally this patch included more storybook changes, but I removed them in favor of this follow up patch: 696651

Bug: T276564
Depends-On: Ia841f92c626ca32a9ad437b3d1cff78309c83ed8
Change-Id: Ib15752428265fdc06a3000f62bdca44c67648974
2021-06-02 09:23:22 -05:00
jenkins-bot 56916a17d1 Merge "Change search button msg key to searchbutton" 2021-06-02 10:06:24 +00:00
Volker E 42216de481 Change search button msg key to searchbutton
Bug: T280405
Change-Id: Iea3bf40be029eaa330101b7b9a1bdea191d71416
2021-06-01 15:48:09 -07:00
jenkins-bot ca148c71f8 Merge "Storybook should include UserLinks" 2021-06-01 16:19:02 +00:00
Translation updater bot b4f91d8e5c Localisation updates from https://translatewiki.net.
Change-Id: I463fd80c061198839d3e24dd2015847595dad5a3
2021-05-31 08:38:06 +02:00
Translation updater bot cf7657ccb7 Localisation updates from https://translatewiki.net.
Change-Id: I8b1b0c25851d75a2751c6468096e5f259183c837
2021-05-28 09:11:44 +02:00
libraryupgrader 2ccd49648b build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: Ic5b705747935ebc1ecd06eb553162ecc45abf1f1
2021-05-28 05:48:38 +00:00
jdlrobson 6300923601 Storybook should include UserLinks
Merge UserMenu into UserLinks for legacy and modern
Add a story for the UserLinks menu

Fixes: rendering of Skin (legacy) personal tools (the user icon
no longer overlaps)

Change-Id: I491ebb3962780bf2cf7f1dfb4dd09d576c294366
2021-05-27 19:27:27 +00:00
jdlrobson e1d0f1e61c Storybook: Consistent styling
- Make sure common styles are loaded for all components
- Add icon in user menu

Fixes renders of:
- Language button (no top margin and button styles)
- MenuPortal (no left margins)


Change-Id: I98b4820b6d91d46fd27a1d433d5bacd187a7cbb0
2021-05-27 19:27:21 +00:00
jenkins-bot e111ead970 Merge "Storybook: Move helperMakeMenuData into utils" 2021-05-27 18:28:22 +00:00
jdlrobson e305d720d4 Storybook: Move helperMakeMenuData into utils
In preparation for using for the UserLinks component.

Change-Id: Ifd3d1cc5513cd1477d1cb2e5d6e4db800fee12f7
2021-05-27 18:06:05 +00:00
Translation updater bot 838f72a484 Localisation updates from https://translatewiki.net.
Change-Id: If26220738c2d51dc55cc27fcd16715a2a0752716
2021-05-27 13:47:34 +02:00
Translation updater bot b445847998 Localisation updates from https://translatewiki.net.
Change-Id: I9272166db48f6549cbaf468974a2606e89d8c295
2021-05-27 13:12:17 +02:00
Translation updater bot 329a0dac56 Localisation updates from https://translatewiki.net.
Change-Id: Ia5be2abd9780a55f5a84f6aa75ac0dcb9a1d7367
2021-05-27 10:39:23 +02:00
Translation updater bot 64d03c85ac Localisation updates from https://translatewiki.net.
Change-Id: Ibb742b86acbfcdaba1ef88f3ebd6370b4a7efd4d
2021-05-26 09:08:20 +02:00
jenkins-bot 1c3a214b24 Merge "Refactor: Create UserLinks component" 2021-05-25 18:49:47 +00:00
jdlrobson 96bf1e8276 Refactor: Create UserLinks component
Have a single template for the UserLinks component, with a single
element wrapping all its subcomponents as discussed.

Change-Id: I35936a6fa1ba335639ca3f47fd439a3662268fca
2021-05-25 16:57:35 +00:00
jenkins-bot d7e22f7f20 Merge "Use escaped() instead of parse() in SkinVector::createULSLanguageButton" 2021-05-24 16:02:39 +00:00
jenkins-bot a9215e49a6 Merge "Introduce the vector-body class" 2021-05-24 14:51:07 +00:00
Jan Drewniak 7258a7cb86 Use escaped() instead of parse() in SkinVector::createULSLanguageButton
Bug: T282540
Change-Id: Ie8f0fe262f34e669d49f98efc27c179b257786dc
2021-05-24 14:07:25 +02:00
Translation updater bot 2f854e0b9e Localisation updates from https://translatewiki.net.
Change-Id: Ib1f8652d7a435177de767c2012d90d57391f1c29
2021-05-24 09:59:46 +02:00
jdlrobson 3306124038 Introduce the vector-body class
This follows up I4c1b15d90bacbc9b13782a1d8f52e838ce8ecd83
In that change, a new class for Vector specific styles should have
been added and the existing CSS referenced. I could have sworn I did
this, but obviously not (perhaps a git rebase or unstage change problem).
We did it for the other skins e.g. Monobook (I90d85c21f4a62e6697f24e3ce388445a0a53c2b0)
but evidently not Vector.

We also have to worry about cached HTML now, the #bodyContent is
the most reliable selector to use for before and after
I4c1b15d90bacbc9b13782a1d8f52e838ce8ecd83

Additional:
Remove the mixin-clearfix rule on bodyContent - this is now
redundant with the changes in T279388 and should have been
removed.

Bug: T283206
Change-Id: I15103cea72c793589a03ab1a3e7f3b377acb287f
2021-05-21 13:50:31 -07:00
James D. Forrester eb5d58a9f5 composer: Point IRC presence to Libera and better git source
Change-Id: I92aabc5091b04d9744de2d845934871801fab7cd
2021-05-21 10:11:50 -07:00
Translation updater bot ea85248088 Localisation updates from https://translatewiki.net.
Change-Id: I21be576c91ea7b576b00ee74bcdfcda0bb834342
2021-05-21 08:36:19 +02:00
Translation updater bot 96b383df0d Localisation updates from https://translatewiki.net.
Change-Id: Ie6316de4329bfad84dfc600ca4849d1123cde447
2021-05-20 09:13:44 +02:00
Translation updater bot cc982d3bae Localisation updates from https://translatewiki.net.
Change-Id: Iad6e288d13dd12ef301ce0ec6ca6c0320fa52e92
2021-05-19 08:47:00 +02:00
Translation updater bot ea6a4a0889 Localisation updates from https://translatewiki.net.
Change-Id: Ia6ade96fddf83f7ebb08e1f3900a06dc142be119
2021-05-18 08:49:38 +02:00
Thiemo Kreuz 9213c514e6 Remove not needed $this->equalTo() from tests
This is the default anyway. I believe the tests are much more
readable without this.

Change-Id: I9f6c0d777ae5cd184acf40b1ef5b7b171dc3e675
2021-05-17 10:05:10 +02:00
Translation updater bot 9b4c0e39ae Localisation updates from https://translatewiki.net.
Change-Id: I4331005d26acef68b01a97b966443b2abdac9930
2021-05-17 08:48:02 +02:00
libraryupgrader dd6cdd7149 build: Updating jsdoc to 3.6.7
* https://npmjs.com/advisories/1674 (CVE-2021-23358)

Change-Id: Iaa01d3c4f3becdbc8f45368e9877211b434b7fa6
2021-05-15 18:15:54 +00:00