2022-10-17 20:09:53 +00:00
|
|
|
import pageToolbarTemplate from '!!raw-loader!../includes/templates/PageToolbar.mustache';
|
2022-06-08 18:58:52 +00:00
|
|
|
import { namespaceTabsData, pageActionsData } from './MenuTabs.stories.data';
|
|
|
|
import { menuTemplate } from './Menu.stories.data';
|
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
const PAGE_TOOLBAR_TEMPLATE_DATA = {
|
2022-06-08 18:58:52 +00:00
|
|
|
'data-portlets': {
|
|
|
|
'data-views': pageActionsData,
|
|
|
|
'data-namespaces': namespaceTabsData
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
const PAGE_TOOLBAR_TEMPLATE_DATA_LEGACY = {
|
2022-06-08 18:58:52 +00:00
|
|
|
'data-portlets': {
|
|
|
|
'data-views': Object.assign( {}, pageActionsData, {
|
|
|
|
class: 'vector-menu-tabs-legacy'
|
|
|
|
} ),
|
|
|
|
'data-namespaces': Object.assign( {}, namespaceTabsData, {
|
|
|
|
class: 'vector-menu-tabs-legacy'
|
|
|
|
} )
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
const PAGE_TOOLBAR_PARTIALS = {
|
2022-06-08 18:58:52 +00:00
|
|
|
Menu: menuTemplate
|
|
|
|
};
|
|
|
|
|
2022-10-17 20:09:53 +00:00
|
|
|
export { pageToolbarTemplate, PAGE_TOOLBAR_TEMPLATE_DATA,
|
|
|
|
PAGE_TOOLBAR_TEMPLATE_DATA_LEGACY, PAGE_TOOLBAR_PARTIALS };
|