Skip to content

Commit 12e75c8

Browse files
refactor(homepage): remove internal dynamic-home-page plugin
Signed-off-by: Christoph Jerolimov <[email protected]>
1 parent f60bc2d commit 12e75c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4
-2883
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
**/node_modules
55
plugins
66
!plugins/auth-backend-module-oidc-provider
7-
!plugins/dynamic-home-page
87
!plugins/dynamic-plugins-info
98
!plugins/dynamic-plugins-info-backend
109
!plugins/licensed-users-info-backend

.rhdh/docker/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ COPY $EXTERNAL_SOURCE_NESTED/plugins/scalprum-backend/package.json ./plugins/sca
5656
COPY $EXTERNAL_SOURCE_NESTED/plugins/licensed-users-info-backend/package.json ./plugins/licensed-users-info-backend/package.json
5757
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info/package.json ./plugins/dynamic-plugins-info/package.json
5858
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info-backend/package.json ./plugins/dynamic-plugins-info-backend/package.json
59-
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-home-page/package.json ./plugins/dynamic-home-page/package.json
6059
COPY $EXTERNAL_SOURCE_NESTED/packages/backend/package.json ./packages/backend/package.json
6160
COPY $EXTERNAL_SOURCE_NESTED/packages/app/package.json ./packages/app/package.json
6261
COPY $EXTERNAL_SOURCE_NESTED/package.json ./package.json

docker/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ COPY $EXTERNAL_SOURCE_NESTED/plugins/scalprum-backend/package.json ./plugins/sca
5757
COPY $EXTERNAL_SOURCE_NESTED/plugins/licensed-users-info-backend/package.json ./plugins/licensed-users-info-backend/package.json
5858
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info/package.json ./plugins/dynamic-plugins-info/package.json
5959
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info-backend/package.json ./plugins/dynamic-plugins-info-backend/package.json
60-
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-home-page/package.json ./plugins/dynamic-home-page/package.json
6160
COPY $EXTERNAL_SOURCE_NESTED/packages/backend/package.json ./packages/backend/package.json
6261
COPY $EXTERNAL_SOURCE_NESTED/packages/app/package.json ./packages/app/package.json
6362
COPY $EXTERNAL_SOURCE_NESTED/package.json ./package.json

packages/app/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"@backstage/theme": "0.6.0",
4141
"@emotion/react": "11.13.3",
4242
"@emotion/styled": "11.13.0",
43-
"@internal/backstage-plugin-dynamic-home-page": "*",
4443
"@internal/plugin-dynamic-plugins-info": "*",
4544
"@janus-idp/backstage-plugin-rbac-common": "1.12.0",
4645
"@mui/icons-material": "5.16.7",

packages/app/src/App.tsx

-64
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { DefaultMainMenuItems } from './consts';
77
const { dynamicPluginsInfoPlugin, ...dynamicPluginsInfoPluginModule } =
88
await import('@internal/plugin-dynamic-plugins-info');
99

10-
const { dynamicHomePagePlugin, ...dynamicHomePagePluginModule } = await import(
11-
'@internal/backstage-plugin-dynamic-home-page'
12-
);
13-
1410
// The base UI configuration, these values can be overridden by values
1511
// specified in external configuration files
1612
const baseFrontendConfig = {
@@ -44,62 +40,6 @@ const baseFrontendConfig = {
4440
},
4541
},
4642
},
47-
// please keep this in sync with plugins/dynamic-home-page/app-config.janus-idp.yaml
48-
'janus-idp.backstage-plugin-dynamic-home-page': {
49-
dynamicRoutes: [
50-
{
51-
path: '/',
52-
importName: 'DynamicHomePage',
53-
},
54-
],
55-
mountPoints: [
56-
{
57-
mountPoint: 'home.page/cards',
58-
importName: 'SearchBar',
59-
config: {
60-
// prettier-ignore
61-
layouts: {
62-
xl: { w: 10, h: 1, x: 1 },
63-
lg: { w: 10, h: 1, x: 1 },
64-
md: { w: 10, h: 1, x: 1 },
65-
sm: { w: 10, h: 1, x: 1 },
66-
xs: { w: 12, h: 1 },
67-
xxs: { w: 12, h: 1 },
68-
},
69-
},
70-
},
71-
{
72-
mountPoint: 'home.page/cards',
73-
importName: 'QuickAccessCard',
74-
config: {
75-
// prettier-ignore
76-
layouts: {
77-
xl: { w: 7, h: 8 },
78-
lg: { w: 7, h: 8 },
79-
md: { w: 7, h: 8 },
80-
sm: { w: 12, h: 8 },
81-
xs: { w: 12, h: 8 },
82-
xxs: { w: 12, h: 8 },
83-
},
84-
},
85-
},
86-
{
87-
mountPoint: 'home.page/cards',
88-
importName: 'CatalogStarredEntitiesCard',
89-
config: {
90-
// prettier-ignore
91-
layouts: {
92-
xl: { w: 5, h: 4, x: 7 },
93-
lg: { w: 5, h: 4, x: 7 },
94-
md: { w: 5, h: 4, x: 7 },
95-
sm: { w: 12, h: 4 },
96-
xs: { w: 12, h: 4 },
97-
xxs: { w: 12, h: 4 },
98-
},
99-
},
100-
},
101-
],
102-
},
10343
},
10444
},
10545
},
@@ -111,10 +51,6 @@ const staticPlugins: StaticPlugins = {
11151
plugin: dynamicPluginsInfoPlugin,
11252
module: dynamicPluginsInfoPluginModule,
11353
},
114-
'janus-idp.backstage-plugin-dynamic-home-page': {
115-
plugin: dynamicHomePagePlugin,
116-
module: dynamicHomePagePluginModule,
117-
},
11854
};
11955

12056
const AppRoot = () => (

packages/app/src/utils/dynamicUI/initializeRemotePlugins.ts

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { RemotePlugins } from '../../components/DynamicRoot/DynamicRootContext';
77
const ignoreStaticPlugins = [
88
'default.main-menu-items',
99
'internal.plugin-dynamic-plugins-info',
10-
'janus-idp.backstage-plugin-dynamic-home-page',
1110
];
1211

1312
const initializeRemotePlugins = async (

plugins/dynamic-home-page/.eslintrc.js

-12
This file was deleted.

plugins/dynamic-home-page/.lintstagedrc.json

-4
This file was deleted.

plugins/dynamic-home-page/.prettierignore

-2
This file was deleted.

plugins/dynamic-home-page/.prettierrc.js

-20
This file was deleted.

plugins/dynamic-home-page/README.md

-5
This file was deleted.

plugins/dynamic-home-page/app-config.janus-idp.yaml

-38
This file was deleted.

plugins/dynamic-home-page/catalog-info.yaml

-61
This file was deleted.

0 commit comments

Comments
 (0)