76 lines
3.8 KiB
TypeScript
76 lines
3.8 KiB
TypeScript
import defaultContextMenuCustomization from './customizations/defaultContextMenuCustomization';
|
|
import helloPageCustomization from './customizations/helloPageCustomization';
|
|
import datasourcesCustomization from './customizations/datasourcesCustomization';
|
|
import multimonitorCustomization from './customizations/multimonitorCustomization';
|
|
import customRoutesCustomization from './customizations/customRoutesCustomization';
|
|
import studyBrowserCustomization from './customizations/studyBrowserCustomization';
|
|
import overlayItemCustomization from './customizations/overlayItemCustomization';
|
|
import contextMenuCustomization from './customizations/contextMenuCustomization';
|
|
import contextMenuUICustomization from './customizations/contextMenuUICustomization';
|
|
import menuContentCustomization from './customizations/menuContentCustomization';
|
|
import getDataSourceConfigurationCustomization from './customizations/dataSourceConfigurationCustomization';
|
|
import progressDropdownCustomization from './customizations/progressDropdownCustomization';
|
|
import sortingCriteriaCustomization from './customizations/sortingCriteriaCustomization';
|
|
import onDropHandlerCustomization from './customizations/onDropHandlerCustomization';
|
|
import loadingIndicatorProgressCustomization from './customizations/loadingIndicatorProgressCustomization';
|
|
import loadingIndicatorTotalPercentCustomization from './customizations/loadingIndicatorTotalPercentCustomization';
|
|
import progressLoadingBarCustomization from './customizations/progressLoadingBarCustomization';
|
|
import labellingFlowCustomization from './customizations/labellingFlowCustomization';
|
|
import viewportNotificationCustomization from './customizations/notificationCustomization';
|
|
import aboutModalCustomization from './customizations/aboutModalCustomization';
|
|
import userPreferencesCustomization from './customizations/userPreferencesCustomization';
|
|
import reportDialogCustomization from './customizations/reportDialogCustomization';
|
|
import hotkeyBindingsCustomization from './customizations/hotkeyBindingsCustomization';
|
|
import onboardingCustomization from './customizations/onboardingCustomization';
|
|
/**
|
|
*
|
|
* Note: this is an example of how the customization module can be used
|
|
* using the customization module. Below, we are adding a new custom route
|
|
* to the application at the path /custom and rendering a custom component
|
|
* Real world use cases of the having a custom route would be to add a
|
|
* custom page for the user to view their profile, or to add a custom
|
|
* page for login etc.
|
|
*/
|
|
export default function getCustomizationModule({ servicesManager, extensionManager }) {
|
|
return [
|
|
{
|
|
name: 'helloPage',
|
|
value: helloPageCustomization,
|
|
},
|
|
{
|
|
name: 'datasources',
|
|
value: datasourcesCustomization,
|
|
},
|
|
{
|
|
name: 'multimonitor',
|
|
value: multimonitorCustomization,
|
|
},
|
|
{
|
|
name: 'default',
|
|
value: {
|
|
...customRoutesCustomization,
|
|
...studyBrowserCustomization,
|
|
...overlayItemCustomization,
|
|
...contextMenuCustomization,
|
|
...menuContentCustomization,
|
|
...getDataSourceConfigurationCustomization({ servicesManager, extensionManager }),
|
|
...progressDropdownCustomization,
|
|
...sortingCriteriaCustomization,
|
|
...defaultContextMenuCustomization,
|
|
...onDropHandlerCustomization,
|
|
...loadingIndicatorProgressCustomization,
|
|
...loadingIndicatorTotalPercentCustomization,
|
|
...progressLoadingBarCustomization,
|
|
...labellingFlowCustomization,
|
|
...contextMenuUICustomization,
|
|
...viewportNotificationCustomization,
|
|
...aboutModalCustomization,
|
|
...userPreferencesCustomization,
|
|
...reportDialogCustomization,
|
|
...hotkeyBindingsCustomization,
|
|
...onboardingCustomization,
|
|
},
|
|
},
|
|
];
|
|
}
|