diff options
author | David Cho-Lerat <117642976+david-cho-lerat-sonarsource@users.noreply.github.com> | 2024-10-22 15:19:18 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-22 20:03:10 +0000 |
commit | d9f6920331a0f274f1d6227c2af74d6dbfe84aa2 (patch) | |
tree | 3228b99c665c03e6c1bf2a1f68d9d90865f8558b /server/sonar-web/src/main/js/apps/system/components | |
parent | c33a6b9956802dfa00133e304326887b901af901 (diff) | |
download | sonarqube-d9f6920331a0f274f1d6227c2af74d6dbfe84aa2.tar.gz sonarqube-d9f6920331a0f274f1d6227c2af74d6dbfe84aa2.zip |
SONAR-23206 Remove design-system build to have it as normal code inside sonar-web (#12088)
Co-authored-by: Grégoire Aubert <gregoire.aubert@sonarsource.com>
Co-authored-by: Jeremy Davis <jeremy.davis@sonarsource.com>
Diffstat (limited to 'server/sonar-web/src/main/js/apps/system/components')
12 files changed, 22 insertions, 19 deletions
diff --git a/server/sonar-web/src/main/js/apps/system/components/ChangeLogLevelForm.tsx b/server/sonar-web/src/main/js/apps/system/components/ChangeLogLevelForm.tsx index ba99739c585..d03cfa4d816 100644 --- a/server/sonar-web/src/main/js/apps/system/components/ChangeLogLevelForm.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/ChangeLogLevelForm.tsx @@ -17,9 +17,10 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import { Button, ButtonVariety, RadioButtonGroup } from '@sonarsource/echoes-react'; -import { FlagMessage, Modal } from 'design-system'; import * as React from 'react'; +import { FlagMessage, Modal } from '~design-system'; import { setLogLevel } from '../../../api/system'; import { translate } from '../../../helpers/l10n'; import { LOGS_LEVELS } from '../utils'; diff --git a/server/sonar-web/src/main/js/apps/system/components/ClusterSysInfos.tsx b/server/sonar-web/src/main/js/apps/system/components/ClusterSysInfos.tsx index 67a7e68d375..1f4d77506a8 100644 --- a/server/sonar-web/src/main/js/apps/system/components/ClusterSysInfos.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/ClusterSysInfos.tsx @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { Note, UnorderedList } from 'design-system'; + import { sortBy } from 'lodash'; -import * as React from 'react'; +import { Note, UnorderedList } from '~design-system'; import { translate } from '../../../helpers/l10n'; import { SysInfoAppNode, SysInfoCluster, SysInfoSearchNode } from '../../../types/types'; import { diff --git a/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx b/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx index 09cb66272d4..73095f35359 100644 --- a/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx @@ -17,6 +17,8 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +import * as React from 'react'; import { ButtonPrimary, ChevronDownIcon, @@ -25,8 +27,7 @@ import { InteractiveIcon, ItemDownload, PencilIcon, -} from 'design-system'; -import * as React from 'react'; +} from '~design-system'; import { translate } from '../../../helpers/l10n'; import { getBaseUrl } from '../../../helpers/system'; import { getFileNameSuffix } from '../utils'; diff --git a/server/sonar-web/src/main/js/apps/system/components/PageHeader.tsx b/server/sonar-web/src/main/js/apps/system/components/PageHeader.tsx index a9e10bea8af..ff4252decaa 100644 --- a/server/sonar-web/src/main/js/apps/system/components/PageHeader.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/PageHeader.tsx @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import { Spinner } from '@sonarsource/echoes-react'; -import { Card, ClipboardButton, FlagMessage, Title } from 'design-system'; -import * as React from 'react'; +import { Card, ClipboardButton, FlagMessage, Title } from '~design-system'; import withAppStateContext from '../../../app/components/app-state/withAppStateContext'; import AppVersionStatus from '../../../components/shared/AppVersionStatus'; import { toShortISO8601String } from '../../../helpers/dates'; diff --git a/server/sonar-web/src/main/js/apps/system/components/StandaloneSysInfos.tsx b/server/sonar-web/src/main/js/apps/system/components/StandaloneSysInfos.tsx index 6a8acbe7f7a..5b54734362b 100644 --- a/server/sonar-web/src/main/js/apps/system/components/StandaloneSysInfos.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/StandaloneSysInfos.tsx @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { UnorderedList } from 'design-system'; + import { map } from 'lodash'; -import * as React from 'react'; +import { UnorderedList } from '~design-system'; import { SysInfoStandalone } from '../../../types/types'; import { getHealth, diff --git a/server/sonar-web/src/main/js/apps/system/components/SystemApp.tsx b/server/sonar-web/src/main/js/apps/system/components/SystemApp.tsx index efc7d96a17d..0d142ef634e 100644 --- a/server/sonar-web/src/main/js/apps/system/components/SystemApp.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/SystemApp.tsx @@ -18,9 +18,9 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { LargeCenteredLayout, PageContentFontWrapper } from 'design-system'; import * as React from 'react'; import { Helmet } from 'react-helmet-async'; +import { LargeCenteredLayout, PageContentFontWrapper } from '~design-system'; import { withRouter } from '~sonar-aligned/components/hoc/withRouter'; import { Location, Router } from '~sonar-aligned/types/router'; import { getSystemInfo } from '../../../api/system'; diff --git a/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx b/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx index 756edf56855..f15e9e0128d 100644 --- a/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx @@ -17,6 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import { screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { first } from 'lodash'; diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCard.tsx b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCard.tsx index ad723d90ffc..117d3cb5111 100644 --- a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCard.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCard.tsx @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { Accordion, FlagMessage, SubHeadingHighlight } from 'design-system'; + import { map } from 'lodash'; -import * as React from 'react'; +import { Accordion, FlagMessage, SubHeadingHighlight } from '~design-system'; import { translate } from '../../../../helpers/l10n'; import { HealthTypes, SysInfoValueObject } from '../../../../types/types'; import { LogsLevels, getLogsLevel, groupSections } from '../../utils'; diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCauseItem.tsx b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCauseItem.tsx index f41956f8013..40e1908e6ba 100644 --- a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCauseItem.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthCauseItem.tsx @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import classNames from 'classnames'; -import { FlagMessage } from 'design-system'; -import * as React from 'react'; +import { FlagMessage } from '~design-system'; import { HealthTypes } from '../../../../types/types'; interface Props { diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx index 5b6ffb280e7..10a1e68e1ab 100644 --- a/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/info-items/HealthItem.tsx @@ -17,8 +17,8 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import classNames from 'classnames'; -import * as React from 'react'; import StatusIndicator from '../../../../components/common/StatusIndicator'; import Tooltip from '../../../../components/controls/Tooltip'; import { translateWithParameters } from '../../../../helpers/l10n'; diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/Section.tsx b/server/sonar-web/src/main/js/apps/system/components/info-items/Section.tsx index 331249eba2c..3ff84961aa9 100644 --- a/server/sonar-web/src/main/js/apps/system/components/info-items/Section.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/info-items/Section.tsx @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { ContentCell, SubHeading, Table, TableRow } from 'design-system'; + import { map } from 'lodash'; -import * as React from 'react'; +import { ContentCell, SubHeading, Table, TableRow } from '~design-system'; import { SysInfoValueObject } from '../../../../types/types'; import SysInfoItem from './SysInfoItem'; diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/SysInfoItem.tsx b/server/sonar-web/src/main/js/apps/system/components/info-items/SysInfoItem.tsx index bbbeef434a4..957586ed782 100644 --- a/server/sonar-web/src/main/js/apps/system/components/info-items/SysInfoItem.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/info-items/SysInfoItem.tsx @@ -17,9 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { ContentCell, Table, TableRow } from 'design-system'; + import { map } from 'lodash'; -import * as React from 'react'; +import { ContentCell, Table, TableRow } from '~design-system'; import { translate } from '../../../../helpers/l10n'; import { HealthTypes, SysInfoValue } from '../../../../types/types'; import { HEALTH_FIELD, STATE_FIELD } from '../../utils'; |