import { createComponentExtension , createPlugin , createRoutableExtension } from '@backstage/core-plugin-api' ; import { rootRouteRef } from './routes' ; export const githubInsightsPlugin = createPlugin ( { id : 'code-insights' , routes : { root : rootRouteRef , } , } ) ; export const EntityGithubInsightsContent = githubInsightsPlugin . provide ( createRoutableExtension ( { name : 'EntityGithubInsightsContent' , component : ( ) => import ( './components/InsightsPage' ) . then ( m => m . InsightsPage ) , mountPoint : rootRouteRef , } ) ) ; export const EntityGithubInsightsComplianceCard = githubInsightsPlugin . provide ( createComponentExtension ( { name : 'EntityGithubInsightsComplianceCard' , component : { lazy : ( ) => import ( './components/Widgets/index' ) . then ( ( m ) => m . ComplianceCard ) , } , } ) ) ; export const EntityGithubInsightsContributorsCard = githubInsightsPlugin . provide ( createComponentExtension ( { name : 'EntityGithubInsightsContributorsCard' , component : { lazy : ( ) => import ( './components/Widgets/index' ) . then ( ( m ) => m . ContributorsCard ) , } , } ) ) ; export const EntityGithubInsightsLanguagesCard = githubInsightsPlugin . provide ( createComponentExtension ( { name : 'EntityGithubInsightsLanguagesCard' , component : { lazy : ( ) => import ( './components/Widgets/index' ) . then ( ( m ) => m . LanguagesCard ) , } , } ) ) ; export const EntityGithubInsightsReadmeCard = githubInsightsPlugin . provide ( createComponentExtension ( { name : 'EntityGithubInsightsReadmeCard' , component : { lazy : ( ) => import ( './components/Widgets/index' ) . then ( ( m ) => m . ReadMeCard ) , } , } ) ) ; export const EntityGithubInsightsReleasesCard = githubInsightsPlugin . provide ( createComponentExtension ( { name : 'EntityGithubInsightsReleasesCard' , component : { lazy : ( ) => import ( './components/Widgets/index' ) . then ( ( m ) => m . ReleasesCard ) , } , } ) ) ;