-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(homepage): migrate dynamic-home-page from showcase
Signed-off-by: Christoph Jerolimov <[email protected]>
- Loading branch information
1 parent
3ed2100
commit 67d4f42
Showing
62 changed files
with
3,351 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: homepage | ||
description: An example of a Backstage application. | ||
# Example for optional annotations | ||
# annotations: | ||
# github.com/project-slug: backstage/backstage | ||
# backstage.io/techdocs-ref: dir:. | ||
name: rhdh-plugins-homepage | ||
title: Home Page plugin | ||
description: Home Page plugin based on the upstream `home` plugin that can be extended and customized with the RHDH dynamic plugin feature. | ||
annotations: | ||
{} | ||
# github.com/project-slug: janus-idp/backstage-showcase | ||
# github.com/team-slug: janus-idp/maintainers-plugins | ||
# sonarqube.org/project-key: janus-idp_backstage-showcase | ||
tags: | ||
- homepage | ||
links: | ||
- url: https://github.com/redhat-developer/rhdh-plugins/tree/main/workspaces/homepage | ||
title: GitHub Source | ||
icon: source | ||
type: source | ||
spec: | ||
type: website | ||
owner: [email protected] | ||
lifecycle: experimental | ||
type: backstage-plugin | ||
lifecycle: production | ||
owner: rhdh-team | ||
system: rhdh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
# dynamic-home-page | ||
# Dynamic Home Page plugin | ||
|
||
Welcome to the dynamic-home-page plugin! | ||
This is a dynamic version of the upstream [home page plugin](https://github.com/backstage/backstage/tree/master/plugins/home). | ||
|
||
_This plugin was created through the Backstage CLI_ | ||
|
||
## Getting started | ||
|
||
Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn start` in the root directory, and then navigating to [/dynamic-home-page](http://localhost:3000/dynamic-home-page). | ||
|
||
You can also serve the plugin in isolation by running `yarn start` in the plugin directory. | ||
This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads. | ||
It is only meant for local development, and the setup for it can be found inside the [/dev](./dev) directory. | ||
Instead of manually adding supported "home page cards" to a custom route, it allows dynamic plugins to expose such cards. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
workspaces/homepage/plugins/dynamic-home-page/app-config.dynamic.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# please keep this in sync with packages/app/src/App.tsx | ||
dynamicPlugins: | ||
frontend: | ||
janus-idp.backstage-plugin-dynamic-home-page: | ||
dynamicRoutes: | ||
- path: / | ||
importName: DynamicHomePage | ||
mountPoints: | ||
- mountPoint: home.page/cards | ||
importName: SearchBar | ||
config: | ||
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: | ||
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: | ||
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 } |
28 changes: 28 additions & 0 deletions
28
workspaces/homepage/plugins/dynamic-home-page/catalog-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: rhdh-plugins-dynamic-home-page-frontend | ||
title: '@red-hat-developer-hub/backstage-plugin-dynamic-home-page' | ||
description: Dynamic Home Page plugin based on the upstream `home` plugin that can be extended and customized with the RHDH dynamic plugin feature. | ||
annotations: | ||
{} | ||
# github.com/project-slug: janus-idp/backstage-showcase | ||
# github.com/team-slug: janus-idp/maintainers-plugins | ||
# sonarqube.org/project-key: janus-idp_backstage-showcase | ||
tags: | ||
- homepage | ||
links: | ||
- url: https://github.com/redhat-developer/rhdh-plugins/tree/main/workspaces/homepage/plugins/dynamic-home-page | ||
title: GitHub Source | ||
icon: source | ||
type: source | ||
spec: | ||
type: backstage-frontend-plugin | ||
lifecycle: production | ||
owner: rhdh-team | ||
system: rhdh | ||
subcomponentOf: rhdh-plugins-homepage | ||
dependsOn: | ||
- component:backstage-plugin-home | ||
- component:backstage-plugin-home-react |
Oops, something went wrong.