mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 11:15:33 +00:00
c8d2c6e460
Change-Id: Icd3fef87485aaa7abc2f10534ccdc8960ef06f1d
29 lines
831 B
JavaScript
29 lines
831 B
JavaScript
import articleToolbarTemplate from '!!raw-loader!../includes/templates/ArticleToolbar.mustache';
|
|
import { namespaceTabsData, pageActionsData } from './MenuTabs.stories.data';
|
|
import { menuTemplate } from './Menu.stories.data';
|
|
|
|
const ARTICLE_TOOLBAR_TEMPLATE_DATA = {
|
|
'data-portlets': {
|
|
'data-views': pageActionsData,
|
|
'data-namespaces': namespaceTabsData
|
|
}
|
|
};
|
|
|
|
const ARTICLE_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 ARTICLE_TOOLBAR_PARTIALS = {
|
|
Menu: menuTemplate
|
|
};
|
|
|
|
export { articleToolbarTemplate, ARTICLE_TOOLBAR_TEMPLATE_DATA,
|
|
ARTICLE_TOOLBAR_TEMPLATE_DATA_LEGACY, ARTICLE_TOOLBAR_PARTIALS };
|