/usr/share/grafana/public/app/features/plugins/extensions/registry
import { PluginExtensionExposedComponents } from '@grafana/data'; import CentralAlertHistorySceneExposedComponent from 'app/features/alerting/unified/components/rules/central-state-history/CentralAlertHistorySceneExposedComponent'; import { AddToDashboardFormExposedComponent } from 'app/features/dashboard-scene/addToDashboard/AddToDashboardFormExposedComponent'; import { getCoreExtensionConfigurations } from '../getCoreExtensionConfigurations'; import { AddedComponentsRegistry } from './AddedComponentsRegistry'; import { AddedFunctionsRegistry } from './AddedFunctionsRegistry'; import { AddedLinksRegistry } from './AddedLinksRegistry'; import { ExposedComponentsRegistry } from './ExposedComponentsRegistry'; import { PluginExtensionRegistries } from './types'; export const addedComponentsRegistry = new AddedComponentsRegistry(); export const exposedComponentsRegistry = new ExposedComponentsRegistry(); export const addedLinksRegistry = new AddedLinksRegistry(); export const addedFunctionsRegistry = new AddedFunctionsRegistry(); export const pluginExtensionRegistries: PluginExtensionRegistries = { addedComponentsRegistry, exposedComponentsRegistry, addedLinksRegistry, addedFunctionsRegistry, }; // Registering core extension links addedLinksRegistry.register({ pluginId: 'grafana', configs: getCoreExtensionConfigurations(), }); // Registering core exposed components exposedComponentsRegistry.register({ pluginId: 'grafana', configs: [ { id: PluginExtensionExposedComponents.CentralAlertHistorySceneV1, title: 'Central alert history scene', description: 'Central alert history scene', component: CentralAlertHistorySceneExposedComponent, }, { id: PluginExtensionExposedComponents.AddToDashboardFormV1, title: 'Add to dashboard form', description: 'Add to dashboard form', component: AddToDashboardFormExposedComponent, }, ], });
.
Edit
..
Edit
AddedComponentsRegistry.test.ts
Edit
AddedComponentsRegistry.ts
Edit
AddedFunctionsRegistry.test.ts
Edit
AddedFunctionsRegistry.ts
Edit
AddedLinksRegistry.test.ts
Edit
AddedLinksRegistry.ts
Edit
ExposedComponentsRegistry.test.ts
Edit
ExposedComponentsRegistry.ts
Edit
Registry.ts
Edit
setup.ts
Edit
types.ts
Edit