mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 02:37:05 +00:00
6300923601
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
34 lines
792 B
JavaScript
34 lines
792 B
JavaScript
import mustache from 'mustache';
|
|
import '../resources/common/common.less';
|
|
import '../resources/skins.vector.styles.legacy/skin-legacy.less';
|
|
import legacySkinTemplate from '!!raw-loader!../includes/templates/skin-legacy.mustache';
|
|
import {
|
|
LEGACY_TEMPLATE_DATA,
|
|
NAVIGATION_TEMPLATE_DATA,
|
|
TEMPLATE_PARTIALS
|
|
} from './skin.stories.data';
|
|
|
|
export default {
|
|
title: 'Skin (legacy)'
|
|
};
|
|
|
|
export const vectorLegacyLoggedOut = () => mustache.render(
|
|
legacySkinTemplate,
|
|
Object.assign(
|
|
{},
|
|
LEGACY_TEMPLATE_DATA,
|
|
NAVIGATION_TEMPLATE_DATA.loggedOutWithVariants
|
|
),
|
|
TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const vectorLegacyLoggedIn = () => mustache.render(
|
|
legacySkinTemplate,
|
|
Object.assign(
|
|
{},
|
|
LEGACY_TEMPLATE_DATA,
|
|
NAVIGATION_TEMPLATE_DATA.loggedInWithMoreActions
|
|
),
|
|
TEMPLATE_PARTIALS
|
|
);
|