chore: some more migrations

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-08-15 15:22:16 +02:00
parent d2e999e402
commit 75e79518ea
5 changed files with 221 additions and 181 deletions
+33 -25
View File
@@ -21,46 +21,54 @@ import {
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
import React from 'react';
import { catalogIndexRouteRef } from './routes';
import { createEntityCardExtension } from '@backstage/plugin-catalog-react/alpha';
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
/** @alpha */
const EntityGroupProfileCard = createEntityCardExtension({
const EntityGroupProfileCard = EntityCardBlueprint.make({
name: 'group-profile',
filter: 'kind:group',
loader: async () =>
import('./components/Cards/Group/GroupProfile/GroupProfileCard').then(m =>
compatWrapper(<m.GroupProfileCard />),
),
params: {
filter: 'kind:group',
loader: async () =>
import('./components/Cards/Group/GroupProfile/GroupProfileCard').then(m =>
compatWrapper(<m.GroupProfileCard />),
),
},
});
/** @alpha */
const EntityMembersListCard = createEntityCardExtension({
const EntityMembersListCard = EntityCardBlueprint.make({
name: 'members-list',
filter: 'kind:group',
loader: async () =>
import('./components/Cards/Group/MembersList/MembersListCard').then(m =>
compatWrapper(<m.MembersListCard />),
),
params: {
filter: 'kind:group',
loader: async () =>
import('./components/Cards/Group/MembersList/MembersListCard').then(m =>
compatWrapper(<m.MembersListCard />),
),
},
});
/** @alpha */
const EntityOwnershipCard = createEntityCardExtension({
const EntityOwnershipCard = EntityCardBlueprint.make({
name: 'ownership',
filter: 'kind:group,user',
loader: async () =>
import('./components/Cards/OwnershipCard/OwnershipCard').then(m =>
compatWrapper(<m.OwnershipCard />),
),
params: {
filter: 'kind:group,user',
loader: async () =>
import('./components/Cards/OwnershipCard/OwnershipCard').then(m =>
compatWrapper(<m.OwnershipCard />),
),
},
});
/** @alpha */
const EntityUserProfileCard = createEntityCardExtension({
const EntityUserProfileCard = EntityCardBlueprint.make({
name: 'user-profile',
filter: 'kind:user',
loader: async () =>
import('./components/Cards/User/UserProfileCard/UserProfileCard').then(m =>
compatWrapper(<m.UserProfileCard />),
),
params: {
filter: 'kind:user',
loader: async () =>
import('./components/Cards/User/UserProfileCard/UserProfileCard').then(
m => compatWrapper(<m.UserProfileCard />),
),
},
});
/** @alpha */