mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-18 19:00:50 +00:00
c8d2c6e460
Change-Id: Icd3fef87485aaa7abc2f10534ccdc8960ef06f1d
40 lines
964 B
JavaScript
40 lines
964 B
JavaScript
import mustache from 'mustache';
|
|
import '../resources/common/common.less';
|
|
import './skin.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'
|
|
};
|
|
|
|
const vectorLegacyLoggedOutBody = () => mustache.render(
|
|
legacySkinTemplate,
|
|
Object.assign(
|
|
{},
|
|
LEGACY_TEMPLATE_DATA,
|
|
NAVIGATION_TEMPLATE_DATA.loggedOutWithVariants
|
|
),
|
|
TEMPLATE_PARTIALS
|
|
);
|
|
|
|
const vectorLegacyLoggedInBody = () => mustache.render(
|
|
legacySkinTemplate,
|
|
Object.assign(
|
|
{},
|
|
LEGACY_TEMPLATE_DATA,
|
|
NAVIGATION_TEMPLATE_DATA.loggedInWithMoreActions
|
|
),
|
|
TEMPLATE_PARTIALS
|
|
);
|
|
|
|
export const vectorLegacyLoggedOut = () =>
|
|
`<div class="skin-vector-legacy">${vectorLegacyLoggedOutBody()}</div>`;
|
|
|
|
export const vectorLegacyLoggedIn = () =>
|
|
`<div class="skin-vector-legacy">${vectorLegacyLoggedInBody()}</div>`;
|