diff --git a/.changeset/proud-trees-fly.md b/.changeset/proud-trees-fly.md new file mode 100644 index 000000000..3ebfd1347 --- /dev/null +++ b/.changeset/proud-trees-fly.md @@ -0,0 +1,12 @@ +--- +'@roadiehq/backstage-plugin-argo-cd': patch +'@roadiehq/backstage-plugin-aws-lambda': patch +'@roadiehq/backstage-plugin-buildkite': patch +'@roadiehq/backstage-plugin-datadog': patch +'@roadiehq/backstage-plugin-github-pull-requests': patch +'@roadiehq/backstage-plugin-jira': patch +'@roadiehq/backstage-plugin-security-insights': patch +'@roadiehq/backstage-plugin-travis-ci': patch +--- + +Change notice headers to contain Larder Software Limited diff --git a/plugins/frontend/backstage-plugin-argo-cd/src/Router.tsx b/plugins/frontend/backstage-plugin-argo-cd/src/Router.tsx index 998c1b63e..0bdcd83a5 100644 --- a/plugins/frontend/backstage-plugin-argo-cd/src/Router.tsx +++ b/plugins/frontend/backstage-plugin-argo-cd/src/Router.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; import { Routes, Route } from 'react-router-dom'; diff --git a/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDDetailsCard.tsx b/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDDetailsCard.tsx index e478b6e56..3b9ef87ea 100644 --- a/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDDetailsCard.tsx +++ b/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDDetailsCard.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Box, LinearProgress, Link } from '@material-ui/core'; import { Entity } from '@backstage/catalog-model'; diff --git a/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDHistoryCard.tsx b/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDHistoryCard.tsx index 927f595f3..d3ba9b675 100644 --- a/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDHistoryCard.tsx +++ b/plugins/frontend/backstage-plugin-argo-cd/src/components/ArgoCDHistoryCard.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; import { InfoCard, diff --git a/plugins/frontend/backstage-plugin-argo-cd/src/components/useAppDetails.ts b/plugins/frontend/backstage-plugin-argo-cd/src/components/useAppDetails.ts index 8ee3ffeac..c9a67e8c1 100644 --- a/plugins/frontend/backstage-plugin-argo-cd/src/components/useAppDetails.ts +++ b/plugins/frontend/backstage-plugin-argo-cd/src/components/useAppDetails.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { configApiRef, errorApiRef, useApi } from '@backstage/core-plugin-api'; import { useAsyncRetry } from 'react-use'; import { argoCDApiRef } from '../api'; diff --git a/plugins/frontend/backstage-plugin-argo-cd/src/components/useArgoCDAppData.ts b/plugins/frontend/backstage-plugin-argo-cd/src/components/useArgoCDAppData.ts index fe48d2787..201618a70 100644 --- a/plugins/frontend/backstage-plugin-argo-cd/src/components/useArgoCDAppData.ts +++ b/plugins/frontend/backstage-plugin-argo-cd/src/components/useArgoCDAppData.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; export const ARGOCD_ANNOTATION_APP_NAME = 'argocd/app-name'; diff --git a/plugins/frontend/backstage-plugin-argo-cd/src/plugin.test.tsx b/plugins/frontend/backstage-plugin-argo-cd/src/plugin.test.tsx index 96d8d6173..aa713377f 100644 --- a/plugins/frontend/backstage-plugin-argo-cd/src/plugin.test.tsx +++ b/plugins/frontend/backstage-plugin-argo-cd/src/plugin.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { TableColumn } from '@backstage/core-components'; import { diff --git a/plugins/frontend/backstage-plugin-argo-cd/src/setupTests.ts b/plugins/frontend/backstage-plugin-argo-cd/src/setupTests.ts index d2e30b2ba..0b17b1712 100644 --- a/plugins/frontend/backstage-plugin-argo-cd/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-argo-cd/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import '@testing-library/jest-dom'; import 'cross-fetch/polyfill'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/dev/index.tsx b/plugins/frontend/backstage-plugin-aws-lambda/dev/index.tsx index 52db1b6e8..1b2554516 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/dev/index.tsx +++ b/plugins/frontend/backstage-plugin-aws-lambda/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createDevApp } from '@backstage/dev-utils'; import { awsLambdaPlugin } from '../src/plugin'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaApi.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaApi.ts index 104a97e55..788451a36 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaApi.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaApi.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createApiRef } from '@backstage/core-plugin-api'; import { LambdaData } from '../types'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaClient.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaClient.ts index f19b0f16e..984ba4a9b 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaClient.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/api/AWSLambdaClient.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import AWS from 'aws-sdk'; import { AwsLambdaApi } from './AWSLambdaApi'; import { LambdaData } from '../types'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/api/index.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/api/index.ts index eb078b40d..5dcb73b1e 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/api/index.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/api/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,5 +14,6 @@ * limitations under the License. */ + export * from './AWSLambdaApi'; export * from './AWSLambdaClient'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.test.tsx b/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.test.tsx index 10dd0268e..3b49efd3a 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.test.tsx +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { render } from '@testing-library/react'; import { diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.tsx b/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.tsx index c6f46b984..c8c8e3d13 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.tsx +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/components/AWSLambdaOverview/AWSLambdaOverview.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Typography, diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useLambda.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useLambda.ts index a30817293..28b82a6aa 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useLambda.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useLambda.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useAsync, useAsyncRetry } from 'react-use'; import { useApi, diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useServiceEntityAnnotations.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useServiceEntityAnnotations.ts index 0690cb367..d691b1cd6 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useServiceEntityAnnotations.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/hooks/useServiceEntityAnnotations.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; export const AWS_LAMBDA_ANNOTATION = 'aws.com/lambda-function-name'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/index.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/index.ts index b9061437b..411048a60 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/index.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export * from './plugin'; export * from './api'; export * from './components/AWSLambdaOverview/AWSLambdaOverview'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.test.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.test.ts index d0a39320c..804e90b6e 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.test.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { awsLambdaPlugin } from './plugin'; describe('aws-lambda', () => { diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.ts index d34dcade3..48d63e27d 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createApiFactory, createComponentExtension, diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/setupTests.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/setupTests.ts index 1eab5ec03..a1a987748 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import '@testing-library/jest-dom'; import 'cross-fetch/polyfill'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/state/AppState.tsx b/plugins/frontend/backstage-plugin-aws-lambda/src/state/AppState.tsx index 8eb46a2e3..4b67a382a 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/state/AppState.tsx +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/state/AppState.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, { FC, useReducer, Dispatch, Reducer } from 'react'; import { awsLambdaApiRef } from '../api'; import { State, Action } from './types'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/state/index.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/state/index.ts index aa9210f57..5bc29bd88 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/state/index.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/state/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,5 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export * from './AppState'; export * from './useSettings'; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/state/types.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/state/types.ts index 81bb505b6..15e47707b 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/state/types.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/state/types.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export type Settings = { identityPoolId: string; region: string; diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/state/useAsyncPolling.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/state/useAsyncPolling.ts index 27e54daa6..bfae08637 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/state/useAsyncPolling.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/state/useAsyncPolling.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useRef } from 'react'; export const useAsyncPolling = ( diff --git a/plugins/frontend/backstage-plugin-aws-lambda/src/state/useSettings.ts b/plugins/frontend/backstage-plugin-aws-lambda/src/state/useSettings.ts index f33bda741..f2fb41b81 100644 --- a/plugins/frontend/backstage-plugin-aws-lambda/src/state/useSettings.ts +++ b/plugins/frontend/backstage-plugin-aws-lambda/src/state/useSettings.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { errorApiRef, useApi } from '@backstage/core-plugin-api'; import { useContext, useEffect } from 'react'; import { AppContext, STORAGE_KEY } from './AppState'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/api/index.ts b/plugins/frontend/backstage-plugin-buildkite/src/api/index.ts index 155e025c4..1ddae45ca 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/api/index.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/api/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createApiRef, DiscoveryApi } from '@backstage/core-plugin-api'; export const buildKiteApiRef = createApiRef({ diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/BuildKiteBuildView.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/BuildKiteBuildView.tsx index 0e7382c1b..138e53744 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/BuildKiteBuildView.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/BuildKiteBuildView.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, { FC, useEffect } from 'react'; import { Typography, diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx index 65b72fd3a..6cb943946 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/components/ActionOutput.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React, { FC, Suspense, useEffect } from 'react'; import { Accordion, diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/index.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/index.ts index 9fdd5024e..b0ceb13be 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/index.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildView/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { default } from './BuildKiteBuildView'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.test.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.test.tsx index 63e38501a..a7cb5e876 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.test.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { render, waitFor } from '@testing-library/react'; import { AnyApiRef, errorApiRef } from '@backstage/core-plugin-api'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx index 5991866ff..0a5c07bab 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/BuildKiteBuildsTable.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, { FC } from 'react'; import { generatePath, Link as RouterLink } from 'react-router-dom'; import { Box, IconButton, Link, Typography, Tooltip } from '@material-ui/core'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/components/BuildKiteRunStatus.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/components/BuildKiteRunStatus.tsx index 41ccbb6f4..37ae43003 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/components/BuildKiteRunStatus.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/components/BuildKiteRunStatus.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { StatusPending, StatusRunning, diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/index.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/index.ts index ba983b0aa..e69057e17 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/index.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/BuildKiteBuildsTable/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { default } from './BuildKiteBuildsTable'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/Router.tsx b/plugins/frontend/backstage-plugin-buildkite/src/components/Router.tsx index e4382092d..d9c198350 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/Router.tsx +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/Router.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { Route, Routes } from 'react-router'; import { Entity } from '@backstage/catalog-model'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/routeRefs.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/routeRefs.ts index 30919d82c..c6c7691ba 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/routeRefs.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/routeRefs.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createSubRouteRef } from '@backstage/core-plugin-api'; import { buildViewRouteRef } from '../plugin'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/useBuilds.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/useBuilds.ts index f17b8d8f3..85aa71792 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/useBuilds.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/useBuilds.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { errorApiRef, useApi } from '@backstage/core-plugin-api'; import { useState } from 'react'; import { useAsyncRetry } from 'react-use'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/useLog.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/useLog.ts index a557f2854..d2de65977 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/useLog.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/useLog.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useCallback } from 'react'; import { errorApiRef, useApi } from '@backstage/core-plugin-api'; import { useAsyncFn } from 'react-use'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/useProjectEntity.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/useProjectEntity.ts index a00bfebdb..9a5646464 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/useProjectEntity.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/useProjectEntity.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; export const useProjectEntity = (entity: Entity) => { diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/useSingleBuild.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/useSingleBuild.ts index 3fabd0bbb..4d5177aa1 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/useSingleBuild.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/useSingleBuild.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { errorApiRef, useApi } from '@backstage/core-plugin-api'; import { useAsyncFn } from 'react-use'; import { buildKiteApiRef } from '../api'; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/components/utils.ts b/plugins/frontend/backstage-plugin-buildkite/src/components/utils.ts index 95db146e3..0bf48e065 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/components/utils.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/components/utils.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export const generateRequestUrl = (url: string) => { const splitUrl = url.split('/').slice(4).join('/'); return splitUrl; diff --git a/plugins/frontend/backstage-plugin-buildkite/src/consts.ts b/plugins/frontend/backstage-plugin-buildkite/src/consts.ts index b06186deb..7e2b13081 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/consts.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/consts.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ * limitations under the License. */ + export const BUILDKITE_ANNOTATION = 'buildkite.com/project-slug'; \ No newline at end of file diff --git a/plugins/frontend/backstage-plugin-buildkite/src/index.ts b/plugins/frontend/backstage-plugin-buildkite/src/index.ts index 65a927488..397ed7578 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/index.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { /** * @deprecated since 0.2.0 new name 'buildkitePlugin' should be used diff --git a/plugins/frontend/backstage-plugin-buildkite/src/plugin.test.ts b/plugins/frontend/backstage-plugin-buildkite/src/plugin.test.ts index 445529aab..2ec70e5f4 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/plugin.test.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { buildkitePlugin } from './plugin'; describe('backstage-plugin-buildkite', () => { diff --git a/plugins/frontend/backstage-plugin-buildkite/src/plugin.ts b/plugins/frontend/backstage-plugin-buildkite/src/plugin.ts index e8b13cc35..781287b2e 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/plugin.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, createApiFactory, diff --git a/plugins/frontend/backstage-plugin-buildkite/src/setupTests.ts b/plugins/frontend/backstage-plugin-buildkite/src/setupTests.ts index 595ab7406..50e39374b 100644 --- a/plugins/frontend/backstage-plugin-buildkite/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-buildkite/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import '@testing-library/jest-dom'; import 'cross-fetch/polyfill'; diff --git a/plugins/frontend/backstage-plugin-datadog/src/Router.tsx b/plugins/frontend/backstage-plugin-datadog/src/Router.tsx index 29718f4e7..916e2825d 100644 --- a/plugins/frontend/backstage-plugin-datadog/src/Router.tsx +++ b/plugins/frontend/backstage-plugin-datadog/src/Router.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useEntity } from '@backstage/plugin-catalog-react'; import { MissingAnnotationEmptyState } from '@backstage/core-components'; import React from 'react'; diff --git a/plugins/frontend/backstage-plugin-datadog/src/components/DatadogDashboardPage.tsx b/plugins/frontend/backstage-plugin-datadog/src/components/DatadogDashboardPage.tsx index d02caf2b3..8ca0d8a31 100644 --- a/plugins/frontend/backstage-plugin-datadog/src/components/DatadogDashboardPage.tsx +++ b/plugins/frontend/backstage-plugin-datadog/src/components/DatadogDashboardPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { Entity } from '@backstage/catalog-model'; import { InfoCard } from '@backstage/core-components'; diff --git a/plugins/frontend/backstage-plugin-datadog/src/components/GraphWidget.tsx b/plugins/frontend/backstage-plugin-datadog/src/components/GraphWidget.tsx index 730d7a676..c1de0dfb2 100644 --- a/plugins/frontend/backstage-plugin-datadog/src/components/GraphWidget.tsx +++ b/plugins/frontend/backstage-plugin-datadog/src/components/GraphWidget.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; import { useEntity } from '@backstage/plugin-catalog-react'; import { MissingAnnotationEmptyState } from '@backstage/core-components'; diff --git a/plugins/frontend/backstage-plugin-datadog/src/components/useDatadogAppData.ts b/plugins/frontend/backstage-plugin-datadog/src/components/useDatadogAppData.ts index 39fede8d9..bba32fe8a 100644 --- a/plugins/frontend/backstage-plugin-datadog/src/components/useDatadogAppData.ts +++ b/plugins/frontend/backstage-plugin-datadog/src/components/useDatadogAppData.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; export const DATADOG_ANNOTATION_DASHBOARD_URL = 'datadoghq.com/dashboard-url'; diff --git a/plugins/frontend/backstage-plugin-datadog/src/plugin.test.tsx b/plugins/frontend/backstage-plugin-datadog/src/plugin.test.tsx index 4242bb6cc..8b90f63ee 100644 --- a/plugins/frontend/backstage-plugin-datadog/src/plugin.test.tsx +++ b/plugins/frontend/backstage-plugin-datadog/src/plugin.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { setupServer } from 'msw/node'; import { datadogPlugin } from './plugin'; diff --git a/plugins/frontend/backstage-plugin-datadog/src/setupTests.ts b/plugins/frontend/backstage-plugin-datadog/src/setupTests.ts index b174903c4..3e862df93 100644 --- a/plugins/frontend/backstage-plugin-datadog/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-datadog/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import '@testing-library/jest-dom'; import fetch from 'cross-fetch'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/dev/index.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/dev/index.tsx index 79f9814ef..9986f84d2 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/dev/index.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createDevApp } from '@backstage/dev-utils'; import { githubPullRequestsPlugin } from '../src/plugin'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsApi.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsApi.ts index d969c958c..e9fda6660 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsApi.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsApi.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createApiRef } from '@backstage/core-plugin-api'; import { SearchPullRequestsResponseData } from '../types'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsClient.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsClient.ts index 3ae6c0a63..39f7cdc41 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsClient.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/api/GithubPullRequestsClient.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { GithubPullRequestsApi } from './GithubPullRequestsApi'; import { Octokit } from '@octokit/rest'; import { SearchPullRequestsResponseData } from '../types'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/api/index.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/api/index.ts index 8eb862efa..725512836 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/api/index.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/api/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,5 +14,6 @@ * limitations under the License. */ + export * from './GithubPullRequestsApi'; export * from './GithubPullRequestsClient'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Icons.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Icons.tsx index 89440b54d..a2b5a246f 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Icons.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Icons.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, Tooltip } from '@material-ui/core'; import { PullRequest } from './usePullRequests'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/PullRequestsPage.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/PullRequestsPage.tsx index 869c20e56..914d2a474 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/PullRequestsPage.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/PullRequestsPage.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { Grid } from '@material-ui/core'; import { diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/index.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/index.ts index 27b995568..8cfa8914c 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/index.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsPage/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ * limitations under the License. */ + export { default } from './PullRequestsPage'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.test.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.test.tsx index 5dcaa4e5a..e39ca6275 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.test.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { render } from '@testing-library/react'; import { diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.tsx index fd16ba8c7..70bb2953e 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/PullRequestsStatsCard.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React, { useState } from 'react'; import { InfoCard, diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/index.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/index.ts index 1012ae28d..9e3d3d1cc 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/index.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsStatsCard/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ * limitations under the License. */ + export { default as PullRequestsStatsCard} from './PullRequestsStatsCard'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.test.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.test.tsx index cf1f5169a..eea521a08 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.test.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { render } from '@testing-library/react'; import { diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.tsx index d1e17a106..d5e38ed5e 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/PullRequestsTable.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, { FC, useState, useRef } from 'react'; import { debounce } from 'lodash'; import { InputAdornment, IconButton, TextField, Typography, Box, ButtonGroup, Button } from '@material-ui/core'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/index.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/index.ts index ae17e3694..70754de9b 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/index.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/PullRequestsTable/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,5 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + export { PullRequestsTable, PullRequestsTableView } from './PullRequestsTable'; export type { PullRequest } from '../usePullRequests'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Router.tsx b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Router.tsx index 70fa0b495..d477bffd8 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Router.tsx +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/Router.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; import { Route, Routes } from 'react-router'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/useBaseUrl.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/useBaseUrl.ts index 0c2b76597..04bbfad97 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/useBaseUrl.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/useBaseUrl.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { useApi, configApiRef } from '@backstage/core-plugin-api'; export const useBaseUrl = () => { diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequests.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequests.ts index 084e2f53d..7eb0377ae 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequests.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useEffect, useState } from 'react'; import { useAsyncRetry } from 'react-use'; import { githubPullRequestsApiRef } from '../api/GithubPullRequestsApi'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequestsStatistics.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequestsStatistics.ts index f29b68698..e5d0e29a6 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequestsStatistics.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/components/usePullRequestsStatistics.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useAsyncRetry } from 'react-use'; import { githubPullRequestsApiRef } from '../api/GithubPullRequestsApi'; import { useApi, githubAuthApiRef } from '@backstage/core-plugin-api'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/index.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/index.ts index 359ed9e4d..a99d15121 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/index.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export { /** * @deprecated From 0.2.0 new name 'pullRequestsPlugin' should be used diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.test.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.test.ts index 9d58f7471..b48563557 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.test.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { githubPullRequestsPlugin } from './plugin'; describe('github-pull-requests', () => { diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.ts index bf25bd670..8a17b1f32 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createPlugin, createApiFactory, diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/setupTests.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/setupTests.ts index 595ab7406..50e39374b 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import '@testing-library/jest-dom'; import 'cross-fetch/polyfill'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isGithubSlugSet.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isGithubSlugSet.ts index 19cfb951d..a7107ab16 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isGithubSlugSet.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isGithubSlugSet.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; export const GITHUB_PULL_REQUESTS_ANNOTATION = 'github.com/project-slug'; diff --git a/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isRoadieBackstageDefaultFilterSet.ts b/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isRoadieBackstageDefaultFilterSet.ts index 8a81ecbec..7162e7e43 100644 --- a/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isRoadieBackstageDefaultFilterSet.ts +++ b/plugins/frontend/backstage-plugin-github-pull-requests/src/utils/isRoadieBackstageDefaultFilterSet.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; export const ROADIE_BACKSTAGE_PULL_REQUESTS_DEFAULT_FILTER_ANNOTATION = 'roadie-backstage-pull-requests/default-filter'; diff --git a/plugins/frontend/backstage-plugin-jira/dev/index.tsx b/plugins/frontend/backstage-plugin-jira/dev/index.tsx index cdc1ad3e9..e7082d8af 100644 --- a/plugins/frontend/backstage-plugin-jira/dev/index.tsx +++ b/plugins/frontend/backstage-plugin-jira/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { createDevApp } from '@backstage/dev-utils'; import { jiraPlugin } from '../src/plugin'; diff --git a/plugins/frontend/backstage-plugin-jira/src/api/index.ts b/plugins/frontend/backstage-plugin-jira/src/api/index.ts index d5ff2c1d2..3e7cf21b7 100644 --- a/plugins/frontend/backstage-plugin-jira/src/api/index.ts +++ b/plugins/frontend/backstage-plugin-jira/src/api/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createApiRef, DiscoveryApi } from '@backstage/core-plugin-api'; import { IssuesCounter, IssueType, Project, Status } from '../types'; import fetch from 'cross-fetch'; diff --git a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.test.tsx b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.test.tsx index f1fc8d319..31687210d 100644 --- a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.test.tsx +++ b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { render } from '@testing-library/react'; import { ApiProvider, UrlPatternDiscovery } from '@backstage/core-app-api'; diff --git a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.tsx b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.tsx index 8408cc687..7722c6c0d 100644 --- a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.tsx +++ b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/JiraCard.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, { useState } from 'react'; import { Avatar, diff --git a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/ActivityStream.tsx b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/ActivityStream.tsx index 312d4ae27..bacd7d3a0 100644 --- a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/ActivityStream.tsx +++ b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/ActivityStream.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, { useState, useCallback } from 'react'; import { Box, diff --git a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Selectors.tsx b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Selectors.tsx index e35245566..039c20abc 100644 --- a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Selectors.tsx +++ b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Selectors.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Box, diff --git a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Status.tsx b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Status.tsx index 1a53ed31e..99f7382bf 100644 --- a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Status.tsx +++ b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/components/Status.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Box, Typography, makeStyles, createStyles } from '@material-ui/core'; diff --git a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/index.ts b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/index.ts index d046ab2ae..5aa2a40e4 100644 --- a/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/index.ts +++ b/plugins/frontend/backstage-plugin-jira/src/components/JiraCard/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { JiraCard } from './JiraCard'; diff --git a/plugins/frontend/backstage-plugin-jira/src/components/Router.tsx b/plugins/frontend/backstage-plugin-jira/src/components/Router.tsx index 4cbd3a389..2c6c09419 100644 --- a/plugins/frontend/backstage-plugin-jira/src/components/Router.tsx +++ b/plugins/frontend/backstage-plugin-jira/src/components/Router.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; import { JIRA_PROJECT_KEY_ANNOTATION } from '../hooks'; diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/index.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/index.ts index fa384151a..b4d30a94f 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/index.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export { useActivityStream } from './useActivityStream'; export { useProjectInfo } from './useProjectInfo'; export { useStatuses } from './useStatuses'; diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts index 8f8fd735f..c3b3d9a1f 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/useActivityStream.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useEffect, useCallback } from 'react'; import convert from 'xml-js'; import moment from 'moment'; diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/useEmptyIssueTypeFilter.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/useEmptyIssueTypeFilter.ts index 4c9afc415..ea5253869 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/useEmptyIssueTypeFilter.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/useEmptyIssueTypeFilter.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useLocalStorage } from 'react-use'; import { IssuesCounter } from '../types'; diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectEntity.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectEntity.ts index 7fbb730f6..bbf06ca65 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectEntity.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectEntity.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; export const JIRA_PROJECT_KEY_ANNOTATION = 'jira/project-key'; diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectInfo.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectInfo.ts index 6bc7d73c8..6c9a8d60e 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectInfo.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/useProjectInfo.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useEffect, useCallback } from 'react'; import { useApi } from '@backstage/core-plugin-api'; import { useAsyncFn } from 'react-use'; diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/useStatuses.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/useStatuses.ts index 3eab16a39..1dde41a6c 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/useStatuses.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/useStatuses.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useCallback } from 'react'; import { useApi } from '@backstage/core-plugin-api'; import { useAsync } from 'react-use'; diff --git a/plugins/frontend/backstage-plugin-jira/src/hooks/utils.ts b/plugins/frontend/backstage-plugin-jira/src/hooks/utils.ts index f8f4e68b0..2aea3176c 100644 --- a/plugins/frontend/backstage-plugin-jira/src/hooks/utils.ts +++ b/plugins/frontend/backstage-plugin-jira/src/hooks/utils.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { AxiosError } from 'axios'; export const handleError = (error: AxiosError) => diff --git a/plugins/frontend/backstage-plugin-jira/src/index.ts b/plugins/frontend/backstage-plugin-jira/src/index.ts index 3ab3abfa6..256308e67 100644 --- a/plugins/frontend/backstage-plugin-jira/src/index.ts +++ b/plugins/frontend/backstage-plugin-jira/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { /** * @deprecated since v0.3.0 you should use new name 'jiraPlugin' diff --git a/plugins/frontend/backstage-plugin-jira/src/plugin.test.ts b/plugins/frontend/backstage-plugin-jira/src/plugin.test.ts index 12adceec1..65592c032 100644 --- a/plugins/frontend/backstage-plugin-jira/src/plugin.test.ts +++ b/plugins/frontend/backstage-plugin-jira/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { jiraPlugin } from './plugin'; describe('jira', () => { diff --git a/plugins/frontend/backstage-plugin-jira/src/plugin.ts b/plugins/frontend/backstage-plugin-jira/src/plugin.ts index dcbea0419..2997703df 100644 --- a/plugins/frontend/backstage-plugin-jira/src/plugin.ts +++ b/plugins/frontend/backstage-plugin-jira/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { configApiRef, createPlugin, diff --git a/plugins/frontend/backstage-plugin-jira/src/responseStubs.ts b/plugins/frontend/backstage-plugin-jira/src/responseStubs.ts index 553fa7216..82a350492 100644 --- a/plugins/frontend/backstage-plugin-jira/src/responseStubs.ts +++ b/plugins/frontend/backstage-plugin-jira/src/responseStubs.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export const entityStub = { metadata: { namespace: 'default', diff --git a/plugins/frontend/backstage-plugin-jira/src/setupTests.ts b/plugins/frontend/backstage-plugin-jira/src/setupTests.ts index e1741cab9..64284855d 100644 --- a/plugins/frontend/backstage-plugin-jira/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-jira/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 '@testing-library/jest-dom'; import 'cross-fetch/polyfill'; diff --git a/plugins/frontend/backstage-plugin-jira/src/types.ts b/plugins/frontend/backstage-plugin-jira/src/types.ts index 5ff0865e6..4c38d7b05 100644 --- a/plugins/frontend/backstage-plugin-jira/src/types.ts +++ b/plugins/frontend/backstage-plugin-jira/src/types.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; import { Dispatch, SetStateAction } from 'react'; diff --git a/plugins/frontend/backstage-plugin-security-insights/dev/index.tsx b/plugins/frontend/backstage-plugin-security-insights/dev/index.tsx index f30a5baef..2ef78342a 100644 --- a/plugins/frontend/backstage-plugin-security-insights/dev/index.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/dev/index.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createDevApp } from '@backstage/dev-utils'; import { securityInsightsPlugin } from '../src/plugin'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/Router.tsx b/plugins/frontend/backstage-plugin-security-insights/src/components/Router.tsx index 4248e2f4c..362d927eb 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/Router.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/Router.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; import { Routes, Route } from 'react-router'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/SecurityInsightsTab.tsx b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/SecurityInsightsTab.tsx index 57ca36885..1c7b2d9f1 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/SecurityInsightsTab.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/SecurityInsightsTab.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React, { FC } from 'react'; import { Grid } from '@material-ui/core'; import { diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/index.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/index.ts index c5ab1d225..abe1b9577 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/index.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTab/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ * limitations under the License. */ + export { default } from './SecurityInsightsTab'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/SecurityInsightsTable.tsx b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/SecurityInsightsTable.tsx index dff8ef9f0..a0d4bafb5 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/SecurityInsightsTable.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/SecurityInsightsTable.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React, { FC, useState } from 'react'; import { Typography, Box } from '@material-ui/core'; import GitHubIcon from '@material-ui/icons/GitHub'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/StateFilterComponent.tsx b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/StateFilterComponent.tsx index a6539858f..b89e0afb0 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/StateFilterComponent.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/StateFilterComponent.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React, { FC } from 'react'; import { Box, Paper, ButtonGroup, Button } from '@material-ui/core'; import { StateFilterComponentProps } from '../../../../types'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/index.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/index.ts index 13dbf1cf0..2e69e7968 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/index.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/components/StateFilterComponent/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,4 +14,5 @@ * limitations under the License. */ + export { StateFilterComponent } from './StateFilterComponent'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/index.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/index.ts index e45cd5a13..0bb5304fe 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/index.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsTable/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { SecurityInsightsTable } from './SecurityInsightsTable'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.test.tsx b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.test.tsx index 07545cd4c..46d8cbf8f 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.test.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { render } from '@testing-library/react'; import { diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.tsx b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.tsx index 4d15c4f01..73f199975 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/SecurityInsightsWidget.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React, { FC } from 'react'; import { Box, makeStyles } from '@material-ui/core'; import Alert from '@material-ui/lab/Alert'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/index.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/index.ts index 714f68b25..1139c2c7c 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/index.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/SecurityInsightsWidget/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { SecurityInsightsWidget } from './SecurityInsightsWidget'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/UpdateSeverityStatusModal.tsx b/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/UpdateSeverityStatusModal.tsx index f89d43556..9051a0215 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/UpdateSeverityStatusModal.tsx +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/UpdateSeverityStatusModal.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React, { useState, useCallback, FC } from 'react'; import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/index.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/index.ts index 9927c9edc..adaf904eb 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/index.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/UpdateSeverityStatusModal/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { UpdateSeverityStatusModal } from './UpdateSeverityStatusModal'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/useGitHubConfig.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/useGitHubConfig.ts index 6b9923509..5cbe1a28d 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/useGitHubConfig.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/useGitHubConfig.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { configApiRef, useApi } from '@backstage/core-plugin-api'; import { Entity, getEntitySourceLocation } from "@backstage/catalog-model"; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectEntity.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectEntity.ts index 4f23bb46f..d7c817ae6 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectEntity.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectEntity.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; export const useProjectEntity = (entity: Entity) => { diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectName.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectName.ts index 660522c2a..b8734cde8 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectName.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/useProjectName.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from '@backstage/catalog-model'; export const GITHUB_REPO_ANNOTATION = 'github.com/project-slug'; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/components/useUrl.ts b/plugins/frontend/backstage-plugin-security-insights/src/components/useUrl.ts index 44de3d8e9..7beeb170f 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/components/useUrl.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/components/useUrl.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { Entity } from "@backstage/catalog-model"; import { useGitHubConfig } from "./useGitHubConfig"; diff --git a/plugins/frontend/backstage-plugin-security-insights/src/index.ts b/plugins/frontend/backstage-plugin-security-insights/src/index.ts index 7f4a917cc..69ac3fae4 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/index.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export { /** * @deprecated From 0.2.0 composability API should be used diff --git a/plugins/frontend/backstage-plugin-security-insights/src/plugin.test.ts b/plugins/frontend/backstage-plugin-security-insights/src/plugin.test.ts index 45a9999ce..59e946e96 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/plugin.test.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/plugin.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { securityInsightsPlugin } from './plugin'; describe('github-pull-requests', () => { diff --git a/plugins/frontend/backstage-plugin-security-insights/src/plugin.ts b/plugins/frontend/backstage-plugin-security-insights/src/plugin.ts index 456bbd79b..da61b3866 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/plugin.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/plugin.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import { createComponentExtension, createPlugin, diff --git a/plugins/frontend/backstage-plugin-security-insights/src/setupTests.ts b/plugins/frontend/backstage-plugin-security-insights/src/setupTests.ts index 595ab7406..50e39374b 100644 --- a/plugins/frontend/backstage-plugin-security-insights/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-security-insights/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import '@testing-library/jest-dom'; import 'cross-fetch/polyfill'; diff --git a/plugins/frontend/backstage-plugin-travis-ci/config.d.ts b/plugins/frontend/backstage-plugin-travis-ci/config.d.ts index f70cd8ba9..0d337faea 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/config.d.ts +++ b/plugins/frontend/backstage-plugin-travis-ci/config.d.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + export interface Config { /** Configuration options for the travisci plugin */ travisci?: { diff --git a/plugins/frontend/backstage-plugin-travis-ci/src/Router.tsx b/plugins/frontend/backstage-plugin-travis-ci/src/Router.tsx index 884df1403..383c8cd15 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/src/Router.tsx +++ b/plugins/frontend/backstage-plugin-travis-ci/src/Router.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Entity } from '@backstage/catalog-model'; import { Routes, Route } from 'react-router-dom'; diff --git a/plugins/frontend/backstage-plugin-travis-ci/src/components/ContextProvider.tsx b/plugins/frontend/backstage-plugin-travis-ci/src/components/ContextProvider.tsx index 505906641..974b431c9 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/src/components/ContextProvider.tsx +++ b/plugins/frontend/backstage-plugin-travis-ci/src/components/ContextProvider.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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, { useEffect } from 'react'; import { travisCIApiRef } from '../api'; import { useLocalStorage } from 'react-use'; diff --git a/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.test.tsx b/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.test.tsx index 5bc335c56..4bc0724b4 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.test.tsx +++ b/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ * limitations under the License. */ + import React from 'react'; import { render } from '@testing-library/react'; import { diff --git a/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.tsx b/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.tsx index d0125cf1a..7ad5d2cb3 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.tsx +++ b/plugins/frontend/backstage-plugin-travis-ci/src/components/LastBuildCard.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { Link, diff --git a/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useSettings.ts b/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useSettings.ts index 387ac9b6d..a8d21de95 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useSettings.ts +++ b/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useSettings.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { StateContext } from '../components/ContextProvider'; diff --git a/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useTravisRepoData.ts b/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useTravisRepoData.ts index 1c6934599..9ee139a03 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useTravisRepoData.ts +++ b/plugins/frontend/backstage-plugin-travis-ci/src/hooks/useTravisRepoData.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 { useEntity } from "@backstage/plugin-catalog-react"; export const TRAVIS_ANNOTATION = 'travis-ci.com/repo-slug'; diff --git a/plugins/frontend/backstage-plugin-travis-ci/src/setupTests.ts b/plugins/frontend/backstage-plugin-travis-ci/src/setupTests.ts index b3ec346f9..fb413fe42 100644 --- a/plugins/frontend/backstage-plugin-travis-ci/src/setupTests.ts +++ b/plugins/frontend/backstage-plugin-travis-ci/src/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2020 RoadieHQ + * Copyright 2021 Larder Software Limited * * 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 '@testing-library/jest-dom'; import "cross-fetch/polyfill";