@digital-ai/plugin-dai-release
Version:
Frontend functionalities for the dai-release backstage plugin
42 lines (39 loc) • 1.6 kB
JavaScript
import { daiReleaseApiRef } from './api/DaiReleaseApi.esm.js';
import { DaiReleaseApiClient } from './api/DaiReleaseApiClient.esm.js';
import { createPlugin, createApiFactory, identityApiRef, discoveryApiRef, createRoutableExtension } from '@backstage/core-plugin-api';
import { daiReleaseContentRouteRef } from './routes.esm.js';
const daiReleasePlugin = createPlugin({
id: "dai-release",
apis: [
createApiFactory({
api: daiReleaseApiRef,
deps: { discoveryApi: discoveryApiRef, identityApi: identityApiRef },
factory: ({ discoveryApi, identityApi }) => new DaiReleaseApiClient({ discoveryApi, identityApi })
})
]
});
const DaiReleasePage = daiReleasePlugin.provide(
createRoutableExtension({
name: "DaiReleasePage",
component: () => import('./components/HomePageComponent/index.esm.js').then((m) => m.HomePageComponent),
mountPoint: daiReleaseContentRouteRef
})
);
const DaiTemplatePage = daiReleasePlugin.provide(
createRoutableExtension({
name: "DaiTemplatePage",
component: () => import('./components/TemplateHomePageComponent/index.esm.js').then(
(m) => m.TemplateHomePageComponent
),
mountPoint: daiReleaseContentRouteRef
})
);
const DaiWorkflowCatalog = daiReleasePlugin.provide(
createRoutableExtension({
name: "DaiWorkflowCatalog",
component: () => import('./components/WorkflowComponent/index.esm.js').then((m) => m.WorkflowComponent),
mountPoint: daiReleaseContentRouteRef
})
);
export { DaiReleasePage, DaiTemplatePage, DaiWorkflowCatalog, daiReleasePlugin };
//# sourceMappingURL=plugin.esm.js.map