Skip to content

Commit

Permalink
refactor(homepage): remove internal dynamic-home-page plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Jerolimov <[email protected]>
  • Loading branch information
christoph-jerolimov committed Nov 19, 2024
1 parent f9250fa commit 1b10d48
Show file tree
Hide file tree
Showing 72 changed files with 4 additions and 2,983 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
**/node_modules
plugins
!plugins/auth-backend-module-oidc-provider
!plugins/dynamic-home-page
!plugins/dynamic-plugins-info
!plugins/dynamic-plugins-info-backend
!plugins/licensed-users-info-backend
Expand Down
1 change: 0 additions & 1 deletion .rhdh/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ COPY $EXTERNAL_SOURCE_NESTED/plugins/scalprum-backend/package.json ./plugins/sca
COPY $EXTERNAL_SOURCE_NESTED/plugins/licensed-users-info-backend/package.json ./plugins/licensed-users-info-backend/package.json
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info/package.json ./plugins/dynamic-plugins-info/package.json
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info-backend/package.json ./plugins/dynamic-plugins-info-backend/package.json
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-home-page/package.json ./plugins/dynamic-home-page/package.json
COPY $EXTERNAL_SOURCE_NESTED/packages/backend/package.json ./packages/backend/package.json
COPY $EXTERNAL_SOURCE_NESTED/packages/app/package.json ./packages/app/package.json
COPY $EXTERNAL_SOURCE_NESTED/package.json ./package.json
Expand Down
1 change: 0 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ COPY $EXTERNAL_SOURCE_NESTED/plugins/scalprum-backend/package.json ./plugins/sca
COPY $EXTERNAL_SOURCE_NESTED/plugins/licensed-users-info-backend/package.json ./plugins/licensed-users-info-backend/package.json
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info/package.json ./plugins/dynamic-plugins-info/package.json
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-plugins-info-backend/package.json ./plugins/dynamic-plugins-info-backend/package.json
COPY $EXTERNAL_SOURCE_NESTED/plugins/dynamic-home-page/package.json ./plugins/dynamic-home-page/package.json
COPY $EXTERNAL_SOURCE_NESTED/packages/backend/package.json ./packages/backend/package.json
COPY $EXTERNAL_SOURCE_NESTED/packages/app/package.json ./packages/app/package.json
COPY $EXTERNAL_SOURCE_NESTED/package.json ./package.json
Expand Down
1 change: 0 additions & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@backstage/theme": "0.6.0",
"@emotion/react": "11.13.3",
"@emotion/styled": "11.13.0",
"@internal/backstage-plugin-dynamic-home-page": "*",
"@internal/plugin-dynamic-plugins-info": "*",
"@janus-idp/backstage-plugin-rbac-common": "1.12.0",
"@mui/icons-material": "5.16.7",
Expand Down
64 changes: 0 additions & 64 deletions packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import { DefaultMainMenuItems } from './consts';
const { dynamicPluginsInfoPlugin, ...dynamicPluginsInfoPluginModule } =
await import('@internal/plugin-dynamic-plugins-info');

const { dynamicHomePagePlugin, ...dynamicHomePagePluginModule } = await import(
'@internal/backstage-plugin-dynamic-home-page'
);

// The base UI configuration, these values can be overridden by values
// specified in external configuration files
const baseFrontendConfig = {
Expand Down Expand Up @@ -44,62 +40,6 @@ const baseFrontendConfig = {
},
},
},
// please keep this in sync with plugins/dynamic-home-page/app-config.janus-idp.yaml
'janus-idp.backstage-plugin-dynamic-home-page': {
dynamicRoutes: [
{
path: '/',
importName: 'DynamicHomePage',
},
],
mountPoints: [
{
mountPoint: 'home.page/cards',
importName: 'SearchBar',
config: {
// prettier-ignore
layouts: {
xl: { w: 10, h: 1, x: 1 },
lg: { w: 10, h: 1, x: 1 },
md: { w: 10, h: 1, x: 1 },
sm: { w: 10, h: 1, x: 1 },
xs: { w: 12, h: 1 },
xxs: { w: 12, h: 1 },
},
},
},
{
mountPoint: 'home.page/cards',
importName: 'QuickAccessCard',
config: {
// prettier-ignore
layouts: {
xl: { w: 7, h: 8 },
lg: { w: 7, h: 8 },
md: { w: 7, h: 8 },
sm: { w: 12, h: 8 },
xs: { w: 12, h: 8 },
xxs: { w: 12, h: 8 },
},
},
},
{
mountPoint: 'home.page/cards',
importName: 'CatalogStarredEntitiesCard',
config: {
// prettier-ignore
layouts: {
xl: { w: 5, h: 4, x: 7 },
lg: { w: 5, h: 4, x: 7 },
md: { w: 5, h: 4, x: 7 },
sm: { w: 12, h: 4 },
xs: { w: 12, h: 4 },
xxs: { w: 12, h: 4 },
},
},
},
],
},
},
},
},
Expand All @@ -111,10 +51,6 @@ const staticPlugins: StaticPlugins = {
plugin: dynamicPluginsInfoPlugin,
module: dynamicPluginsInfoPluginModule,
},
'janus-idp.backstage-plugin-dynamic-home-page': {
plugin: dynamicHomePagePlugin,
module: dynamicHomePagePluginModule,
},
};

const AppRoot = () => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { RemotePlugins } from '../../components/DynamicRoot/DynamicRootContext';
const ignoreStaticPlugins = [
'default.main-menu-items',
'internal.plugin-dynamic-plugins-info',
'janus-idp.backstage-plugin-dynamic-home-page',
];

const initializeRemotePlugins = async (
Expand Down
12 changes: 0 additions & 12 deletions plugins/dynamic-home-page/.eslintrc.js

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/dynamic-home-page/.lintstagedrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions plugins/dynamic-home-page/.prettierignore

This file was deleted.

20 changes: 0 additions & 20 deletions plugins/dynamic-home-page/.prettierrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions plugins/dynamic-home-page/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions plugins/dynamic-home-page/app-config.janus-idp.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions plugins/dynamic-home-page/catalog-info.yaml

This file was deleted.

Loading

0 comments on commit 1b10d48

Please sign in to comment.