mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
36e91dc04f
Applies new ESLint documentation rules Change-Id: I7fe458cf52e98baf92f3baec2d9ff54484326673
84 lines
1.3 KiB
JavaScript
84 lines
1.3 KiB
JavaScript
/**
|
|
* @external LogoOptions
|
|
* @external LogoTemplateData
|
|
*/
|
|
|
|
import logoTemplate from '!!raw-loader!../includes/templates/Logo.mustache';
|
|
|
|
/**
|
|
* @type {LogoOptions}
|
|
*/
|
|
const wordmark = {
|
|
src: '/assets/wordmark.svg',
|
|
width: 116,
|
|
height: 18
|
|
};
|
|
|
|
/**
|
|
* @type {LogoOptions}
|
|
*/
|
|
const tagline = {
|
|
src: '/assets/tagline.svg',
|
|
width: 117,
|
|
height: 13
|
|
};
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
const icon = '/assets/icon.png';
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const wordmarkTaglineIcon = {
|
|
'data-logos': {
|
|
wordmark, tagline, icon
|
|
},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const wordmarkIcon = {
|
|
'data-logos': {
|
|
wordmark, icon
|
|
},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const wordmarkOnly = {
|
|
'data-logos': {
|
|
wordmark
|
|
},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {LogoTemplateData}
|
|
*/
|
|
const noLogo = {
|
|
'data-logos': {},
|
|
'msg-sitetitle': 'Wikipedia',
|
|
'msg-sitesubtitle': 'the free encyclopedia'
|
|
};
|
|
|
|
/**
|
|
* @type {Object.<string, LogoTemplateData>}
|
|
*/
|
|
const LOGO_TEMPLATE_DATA = {
|
|
wordmarkTaglineIcon,
|
|
wordmarkIcon,
|
|
wordmarkOnly,
|
|
noLogo
|
|
};
|
|
|
|
export { LOGO_TEMPLATE_DATA, logoTemplate };
|