mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-25 11:17:35 +00:00
cdd5ebd74d
CHANGES to index.mustache: Changes can be understood by looking at the diff of the file stories/skin.stories.js The additional changes in stories folder export the data passed to those templates. A new file is used as exporting any variable in a file suffixed stories.js will be assumed to be a story entry. The changes to index.mustache are as follows: * html-footer is replaced with data-footer and Footer component is rendered via template partial * html-navigation is replaced with data-navigation and Navigation component is rendered via template partial CHANGES to Navigation.mustache: Changes are best explained by looking at the diff to stories/navigation.stories.js and navigation.stories.data.js * html-personal-menu is replaced with data-personal-menu Bug: T245456 Change-Id: Ie96e92447a932b8a7f3844df277a1d31a2af423c
18 lines
655 B
JavaScript
18 lines
655 B
JavaScript
import mustache from 'mustache';
|
|
import { personalMenuTemplate, PERSONAL_MENU_TEMPLATE_DATA } from './personalNavigation.stories.data';
|
|
import '../resources/skins.vector.styles/personalNavigation.less';
|
|
import '../.storybook/common.less';
|
|
|
|
export default {
|
|
title: 'Personal Navigation'
|
|
};
|
|
|
|
export const loggedOut = () => mustache.render( personalMenuTemplate,
|
|
PERSONAL_MENU_TEMPLATE_DATA.loggedOut );
|
|
|
|
export const loggedInWithEcho = () => mustache.render( personalMenuTemplate,
|
|
PERSONAL_MENU_TEMPLATE_DATA.loggedInWithEcho );
|
|
|
|
export const loggedInWithULS = () => mustache.render( personalMenuTemplate,
|
|
PERSONAL_MENU_TEMPLATE_DATA.loggedInWithULS );
|