From 6bd80fa4dcbb80b2336722bd40b91431e5df482e Mon Sep 17 00:00:00 2001 From: Kashish Mittal Date: Fri, 3 Jan 2025 10:20:16 -0500 Subject: [PATCH] update copyright header in theme files Signed-off-by: Kashish Mittal --- workspaces/theme/examples/template/content/index.js | 5 +++-- workspaces/theme/packages/app/e2e-tests/app.test.ts | 2 +- workspaces/theme/packages/app/src/App.test.tsx | 3 ++- workspaces/theme/packages/app/src/App.tsx | 3 ++- workspaces/theme/packages/app/src/apis.ts | 3 ++- .../theme/packages/app/src/components/Root/LogoFull.tsx | 3 ++- .../theme/packages/app/src/components/Root/LogoIcon.tsx | 3 ++- workspaces/theme/packages/app/src/components/Root/Root.tsx | 3 ++- workspaces/theme/packages/app/src/components/Root/index.ts | 3 ++- .../theme/packages/app/src/components/catalog/EntityPage.tsx | 3 ++- .../theme/packages/app/src/components/search/SearchPage.tsx | 3 ++- workspaces/theme/packages/app/src/index.tsx | 3 ++- workspaces/theme/packages/app/src/setupTests.ts | 3 ++- workspaces/theme/packages/backend/src/index.ts | 2 +- workspaces/theme/plugins/bc-test/dev/index.tsx | 3 ++- .../theme/plugins/bc-test/src/components/BCTestPage.tsx | 3 ++- .../theme/plugins/bc-test/src/components/CardExample.tsx | 3 ++- .../theme/plugins/bc-test/src/components/TableExample.tsx | 3 ++- workspaces/theme/plugins/bc-test/src/index.ts | 3 ++- workspaces/theme/plugins/bc-test/src/plugin.test.ts | 3 ++- workspaces/theme/plugins/bc-test/src/plugin.ts | 3 ++- workspaces/theme/plugins/bc-test/src/routes.ts | 3 ++- workspaces/theme/plugins/bc-test/src/setupTests.ts | 3 ++- workspaces/theme/plugins/mui4-test/dev/index.tsx | 3 ++- .../plugins/mui4-test/src/components/FormComponents.tsx | 3 ++- .../theme/plugins/mui4-test/src/components/InlineStyles.tsx | 3 ++- .../theme/plugins/mui4-test/src/components/MUI4TestPage.tsx | 3 ++- .../theme/plugins/mui4-test/src/components/PaperExamples.tsx | 3 ++- .../theme/plugins/mui4-test/src/components/TabExamples.tsx | 3 ++- workspaces/theme/plugins/mui4-test/src/index.ts | 3 ++- workspaces/theme/plugins/mui4-test/src/plugin.test.ts | 3 ++- workspaces/theme/plugins/mui4-test/src/plugin.ts | 3 ++- workspaces/theme/plugins/mui4-test/src/routes.ts | 3 ++- workspaces/theme/plugins/mui4-test/src/setupTests.ts | 3 ++- workspaces/theme/plugins/mui5-test/dev/index.tsx | 3 ++- .../plugins/mui5-test/src/components/FormComponents.tsx | 3 ++- .../theme/plugins/mui5-test/src/components/InlineStyles.tsx | 3 ++- .../theme/plugins/mui5-test/src/components/MUI5TestPage.tsx | 3 ++- .../theme/plugins/mui5-test/src/components/PaperExamples.tsx | 3 ++- .../theme/plugins/mui5-test/src/components/TabExamples.tsx | 3 ++- workspaces/theme/plugins/mui5-test/src/index.ts | 3 ++- workspaces/theme/plugins/mui5-test/src/plugin.test.ts | 3 ++- workspaces/theme/plugins/mui5-test/src/plugin.ts | 3 ++- workspaces/theme/plugins/mui5-test/src/routes.ts | 3 ++- workspaces/theme/plugins/mui5-test/src/setupTests.ts | 3 ++- workspaces/theme/plugins/theme/config.d.ts | 3 ++- workspaces/theme/plugins/theme/dev/index.tsx | 3 ++- workspaces/theme/plugins/theme/src/backstage.test.ts | 3 ++- workspaces/theme/plugins/theme/src/backstage.ts | 3 ++- .../theme/plugins/theme/src/components/ThemeProvider.tsx | 3 ++- workspaces/theme/plugins/theme/src/darkTheme.test.ts | 3 ++- workspaces/theme/plugins/theme/src/darkTheme.ts | 3 ++- workspaces/theme/plugins/theme/src/fonts.tsx | 3 ++- workspaces/theme/plugins/theme/src/hooks/index.ts | 3 ++- workspaces/theme/plugins/theme/src/hooks/useBranding.test.ts | 3 ++- workspaces/theme/plugins/theme/src/hooks/useBranding.ts | 3 ++- workspaces/theme/plugins/theme/src/hooks/useTheme.test.ts | 3 ++- workspaces/theme/plugins/theme/src/hooks/useTheme.ts | 3 ++- .../theme/plugins/theme/src/hooks/useThemeConfig.test.ts | 3 ++- workspaces/theme/plugins/theme/src/hooks/useThemeConfig.ts | 3 ++- .../theme/plugins/theme/src/hooks/useThemeOptions.test.ts | 3 ++- workspaces/theme/plugins/theme/src/hooks/useThemeOptions.ts | 3 ++- workspaces/theme/plugins/theme/src/index.ts | 3 ++- workspaces/theme/plugins/theme/src/lightTheme.test.ts | 3 ++- workspaces/theme/plugins/theme/src/lightTheme.ts | 3 ++- workspaces/theme/plugins/theme/src/rhdh.ts | 3 ++- workspaces/theme/plugins/theme/src/setupTests.ts | 3 ++- workspaces/theme/plugins/theme/src/themes.tsx | 3 ++- workspaces/theme/plugins/theme/src/types.ts | 3 ++- workspaces/theme/plugins/theme/src/typography.ts | 3 ++- .../theme/plugins/theme/src/utils/createComponents.test.ts | 3 ++- workspaces/theme/plugins/theme/src/utils/createComponents.ts | 3 ++- .../theme/plugins/theme/src/utils/createPageTheme.test.ts | 3 ++- workspaces/theme/plugins/theme/src/utils/createPageTheme.ts | 3 ++- .../theme/plugins/theme/src/utils/createPageThemes.test.ts | 3 ++- workspaces/theme/plugins/theme/src/utils/createPageThemes.ts | 3 ++- workspaces/theme/plugins/theme/src/utils/mergeTheme.test.ts | 3 ++- workspaces/theme/plugins/theme/src/utils/mergeTheme.ts | 3 ++- .../theme/plugins/theme/src/utils/migrateTheme.test.ts | 3 ++- workspaces/theme/plugins/theme/src/utils/migrateTheme.ts | 3 ++- 80 files changed, 159 insertions(+), 81 deletions(-) diff --git a/workspaces/theme/examples/template/content/index.js b/workspaces/theme/examples/template/content/index.js index 2c51535c3..337c0f69f 100644 --- a/workspaces/theme/examples/template/content/index.js +++ b/workspaces/theme/examples/template/content/index.js @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,4 +12,5 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ console.log('Hello from ${{ values.name }}!'); + */ +console.log('Hello from ${{ values.name }}!'); diff --git a/workspaces/theme/packages/app/e2e-tests/app.test.ts b/workspaces/theme/packages/app/e2e-tests/app.test.ts index 839ff883d..bb3cc0992 100644 --- a/workspaces/theme/packages/app/e2e-tests/app.test.ts +++ b/workspaces/theme/packages/app/e2e-tests/app.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/workspaces/theme/packages/app/src/App.test.tsx b/workspaces/theme/packages/app/src/App.test.tsx index 1f5b24568..dccc7f182 100644 --- a/workspaces/theme/packages/app/src/App.test.tsx +++ b/workspaces/theme/packages/app/src/App.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { render, waitFor } from '@testing-library/react'; import App from './App'; diff --git a/workspaces/theme/packages/app/src/App.tsx b/workspaces/theme/packages/app/src/App.tsx index f9fa444c2..d3d2651b9 100644 --- a/workspaces/theme/packages/app/src/App.tsx +++ b/workspaces/theme/packages/app/src/App.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { Navigate, Route } from 'react-router-dom'; import { apiDocsPlugin, ApiExplorerPage } from '@backstage/plugin-api-docs'; diff --git a/workspaces/theme/packages/app/src/apis.ts b/workspaces/theme/packages/app/src/apis.ts index 13c72e734..7c0f6fab6 100644 --- a/workspaces/theme/packages/app/src/apis.ts +++ b/workspaces/theme/packages/app/src/apis.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ScmIntegrationsApi, scmIntegrationsApiRef, diff --git a/workspaces/theme/packages/app/src/components/Root/LogoFull.tsx b/workspaces/theme/packages/app/src/components/Root/LogoFull.tsx index 4c4513755..72b742de5 100644 --- a/workspaces/theme/packages/app/src/components/Root/LogoFull.tsx +++ b/workspaces/theme/packages/app/src/components/Root/LogoFull.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { makeStyles } from '@material-ui/core'; diff --git a/workspaces/theme/packages/app/src/components/Root/LogoIcon.tsx b/workspaces/theme/packages/app/src/components/Root/LogoIcon.tsx index b53cf5f01..e3e842b51 100644 --- a/workspaces/theme/packages/app/src/components/Root/LogoIcon.tsx +++ b/workspaces/theme/packages/app/src/components/Root/LogoIcon.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { makeStyles } from '@material-ui/core'; diff --git a/workspaces/theme/packages/app/src/components/Root/Root.tsx b/workspaces/theme/packages/app/src/components/Root/Root.tsx index 01d85c35f..aeb59221a 100644 --- a/workspaces/theme/packages/app/src/components/Root/Root.tsx +++ b/workspaces/theme/packages/app/src/components/Root/Root.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React, { PropsWithChildren } from 'react'; import { makeStyles } from '@material-ui/core'; import HomeIcon from '@material-ui/icons/Home'; diff --git a/workspaces/theme/packages/app/src/components/Root/index.ts b/workspaces/theme/packages/app/src/components/Root/index.ts index 6e933a21b..e2a78f3ed 100644 --- a/workspaces/theme/packages/app/src/components/Root/index.ts +++ b/workspaces/theme/packages/app/src/components/Root/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export { Root } from './Root'; diff --git a/workspaces/theme/packages/app/src/components/catalog/EntityPage.tsx b/workspaces/theme/packages/app/src/components/catalog/EntityPage.tsx index c1f5dc2eb..556871bcd 100644 --- a/workspaces/theme/packages/app/src/components/catalog/EntityPage.tsx +++ b/workspaces/theme/packages/app/src/components/catalog/EntityPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { Button, Grid } from '@material-ui/core'; import { diff --git a/workspaces/theme/packages/app/src/components/search/SearchPage.tsx b/workspaces/theme/packages/app/src/components/search/SearchPage.tsx index 773b412cb..edf0975e6 100644 --- a/workspaces/theme/packages/app/src/components/search/SearchPage.tsx +++ b/workspaces/theme/packages/app/src/components/search/SearchPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { makeStyles, Theme, Grid, Paper } from '@material-ui/core'; diff --git a/workspaces/theme/packages/app/src/index.tsx b/workspaces/theme/packages/app/src/index.tsx index 233899123..4f1b3500e 100644 --- a/workspaces/theme/packages/app/src/index.tsx +++ b/workspaces/theme/packages/app/src/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import '@backstage/cli/asset-types'; import React from 'react'; import ReactDOM from 'react-dom/client'; diff --git a/workspaces/theme/packages/app/src/setupTests.ts b/workspaces/theme/packages/app/src/setupTests.ts index 658016ffd..41f8b20df 100644 --- a/workspaces/theme/packages/app/src/setupTests.ts +++ b/workspaces/theme/packages/app/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import '@testing-library/jest-dom'; diff --git a/workspaces/theme/packages/backend/src/index.ts b/workspaces/theme/packages/backend/src/index.ts index 1016db002..0f10a536f 100644 --- a/workspaces/theme/packages/backend/src/index.ts +++ b/workspaces/theme/packages/backend/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/workspaces/theme/plugins/bc-test/dev/index.tsx b/workspaces/theme/plugins/bc-test/dev/index.tsx index c10ddd957..b49e11db5 100644 --- a/workspaces/theme/plugins/bc-test/dev/index.tsx +++ b/workspaces/theme/plugins/bc-test/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { createDevApp } from '@backstage/dev-utils'; import { bcTestPlugin, BCTestPage } from '../src/plugin'; diff --git a/workspaces/theme/plugins/bc-test/src/components/BCTestPage.tsx b/workspaces/theme/plugins/bc-test/src/components/BCTestPage.tsx index 1f775e265..b467d3652 100644 --- a/workspaces/theme/plugins/bc-test/src/components/BCTestPage.tsx +++ b/workspaces/theme/plugins/bc-test/src/components/BCTestPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { Page, Header, TabbedLayout } from '@backstage/core-components'; import { UserSettingsThemeToggle } from '@backstage/plugin-user-settings'; diff --git a/workspaces/theme/plugins/bc-test/src/components/CardExample.tsx b/workspaces/theme/plugins/bc-test/src/components/CardExample.tsx index 345dc615c..b8f4515f7 100644 --- a/workspaces/theme/plugins/bc-test/src/components/CardExample.tsx +++ b/workspaces/theme/plugins/bc-test/src/components/CardExample.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { InfoCard } from '@backstage/core-components'; diff --git a/workspaces/theme/plugins/bc-test/src/components/TableExample.tsx b/workspaces/theme/plugins/bc-test/src/components/TableExample.tsx index c304bd20c..c05858bd5 100644 --- a/workspaces/theme/plugins/bc-test/src/components/TableExample.tsx +++ b/workspaces/theme/plugins/bc-test/src/components/TableExample.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { Table, TableColumn, Avatar } from '@backstage/core-components'; diff --git a/workspaces/theme/plugins/bc-test/src/index.ts b/workspaces/theme/plugins/bc-test/src/index.ts index 636952634..f7ae27a5a 100644 --- a/workspaces/theme/plugins/bc-test/src/index.ts +++ b/workspaces/theme/plugins/bc-test/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export * from './plugin'; diff --git a/workspaces/theme/plugins/bc-test/src/plugin.test.ts b/workspaces/theme/plugins/bc-test/src/plugin.test.ts index 86e0a1a3c..a6037e0ae 100644 --- a/workspaces/theme/plugins/bc-test/src/plugin.test.ts +++ b/workspaces/theme/plugins/bc-test/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { bcTestPlugin } from './plugin'; describe('bc-test', () => { diff --git a/workspaces/theme/plugins/bc-test/src/plugin.ts b/workspaces/theme/plugins/bc-test/src/plugin.ts index 1ccd085a0..ab03089b8 100644 --- a/workspaces/theme/plugins/bc-test/src/plugin.ts +++ b/workspaces/theme/plugins/bc-test/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { createPlugin, createRoutableExtension, diff --git a/workspaces/theme/plugins/bc-test/src/routes.ts b/workspaces/theme/plugins/bc-test/src/routes.ts index b87ea31a7..e1e310c01 100644 --- a/workspaces/theme/plugins/bc-test/src/routes.ts +++ b/workspaces/theme/plugins/bc-test/src/routes.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { createRouteRef } from '@backstage/core-plugin-api'; export const rootRouteRef = createRouteRef({ diff --git a/workspaces/theme/plugins/bc-test/src/setupTests.ts b/workspaces/theme/plugins/bc-test/src/setupTests.ts index 658016ffd..41f8b20df 100644 --- a/workspaces/theme/plugins/bc-test/src/setupTests.ts +++ b/workspaces/theme/plugins/bc-test/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import '@testing-library/jest-dom'; diff --git a/workspaces/theme/plugins/mui4-test/dev/index.tsx b/workspaces/theme/plugins/mui4-test/dev/index.tsx index d32059816..48faf0c0c 100644 --- a/workspaces/theme/plugins/mui4-test/dev/index.tsx +++ b/workspaces/theme/plugins/mui4-test/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { createDevApp } from '@backstage/dev-utils'; import { mui4TestPlugin, MUI4TestPage } from '../src/plugin'; diff --git a/workspaces/theme/plugins/mui4-test/src/components/FormComponents.tsx b/workspaces/theme/plugins/mui4-test/src/components/FormComponents.tsx index 1591ca0f9..bfa5f6d4a 100644 --- a/workspaces/theme/plugins/mui4-test/src/components/FormComponents.tsx +++ b/workspaces/theme/plugins/mui4-test/src/components/FormComponents.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { InfoCard } from '@backstage/core-components'; import Button, { ButtonProps } from '@material-ui/core/Button'; diff --git a/workspaces/theme/plugins/mui4-test/src/components/InlineStyles.tsx b/workspaces/theme/plugins/mui4-test/src/components/InlineStyles.tsx index b6fccded8..456f0ce8c 100644 --- a/workspaces/theme/plugins/mui4-test/src/components/InlineStyles.tsx +++ b/workspaces/theme/plugins/mui4-test/src/components/InlineStyles.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { InfoCard } from '@backstage/core-components'; import Button from '@material-ui/core/Button'; diff --git a/workspaces/theme/plugins/mui4-test/src/components/MUI4TestPage.tsx b/workspaces/theme/plugins/mui4-test/src/components/MUI4TestPage.tsx index 584b415b6..d46bbb249 100644 --- a/workspaces/theme/plugins/mui4-test/src/components/MUI4TestPage.tsx +++ b/workspaces/theme/plugins/mui4-test/src/components/MUI4TestPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { Page, Header, TabbedLayout } from '@backstage/core-components'; import { UserSettingsThemeToggle } from '@backstage/plugin-user-settings'; diff --git a/workspaces/theme/plugins/mui4-test/src/components/PaperExamples.tsx b/workspaces/theme/plugins/mui4-test/src/components/PaperExamples.tsx index 6e236bdab..be7012de2 100644 --- a/workspaces/theme/plugins/mui4-test/src/components/PaperExamples.tsx +++ b/workspaces/theme/plugins/mui4-test/src/components/PaperExamples.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import Paper from '@material-ui/core/Paper'; diff --git a/workspaces/theme/plugins/mui4-test/src/components/TabExamples.tsx b/workspaces/theme/plugins/mui4-test/src/components/TabExamples.tsx index eb65de5f8..8bb41046b 100644 --- a/workspaces/theme/plugins/mui4-test/src/components/TabExamples.tsx +++ b/workspaces/theme/plugins/mui4-test/src/components/TabExamples.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import Tabs, { TabsProps } from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; diff --git a/workspaces/theme/plugins/mui4-test/src/index.ts b/workspaces/theme/plugins/mui4-test/src/index.ts index 636952634..f7ae27a5a 100644 --- a/workspaces/theme/plugins/mui4-test/src/index.ts +++ b/workspaces/theme/plugins/mui4-test/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export * from './plugin'; diff --git a/workspaces/theme/plugins/mui4-test/src/plugin.test.ts b/workspaces/theme/plugins/mui4-test/src/plugin.test.ts index 9796955aa..04a4f584a 100644 --- a/workspaces/theme/plugins/mui4-test/src/plugin.test.ts +++ b/workspaces/theme/plugins/mui4-test/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { mui4TestPlugin } from './plugin'; describe('mui4-test', () => { diff --git a/workspaces/theme/plugins/mui4-test/src/plugin.ts b/workspaces/theme/plugins/mui4-test/src/plugin.ts index c895f8295..76d6243ca 100644 --- a/workspaces/theme/plugins/mui4-test/src/plugin.ts +++ b/workspaces/theme/plugins/mui4-test/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { createPlugin, createRoutableExtension, diff --git a/workspaces/theme/plugins/mui4-test/src/routes.ts b/workspaces/theme/plugins/mui4-test/src/routes.ts index d9bbe097f..7fb490b78 100644 --- a/workspaces/theme/plugins/mui4-test/src/routes.ts +++ b/workspaces/theme/plugins/mui4-test/src/routes.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { createRouteRef } from '@backstage/core-plugin-api'; export const rootRouteRef = createRouteRef({ diff --git a/workspaces/theme/plugins/mui4-test/src/setupTests.ts b/workspaces/theme/plugins/mui4-test/src/setupTests.ts index 658016ffd..41f8b20df 100644 --- a/workspaces/theme/plugins/mui4-test/src/setupTests.ts +++ b/workspaces/theme/plugins/mui4-test/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import '@testing-library/jest-dom'; diff --git a/workspaces/theme/plugins/mui5-test/dev/index.tsx b/workspaces/theme/plugins/mui5-test/dev/index.tsx index b29730a72..2c6302d7a 100644 --- a/workspaces/theme/plugins/mui5-test/dev/index.tsx +++ b/workspaces/theme/plugins/mui5-test/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { createDevApp } from '@backstage/dev-utils'; import { mui5TestPlugin, MUI5TestPage } from '../src/plugin'; diff --git a/workspaces/theme/plugins/mui5-test/src/components/FormComponents.tsx b/workspaces/theme/plugins/mui5-test/src/components/FormComponents.tsx index 02f025c5e..961c1e782 100644 --- a/workspaces/theme/plugins/mui5-test/src/components/FormComponents.tsx +++ b/workspaces/theme/plugins/mui5-test/src/components/FormComponents.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { InfoCard } from '@backstage/core-components'; import Button, { ButtonProps } from '@mui/material/Button'; diff --git a/workspaces/theme/plugins/mui5-test/src/components/InlineStyles.tsx b/workspaces/theme/plugins/mui5-test/src/components/InlineStyles.tsx index eb4a5d467..43197cd5a 100644 --- a/workspaces/theme/plugins/mui5-test/src/components/InlineStyles.tsx +++ b/workspaces/theme/plugins/mui5-test/src/components/InlineStyles.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { InfoCard } from '@backstage/core-components'; import Button from '@mui/material/Button'; diff --git a/workspaces/theme/plugins/mui5-test/src/components/MUI5TestPage.tsx b/workspaces/theme/plugins/mui5-test/src/components/MUI5TestPage.tsx index d3e63710f..42a1c0d22 100644 --- a/workspaces/theme/plugins/mui5-test/src/components/MUI5TestPage.tsx +++ b/workspaces/theme/plugins/mui5-test/src/components/MUI5TestPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { Page, Header, TabbedLayout } from '@backstage/core-components'; import { UserSettingsThemeToggle } from '@backstage/plugin-user-settings'; diff --git a/workspaces/theme/plugins/mui5-test/src/components/PaperExamples.tsx b/workspaces/theme/plugins/mui5-test/src/components/PaperExamples.tsx index b4cd221da..da2bb28cc 100644 --- a/workspaces/theme/plugins/mui5-test/src/components/PaperExamples.tsx +++ b/workspaces/theme/plugins/mui5-test/src/components/PaperExamples.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import Paper from '@mui/material/Paper'; diff --git a/workspaces/theme/plugins/mui5-test/src/components/TabExamples.tsx b/workspaces/theme/plugins/mui5-test/src/components/TabExamples.tsx index 26b1f1ff2..4d4293f26 100644 --- a/workspaces/theme/plugins/mui5-test/src/components/TabExamples.tsx +++ b/workspaces/theme/plugins/mui5-test/src/components/TabExamples.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import Tabs, { TabsProps } from '@mui/material/Tabs'; import Tab from '@mui/material/Tab'; diff --git a/workspaces/theme/plugins/mui5-test/src/index.ts b/workspaces/theme/plugins/mui5-test/src/index.ts index 636952634..f7ae27a5a 100644 --- a/workspaces/theme/plugins/mui5-test/src/index.ts +++ b/workspaces/theme/plugins/mui5-test/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export * from './plugin'; diff --git a/workspaces/theme/plugins/mui5-test/src/plugin.test.ts b/workspaces/theme/plugins/mui5-test/src/plugin.test.ts index 1ca3e325e..4a419ab8f 100644 --- a/workspaces/theme/plugins/mui5-test/src/plugin.test.ts +++ b/workspaces/theme/plugins/mui5-test/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { mui5TestPlugin } from './plugin'; describe('mui5-test', () => { diff --git a/workspaces/theme/plugins/mui5-test/src/plugin.ts b/workspaces/theme/plugins/mui5-test/src/plugin.ts index 72e414ef4..445e9791f 100644 --- a/workspaces/theme/plugins/mui5-test/src/plugin.ts +++ b/workspaces/theme/plugins/mui5-test/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { createPlugin, createRoutableExtension, diff --git a/workspaces/theme/plugins/mui5-test/src/routes.ts b/workspaces/theme/plugins/mui5-test/src/routes.ts index 3083e2ac9..59180ea06 100644 --- a/workspaces/theme/plugins/mui5-test/src/routes.ts +++ b/workspaces/theme/plugins/mui5-test/src/routes.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { createRouteRef } from '@backstage/core-plugin-api'; export const rootRouteRef = createRouteRef({ diff --git a/workspaces/theme/plugins/mui5-test/src/setupTests.ts b/workspaces/theme/plugins/mui5-test/src/setupTests.ts index 658016ffd..41f8b20df 100644 --- a/workspaces/theme/plugins/mui5-test/src/setupTests.ts +++ b/workspaces/theme/plugins/mui5-test/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import '@testing-library/jest-dom'; diff --git a/workspaces/theme/plugins/theme/config.d.ts b/workspaces/theme/plugins/theme/config.d.ts index a517be4a2..4c463e952 100644 --- a/workspaces/theme/plugins/theme/config.d.ts +++ b/workspaces/theme/plugins/theme/config.d.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ThemeConfig } from './src'; export interface Config { diff --git a/workspaces/theme/plugins/theme/dev/index.tsx b/workspaces/theme/plugins/theme/dev/index.tsx index 49890356f..f7b0fcdf9 100644 --- a/workspaces/theme/plugins/theme/dev/index.tsx +++ b/workspaces/theme/plugins/theme/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { createDevApp } from '@backstage/dev-utils'; import { getAllThemes } from '../src'; diff --git a/workspaces/theme/plugins/theme/src/backstage.test.ts b/workspaces/theme/plugins/theme/src/backstage.test.ts index 9214ffd64..1b830bfcf 100644 --- a/workspaces/theme/plugins/theme/src/backstage.test.ts +++ b/workspaces/theme/plugins/theme/src/backstage.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { getDefaultThemeConfig } from './backstage'; // This test will fail when backstage theme is updated. diff --git a/workspaces/theme/plugins/theme/src/backstage.ts b/workspaces/theme/plugins/theme/src/backstage.ts index d93375760..ae9f67189 100644 --- a/workspaces/theme/plugins/theme/src/backstage.ts +++ b/workspaces/theme/plugins/theme/src/backstage.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { palettes } from '@backstage/theme'; import { ThemeConfig } from './types'; diff --git a/workspaces/theme/plugins/theme/src/components/ThemeProvider.tsx b/workspaces/theme/plugins/theme/src/components/ThemeProvider.tsx index dce078fdf..4012100ca 100644 --- a/workspaces/theme/plugins/theme/src/components/ThemeProvider.tsx +++ b/workspaces/theme/plugins/theme/src/components/ThemeProvider.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { AppTheme } from '@backstage/core-plugin-api'; import { UnifiedTheme, UnifiedThemeProvider } from '@backstage/theme'; diff --git a/workspaces/theme/plugins/theme/src/darkTheme.test.ts b/workspaces/theme/plugins/theme/src/darkTheme.test.ts index c4dded9d8..4a14f7c6f 100644 --- a/workspaces/theme/plugins/theme/src/darkTheme.test.ts +++ b/workspaces/theme/plugins/theme/src/darkTheme.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { customDarkTheme } from './darkTheme'; describe('customDarkTheme', () => { diff --git a/workspaces/theme/plugins/theme/src/darkTheme.ts b/workspaces/theme/plugins/theme/src/darkTheme.ts index 1834c9137..11c9575b6 100644 --- a/workspaces/theme/plugins/theme/src/darkTheme.ts +++ b/workspaces/theme/plugins/theme/src/darkTheme.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { palettes } from '@backstage/theme'; import { type PaletteOptions } from '@mui/material/styles'; diff --git a/workspaces/theme/plugins/theme/src/fonts.tsx b/workspaces/theme/plugins/theme/src/fonts.tsx index eb0f4eff3..3b51a7d4b 100644 --- a/workspaces/theme/plugins/theme/src/fonts.tsx +++ b/workspaces/theme/plugins/theme/src/fonts.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import RedHatDisplay from './assets/fonts/RedHatDisplay/RedHatDisplayVF.woff2'; import RedHatDisplayItalic from './assets/fonts/RedHatDisplay/RedHatDisplayVF-Italic.woff2'; import RedHatText from './assets/fonts/RedHatText/RedHatTextVF.woff2'; diff --git a/workspaces/theme/plugins/theme/src/hooks/index.ts b/workspaces/theme/plugins/theme/src/hooks/index.ts index c9d16e879..41c6a83ed 100644 --- a/workspaces/theme/plugins/theme/src/hooks/index.ts +++ b/workspaces/theme/plugins/theme/src/hooks/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export * from './useBranding'; export * from './useThemeConfig'; export * from './useThemeOptions'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useBranding.test.ts b/workspaces/theme/plugins/theme/src/hooks/useBranding.test.ts index 48b9a9f73..daef3803f 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useBranding.test.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useBranding.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { renderHook } from '@testing-library/react-hooks'; import { useApi } from '@backstage/core-plugin-api'; import { MockConfigApi } from '@backstage/test-utils'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useBranding.ts b/workspaces/theme/plugins/theme/src/hooks/useBranding.ts index 4ad167c75..a09bec1f4 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useBranding.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useBranding.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { ConfigApi, configApiRef, useApi } from '@backstage/core-plugin-api'; import { Branding } from '../types'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useTheme.test.ts b/workspaces/theme/plugins/theme/src/hooks/useTheme.test.ts index e4652db74..d9dd90aff 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useTheme.test.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useTheme.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { renderHook } from '@testing-library/react-hooks'; import { useTheme } from './useTheme'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useTheme.ts b/workspaces/theme/plugins/theme/src/hooks/useTheme.ts index 62a1f9e9f..fb244469e 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useTheme.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useTheme.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { createUnifiedTheme, type UnifiedTheme } from '@backstage/theme'; import type { ThemeConfig } from '../types'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.test.ts b/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.test.ts index 9a47d10e0..b9a3a1bcc 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.test.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { renderHook } from '@testing-library/react-hooks'; import { useApi } from '@backstage/core-plugin-api'; import { MockConfigApi } from '@backstage/test-utils'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.ts b/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.ts index a6a70b2f7..146365bb7 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useThemeConfig.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { ConfigApi, configApiRef, useApi } from '@backstage/core-plugin-api'; import { ThemeConfig } from '../types'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.test.ts b/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.test.ts index 9bcdbbf2e..f41c83b14 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.test.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { renderHook } from '@testing-library/react-hooks'; import { useThemeOptions } from './useThemeOptions'; diff --git a/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.ts b/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.ts index 2b7e6e827..755106662 100644 --- a/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.ts +++ b/workspaces/theme/plugins/theme/src/hooks/useThemeOptions.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { type UnifiedThemeOptions } from '@backstage/theme'; import type { ThemeConfig } from '../types'; diff --git a/workspaces/theme/plugins/theme/src/index.ts b/workspaces/theme/plugins/theme/src/index.ts index cfc068e98..3a8d1adb6 100644 --- a/workspaces/theme/plugins/theme/src/index.ts +++ b/workspaces/theme/plugins/theme/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export * from './hooks'; export * from './themes'; export type { diff --git a/workspaces/theme/plugins/theme/src/lightTheme.test.ts b/workspaces/theme/plugins/theme/src/lightTheme.test.ts index 5ce8f3e48..a52d449b6 100644 --- a/workspaces/theme/plugins/theme/src/lightTheme.test.ts +++ b/workspaces/theme/plugins/theme/src/lightTheme.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { customLightTheme } from './lightTheme'; describe('customLightTheme', () => { diff --git a/workspaces/theme/plugins/theme/src/lightTheme.ts b/workspaces/theme/plugins/theme/src/lightTheme.ts index ca2d814e4..cd3c1f402 100644 --- a/workspaces/theme/plugins/theme/src/lightTheme.ts +++ b/workspaces/theme/plugins/theme/src/lightTheme.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { palettes } from '@backstage/theme'; import { type PaletteOptions } from '@mui/material/styles'; diff --git a/workspaces/theme/plugins/theme/src/rhdh.ts b/workspaces/theme/plugins/theme/src/rhdh.ts index 14529af8d..64ebbcc06 100644 --- a/workspaces/theme/plugins/theme/src/rhdh.ts +++ b/workspaces/theme/plugins/theme/src/rhdh.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ThemeConfig } from './types'; import { customDarkTheme } from './darkTheme'; import { customLightTheme } from './lightTheme'; diff --git a/workspaces/theme/plugins/theme/src/setupTests.ts b/workspaces/theme/plugins/theme/src/setupTests.ts index 658016ffd..41f8b20df 100644 --- a/workspaces/theme/plugins/theme/src/setupTests.ts +++ b/workspaces/theme/plugins/theme/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,4 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import '@testing-library/jest-dom'; diff --git a/workspaces/theme/plugins/theme/src/themes.tsx b/workspaces/theme/plugins/theme/src/themes.tsx index 02e478116..074e06602 100644 --- a/workspaces/theme/plugins/theme/src/themes.tsx +++ b/workspaces/theme/plugins/theme/src/themes.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import React from 'react'; import { AppTheme } from '@backstage/core-plugin-api'; import { themes } from '@backstage/theme'; diff --git a/workspaces/theme/plugins/theme/src/types.ts b/workspaces/theme/plugins/theme/src/types.ts index 91b1bdecf..95a87d736 100644 --- a/workspaces/theme/plugins/theme/src/types.ts +++ b/workspaces/theme/plugins/theme/src/types.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { type UnifiedThemeOptions } from '@backstage/theme'; export type BackstageThemePalette = UnifiedThemeOptions['palette']; diff --git a/workspaces/theme/plugins/theme/src/typography.ts b/workspaces/theme/plugins/theme/src/typography.ts index cfa9da168..9ba734261 100644 --- a/workspaces/theme/plugins/theme/src/typography.ts +++ b/workspaces/theme/plugins/theme/src/typography.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { BackstageTypography } from '@backstage/theme'; import { redHatFonts } from './fonts'; diff --git a/workspaces/theme/plugins/theme/src/utils/createComponents.test.ts b/workspaces/theme/plugins/theme/src/utils/createComponents.test.ts index 9dd9659dc..eba1c5509 100644 --- a/workspaces/theme/plugins/theme/src/utils/createComponents.test.ts +++ b/workspaces/theme/plugins/theme/src/utils/createComponents.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import type { ThemeConfig } from '../types'; import { createComponents, type Components } from './createComponents'; diff --git a/workspaces/theme/plugins/theme/src/utils/createComponents.ts b/workspaces/theme/plugins/theme/src/utils/createComponents.ts index c68602608..c3f85dd60 100644 --- a/workspaces/theme/plugins/theme/src/utils/createComponents.ts +++ b/workspaces/theme/plugins/theme/src/utils/createComponents.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { type UnifiedThemeOptions, defaultComponentThemes as backstageComponents, diff --git a/workspaces/theme/plugins/theme/src/utils/createPageTheme.test.ts b/workspaces/theme/plugins/theme/src/utils/createPageTheme.test.ts index b7a7884b5..92c958a34 100644 --- a/workspaces/theme/plugins/theme/src/utils/createPageTheme.test.ts +++ b/workspaces/theme/plugins/theme/src/utils/createPageTheme.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { PageTheme, shapes } from '@backstage/theme'; import { ThemeConfigPageTheme } from '../types'; import { createPageTheme } from './createPageTheme'; diff --git a/workspaces/theme/plugins/theme/src/utils/createPageTheme.ts b/workspaces/theme/plugins/theme/src/utils/createPageTheme.ts index 756498c6d..605aec492 100644 --- a/workspaces/theme/plugins/theme/src/utils/createPageTheme.ts +++ b/workspaces/theme/plugins/theme/src/utils/createPageTheme.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { PageTheme, genPageTheme, shapes } from '@backstage/theme'; import { ThemeConfigPageTheme } from '../types'; diff --git a/workspaces/theme/plugins/theme/src/utils/createPageThemes.test.ts b/workspaces/theme/plugins/theme/src/utils/createPageThemes.test.ts index 915b85bef..1f0f78702 100644 --- a/workspaces/theme/plugins/theme/src/utils/createPageThemes.test.ts +++ b/workspaces/theme/plugins/theme/src/utils/createPageThemes.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { PageTheme, shapes } from '@backstage/theme'; import { ThemeConfig } from '../types'; import { createPageThemes } from './createPageThemes'; diff --git a/workspaces/theme/plugins/theme/src/utils/createPageThemes.ts b/workspaces/theme/plugins/theme/src/utils/createPageThemes.ts index 3b12a0468..b32c5d6eb 100644 --- a/workspaces/theme/plugins/theme/src/utils/createPageThemes.ts +++ b/workspaces/theme/plugins/theme/src/utils/createPageThemes.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { PageTheme } from '@backstage/theme'; import { ThemeConfig } from '../types'; import { createPageTheme } from './createPageTheme'; diff --git a/workspaces/theme/plugins/theme/src/utils/mergeTheme.test.ts b/workspaces/theme/plugins/theme/src/utils/mergeTheme.test.ts index 7481c98ec..f71f3acb0 100644 --- a/workspaces/theme/plugins/theme/src/utils/mergeTheme.test.ts +++ b/workspaces/theme/plugins/theme/src/utils/mergeTheme.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { UnifiedThemeOptions } from '@backstage/theme'; import { mergeUnifiedThemeOptions } from './mergeTheme'; diff --git a/workspaces/theme/plugins/theme/src/utils/mergeTheme.ts b/workspaces/theme/plugins/theme/src/utils/mergeTheme.ts index 292583e22..fdd97e5af 100644 --- a/workspaces/theme/plugins/theme/src/utils/mergeTheme.ts +++ b/workspaces/theme/plugins/theme/src/utils/mergeTheme.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { ThemeConfig } from '../types'; function isObject( diff --git a/workspaces/theme/plugins/theme/src/utils/migrateTheme.test.ts b/workspaces/theme/plugins/theme/src/utils/migrateTheme.test.ts index 31a3aa13d..195927a60 100644 --- a/workspaces/theme/plugins/theme/src/utils/migrateTheme.test.ts +++ b/workspaces/theme/plugins/theme/src/utils/migrateTheme.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import { BackstagePaletteAdditions } from '@backstage/theme'; import { ThemeConfig } from '../types'; import { diff --git a/workspaces/theme/plugins/theme/src/utils/migrateTheme.ts b/workspaces/theme/plugins/theme/src/utils/migrateTheme.ts index cf48fe396..cd9b2fb70 100644 --- a/workspaces/theme/plugins/theme/src/utils/migrateTheme.ts +++ b/workspaces/theme/plugins/theme/src/utils/migrateTheme.ts @@ -1,5 +1,5 @@ /* - * Copyright 2024 The Backstage Authors + * Copyright 2025 The RHDH Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import type { BackstagePaletteAdditions } from '@backstage/theme'; import type { SimplePaletteColorOptions } from '@mui/material/styles'; import type { ThemeConfig } from '../types';