mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 11:15:33 +00:00
6efcf775c0
Follow up to 49c8b5f514
Our PHP parser resolves >Menu to the parent directory which
differs from the frontend Mustache library.
Best to have different names for these files to avoid this problem.
Bug: T311319
Change-Id: Iea708718a0b928c4902dc7bac0c5ee304b89f961
16 lines
460 B
JavaScript
16 lines
460 B
JavaScript
import menuTemplate from '!!raw-loader!../includes/templates/Menu.mustache';
|
|
import legacyMenuTemplate from '!!raw-loader!../includes/templates/LegacyMenu.mustache';
|
|
import { helperMakeMenuData } from './utils';
|
|
|
|
/**
|
|
* @type {MenuDefinition}
|
|
*/
|
|
const defaultMenu = helperMakeMenuData(
|
|
'generic',
|
|
`<li><a href='#'>Item 1</a></li>
|
|
<li><a href='#'>Item 2</a></li>
|
|
<li><a href='#'>Item 3</a></li>`
|
|
);
|
|
|
|
export { menuTemplate, legacyMenuTemplate, defaultMenu };
|