Просмотр исходного кода

ref(ui): Change `static/app/views` imports to use `sentry` alias (#30194)

Part of refactoring from `app` import alias to `sentry`.

See https://github.com/getsentry/sentry/pull/30178
Billy Vong 3 лет назад
Родитель
Сommit
654fae1b23

+ 11 - 11
static/app/views/acceptOrganizationInvite.tsx

@@ -3,17 +3,17 @@ import {browserHistory, RouteComponentProps} from 'react-router';
 import styled from '@emotion/styled';
 import {urlEncode} from '@sentry/utils';
 
-import {logout} from 'app/actionCreators/account';
-import Alert from 'app/components/alert';
-import Button from 'app/components/button';
-import ExternalLink from 'app/components/links/externalLink';
-import Link from 'app/components/links/link';
-import NarrowLayout from 'app/components/narrowLayout';
-import {t, tct} from 'app/locale';
-import ConfigStore from 'app/stores/configStore';
-import space from 'app/styles/space';
-import AsyncView from 'app/views/asyncView';
-import SettingsPageHeader from 'app/views/settings/components/settingsPageHeader';
+import {logout} from 'sentry/actionCreators/account';
+import Alert from 'sentry/components/alert';
+import Button from 'sentry/components/button';
+import ExternalLink from 'sentry/components/links/externalLink';
+import Link from 'sentry/components/links/link';
+import NarrowLayout from 'sentry/components/narrowLayout';
+import {t, tct} from 'sentry/locale';
+import ConfigStore from 'sentry/stores/configStore';
+import space from 'sentry/styles/space';
+import AsyncView from 'sentry/views/asyncView';
+import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
 
 type InviteDetails = {
   orgSlug: string;

+ 8 - 8
static/app/views/acceptProjectTransfer.tsx

@@ -1,13 +1,13 @@
 import {RouteComponentProps} from 'react-router';
 
-import {addErrorMessage, addSuccessMessage} from 'app/actionCreators/indicator';
-import NarrowLayout from 'app/components/narrowLayout';
-import {t, tct} from 'app/locale';
-import {Organization, Project} from 'app/types';
-import AsyncView from 'app/views/asyncView';
-import Form from 'app/views/settings/components/forms/form';
-import SelectField from 'app/views/settings/components/forms/selectField';
-import SettingsPageHeader from 'app/views/settings/components/settingsPageHeader';
+import {addErrorMessage, addSuccessMessage} from 'sentry/actionCreators/indicator';
+import NarrowLayout from 'sentry/components/narrowLayout';
+import {t, tct} from 'sentry/locale';
+import {Organization, Project} from 'sentry/types';
+import AsyncView from 'sentry/views/asyncView';
+import Form from 'sentry/views/settings/components/forms/form';
+import SelectField from 'sentry/views/settings/components/forms/selectField';
+import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
 
 type Props = RouteComponentProps<{}, {}>;
 

+ 1 - 1
static/app/views/admin/adminBuffer.tsx

@@ -1,4 +1,4 @@
-import InternalStatChart from 'app/components/internalStatChart';
+import InternalStatChart from 'sentry/components/internalStatChart';
 
 const AdminBuffer = () => {
   const since = new Date().getTime() / 1000 - 3600 * 24 * 7;

+ 6 - 6
static/app/views/admin/adminEnvironment.tsx

@@ -2,12 +2,12 @@ import {Fragment} from 'react';
 import styled from '@emotion/styled';
 import moment from 'moment';
 
-import Button from 'app/components/button';
-import {IconQuestion} from 'app/icons';
-import {t, tct} from 'app/locale';
-import ConfigStore from 'app/stores/configStore';
-import space from 'app/styles/space';
-import AsyncView from 'app/views/asyncView';
+import Button from 'sentry/components/button';
+import {IconQuestion} from 'sentry/icons';
+import {t, tct} from 'sentry/locale';
+import ConfigStore from 'sentry/stores/configStore';
+import space from 'sentry/styles/space';
+import AsyncView from 'sentry/views/asyncView';
 
 type Data = {
   environment: {

+ 2 - 2
static/app/views/admin/adminLayout.tsx

@@ -3,8 +3,8 @@ import DocumentTitle from 'react-document-title';
 import {RouteComponentProps} from 'react-router';
 import styled from '@emotion/styled';
 
-import SettingsLayout from 'app/views/settings/components/settingsLayout';
-import SettingsNavigation from 'app/views/settings/components/settingsNavigation';
+import SettingsLayout from 'sentry/views/settings/components/settingsLayout';
+import SettingsNavigation from 'sentry/views/settings/components/settingsNavigation';
 
 const AdminNavigation = () => (
   <SettingsNavigation

+ 4 - 4
static/app/views/admin/adminMail.tsx

@@ -1,7 +1,7 @@
-import {addErrorMessage, addSuccessMessage} from 'app/actionCreators/indicator';
-import Button from 'app/components/button';
-import {t} from 'app/locale';
-import AsyncView from 'app/views/asyncView';
+import {addErrorMessage, addSuccessMessage} from 'sentry/actionCreators/indicator';
+import Button from 'sentry/components/button';
+import {t} from 'sentry/locale';
+import AsyncView from 'sentry/views/asyncView';
 
 type Data = {
   mailHost: string;

+ 3 - 3
static/app/views/admin/adminOrganizations.tsx

@@ -1,8 +1,8 @@
 import {RouteComponentProps} from 'react-router';
 
-import Link from 'app/components/links/link';
-import ResultGrid from 'app/components/resultGrid';
-import {t} from 'app/locale';
+import Link from 'sentry/components/links/link';
+import ResultGrid from 'sentry/components/resultGrid';
+import {t} from 'sentry/locale';
 
 type Props = RouteComponentProps<{}, {}>;
 

+ 7 - 7
static/app/views/admin/adminOverview/apiChart.tsx

@@ -1,12 +1,12 @@
 import {Component} from 'react';
 
-import {Client} from 'app/api';
-import MiniBarChart from 'app/components/charts/miniBarChart';
-import LoadingError from 'app/components/loadingError';
-import LoadingIndicator from 'app/components/loadingIndicator';
-import {TimeseriesValue} from 'app/types';
-import theme from 'app/utils/theme';
-import withApi from 'app/utils/withApi';
+import {Client} from 'sentry/api';
+import MiniBarChart from 'sentry/components/charts/miniBarChart';
+import LoadingError from 'sentry/components/loadingError';
+import LoadingIndicator from 'sentry/components/loadingIndicator';
+import {TimeseriesValue} from 'sentry/types';
+import theme from 'sentry/utils/theme';
+import withApi from 'sentry/utils/withApi';
 
 const initialState = {
   error: false,

+ 9 - 9
static/app/views/admin/adminOverview/eventChart.tsx

@@ -1,14 +1,14 @@
 import {Component} from 'react';
 
-import {Client} from 'app/api';
-import MiniBarChart from 'app/components/charts/miniBarChart';
-import LoadingError from 'app/components/loadingError';
-import LoadingIndicator from 'app/components/loadingIndicator';
-import {t} from 'app/locale';
-import {TimeseriesValue} from 'app/types';
-import {SeriesDataUnit} from 'app/types/echarts';
-import theme from 'app/utils/theme';
-import withApi from 'app/utils/withApi';
+import {Client} from 'sentry/api';
+import MiniBarChart from 'sentry/components/charts/miniBarChart';
+import LoadingError from 'sentry/components/loadingError';
+import LoadingIndicator from 'sentry/components/loadingIndicator';
+import {t} from 'sentry/locale';
+import {TimeseriesValue} from 'sentry/types';
+import {SeriesDataUnit} from 'sentry/types/echarts';
+import theme from 'sentry/utils/theme';
+import withApi from 'sentry/utils/withApi';
 
 type Props = {
   api: Client;

+ 2 - 2
static/app/views/admin/adminOverview/index.tsx

@@ -1,8 +1,8 @@
 import {Fragment} from 'react';
 import DocumentTitle from 'react-document-title';
 
-import {Panel, PanelBody, PanelHeader} from 'app/components/panels';
-import {t} from 'app/locale';
+import {Panel, PanelBody, PanelHeader} from 'sentry/components/panels';
+import {t} from 'sentry/locale';
 
 import ApiChart from './apiChart';
 import EventChart from './eventChart';

Некоторые файлы не были показаны из-за большого количества измененных файлов