mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-11 07:26:10 +00:00
769818514d
The Portal component is only ever used inside the MainMenu component Change-Id: I3a3c58b11416f28c58f02a8bdfdacfbb7df6de9b
31 lines
1,012 B
JavaScript
31 lines
1,012 B
JavaScript
import mustache from 'mustache';
|
|
import '../resources/skins.vector.styles/MainMenu.less';
|
|
import '../resources/skins.vector.styles/SidebarLogo.less';
|
|
|
|
import { sidebarTemplate,
|
|
sidebarLegacyTemplate, SIDEBAR_DATA, SIDEBAR_TEMPLATE_PARTIALS } from './Sidebar.stories.data';
|
|
|
|
export default {
|
|
title: 'Sidebar'
|
|
};
|
|
|
|
export const sidebarLegacyWithNoPortals = () => mustache.render(
|
|
sidebarLegacyTemplate, SIDEBAR_DATA.withNoPortals, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const sidebarLegacyWithPortals = () => mustache.render(
|
|
sidebarLegacyTemplate, SIDEBAR_DATA.withPortals, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const sidebarModernWithoutLogo = () => mustache.render(
|
|
sidebarTemplate, SIDEBAR_DATA.withoutLogo, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const sidebarModernWithPortals = () => mustache.render(
|
|
sidebarTemplate, SIDEBAR_DATA.withPortals, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const sidebarModernThirdParty = () => mustache.render(
|
|
sidebarTemplate, SIDEBAR_DATA.thirdParty, SIDEBAR_TEMPLATE_PARTIALS
|
|
);
|