diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects')
59 files changed, 136 insertions, 133 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx b/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx index 185be554b6d..f520c820609 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/AllProjects.tsx @@ -20,18 +20,18 @@ import { omitBy } from 'lodash'; import * as React from 'react'; import { Helmet } from 'react-helmet-async'; -import ListFooter from 'sonar-ui-common/components/controls/ListFooter'; -import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner'; -import handleRequiredAuthentication from 'sonar-ui-common/helpers/handleRequiredAuthentication'; -import { translate } from 'sonar-ui-common/helpers/l10n'; -import { addSideBarClass, removeSideBarClass } from 'sonar-ui-common/helpers/pages'; -import { get, save } from 'sonar-ui-common/helpers/storage'; import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget'; import Suggestions from '../../../app/components/embed-docs-modal/Suggestions'; import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper'; import { Location, Router, withRouter } from '../../../components/hoc/withRouter'; import '../../../components/search-navigator.css'; import { isLoggedIn } from '../../../helpers/users'; +import ListFooter from '../../../sonar-ui-common/components/controls/ListFooter'; +import DeferredSpinner from '../../../sonar-ui-common/components/ui/DeferredSpinner'; +import handleRequiredAuthentication from '../../../sonar-ui-common/helpers/handleRequiredAuthentication'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; +import { addSideBarClass, removeSideBarClass } from '../../../sonar-ui-common/helpers/pages'; +import { get, save } from '../../../sonar-ui-common/helpers/storage'; import { ComponentQualifier } from '../../../types/component'; import { hasFilterParams, hasVisualizationParams, parseUrlQuery, Query } from '../query'; import '../styles.css'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx b/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx index bc730647312..016fcb5f7b5 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/AllProjectsContainer.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import { connect } from 'react-redux'; -import { lazyLoadComponent } from 'sonar-ui-common/components/lazyLoadComponent'; +import { lazyLoadComponent } from '../../../sonar-ui-common/components/lazyLoadComponent'; import { getAppState, getCurrentUser, Store } from '../../../store/rootReducer'; import { ComponentQualifier } from '../../../types/component'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/ApplicationCreation.tsx b/server/sonar-web/src/main/js/apps/projects/components/ApplicationCreation.tsx index 56742d4e086..6370abe992c 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ApplicationCreation.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ApplicationCreation.tsx @@ -18,8 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { Button } from 'sonar-ui-common/components/controls/buttons'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import { getComponentNavigation } from '../../../api/nav'; import CreateApplicationForm from '../../../app/components/extensions/CreateApplicationForm'; import { withAppState } from '../../../components/hoc/withAppState'; @@ -27,6 +25,8 @@ import { withCurrentUser } from '../../../components/hoc/withCurrentUser'; import { Router, withRouter } from '../../../components/hoc/withRouter'; import { getComponentAdminUrl, getComponentOverviewUrl } from '../../../helpers/urls'; import { hasGlobalPermission } from '../../../helpers/users'; +import { Button } from '../../../sonar-ui-common/components/controls/buttons'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { ComponentQualifier } from '../../../types/component'; import { Permissions } from '../../../types/permissions'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/ClearAll.tsx b/server/sonar-web/src/main/js/apps/projects/components/ClearAll.tsx index 2b5e6ab1b1d..3ab932bb29a 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ClearAll.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ClearAll.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { Button } from 'sonar-ui-common/components/controls/buttons'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { Button } from '../../../sonar-ui-common/components/controls/buttons'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; interface Props { onClearAll: () => void; diff --git a/server/sonar-web/src/main/js/apps/projects/components/DefaultPageSelector.tsx b/server/sonar-web/src/main/js/apps/projects/components/DefaultPageSelector.tsx index 56ef87faafb..f511a91a6c8 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/DefaultPageSelector.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/DefaultPageSelector.tsx @@ -18,11 +18,11 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { get } from 'sonar-ui-common/helpers/storage'; import { searchProjects } from '../../../api/components'; import { withCurrentUser } from '../../../components/hoc/withCurrentUser'; import { Location, Router, withRouter } from '../../../components/hoc/withRouter'; import { hasGlobalPermission, isLoggedIn } from '../../../helpers/users'; +import { get } from '../../../sonar-ui-common/helpers/storage'; import { PROJECTS_ALL, PROJECTS_DEFAULT_FILTER, PROJECTS_FAVORITE } from '../utils'; import AllProjectsContainer from './AllProjectsContainer'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx b/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx index 2a3c80494f2..c86b03c66a2 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/EmptyFavoriteSearch.tsx @@ -20,8 +20,8 @@ import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import '../../../components/common/EmptySearch.css'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Query } from '../query'; export default function EmptyFavoriteSearch({ query }: { query: Query }) { diff --git a/server/sonar-web/src/main/js/apps/projects/components/EmptyInstance.tsx b/server/sonar-web/src/main/js/apps/projects/components/EmptyInstance.tsx index 34678061215..3397720a780 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/EmptyInstance.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/EmptyInstance.tsx @@ -19,10 +19,10 @@ */ import * as React from 'react'; import { WithRouterProps } from 'react-router'; -import { Button } from 'sonar-ui-common/components/controls/buttons'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import { withRouter } from '../../../components/hoc/withRouter'; import { hasGlobalPermission, isLoggedIn } from '../../../helpers/users'; +import { Button } from '../../../sonar-ui-common/components/controls/buttons'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Permissions } from '../../../types/permissions'; export interface EmptyInstanceProps { diff --git a/server/sonar-web/src/main/js/apps/projects/components/FavoriteFilter.tsx b/server/sonar-web/src/main/js/apps/projects/components/FavoriteFilter.tsx index 20969b7bb67..3e3c57bc6d4 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/FavoriteFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/FavoriteFilter.tsx @@ -19,9 +19,9 @@ */ import * as React from 'react'; import { IndexLink, Link } from 'react-router'; -import { translate } from 'sonar-ui-common/helpers/l10n'; -import { save } from 'sonar-ui-common/helpers/storage'; import { isLoggedIn } from '../../../helpers/users'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; +import { save } from '../../../sonar-ui-common/helpers/storage'; import { PROJECTS_ALL, PROJECTS_DEFAULT_FILTER, PROJECTS_FAVORITE } from '../utils'; interface Props { diff --git a/server/sonar-web/src/main/js/apps/projects/components/NoFavoriteProjects.tsx b/server/sonar-web/src/main/js/apps/projects/components/NoFavoriteProjects.tsx index 5f87253c2d7..3daaee1d38c 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/NoFavoriteProjects.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/NoFavoriteProjects.tsx @@ -19,7 +19,7 @@ */ import * as React from 'react'; import { Link } from 'react-router'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; export default function NoFavoriteProjects() { return ( diff --git a/server/sonar-web/src/main/js/apps/projects/components/PageHeader.tsx b/server/sonar-web/src/main/js/apps/projects/components/PageHeader.tsx index c954611367a..0809336d957 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/PageHeader.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/PageHeader.tsx @@ -19,10 +19,10 @@ */ import * as classNames from 'classnames'; import * as React from 'react'; -import Tooltip from 'sonar-ui-common/components/controls/Tooltip'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import HomePageSelect from '../../../components/controls/HomePageSelect'; import { isLoggedIn } from '../../../helpers/users'; +import Tooltip from '../../../sonar-ui-common/components/controls/Tooltip'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import SearchFilterContainer from '../filters/SearchFilterContainer'; import { Project } from '../types'; import ApplicationCreation from './ApplicationCreation'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx b/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx index 4a0f69585a9..9bdb1e57928 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/PageSidebar.tsx @@ -19,7 +19,7 @@ */ import { flatMap } from 'lodash'; import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import CoverageFilter from '../filters/CoverageFilter'; import DuplicationsFilter from '../filters/DuplicationsFilter'; import LanguagesFilterContainer from '../filters/LanguagesFilterContainer'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelect.tsx b/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelect.tsx index 43fb2b23ff6..441efc3962d 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelect.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelect.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import Select from 'sonar-ui-common/components/controls/Select'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import Select from '../../../sonar-ui-common/components/controls/Select'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { VIEWS, VISUALIZATIONS } from '../utils'; import PerspectiveSelectOption, { Option } from './PerspectiveSelectOption'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelectOption.tsx b/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelectOption.tsx index 30554fb211b..5cf080bbdff 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelectOption.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/PerspectiveSelectOption.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import BubblesIcon from 'sonar-ui-common/components/icons/BubblesIcon'; -import ListIcon from 'sonar-ui-common/components/icons/ListIcon'; +import BubblesIcon from '../../../sonar-ui-common/components/icons/BubblesIcon'; +import ListIcon from '../../../sonar-ui-common/components/icons/ListIcon'; export interface Option { label: string; diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx index 3b1c420744f..264167ce4f1 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenu.tsx @@ -19,15 +19,15 @@ */ import * as React from 'react'; import { Link } from 'react-router'; -import { Button } from 'sonar-ui-common/components/controls/buttons'; -import Dropdown from 'sonar-ui-common/components/controls/Dropdown'; -import DropdownIcon from 'sonar-ui-common/components/icons/DropdownIcon'; -import EllipsisIcon from 'sonar-ui-common/components/icons/EllipsisIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import { getAlmSettings } from '../../../api/alm-settings'; import { withCurrentUser } from '../../../components/hoc/withCurrentUser'; import { IMPORT_COMPATIBLE_ALMS, IMPORT_COMPATIBLE_ALM_COUNT } from '../../../helpers/constants'; import { hasGlobalPermission } from '../../../helpers/users'; +import { Button } from '../../../sonar-ui-common/components/controls/buttons'; +import Dropdown from '../../../sonar-ui-common/components/controls/Dropdown'; +import DropdownIcon from '../../../sonar-ui-common/components/icons/DropdownIcon'; +import EllipsisIcon from '../../../sonar-ui-common/components/icons/EllipsisIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { AlmKeys, AlmSettingsInstance } from '../../../types/alm-settings'; import { Permissions } from '../../../types/permissions'; import ProjectCreationMenuItem from './ProjectCreationMenuItem'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx index 6bdc1540b65..5decdbb78b5 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx @@ -19,9 +19,9 @@ */ import * as React from 'react'; import { Link } from 'react-router'; -import ChevronsIcon from 'sonar-ui-common/components/icons/ChevronsIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; -import { getBaseUrl } from 'sonar-ui-common/helpers/urls'; +import ChevronsIcon from '../../../sonar-ui-common/components/icons/ChevronsIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; +import { getBaseUrl } from '../../../sonar-ui-common/helpers/urls'; import { AlmKeys } from '../../../types/alm-settings'; export interface ProjectCreationMenuItemProps { diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx index a401ac5c502..2f26cf63cf7 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectsList.tsx @@ -21,8 +21,8 @@ import * as React from 'react'; import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer'; import { List, ListRowProps } from 'react-virtualized/dist/commonjs/List'; import { WindowScroller } from 'react-virtualized/dist/commonjs/WindowScroller'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import EmptySearch from '../../../components/common/EmptySearch'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Query } from '../query'; import { Project } from '../types'; import EmptyFavoriteSearch from './EmptyFavoriteSearch'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx index 608fb662b9b..59f1a6a0712 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectsSortingSelect.tsx @@ -19,13 +19,13 @@ */ import { sortBy } from 'lodash'; import * as React from 'react'; -import { ButtonIcon } from 'sonar-ui-common/components/controls/buttons'; -import Select from 'sonar-ui-common/components/controls/Select'; -import Tooltip from 'sonar-ui-common/components/controls/Tooltip'; -import SortAscIcon from 'sonar-ui-common/components/icons/SortAscIcon'; -import SortDescIcon from 'sonar-ui-common/components/icons/SortDescIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import { colors } from '../../../app/theme'; +import { ButtonIcon } from '../../../sonar-ui-common/components/controls/buttons'; +import Select from '../../../sonar-ui-common/components/controls/Select'; +import Tooltip from '../../../sonar-ui-common/components/controls/Tooltip'; +import SortAscIcon from '../../../sonar-ui-common/components/icons/SortAscIcon'; +import SortDescIcon from '../../../sonar-ui-common/components/icons/SortDescIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { parseSorting, SORTING_LEAK_METRICS, SORTING_METRICS } from '../utils'; import ProjectsSortingSelectOption, { Option } from './ProjectsSortingSelectOption'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx index 529ff1d70fc..81bef7f6a77 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/AllProjects-test.tsx @@ -19,7 +19,7 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; -import { get, save } from 'sonar-ui-common/helpers/storage'; +import { get, save } from '../../../../sonar-ui-common/helpers/storage'; import { ComponentQualifier } from '../../../../types/component'; import { AllProjects, @@ -55,7 +55,7 @@ jest.mock('../../utils', () => { return utils; }); -jest.mock('sonar-ui-common/helpers/storage', () => ({ +jest.mock('../../../../sonar-ui-common/helpers/storage', () => ({ get: jest.fn(() => null), save: jest.fn() })); diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ApplicationCreation-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ApplicationCreation-test.tsx index fa411d0c5ad..127b03b12d8 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ApplicationCreation-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ApplicationCreation-test.tsx @@ -19,10 +19,10 @@ */ import { shallow, ShallowWrapper } from 'enzyme'; import * as React from 'react'; -import { Button } from 'sonar-ui-common/components/controls/buttons'; import { getComponentNavigation } from '../../../../api/nav'; import CreateApplicationForm from '../../../../app/components/extensions/CreateApplicationForm'; import { mockAppState, mockLoggedInUser, mockRouter } from '../../../../helpers/testMocks'; +import { Button } from '../../../../sonar-ui-common/components/controls/buttons'; import { ComponentQualifier } from '../../../../types/component'; import { ApplicationCreation, ApplicationCreationProps } from '../ApplicationCreation'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ClearAll-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ClearAll-test.tsx index fc0a59f7274..5fbf88db635 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ClearAll-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ClearAll-test.tsx @@ -19,7 +19,7 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; -import { click } from 'sonar-ui-common/helpers/testUtils'; +import { click } from '../../../../sonar-ui-common/helpers/testUtils'; import ClearAll from '../ClearAll'; it('renders', () => { diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/DefaultPageSelector-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/DefaultPageSelector-test.tsx index 1445bf40746..9ac62fb5336 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/DefaultPageSelector-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/DefaultPageSelector-test.tsx @@ -19,8 +19,6 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; -import { get } from 'sonar-ui-common/helpers/storage'; -import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils'; import { searchProjects } from '../../../../api/components'; import { mockCurrentUser, @@ -29,6 +27,8 @@ import { mockRouter } from '../../../../helpers/testMocks'; import { hasGlobalPermission } from '../../../../helpers/users'; +import { get } from '../../../../sonar-ui-common/helpers/storage'; +import { waitAndUpdate } from '../../../../sonar-ui-common/helpers/testUtils'; import { DefaultPageSelector } from '../DefaultPageSelector'; jest.mock('../AllProjectsContainer', () => ({ @@ -38,7 +38,7 @@ jest.mock('../AllProjectsContainer', () => ({ } })); -jest.mock('sonar-ui-common/helpers/storage', () => ({ +jest.mock('../../../../sonar-ui-common/helpers/storage', () => ({ get: jest.fn().mockReturnValue(undefined) })); diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/FavoriteFilter-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/FavoriteFilter-test.tsx index ca76c7cb240..61be1c433b5 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/FavoriteFilter-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/FavoriteFilter-test.tsx @@ -19,11 +19,11 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; -import { save } from 'sonar-ui-common/helpers/storage'; -import { click } from 'sonar-ui-common/helpers/testUtils'; +import { save } from '../../../../sonar-ui-common/helpers/storage'; +import { click } from '../../../../sonar-ui-common/helpers/testUtils'; import FavoriteFilter from '../FavoriteFilter'; -jest.mock('sonar-ui-common/helpers/storage', () => ({ +jest.mock('../../../../sonar-ui-common/helpers/storage', () => ({ save: jest.fn() })); diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCreationMenu-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCreationMenu-test.tsx index 7afc40b3af3..d53dee50767 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCreationMenu-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectCreationMenu-test.tsx @@ -19,9 +19,9 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; -import { waitAndUpdate } from 'sonar-ui-common/helpers/testUtils'; import { getAlmSettings } from '../../../../api/alm-settings'; import { mockLoggedInUser } from '../../../../helpers/testMocks'; +import { waitAndUpdate } from '../../../../sonar-ui-common/helpers/testUtils'; import { AlmKeys } from '../../../../types/alm-settings'; import { ProjectCreationMenu } from '../ProjectCreationMenu'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectsSortingSelect-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectsSortingSelect-test.tsx index 76f41d84352..4253c43401b 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectsSortingSelect-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/ProjectsSortingSelect-test.tsx @@ -19,7 +19,7 @@ */ import { shallow } from 'enzyme'; import * as React from 'react'; -import { click } from 'sonar-ui-common/helpers/testUtils'; +import { click } from '../../../../sonar-ui-common/helpers/testUtils'; import ProjectsSortingSelect from '../ProjectsSortingSelect'; it('should render correctly for overall view', () => { diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx index 4a854f9d8f3..7ab96073b33 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCard.tsx @@ -21,18 +21,18 @@ import * as classNames from 'classnames'; import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router'; -import Tooltip from 'sonar-ui-common/components/controls/Tooltip'; -import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon'; -import DateFromNow from 'sonar-ui-common/components/intl/DateFromNow'; -import DateTimeFormatter from 'sonar-ui-common/components/intl/DateTimeFormatter'; -import SizeRating from 'sonar-ui-common/components/ui/SizeRating'; -import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; import PrivacyBadgeContainer from '../../../../components/common/PrivacyBadgeContainer'; import Favorite from '../../../../components/controls/Favorite'; import Measure from '../../../../components/measure/Measure'; import TagsList from '../../../../components/tags/TagsList'; import { getProjectUrl } from '../../../../helpers/urls'; import { isLoggedIn } from '../../../../helpers/users'; +import Tooltip from '../../../../sonar-ui-common/components/controls/Tooltip'; +import QualifierIcon from '../../../../sonar-ui-common/components/icons/QualifierIcon'; +import DateFromNow from '../../../../sonar-ui-common/components/intl/DateFromNow'; +import DateTimeFormatter from '../../../../sonar-ui-common/components/intl/DateTimeFormatter'; +import SizeRating from '../../../../sonar-ui-common/components/ui/SizeRating'; +import { translate, translateWithParameters } from '../../../../sonar-ui-common/helpers/l10n'; import { ComponentQualifier } from '../../../../types/component'; import { MetricKey } from '../../../../types/metrics'; import { Project } from '../../types'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardLanguages.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardLanguages.tsx index 996ead44a17..23316b03e90 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardLanguages.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardLanguages.tsx @@ -19,7 +19,7 @@ */ import { sortBy } from 'lodash'; import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../../sonar-ui-common/helpers/l10n'; interface Props { className?: string; diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasure.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasure.tsx index e55e51a1056..bd1d1f42a4f 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasure.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasure.tsx @@ -19,7 +19,7 @@ */ import * as classNames from 'classnames'; import * as React from 'react'; -import IssueTypeIcon from 'sonar-ui-common/components/icons/IssueTypeIcon'; +import IssueTypeIcon from '../../../../sonar-ui-common/components/icons/IssueTypeIcon'; export interface ProjectCardMeasureProps { iconKey?: string; diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasures.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasures.tsx index ab73ef5a8a6..57347d495a9 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasures.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardMeasures.tsx @@ -20,13 +20,13 @@ import * as classNames from 'classnames'; import * as difference from 'date-fns/difference_in_milliseconds'; import * as React from 'react'; -import DateTimeFormatter from 'sonar-ui-common/components/intl/DateTimeFormatter'; -import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating'; -import Rating from 'sonar-ui-common/components/ui/Rating'; -import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; -import { isDefined } from 'sonar-ui-common/helpers/types'; import Measure from '../../../../components/measure/Measure'; import CoverageRating from '../../../../components/ui/CoverageRating'; +import DateTimeFormatter from '../../../../sonar-ui-common/components/intl/DateTimeFormatter'; +import DuplicationsRating from '../../../../sonar-ui-common/components/ui/DuplicationsRating'; +import Rating from '../../../../sonar-ui-common/components/ui/Rating'; +import { translate, translateWithParameters } from '../../../../sonar-ui-common/helpers/l10n'; +import { isDefined } from '../../../../sonar-ui-common/helpers/types'; import { ComponentQualifier } from '../../../../types/component'; import { MetricKey } from '../../../../types/metrics'; import { formatDuration } from '../../utils'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardQualityGate.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardQualityGate.tsx index e879c96d591..e0c16d01a6a 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardQualityGate.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/ProjectCardQualityGate.tsx @@ -18,10 +18,10 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip'; -import Level from 'sonar-ui-common/components/ui/Level'; -import { translate } from 'sonar-ui-common/helpers/l10n'; -import { formatMeasure } from 'sonar-ui-common/helpers/measures'; +import HelpTooltip from '../../../../sonar-ui-common/components/controls/HelpTooltip'; +import Level from '../../../../sonar-ui-common/components/ui/Level'; +import { translate } from '../../../../sonar-ui-common/helpers/l10n'; +import { formatMeasure } from '../../../../sonar-ui-common/helpers/measures'; interface Props { status?: string; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/CoverageFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/CoverageFilter.tsx index 7b27656d205..b656d3716f2 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/CoverageFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/CoverageFilter.tsx @@ -18,12 +18,12 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import CoverageRating from '../../../components/ui/CoverageRating'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { getCoverageRatingAverageValue, getCoverageRatingLabel -} from 'sonar-ui-common/helpers/ratings'; -import CoverageRating from '../../../components/ui/CoverageRating'; +} from '../../../sonar-ui-common/helpers/ratings'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/DuplicationsFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/DuplicationsFilter.tsx index df0cd9368db..a06946a3c98 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/DuplicationsFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/DuplicationsFilter.tsx @@ -18,12 +18,12 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import DuplicationsRating from 'sonar-ui-common/components/ui/DuplicationsRating'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import DuplicationsRating from '../../../sonar-ui-common/components/ui/DuplicationsRating'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { getDuplicationsRatingAverageValue, getDuplicationsRatingLabel -} from 'sonar-ui-common/helpers/ratings'; +} from '../../../sonar-ui-common/helpers/ratings'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/Filter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/Filter.tsx index b11139ae9d4..6c8f79e38a1 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/Filter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/Filter.tsx @@ -19,8 +19,8 @@ */ import * as classNames from 'classnames'; import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; -import { formatMeasure } from 'sonar-ui-common/helpers/measures'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; +import { formatMeasure } from '../../../sonar-ui-common/helpers/measures'; import { Facet } from '../types'; export type Option = string | number; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/IssuesFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/IssuesFilter.tsx index 231010c049f..b437b47f244 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/IssuesFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/IssuesFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import Rating from 'sonar-ui-common/components/ui/Rating'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import Rating from '../../../sonar-ui-common/components/ui/Rating'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.tsx index d00359e387d..6e3c8a53469 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/LanguagesFilter.tsx @@ -19,7 +19,7 @@ */ import { difference, sortBy } from 'lodash'; import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { getLanguageByKey } from '../../../store/languages'; import { Facet } from '../types'; import Filter from './Filter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/MaintainabilityFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/MaintainabilityFilter.tsx index a3200831379..a6bb27b3042 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/MaintainabilityFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/MaintainabilityFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import CodeSmellIcon from 'sonar-ui-common/components/icons/CodeSmellIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import CodeSmellIcon from '../../../sonar-ui-common/components/icons/CodeSmellIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import IssuesFilter from './IssuesFilter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/NewLinesFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/NewLinesFilter.tsx index 891492b8d5b..86e5b4f1f81 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/NewLinesFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/NewLinesFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; -import { getSizeRatingLabel } from 'sonar-ui-common/helpers/ratings'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; +import { getSizeRatingLabel } from '../../../sonar-ui-common/helpers/ratings'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/NewMaintainabilityFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/NewMaintainabilityFilter.tsx index 36a9c4c801c..66325a135b7 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/NewMaintainabilityFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/NewMaintainabilityFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import CodeSmellIcon from 'sonar-ui-common/components/icons/CodeSmellIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import CodeSmellIcon from '../../../sonar-ui-common/components/icons/CodeSmellIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import IssuesFilter from './IssuesFilter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/NewReliabilityFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/NewReliabilityFilter.tsx index ea28235f4fb..3bf152eeae5 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/NewReliabilityFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/NewReliabilityFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import BugIcon from 'sonar-ui-common/components/icons/BugIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import BugIcon from '../../../sonar-ui-common/components/icons/BugIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import IssuesFilter from './IssuesFilter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/NewSecurityFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/NewSecurityFilter.tsx index 24a9a03292d..092d0a4a54a 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/NewSecurityFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/NewSecurityFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import VulnerabilityIcon from '../../../sonar-ui-common/components/icons/VulnerabilityIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import IssuesFilter from './IssuesFilter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/QualifierFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/QualifierFilter.tsx index bd271ad3f3c..a59fde35725 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/QualifierFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/QualifierFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import QualifierIcon from '../../../sonar-ui-common/components/icons/QualifierIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { ComponentQualifier } from '../../../types/component'; import { Facet } from '../types'; import Filter from './Filter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/QualityGateFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/QualityGateFilter.tsx index e0f4ba36881..347c88539a9 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/QualityGateFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/QualityGateFilter.tsx @@ -18,9 +18,9 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip'; -import Level from 'sonar-ui-common/components/ui/Level'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import HelpTooltip from '../../../sonar-ui-common/components/controls/HelpTooltip'; +import Level from '../../../sonar-ui-common/components/ui/Level'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/ReliabilityFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/ReliabilityFilter.tsx index d8d6bbd50b1..952a6ef84d5 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/ReliabilityFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/ReliabilityFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import BugIcon from 'sonar-ui-common/components/icons/BugIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import BugIcon from '../../../sonar-ui-common/components/icons/BugIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import IssuesFilter from './IssuesFilter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/SearchFilterContainer.tsx b/server/sonar-web/src/main/js/apps/projects/filters/SearchFilterContainer.tsx index a2e94cde4c1..b4f2563967f 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/SearchFilterContainer.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/SearchFilterContainer.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import SearchBox from 'sonar-ui-common/components/controls/SearchBox'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import SearchBox from '../../../sonar-ui-common/components/controls/SearchBox'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; interface Props { query: { search?: string }; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.tsx index ce2d7230890..5e184e6a4f4 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterFooter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import Select from 'sonar-ui-common/components/controls/Select'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import Select from '../../../sonar-ui-common/components/controls/Select'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; interface Props { isFavorite?: boolean; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterOption.tsx b/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterOption.tsx index c3529a9e19c..e787a18af65 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterOption.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/SearchableFilterOption.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; interface Props { option?: { name: string }; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/SecurityFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/SecurityFilter.tsx index 70da56f336e..be34bbbf52c 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/SecurityFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/SecurityFilter.tsx @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import VulnerabilityIcon from 'sonar-ui-common/components/icons/VulnerabilityIcon'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import VulnerabilityIcon from '../../../sonar-ui-common/components/icons/VulnerabilityIcon'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import IssuesFilter from './IssuesFilter'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/SecurityReviewFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/SecurityReviewFilter.tsx index 1a9eafb543b..ec8ea03df5e 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/SecurityReviewFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/SecurityReviewFilter.tsx @@ -18,9 +18,9 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import SecurityHotspotIcon from 'sonar-ui-common/components/icons/SecurityHotspotIcon'; -import Rating from 'sonar-ui-common/components/ui/Rating'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import SecurityHotspotIcon from '../../../sonar-ui-common/components/icons/SecurityHotspotIcon'; +import Rating from '../../../sonar-ui-common/components/ui/Rating'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/SizeFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/SizeFilter.tsx index 32488a495a1..8265900fa18 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/SizeFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/SizeFilter.tsx @@ -18,9 +18,12 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import SizeRating from 'sonar-ui-common/components/ui/SizeRating'; -import { translate } from 'sonar-ui-common/helpers/l10n'; -import { getSizeRatingAverageValue, getSizeRatingLabel } from 'sonar-ui-common/helpers/ratings'; +import SizeRating from '../../../sonar-ui-common/components/ui/SizeRating'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; +import { + getSizeRatingAverageValue, + getSizeRatingLabel +} from '../../../sonar-ui-common/helpers/ratings'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.tsx b/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.tsx index c4290be3b85..3e78ddcd323 100644 --- a/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.tsx +++ b/server/sonar-web/src/main/js/apps/projects/filters/TagsFilter.tsx @@ -19,8 +19,8 @@ */ import { debounce, difference, size, sortBy } from 'lodash'; import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import { searchProjectTags } from '../../../api/components'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Facet } from '../types'; import Filter from './Filter'; import FilterHeader from './FilterHeader'; diff --git a/server/sonar-web/src/main/js/apps/projects/routes.ts b/server/sonar-web/src/main/js/apps/projects/routes.ts index e1d22ef0daf..cc026f8dd9b 100644 --- a/server/sonar-web/src/main/js/apps/projects/routes.ts +++ b/server/sonar-web/src/main/js/apps/projects/routes.ts @@ -18,8 +18,8 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import { RedirectFunction, RouterState } from 'react-router'; -import { lazyLoadComponent } from 'sonar-ui-common/components/lazyLoadComponent'; -import { save } from 'sonar-ui-common/helpers/storage'; +import { lazyLoadComponent } from '../../sonar-ui-common/components/lazyLoadComponent'; +import { save } from '../../sonar-ui-common/helpers/storage'; import { PROJECTS_ALL, PROJECTS_DEFAULT_FILTER } from './utils'; const routes = [ diff --git a/server/sonar-web/src/main/js/apps/projects/utils.ts b/server/sonar-web/src/main/js/apps/projects/utils.ts index 60611e67ed7..f729cf3a72e 100644 --- a/server/sonar-web/src/main/js/apps/projects/utils.ts +++ b/server/sonar-web/src/main/js/apps/projects/utils.ts @@ -18,11 +18,11 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import { invert } from 'lodash'; -import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; -import { RequestData } from 'sonar-ui-common/helpers/request'; import { Facet, searchProjects } from '../../api/components'; import { getMeasuresForProjects } from '../../api/measures'; import { isDiffMetric } from '../../helpers/measures'; +import { translate, translateWithParameters } from '../../sonar-ui-common/helpers/l10n'; +import { RequestData } from '../../sonar-ui-common/helpers/request'; import { MetricKey } from '../../types/metrics'; import { convertToFilter, Query } from './query'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.tsx index ba071412e78..ee807a7ffcd 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Coverage.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Project } from '../types'; import SimpleBubbleChart from './SimpleBubbleChart'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Duplications.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/Duplications.tsx index 4ed730dc17e..a353b4810c4 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/Duplications.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Duplications.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Project } from '../types'; import SimpleBubbleChart from './SimpleBubbleChart'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Maintainability.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/Maintainability.tsx index c8cf6dc08dc..d963b5359ba 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/Maintainability.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Maintainability.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Project } from '../types'; import SimpleBubbleChart from './SimpleBubbleChart'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Reliability.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/Reliability.tsx index ad86f70116d..e62c648276a 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/Reliability.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Reliability.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Project } from '../types'; import SimpleBubbleChart from './SimpleBubbleChart'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Risk.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/Risk.tsx index b9c21d671fa..013026433b3 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/Risk.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Risk.tsx @@ -18,15 +18,15 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import BubbleChart from 'sonar-ui-common/components/charts/BubbleChart'; -import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip'; -import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon'; -import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; -import { formatMeasure } from 'sonar-ui-common/helpers/measures'; -import { isDefined } from 'sonar-ui-common/helpers/types'; import ColorRatingsLegend from '../../../components/charts/ColorRatingsLegend'; import { RATING_COLORS } from '../../../helpers/constants'; import { getProjectUrl } from '../../../helpers/urls'; +import BubbleChart from '../../../sonar-ui-common/components/charts/BubbleChart'; +import HelpTooltip from '../../../sonar-ui-common/components/controls/HelpTooltip'; +import QualifierIcon from '../../../sonar-ui-common/components/icons/QualifierIcon'; +import { translate, translateWithParameters } from '../../../sonar-ui-common/helpers/l10n'; +import { formatMeasure } from '../../../sonar-ui-common/helpers/measures'; +import { isDefined } from '../../../sonar-ui-common/helpers/types'; import { ComponentQualifier } from '../../../types/component'; import { Project } from '../types'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Security.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/Security.tsx index 0181ac2eb46..d2df2ff39b9 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/Security.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Security.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate } from 'sonar-ui-common/helpers/l10n'; +import { translate } from '../../../sonar-ui-common/helpers/l10n'; import { Project } from '../types'; import SimpleBubbleChart from './SimpleBubbleChart'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.tsx index be22f59d320..9d387853d9c 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.tsx @@ -18,15 +18,15 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import BubbleChart from 'sonar-ui-common/components/charts/BubbleChart'; -import HelpTooltip from 'sonar-ui-common/components/controls/HelpTooltip'; -import QualifierIcon from 'sonar-ui-common/components/icons/QualifierIcon'; -import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; -import { formatMeasure } from 'sonar-ui-common/helpers/measures'; -import { isDefined } from 'sonar-ui-common/helpers/types'; import ColorRatingsLegend from '../../../components/charts/ColorRatingsLegend'; import { RATING_COLORS } from '../../../helpers/constants'; import { getProjectUrl } from '../../../helpers/urls'; +import BubbleChart from '../../../sonar-ui-common/components/charts/BubbleChart'; +import HelpTooltip from '../../../sonar-ui-common/components/controls/HelpTooltip'; +import QualifierIcon from '../../../sonar-ui-common/components/icons/QualifierIcon'; +import { translate, translateWithParameters } from '../../../sonar-ui-common/helpers/l10n'; +import { formatMeasure } from '../../../sonar-ui-common/helpers/measures'; +import { isDefined } from '../../../sonar-ui-common/helpers/types'; import { ComponentQualifier } from '../../../types/component'; import { Project } from '../types'; diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/Visualizations.tsx b/server/sonar-web/src/main/js/apps/projects/visualizations/Visualizations.tsx index b4b259882cb..3dc25731990 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/Visualizations.tsx +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/Visualizations.tsx @@ -18,7 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; +import { translate, translateWithParameters } from '../../../sonar-ui-common/helpers/l10n'; import { Project } from '../types'; import { localizeSorting } from '../utils'; import Coverage from './Coverage'; |