packages/core: rename NavTargets to RouteRefs
This commit is contained in:
@@ -113,7 +113,7 @@ class DevAppBuilder {
|
||||
for (const plugin of plugins) {
|
||||
for (const output of plugin.output()) {
|
||||
switch (output.type) {
|
||||
case 'route': {
|
||||
case 'legacy-route': {
|
||||
const { path } = output;
|
||||
sidebarItems.push(
|
||||
<SidebarItem
|
||||
@@ -125,7 +125,7 @@ class DevAppBuilder {
|
||||
);
|
||||
break;
|
||||
}
|
||||
case 'nav-target-component': {
|
||||
case 'route': {
|
||||
const { target } = output;
|
||||
sidebarItems.push(
|
||||
<SidebarItem
|
||||
@@ -156,12 +156,12 @@ class DevAppBuilder {
|
||||
providedFactories: ApiFactory<any, any, any>[],
|
||||
): ApiHolder {
|
||||
const providedApis = new Set(
|
||||
providedFactories.map((factory) => factory.implements),
|
||||
providedFactories.map(factory => factory.implements),
|
||||
);
|
||||
|
||||
// Exlude any default API factory that we receive a factory for in the config
|
||||
const defaultFactories = Object.values(defaultApiFactories).filter(
|
||||
(factory) => !providedApis.has(factory.implements),
|
||||
factory => !providedApis.has(factory.implements),
|
||||
);
|
||||
const allFactories = [...defaultFactories, ...providedFactories];
|
||||
|
||||
@@ -180,7 +180,7 @@ class DevAppBuilder {
|
||||
|
||||
for (const plugin of plugins) {
|
||||
for (const output of plugin.output()) {
|
||||
if (output.type === 'route') {
|
||||
if (output.type === 'legacy-route') {
|
||||
paths.push(output.path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user