diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2021-08-19 15:03:11 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-08-20 20:03:09 +0000 |
commit | 2d0873e027ff54dbb470c46b76b04f98caa48384 (patch) | |
tree | 38b6704ddd0cfddfca4ef35fbe95caf259b17790 /server/sonar-web/src/main/js/components | |
parent | 6f17541395dcedb52fe54e7755be95f2e5941086 (diff) | |
download | sonarqube-2d0873e027ff54dbb470c46b76b04f98caa48384.tar.gz sonarqube-2d0873e027ff54dbb470c46b76b04f98caa48384.zip |
SONAR-15297 Remove all sonar-ui-common initialization logic
Diffstat (limited to 'server/sonar-web/src/main/js/components')
9 files changed, 9 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx index cbe62d3d085..95172b76ee5 100644 --- a/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx +++ b/server/sonar-web/src/main/js/components/SourceViewer/SourceViewerHeader.tsx @@ -33,8 +33,8 @@ import { translate } from '../../helpers/l10n'; import { formatMeasure } from '../../helpers/measures'; import { collapsedDirFromPath, fileFromPath } from '../../helpers/path'; import { omitNil } from '../../helpers/request'; +import { getBaseUrl } from '../../helpers/system'; import { - getBaseUrl, getBranchLikeUrl, getCodeUrl, getComponentIssuesUrl, diff --git a/server/sonar-web/src/main/js/components/activity-graph/GraphsHistory.tsx b/server/sonar-web/src/main/js/components/activity-graph/GraphsHistory.tsx index 8da9f418f94..29d351983c5 100644 --- a/server/sonar-web/src/main/js/components/activity-graph/GraphsHistory.tsx +++ b/server/sonar-web/src/main/js/components/activity-graph/GraphsHistory.tsx @@ -21,7 +21,7 @@ import { isEqual } from 'lodash'; import * as React from 'react'; import DeferredSpinner from '../../components/ui/DeferredSpinner'; import { translate } from '../../helpers/l10n'; -import { getBaseUrl } from '../../helpers/urls'; +import { getBaseUrl } from '../../helpers/system'; import { GraphType, MeasureHistory, Serie } from '../../types/project-activity'; import GraphHistory from './GraphHistory'; import './styles.css'; diff --git a/server/sonar-web/src/main/js/components/controls/IdentityProviderLink.tsx b/server/sonar-web/src/main/js/components/controls/IdentityProviderLink.tsx index 31dd2da7e00..383a344b6ce 100644 --- a/server/sonar-web/src/main/js/components/controls/IdentityProviderLink.tsx +++ b/server/sonar-web/src/main/js/components/controls/IdentityProviderLink.tsx @@ -20,7 +20,7 @@ import * as classNames from 'classnames'; import * as React from 'react'; import { isDarkColor } from '../../helpers/colors'; -import { getBaseUrl } from '../../helpers/urls'; +import { getBaseUrl } from '../../helpers/system'; import './IdentityProviderLink.css'; interface Props { diff --git a/server/sonar-web/src/main/js/components/controls/Modal.tsx b/server/sonar-web/src/main/js/components/controls/Modal.tsx index d97d9e1522b..b7181e25e1f 100644 --- a/server/sonar-web/src/main/js/components/controls/Modal.tsx +++ b/server/sonar-web/src/main/js/components/controls/Modal.tsx @@ -20,7 +20,7 @@ import * as classNames from 'classnames'; import * as React from 'react'; import * as ReactModal from 'react-modal'; -import { getReactDomContainerSelector } from '../../helpers/init'; +import { getReactDomContainerSelector } from '../../helpers/system'; import './Modal.css'; ReactModal.setAppElement(getReactDomContainerSelector()); diff --git a/server/sonar-web/src/main/js/components/docs/DocImg.tsx b/server/sonar-web/src/main/js/components/docs/DocImg.tsx index d8baf103eab..67ff35adfeb 100644 --- a/server/sonar-web/src/main/js/components/docs/DocImg.tsx +++ b/server/sonar-web/src/main/js/components/docs/DocImg.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { getBaseUrl } from '../../helpers/urls'; +import { getBaseUrl } from '../../helpers/system'; export default function DocImg(props: React.ImgHTMLAttributes<HTMLImageElement>) { const { alt, src, ...other } = props; diff --git a/server/sonar-web/src/main/js/components/lazyLoadComponent.tsx b/server/sonar-web/src/main/js/components/lazyLoadComponent.tsx index d45577895dc..2d6a13f2fc0 100644 --- a/server/sonar-web/src/main/js/components/lazyLoadComponent.tsx +++ b/server/sonar-web/src/main/js/components/lazyLoadComponent.tsx @@ -19,7 +19,7 @@ */ import * as React from 'react'; import { Alert } from '../components/ui/Alert'; -import { IS_SSR } from '../helpers/init'; +import { IS_SSR } from '../helpers/browser'; import { translate } from '../helpers/l10n'; import { requestTryAndRepeatUntil } from '../helpers/request'; diff --git a/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx b/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx index 39b7a6449ed..795f1ffbdd1 100644 --- a/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx @@ -20,7 +20,7 @@ import * as React from 'react'; import EllipsisIcon from '../../components/icons/EllipsisIcon'; import { translate } from '../../helpers/l10n'; -import { getBaseUrl } from '../../helpers/urls'; +import { getBaseUrl } from '../../helpers/system'; import { AlmKeys, AlmSettingsInstance, ProjectAlmBindingResponse } from '../../types/alm-settings'; import AzurePipelinesTutorial from './azure-pipelines/AzurePipelinesTutorial'; import BitbucketPipelinesTutorial from './bitbucket-pipelines/BitbucketPipelinesTutorial'; diff --git a/server/sonar-web/src/main/js/components/tutorials/components/AllSet.tsx b/server/sonar-web/src/main/js/components/tutorials/components/AllSet.tsx index 806d1e4215c..fa744dacabd 100644 --- a/server/sonar-web/src/main/js/components/tutorials/components/AllSet.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/components/AllSet.tsx @@ -19,7 +19,7 @@ */ import * as React from 'react'; import { translate } from '../../../helpers/l10n'; -import { getBaseUrl } from '../../../helpers/urls'; +import { getBaseUrl } from '../../../helpers/system'; import { AlmKeys } from '../../../types/alm-settings'; import { withAppState } from '../../hoc/withAppState'; import SentenceWithHighlights from './SentenceWithHighlights'; diff --git a/server/sonar-web/src/main/js/components/tutorials/manual/commands/DownloadBuildWrapper.tsx b/server/sonar-web/src/main/js/components/tutorials/manual/commands/DownloadBuildWrapper.tsx index 7f53c2048fe..2012d5f095c 100644 --- a/server/sonar-web/src/main/js/components/tutorials/manual/commands/DownloadBuildWrapper.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/manual/commands/DownloadBuildWrapper.tsx @@ -20,7 +20,7 @@ import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import { translate } from '../../../../helpers/l10n'; -import { getBaseUrl } from '../../../../helpers/urls'; +import { getBaseUrl } from '../../../../helpers/system'; import { OSs } from '../../types'; export interface DownloadBuildWrapperProps { |