@@ -108,7 +108,7 @@ import { PlaylistIndexPage } from '@backstage/plugin-playlist';
|
||||
import { TwoColumnLayout } from './components/scaffolder/customScaffolderLayouts';
|
||||
import { ScoreBoardPage } from '@oriflame/backstage-plugin-score-card';
|
||||
import { StackstormPage } from '@backstage/plugin-stackstorm';
|
||||
import { PuppetdbPage } from '@backstage/plugin-puppetdb';
|
||||
import { PuppetDbPage } from '@backstage/plugin-puppetdb';
|
||||
|
||||
const app = createApp({
|
||||
apis,
|
||||
@@ -290,7 +290,7 @@ const routes = (
|
||||
<Route path="/playlist" element={<PlaylistIndexPage />} />
|
||||
<Route path="/score-board" element={<ScoreBoardPage />} />
|
||||
<Route path="/stackstorm" element={<StackstormPage />} />
|
||||
<Route path="/puppetdb" element={<PuppetdbPage />} />
|
||||
<Route path="/puppetdb" element={<PuppetDbPage />} />
|
||||
</FlatRoutes>
|
||||
);
|
||||
|
||||
|
||||
@@ -116,10 +116,7 @@ import {
|
||||
EntityRollbarContent,
|
||||
isRollbarAvailable,
|
||||
} from '@backstage/plugin-rollbar';
|
||||
import {
|
||||
PuppetDbContent,
|
||||
isPuppetDbAvailable,
|
||||
} from '@backstage/plugin-puppetdb';
|
||||
import { PuppetDbPage, isPuppetDbAvailable } from '@backstage/plugin-puppetdb';
|
||||
import { EntitySentryContent } from '@backstage/plugin-sentry';
|
||||
import { EntityTechdocsContent } from '@backstage/plugin-techdocs';
|
||||
import { EntityTechInsightsScorecardCard } from '@backstage/plugin-tech-insights';
|
||||
@@ -861,7 +858,7 @@ const resourcePage = (
|
||||
title="Puppet"
|
||||
if={isPuppetDbAvailable}
|
||||
>
|
||||
<PuppetDbContent />
|
||||
<PuppetDbPage />
|
||||
</EntityLayout.Route>
|
||||
<EntityLayout.Route path="/todos" title="TODOs">
|
||||
<EntityTodoContent />
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
export {
|
||||
puppetdbPlugin,
|
||||
puppetdbPlugin as plugin,
|
||||
PuppetDbContent,
|
||||
PuppetDbPage,
|
||||
} from './plugin';
|
||||
export {
|
||||
Router,
|
||||
|
||||
@@ -46,9 +46,9 @@ export const puppetdbPlugin = createPlugin({
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const PuppetDbContent = puppetdbPlugin.provide(
|
||||
export const PuppetDbPage = puppetdbPlugin.provide(
|
||||
createRoutableExtension({
|
||||
name: 'PuppetDbContent',
|
||||
name: 'PuppetDbPage',
|
||||
component: () => import('./components/Router').then(m => m.Router),
|
||||
mountPoint: puppetDbRouteRef,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user