Renaming related fixes
Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
@@ -46,4 +46,4 @@ export { plugin as Kafka } from '@backstage/plugin-kafka';
|
||||
export { todoPlugin } from '@backstage/plugin-todo';
|
||||
export { badgesPlugin } from '@backstage/plugin-badges';
|
||||
export { githubDeploymentsPlugin } from '@backstage/plugin-github-deployments';
|
||||
export { releaseManagerAsAServicePlugin } from '@backstage/plugin-github-release-manager';
|
||||
export { gitHubReleaseManagerPlugin } from '@backstage/plugin-github-release-manager';
|
||||
|
||||
@@ -46,4 +46,4 @@ Looking at the flow above, a common release lifecycle could be:
|
||||
|
||||
## Usage
|
||||
|
||||
The plugin exports a single full-page extension `ReleaseManagerAsAServicePage`, which one can add to an app like a usual top-level tool on a dedicated route.
|
||||
The plugin exports a single full-page extension `GitHubReleaseManagerPage`, which one can add to an app like a usual top-level tool on a dedicated route.
|
||||
|
||||
@@ -41,7 +41,7 @@ import {
|
||||
} from './components/ProjectContext';
|
||||
import { ApiClient } from './api/ApiClient';
|
||||
|
||||
interface ReleaseManagerAsAServiceProps {
|
||||
interface GitHubReleaseManagerProps {
|
||||
project: Project;
|
||||
components?: {
|
||||
default?: {
|
||||
@@ -71,10 +71,10 @@ const useStyles = makeStyles(() => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export function ReleaseManagerAsAService({
|
||||
export function GitHubReleaseManager({
|
||||
project,
|
||||
components,
|
||||
}: ReleaseManagerAsAServiceProps) {
|
||||
}: GitHubReleaseManagerProps) {
|
||||
const pluginApiClient = useApi(githubReleaseManagerApiRef);
|
||||
const apiClient = new ApiClient({
|
||||
pluginApiClient,
|
||||
@@ -93,7 +93,7 @@ export function ReleaseManagerAsAService({
|
||||
);
|
||||
}
|
||||
|
||||
function Cards({ project, components }: ReleaseManagerAsAServiceProps) {
|
||||
function Cards({ project, components }: GitHubReleaseManagerProps) {
|
||||
const apiClient = useApiClientContext();
|
||||
const [refetch, setRefetch] = useState(0);
|
||||
const gitHubBatchInfo = useAsync(getGitHubBatchInfo({ apiClient }), [
|
||||
|
||||
@@ -46,7 +46,7 @@ export const gitHubReleaseManagerPlugin = createPlugin({
|
||||
export const GitHubReleaseManagerPage = gitHubReleaseManagerPlugin.provide(
|
||||
createRoutableExtension({
|
||||
component: () =>
|
||||
import('./GitHubReleaseManager').then(m => m.ReleaseManagerAsAService),
|
||||
import('./GitHubReleaseManager').then(m => m.GitHubReleaseManager),
|
||||
mountPoint: rootRouteRef,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user