mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-18 10:51:10 +00:00
823c3f0bb9
In preparation for moving the languages out of the sidebar (T256023) and to facilitate experimentation in the Universal Language Selector extension, we should separate the data from the languages portal from other portals. Note the languages portal has traditionally appeared at the bottom of the sidebar, so this can be done safely in the same way we introduced data-portals-first Change-Id: I4be06278ec256cc55aee36c2946339fb49d21b46
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
import mustache from 'mustache';
|
|
import '../.storybook/common.less';
|
|
import '../resources/skins.vector.styles/Sidebar.less';
|
|
import '../resources/skins.vector.styles/SidebarLogo.less';
|
|
import '../resources/skins.vector.styles/MenuPortal.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
|
|
);
|