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
@@ -19,8 +19,8 @@ import { Tabs, Tab, makeStyles, Typography, Divider } from '@material-ui/core';
import 'graphiql/graphiql.css';
import { StorageBucket } from '../../lib/storage';
import { GraphQLEndpoint } from '../../lib/api';
import { Progress } from '@backstage/core';
import { BackstageTheme } from '@backstage/theme';
import { Progress } from '@backstage/core-components';
const GraphiQL = React.lazy(() => import('graphiql'));
@@ -18,10 +18,10 @@ import React from 'react';
import { GraphiQLPage } from './GraphiQLPage';
import { ThemeProvider } from '@material-ui/core';
import { lightTheme } from '@backstage/theme';
import { ApiProvider, ApiRegistry } from '@backstage/core';
import { act } from 'react-dom/test-utils';
import { renderWithEffects } from '@backstage/test-utils';
import { GraphQLBrowseApi, graphQlBrowseApiRef } from '../../lib/api';
import { ApiProvider, ApiRegistry } from '@backstage/core-app-api';
jest.mock('../GraphiQLBrowser', () => ({
GraphiQLBrowser: () => '<GraphiQLBrowser />',
@@ -14,13 +14,19 @@
* limitations under the License.
*/
import React from 'react';
import { Content, Header, HeaderLabel, Page, Progress } from '@backstage/core';
import { useApi } from '@backstage/core-plugin-api';
import { useAsync } from 'react-use';
import 'graphiql/graphiql.css';
import { graphQlBrowseApiRef } from '../../lib/api';
import { GraphiQLBrowser } from '../GraphiQLBrowser';
import { Typography } from '@material-ui/core';
import {
Content,
Header,
HeaderLabel,
Page,
Progress,
} from '@backstage/core-components';
export const GraphiQLPage = () => {
const graphQlBrowseApi = useApi(graphQlBrowseApiRef);
+1 -1
View File
@@ -14,8 +14,8 @@
* limitations under the License.
*/
import { IconComponent } from '@backstage/core';
import GraphiQLIconComponent from './assets/graphiql.icon.svg';
import { IconComponent } from '@backstage/core-plugin-api';
export {
graphiqlPlugin,