2020-02-17 19:49:43 +00:00
|
|
|
import sidebarTemplate from '!!raw-loader!../includes/templates/Sidebar.mustache';
|
2022-06-25 00:18:17 +00:00
|
|
|
import sidebarLegacyTemplate from '!!raw-loader!../includes/templates/LegacySidebar.mustache';
|
2020-04-07 23:21:20 +00:00
|
|
|
import { vectorMenuTemplate } from './MenuDropdown.stories.data';
|
|
|
|
import { PORTALS } from './MenuPortal.stories.data';
|
2020-02-17 19:49:43 +00:00
|
|
|
|
|
|
|
const SIDEBAR_BEFORE_OUTPUT_HOOKINFO = `Beware: Portals can be added, removed or reordered using
|
|
|
|
SidebarBeforeOutput hook as in this example.`;
|
|
|
|
|
2020-06-22 18:01:10 +00:00
|
|
|
export { sidebarTemplate, sidebarLegacyTemplate };
|
2020-02-17 19:49:43 +00:00
|
|
|
|
|
|
|
export const SIDEBAR_TEMPLATE_PARTIALS = {
|
2020-04-07 23:21:20 +00:00
|
|
|
Menu: vectorMenuTemplate
|
2020-02-17 19:49:43 +00:00
|
|
|
};
|
|
|
|
|
2020-10-08 21:51:27 +00:00
|
|
|
export const OPT_OUT_DATA = {
|
|
|
|
'data-emphasized-sidebar-action': {
|
|
|
|
href: '#',
|
|
|
|
'msg-vector-opt-out': 'Switch to old look',
|
|
|
|
'msg-vector-opt-out-tooltip': 'Change your settings to go back to the old look of the skin (legacy Vector)'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-02-17 19:49:43 +00:00
|
|
|
export const SIDEBAR_DATA = {
|
|
|
|
withNoPortals: {
|
2020-09-04 19:18:57 +00:00
|
|
|
'array-portlets-rest': []
|
2020-02-17 19:49:43 +00:00
|
|
|
},
|
|
|
|
withPortals: {
|
2020-09-04 19:18:57 +00:00
|
|
|
'data-portlets-first': PORTALS.navigation,
|
|
|
|
'array-portlets-rest': [
|
2020-02-17 19:49:43 +00:00
|
|
|
PORTALS.toolbox,
|
2020-06-22 18:01:10 +00:00
|
|
|
PORTALS.otherProjects
|
2020-02-17 19:49:43 +00:00
|
|
|
],
|
2020-09-04 19:18:57 +00:00
|
|
|
'data-portals-languages': PORTALS.langlinks
|
2020-02-17 19:49:43 +00:00
|
|
|
},
|
2020-04-14 22:44:33 +00:00
|
|
|
withoutLogo: {
|
2020-06-22 18:01:10 +00:00
|
|
|
'data-portals-languages': PORTALS.langlinks,
|
2020-04-14 22:44:33 +00:00
|
|
|
'array-portals-first': PORTALS.navigation,
|
2020-09-04 19:18:57 +00:00
|
|
|
'array-portlets-rest': [
|
2020-04-14 22:44:33 +00:00
|
|
|
PORTALS.toolbox,
|
2020-06-22 18:01:10 +00:00
|
|
|
PORTALS.otherProjects
|
2020-04-14 22:44:33 +00:00
|
|
|
]
|
|
|
|
},
|
2020-02-17 19:49:43 +00:00
|
|
|
thirdParty: {
|
2020-09-04 19:18:57 +00:00
|
|
|
'array-portlets-rest': [
|
2020-02-17 19:49:43 +00:00
|
|
|
PORTALS.toolbox,
|
|
|
|
PORTALS.navigation,
|
|
|
|
{
|
|
|
|
'html-portal-content': SIDEBAR_BEFORE_OUTPUT_HOOKINFO
|
|
|
|
}
|
2020-09-04 19:18:57 +00:00
|
|
|
]
|
2020-02-17 19:49:43 +00:00
|
|
|
}
|
|
|
|
};
|