Merge pull request #17691 from drodil/remove_object_hash

fix: remove object-hash dependency from home plugin
This commit is contained in:
Johan Haals
2023-05-08 16:22:12 +02:00
committed by GitHub
5 changed files with 36 additions and 6 deletions
+29 -1
View File
@@ -21,12 +21,15 @@ import {
ClockConfig,
HomePageStarredEntities,
CustomHomepageGrid,
HomePageToolkit,
HomePageCompanyLogo,
} from '@backstage/plugin-home';
import { Content, Header, Page } from '@backstage/core-components';
import { HomePageSearchBar } from '@backstage/plugin-search';
import { HomePageCalendar } from '@backstage/plugin-gcalendar';
import { MicrosoftCalendarCard } from '@backstage/plugin-microsoft-calendar';
import React from 'react';
import HomeIcon from '@material-ui/icons/Home';
const clockConfigs: ClockConfig[] = [
{
@@ -55,12 +58,26 @@ const timeFormat: Intl.DateTimeFormatOptions = {
const defaultConfig = [
{
component: 'HomePageSearchBar',
component: 'CompanyLogo',
x: 0,
y: 0,
width: 12,
height: 1,
},
{
component: 'WelcomeTitle',
x: 0,
y: 1,
width: 12,
height: 1,
},
{
component: 'HomePageSearchBar',
x: 0,
y: 2,
width: 12,
height: 1,
},
];
export const homePage = (
@@ -78,6 +95,17 @@ export const homePage = (
<HomePageCalendar />
<MicrosoftCalendarCard />
<HomePageStarredEntities />
<HomePageCompanyLogo />
<WelcomeTitle />
<HomePageToolkit
tools={[
{
url: 'https://backstage.io',
label: 'Backstage Homepage',
icon: <HomeIcon />,
},
]}
/>
</CustomHomepageGrid>
</Content>
</Page>