mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-13 17:57:06 +00:00
51457a78e7
Rename template and CSS files to match updated naming conventions, replaces instances of "sidebar" with "main menu" Bug: T316570 Bug: T317437 Change-Id: Ib4050768f20b1734d356104f18aa539f657099d8
29 lines
804 B
JavaScript
29 lines
804 B
JavaScript
import pageToolbarTemplate from '!!raw-loader!../includes/templates/PageToolbar.mustache';
|
|
import { namespaceTabsData, pageActionsData } from './MenuTabs.stories.data';
|
|
import { menuTemplate } from './Menu.stories.data';
|
|
|
|
const PAGE_TOOLBAR_TEMPLATE_DATA = {
|
|
'data-portlets': {
|
|
'data-views': pageActionsData,
|
|
'data-namespaces': namespaceTabsData
|
|
}
|
|
};
|
|
|
|
const PAGE_TOOLBAR_TEMPLATE_DATA_LEGACY = {
|
|
'data-portlets': {
|
|
'data-views': Object.assign( {}, pageActionsData, {
|
|
class: 'vector-menu-tabs-legacy'
|
|
} ),
|
|
'data-namespaces': Object.assign( {}, namespaceTabsData, {
|
|
class: 'vector-menu-tabs-legacy'
|
|
} )
|
|
}
|
|
};
|
|
|
|
const PAGE_TOOLBAR_PARTIALS = {
|
|
Menu: menuTemplate
|
|
};
|
|
|
|
export { pageToolbarTemplate, PAGE_TOOLBAR_TEMPLATE_DATA,
|
|
PAGE_TOOLBAR_TEMPLATE_DATA_LEGACY, PAGE_TOOLBAR_PARTIALS };
|