Incorporated the feedback.

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-07-06 14:03:09 +02:00
parent 67550c6b99
commit c768e53c30
6 changed files with 67 additions and 40 deletions
+2 -4
View File
@@ -35,14 +35,12 @@ import {
} from '@backstage/core-components';
import { apiDocsPlugin, ApiExplorerPage } from '@backstage/plugin-api-docs';
import { AzurePullRequestsPage } from '@backstage/plugin-azure-devops';
import {
CatalogEntityPage,
CatalogIndexPage,
catalogPlugin,
} from '@backstage/plugin-catalog';
/* Uncomment this import to enable a customized version of a catalog */
// import '@internal/plugin-catalog-customized';
} from '@internal/plugin-catalog-customized';
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
import {
-1
View File
@@ -37,7 +37,6 @@
"@backstage/types": "^1.0.0",
"@backstage/version-bridge": "^1.0.1",
"history": "^5.0.0",
"lodash": "^4.17.21",
"prop-types": "^15.7.2",
"react-router-dom": "6.0.0-beta.0",
"zen-observable": "^0.8.15"
@@ -22,7 +22,7 @@ import {
import { BackstagePlugin, PluginOptions } from '../plugin';
import React, { ReactNode } from 'react';
const contextKey: string = 'plugin-options-context';
const contextKey: string = 'plugin-context';
/**
* Properties for the AsyncEntityProvider component.
@@ -1,33 +0,0 @@
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import {
EntityTypePickerProps,
UserListPickerProps,
} from '@backstage/plugin-catalog-react';
export const EntityOwnerPicker = () => {
return <div>Customized entity owner picker</div>;
};
export const EntityTypePicker = (_: EntityTypePickerProps) => {
return <div>Customized entity type picker</div>;
};
export const UserListPicker = (_: UserListPickerProps) => {
return <div>Customized user lis picker</div>;
};
+63
View File
@@ -15,3 +15,66 @@
*/
export { customizedCatalog } from './plugin';
export type {
AboutCardProps,
AboutContentProps,
AboutFieldProps,
BackstageOverrides,
CatalogTable,
CatalogTableProps,
CatalogTableRow,
CatalogKindHeaderProps,
CatalogSearchResultListItemProps,
DefaultCatalogPageProps,
DefaultStarredEntitiesApi,
DependencyOfComponentsCardProps,
DependsOnComponentsCardProps,
DependsOnResourcesCardProps,
EntityContextMenuClassKey,
EntityLayoutProps,
EntityLayoutRouteProps,
EntityLinksEmptyStateClassKey,
EntityListContainer,
EntityLinksCardProps,
EntityOrphanWarning,
EntityProcessingErrorsPanel,
EntitySwitch,
EntitySwitchCaseProps,
EntitySwitchProps,
hasCatalogProcessingErrors,
HasComponentsCardProps,
HasResourcesCardProps,
isKind,
isNamespace,
isComponentType,
isOrphan,
FilterContainer,
FilteredEntityLayout,
HasSubcomponentsCardProps,
HasSystemsCardProps,
PluginCatalogComponentsNameToClassKey,
RelatedEntitiesCardProps,
SystemDiagramCardClassKey,
} from '@backstage/plugin-catalog';
export {
AboutContent,
AboutField,
catalogPlugin,
CatalogEntityPage,
CatalogIndexPage,
CatalogKindHeader,
CatalogSearchResultListItem,
EntityAboutCard,
EntityDependencyOfComponentsCard,
EntityDependsOnComponentsCard,
EntityDependsOnResourcesCard,
EntityHasComponentsCard,
EntityHasResourcesCard,
EntityHasSubcomponentsCard,
EntityHasSystemsCard,
EntityLayout,
EntityLinksCard,
RelatedEntitiesCard,
} from '@backstage/plugin-catalog';
+1 -1
View File
@@ -17,7 +17,7 @@
import { catalogPlugin } from '@backstage/plugin-catalog';
catalogPlugin.__experimentalReconfigure({
createButtonTitle: 'Maybe Create',
createButtonTitle: 'New',
});
export const customizedCatalog = catalogPlugin;