mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 17:40:12 +00:00
4200a8665c
Using 'skin' as entrance point files, similar to already existing convention in MediaWiki land with 'skin.json' or 'SkinVector.php' as example in Vector skin. Replacing Apache inspired 'index' convention. Also renaming legacy to 'skin-legacy' to be clear on file base that it's a modification of 'skin'. Bug: T249073 Change-Id: Ief1c469724d4ffe238d307407c3ddb46f2e1abfa
33 lines
743 B
JavaScript
33 lines
743 B
JavaScript
import mustache from 'mustache';
|
|
import '../resources/skins.vector.styles/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
|
|
);
|