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
@@ -16,8 +16,8 @@
import React from 'react';
import { render } from '@testing-library/react';
import { useApi, configApiRef } from '@backstage/core';
import { createDevApp } from './render';
import { useApi, configApiRef } from '@backstage/core-plugin-api';
const anyEnv = (process.env = { ...process.env }) as any;
+23 -19
View File
@@ -14,25 +14,6 @@
* limitations under the License.
*/
import {
AlertDisplay,
AnyApiFactory,
ApiFactory,
attachComponentData,
configApiRef,
createApiFactory,
createApp,
createPlugin,
createRouteRef,
FlatRoutes,
IconComponent,
OAuthRequestDialog,
RouteRef,
Sidebar,
SidebarItem,
SidebarPage,
SidebarSpacer,
} from '@backstage/core';
import {
ScmIntegrationsApi,
scmIntegrationsApiRef,
@@ -44,6 +25,29 @@ import ReactDOM from 'react-dom';
import { hot } from 'react-hot-loader';
import { Route } from 'react-router';
import {
AlertDisplay,
OAuthRequestDialog,
Sidebar,
SidebarItem,
SidebarPage,
SidebarSpacer,
} from '@backstage/core-components';
import {
AnyApiFactory,
ApiFactory,
attachComponentData,
configApiRef,
createApiFactory,
createPlugin,
createRouteRef,
IconComponent,
RouteRef,
} from '@backstage/core-plugin-api';
import { createApp, FlatRoutes } from '@backstage/core-app-api';
const GatheringRoute: (props: {
path: string;
element: JSX.Element;