@@ -3,17 +3,12 @@ import {
33 coreExtensionData ,
44 createExtensionBlueprint ,
55 createExtensionInput ,
6- createFrontendModule ,
76 createFrontendPlugin ,
87 NavItemBlueprint ,
98 OverridableFrontendPlugin ,
109 PageBlueprint ,
1110} from '@backstage/frontend-plugin-api' ;
12- import {
13- compatWrapper ,
14- convertLegacyRouteRef ,
15- convertLegacyRouteRefs ,
16- } from '@backstage/core-compat-api' ;
11+ import { compatWrapper } from '@backstage/core-compat-api' ;
1712import { discoveryApiRef , fetchApiRef } from '@backstage/core-plugin-api' ;
1813import { toolboxApiRef , ToolboxClient } from './api' ;
1914import { rootRouteRef } from './routes.ts' ;
@@ -77,7 +72,7 @@ const toolboxPage = PageBlueprint.makeWithOverrides({
7772 const welcomePage = inputs . welcomePage ?. get ( coreExtensionData . reactElement ) ;
7873 return originalFactory ( {
7974 path : config . path ?? '/toolbox' ,
80- routeRef : convertLegacyRouteRef ( rootRouteRef ) ,
75+ routeRef : rootRouteRef ,
8176 loader : ( ) =>
8277 import ( './components/Root' ) . then ( m =>
8378 compatWrapper ( < m . Root tools = { tools } welcomePage = { welcomePage } /> ) ,
@@ -600,16 +595,11 @@ const whoisTool = ToolboxToolBlueprint.make({
600595export const toolboxNavItem = NavItemBlueprint . make ( {
601596 params : {
602597 title : 'Toolbox' ,
603- routeRef : convertLegacyRouteRef ( rootRouteRef ) ,
598+ routeRef : rootRouteRef ,
604599 icon : CardTravel ,
605600 } ,
606601} ) ;
607602
608- createFrontendModule ( {
609- pluginId : 'toolbox' ,
610- extensions : [ toolboxApi , toolboxPage , toolboxNavItem ] ,
611- } ) ;
612-
613603/**
614604 * Backstage frontend plugin.
615605 *
@@ -618,9 +608,9 @@ createFrontendModule({
618608const toolboxPlugin : OverridableFrontendPlugin = createFrontendPlugin ( {
619609 pluginId : 'toolbox' ,
620610 info : { packageJson : ( ) => import ( '../package.json' ) } ,
621- routes : convertLegacyRouteRefs ( {
611+ routes : {
622612 root : rootRouteRef ,
623- } ) ,
613+ } ,
624614 extensions : [
625615 toolboxApi ,
626616 toolboxPage ,
0 commit comments