mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 01:20:07 +00:00
63ee9450b7
VectorTemplate has various functions that repeat themselves, only differing in their choice of names. This refactor begins by focusing on the personal menu and introducing a generic getMenuData function. Hardcoded `p-personal` is replaced with an `id` template key and `msg-label` is renamed `label`. Future patches will simplify VectorTemplate by using this new function. You'll note the resulting PersonalMenu.mustache file is identical to VectorTabs. These will be merged in I098e6921e8f7ef65dacacf09b9c25f70c945e58e Bug: T249372 Change-Id: I5ae44a1008b065381eeff93f9fa625be5c5a9de9 |
||
---|---|---|
.. | ||
.eslintrc.json | ||
Footer.stories.data.js | ||
Footer.stories.js | ||
PersonalMenu.stories.data.js | ||
PersonalMenu.stories.js | ||
Portal.stories.data.js | ||
Portal.stories.js | ||
rawLoader.d.ts | ||
SearchBox.stories.data.js | ||
SearchBox.stories.js | ||
Sidebar.stories.data.js | ||
Sidebar.stories.js | ||
skin.stories.js | ||
types.js | ||
utils.js | ||
VectorMenu.stories.data.js | ||
VectorMenu.stories.js | ||
VectorTabs.stories.data.js | ||
VectorTabs.stories.js |