mediawiki-skins-Vector/stories/Menu.stories.data.js
Jon Robson 6efcf775c0 Technical: Use unambigious menu template
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
2022-06-27 12:29:03 -07:00

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 };