apply core-imports codemod to all packages and plugins

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-17 17:56:24 +02:00
parent 9b9a8f3925
commit d453c05dc3
541 changed files with 1549 additions and 1321 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { createApiRef, DiscoveryApi } from '@backstage/core';
import { createApiRef, DiscoveryApi } from '@backstage/core-plugin-api';
export type NewRelicApplication = {
id: number;
@@ -16,6 +16,7 @@
import React from 'react';
import { Grid } from '@material-ui/core';
import NewRelicFetchComponent from '../NewRelicFetchComponent';
import {
Header,
Page,
@@ -23,8 +24,7 @@ import {
ContentHeader,
HeaderLabel,
SupportButton,
} from '@backstage/core';
import NewRelicFetchComponent from '../NewRelicFetchComponent';
} from '@backstage/core-components';
const NewRelicComponent = () => (
<Page themeId="tool">
@@ -15,11 +15,13 @@
*/
import React from 'react';
import { Progress, Table, TableColumn, useApi } from '@backstage/core';
import Alert from '@material-ui/lab/Alert';
import { useAsync } from 'react-use';
import { newRelicApiRef, NewRelicApplications } from '../../api';
import { Progress, Table, TableColumn } from '@backstage/core-components';
import { useApi } from '@backstage/core-plugin-api';
export const NewRelicAPMTable = ({ applications }: NewRelicApplications) => {
const columns: TableColumn[] = [
{ title: 'Application', field: 'name' },
+2 -2
View File
@@ -14,14 +14,14 @@
* limitations under the License.
*/
import { NewRelicClient, newRelicApiRef } from './api';
import {
createApiFactory,
createPlugin,
createRouteRef,
discoveryApiRef,
createRoutableExtension,
} from '@backstage/core';
import { NewRelicClient, newRelicApiRef } from './api';
} from '@backstage/core-plugin-api';
export const rootRouteRef = createRouteRef({
path: '/newrelic',