ESLint: Add rule to sort imports alphabetically
The `import/order` rule isn't enough to sort import within a single import group alphabetically. This adds `sort-imports` rule that handles the sorting within groups.
This commit is contained in:
parent
91b2cc2d10
commit
25a5f140d8
98 changed files with 437 additions and 432 deletions
|
|
@ -86,6 +86,11 @@ module.exports = defineConfig([
|
|||
],
|
||||
pathGroupsExcludedImportTypes: ['react']
|
||||
}],
|
||||
'sort-imports': ['error', {
|
||||
ignoreCase: true,
|
||||
ignoreDeclarationSort: true,
|
||||
ignoreMemberSort: false,
|
||||
}],
|
||||
'no-duplicate-imports': 'error',
|
||||
'prefer-const': ['error', {
|
||||
destructuring: 'any',
|
||||
|
|
|
|||
|
|
@ -6,18 +6,18 @@ import { test } from '../fixtures/cleanup';
|
|||
import { isHosted } from '../helpers/helpers';
|
||||
import { ensureAuthenticated } from '../helpers/login';
|
||||
import {
|
||||
navigateToOptionalSteps,
|
||||
ibFrame,
|
||||
navigateToLandingPage,
|
||||
navigateToOptionalSteps,
|
||||
} from '../helpers/navHelpers';
|
||||
import {
|
||||
registerLater,
|
||||
fillInDetails,
|
||||
createBlueprint,
|
||||
fillInImageOutputGuest,
|
||||
deleteBlueprint,
|
||||
exportBlueprint,
|
||||
fillInDetails,
|
||||
fillInImageOutputGuest,
|
||||
importBlueprint,
|
||||
registerLater,
|
||||
} from '../helpers/wizardHelpers';
|
||||
|
||||
test('Create a blueprint with Filesystem customization', async ({
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@ import { test } from '../fixtures/customizations';
|
|||
import { isHosted } from '../helpers/helpers';
|
||||
import { ensureAuthenticated } from '../helpers/login';
|
||||
import {
|
||||
navigateToOptionalSteps,
|
||||
ibFrame,
|
||||
navigateToLandingPage,
|
||||
navigateToOptionalSteps,
|
||||
} from '../helpers/navHelpers';
|
||||
import {
|
||||
registerLater,
|
||||
fillInDetails,
|
||||
createBlueprint,
|
||||
fillInImageOutputGuest,
|
||||
deleteBlueprint,
|
||||
exportBlueprint,
|
||||
fillInDetails,
|
||||
fillInImageOutputGuest,
|
||||
importBlueprint,
|
||||
registerLater,
|
||||
} from '../helpers/wizardHelpers';
|
||||
|
||||
test('Create a blueprint with Firewall customization', async ({
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@ import { test } from '../fixtures/customizations';
|
|||
import { isHosted } from '../helpers/helpers';
|
||||
import { ensureAuthenticated } from '../helpers/login';
|
||||
import {
|
||||
navigateToOptionalSteps,
|
||||
ibFrame,
|
||||
navigateToLandingPage,
|
||||
navigateToOptionalSteps,
|
||||
} from '../helpers/navHelpers';
|
||||
import {
|
||||
registerLater,
|
||||
fillInDetails,
|
||||
createBlueprint,
|
||||
fillInImageOutputGuest,
|
||||
deleteBlueprint,
|
||||
exportBlueprint,
|
||||
fillInDetails,
|
||||
fillInImageOutputGuest,
|
||||
importBlueprint,
|
||||
registerLater,
|
||||
} from '../helpers/wizardHelpers';
|
||||
|
||||
test('Create a blueprint with Hostname customization', async ({
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@ import { test } from '../fixtures/customizations';
|
|||
import { isHosted } from '../helpers/helpers';
|
||||
import { ensureAuthenticated } from '../helpers/login';
|
||||
import {
|
||||
navigateToOptionalSteps,
|
||||
ibFrame,
|
||||
navigateToLandingPage,
|
||||
navigateToOptionalSteps,
|
||||
} from '../helpers/navHelpers';
|
||||
import {
|
||||
registerLater,
|
||||
fillInDetails,
|
||||
createBlueprint,
|
||||
fillInImageOutputGuest,
|
||||
deleteBlueprint,
|
||||
exportBlueprint,
|
||||
fillInDetails,
|
||||
fillInImageOutputGuest,
|
||||
importBlueprint,
|
||||
registerLater,
|
||||
} from '../helpers/wizardHelpers';
|
||||
|
||||
test('Create a blueprint with Kernel customization', async ({
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@ import { test } from '../fixtures/customizations';
|
|||
import { isHosted } from '../helpers/helpers';
|
||||
import { ensureAuthenticated } from '../helpers/login';
|
||||
import {
|
||||
navigateToOptionalSteps,
|
||||
ibFrame,
|
||||
navigateToLandingPage,
|
||||
navigateToOptionalSteps,
|
||||
} from '../helpers/navHelpers';
|
||||
import {
|
||||
registerLater,
|
||||
fillInDetails,
|
||||
createBlueprint,
|
||||
fillInImageOutputGuest,
|
||||
deleteBlueprint,
|
||||
exportBlueprint,
|
||||
fillInDetails,
|
||||
fillInImageOutputGuest,
|
||||
importBlueprint,
|
||||
registerLater,
|
||||
} from '../helpers/wizardHelpers';
|
||||
|
||||
test('Create a blueprint with Locale customization', async ({
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@ import { test } from '../fixtures/customizations';
|
|||
import { isHosted } from '../helpers/helpers';
|
||||
import { ensureAuthenticated } from '../helpers/login';
|
||||
import {
|
||||
navigateToOptionalSteps,
|
||||
ibFrame,
|
||||
navigateToLandingPage,
|
||||
navigateToOptionalSteps,
|
||||
} from '../helpers/navHelpers';
|
||||
import {
|
||||
registerLater,
|
||||
fillInDetails,
|
||||
createBlueprint,
|
||||
fillInImageOutputGuest,
|
||||
deleteBlueprint,
|
||||
exportBlueprint,
|
||||
fillInDetails,
|
||||
fillInImageOutputGuest,
|
||||
importBlueprint,
|
||||
registerLater,
|
||||
} from '../helpers/wizardHelpers';
|
||||
|
||||
test('Create a blueprint with Systemd customization', async ({
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@ import { test } from '../fixtures/customizations';
|
|||
import { isHosted } from '../helpers/helpers';
|
||||
import { ensureAuthenticated } from '../helpers/login';
|
||||
import {
|
||||
navigateToOptionalSteps,
|
||||
ibFrame,
|
||||
navigateToLandingPage,
|
||||
navigateToOptionalSteps,
|
||||
} from '../helpers/navHelpers';
|
||||
import {
|
||||
registerLater,
|
||||
fillInDetails,
|
||||
createBlueprint,
|
||||
fillInImageOutputGuest,
|
||||
deleteBlueprint,
|
||||
exportBlueprint,
|
||||
fillInDetails,
|
||||
fillInImageOutputGuest,
|
||||
importBlueprint,
|
||||
registerLater,
|
||||
} from '../helpers/wizardHelpers';
|
||||
|
||||
test('Create a blueprint with Timezone customization', async ({
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { type Page, expect } from '@playwright/test';
|
||||
import { expect, type Page } from '@playwright/test';
|
||||
|
||||
export const togglePreview = async (page: Page) => {
|
||||
const toggleSwitch = page.locator('#preview-toggle');
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import path from 'path';
|
||||
|
||||
import { type Page, expect } from '@playwright/test';
|
||||
import { expect, type Page } from '@playwright/test';
|
||||
|
||||
import { closePopupsIfExist, isHosted, togglePreview } from './helpers';
|
||||
import { ibFrame } from './navHelpers';
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import React from 'react';
|
|||
import {
|
||||
Badge,
|
||||
Card,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
CardBody,
|
||||
CardFooter,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
Spinner,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ import { DiffEditor } from '@monaco-editor/react';
|
|||
import {
|
||||
Button,
|
||||
Modal,
|
||||
ModalVariant,
|
||||
ModalBody,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
ModalVariant,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
import { BuildImagesButton } from './BuildImagesButton';
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ import { MenuToggleElement } from '@patternfly/react-core/dist/esm/components/Me
|
|||
import { FilterIcon } from '@patternfly/react-icons';
|
||||
|
||||
import {
|
||||
versionFilterType,
|
||||
selectBlueprintVersionFilter,
|
||||
setBlueprintVersionFilter,
|
||||
versionFilterType,
|
||||
} from '../../store/BlueprintSlice';
|
||||
import { useAppDispatch, useAppSelector } from '../../store/hooks';
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ import BlueprintsPagination from './BlueprintsPagination';
|
|||
|
||||
import {
|
||||
DEBOUNCED_SEARCH_WAIT_TIME,
|
||||
PAGINATION_OFFSET,
|
||||
PAGINATION_LIMIT,
|
||||
PAGINATION_OFFSET,
|
||||
} from '../../constants';
|
||||
import { useGetBlueprintsQuery } from '../../store/backendApi';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
ButtonProps,
|
||||
Dropdown,
|
||||
MenuToggle,
|
||||
Menu,
|
||||
MenuContent,
|
||||
MenuList,
|
||||
MenuItem,
|
||||
Flex,
|
||||
FlexItem,
|
||||
Spinner,
|
||||
Menu,
|
||||
MenuContent,
|
||||
MenuItem,
|
||||
MenuList,
|
||||
MenuToggle,
|
||||
MenuToggleAction,
|
||||
ButtonProps,
|
||||
Button,
|
||||
Spinner,
|
||||
} from '@patternfly/react-core';
|
||||
import { MenuToggleElement } from '@patternfly/react-core/dist/esm/components/MenuToggle/MenuToggle';
|
||||
import useChrome from '@redhat-cloud-services/frontend-components/useChrome';
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ import React, { useEffect, useState } from 'react';
|
|||
|
||||
import {
|
||||
Button,
|
||||
Flex,
|
||||
PageSection,
|
||||
PageSectionTypes,
|
||||
useWizardContext,
|
||||
Wizard,
|
||||
WizardFooterWrapper,
|
||||
WizardNavItem,
|
||||
WizardStep,
|
||||
useWizardContext,
|
||||
PageSection,
|
||||
PageSectionTypes,
|
||||
Flex,
|
||||
} from '@patternfly/react-core';
|
||||
import { WizardStepType } from '@patternfly/react-core/dist/esm/components/Wizard';
|
||||
import useChrome from '@redhat-cloud-services/frontend-components/useChrome';
|
||||
|
|
@ -40,40 +40,41 @@ import UsersStep from './steps/Users';
|
|||
import { getHostArch, getHostDistro } from './utilities/getHostInfo';
|
||||
import { useHasSpecificTargetOnly } from './utilities/hasSpecificTargetOnly';
|
||||
import {
|
||||
useFilesystemValidation,
|
||||
useSnapshotValidation,
|
||||
useFirstBootValidation,
|
||||
useDetailsValidation,
|
||||
useRegistrationValidation,
|
||||
useFilesystemValidation,
|
||||
useFirewallValidation,
|
||||
useFirstBootValidation,
|
||||
useHostnameValidation,
|
||||
useKernelValidation,
|
||||
useUsersValidation,
|
||||
useTimezoneValidation,
|
||||
useFirewallValidation,
|
||||
useServicesValidation,
|
||||
useLocaleValidation,
|
||||
useRegistrationValidation,
|
||||
useServicesValidation,
|
||||
useSnapshotValidation,
|
||||
useTimezoneValidation,
|
||||
useUsersValidation,
|
||||
} from './utilities/useValidation';
|
||||
import {
|
||||
isAwsAccountIdValid,
|
||||
isAzureTenantGUIDValid,
|
||||
isAzureSubscriptionIdValid,
|
||||
isAzureResourceGroupValid,
|
||||
isAzureSubscriptionIdValid,
|
||||
isAzureTenantGUIDValid,
|
||||
isGcpEmailValid,
|
||||
} from './validators';
|
||||
|
||||
import {
|
||||
RHEL_8,
|
||||
RHEL_10_BETA,
|
||||
RHEL_10,
|
||||
AARCH64,
|
||||
AMPLITUDE_MODULE_NAME,
|
||||
RHEL_10,
|
||||
RHEL_10_BETA,
|
||||
RHEL_8,
|
||||
RHEL_9,
|
||||
} from '../../constants';
|
||||
import { useAppDispatch, useAppSelector } from '../../store/hooks';
|
||||
import './CreateImageWizard.scss';
|
||||
import {
|
||||
changeDistribution,
|
||||
addImageType,
|
||||
changeArchitecture,
|
||||
changeDistribution,
|
||||
initializeWizard,
|
||||
selectAwsAccountId,
|
||||
selectAwsShareMethod,
|
||||
|
|
@ -87,7 +88,6 @@ import {
|
|||
selectGcpEmail,
|
||||
selectGcpShareMethod,
|
||||
selectImageTypes,
|
||||
addImageType,
|
||||
} from '../../store/wizardSlice';
|
||||
import isRhel from '../../Utilities/isRhel';
|
||||
import { resolveRelPath } from '../../Utilities/path';
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Content,
|
||||
Form,
|
||||
FormGroup,
|
||||
FormHelperText,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
Content,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import { FormGroup, Label, Radio } from '@patternfly/react-core';
|
|||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import {
|
||||
changeFileSystemConfigurationType,
|
||||
selectFileSystemConfigurationType,
|
||||
selectComplianceProfileID,
|
||||
selectFileSystemConfigurationType,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
|
||||
const FileSystemPartition = () => {
|
||||
|
|
|
|||
|
|
@ -1,28 +1,28 @@
|
|||
import React, { useRef, useState } from 'react';
|
||||
|
||||
import {
|
||||
Popover,
|
||||
Content,
|
||||
Button,
|
||||
Alert,
|
||||
TextInput,
|
||||
Select,
|
||||
MenuToggleElement,
|
||||
Button,
|
||||
Content,
|
||||
MenuToggle,
|
||||
MenuToggleElement,
|
||||
Popover,
|
||||
Select,
|
||||
SelectList,
|
||||
SelectOption,
|
||||
TextInput,
|
||||
} from '@patternfly/react-core';
|
||||
import { HelpIcon, MinusCircleIcon } from '@patternfly/react-icons';
|
||||
import styles from '@patternfly/react-styles/css/components/Table/table';
|
||||
import {
|
||||
Table,
|
||||
Th,
|
||||
Thead,
|
||||
Tbody,
|
||||
Tr,
|
||||
TrProps,
|
||||
TbodyProps,
|
||||
Td,
|
||||
Th,
|
||||
Thead,
|
||||
Tr,
|
||||
TrProps,
|
||||
} from '@patternfly/react-table';
|
||||
|
||||
import { UNIT_GIB, UNIT_KIB, UNIT_MIB } from '../../../../../constants';
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ import React from 'react';
|
|||
|
||||
import { CodeEditor, Language } from '@patternfly/react-code-editor';
|
||||
import {
|
||||
Alert,
|
||||
Content,
|
||||
Form,
|
||||
FormGroup,
|
||||
FormHelperText,
|
||||
Title,
|
||||
Alert,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
import { FIRST_BOOT_SERVICE } from '../../../../constants';
|
||||
|
|
|
|||
|
|
@ -14,14 +14,14 @@ import { Bar } from 'react-chartjs-2';
|
|||
|
||||
import {
|
||||
RELEASE_LIFECYCLE_URL,
|
||||
RHEL_10_FULL_SUPPORT,
|
||||
RHEL_10_MAINTENANCE_SUPPORT,
|
||||
RHEL_8,
|
||||
RHEL_8_FULL_SUPPORT,
|
||||
RHEL_8_MAINTENANCE_SUPPORT,
|
||||
RHEL_9,
|
||||
RHEL_9_FULL_SUPPORT,
|
||||
RHEL_9_MAINTENANCE_SUPPORT,
|
||||
RHEL_10_FULL_SUPPORT,
|
||||
RHEL_10_MAINTENANCE_SUPPORT,
|
||||
} from '../../../../../constants';
|
||||
import { useAppSelector } from '../../../../../store/hooks';
|
||||
import { selectDistribution } from '../../../../../store/wizardSlice';
|
||||
|
|
|
|||
|
|
@ -10,7 +10,12 @@ import {
|
|||
} from '@patternfly/react-core';
|
||||
|
||||
import {
|
||||
ON_PREM_RELEASES,
|
||||
RELEASES,
|
||||
RHEL_10,
|
||||
RHEL_10_BETA,
|
||||
RHEL_10_FULL_SUPPORT,
|
||||
RHEL_10_MAINTENANCE_SUPPORT,
|
||||
RHEL_8,
|
||||
RHEL_8_FULL_SUPPORT,
|
||||
RHEL_8_MAINTENANCE_SUPPORT,
|
||||
|
|
@ -18,11 +23,6 @@ import {
|
|||
RHEL_9_BETA,
|
||||
RHEL_9_FULL_SUPPORT,
|
||||
RHEL_9_MAINTENANCE_SUPPORT,
|
||||
RHEL_10_BETA,
|
||||
RHEL_10,
|
||||
RHEL_10_FULL_SUPPORT,
|
||||
RHEL_10_MAINTENANCE_SUPPORT,
|
||||
ON_PREM_RELEASES,
|
||||
} from '../../../../../constants';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import { Distributions } from '../../../../../store/imageBuilderApi';
|
||||
|
|
|
|||
|
|
@ -3,20 +3,20 @@ import React, { MouseEventHandler, useEffect } from 'react';
|
|||
import {
|
||||
Button,
|
||||
Card,
|
||||
Checkbox,
|
||||
FormGroup,
|
||||
Popover,
|
||||
Content,
|
||||
CardHeader,
|
||||
Gallery,
|
||||
Checkbox,
|
||||
Content,
|
||||
Flex,
|
||||
FlexItem,
|
||||
FormGroup,
|
||||
Gallery,
|
||||
Popover,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
import { HelpIcon, ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
import { ExternalLinkAltIcon, HelpIcon } from '@patternfly/react-icons';
|
||||
|
||||
import { useGetArchitecturesQuery } from '../../../../../store/backendApi';
|
||||
import { useAppSelector, useAppDispatch } from '../../../../../store/hooks';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import { ImageTypes } from '../../../../../store/imageBuilderApi';
|
||||
import { provisioningApi } from '../../../../../store/provisioningApi';
|
||||
import { rhsmApi } from '../../../../../store/rhsmApi';
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import React, { useEffect } from 'react';
|
||||
|
||||
import {
|
||||
Spinner,
|
||||
Content,
|
||||
ContentVariants,
|
||||
CodeBlock,
|
||||
CodeBlockCode,
|
||||
Content,
|
||||
ContentVariants,
|
||||
Spinner,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
import { useGetOscapCustomizationsQuery } from '../../../../../store/backendApi';
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import {
|
|||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import {
|
||||
usePoliciesQuery,
|
||||
PolicyRead,
|
||||
usePoliciesQuery,
|
||||
} from '../../../../../store/complianceApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import {
|
||||
|
|
@ -21,20 +21,20 @@ import {
|
|||
useLazyGetOscapCustomizationsForPolicyQuery,
|
||||
} from '../../../../../store/imageBuilderApi';
|
||||
import {
|
||||
changeCompliance,
|
||||
selectDistribution,
|
||||
selectCompliancePolicyID,
|
||||
selectCompliancePolicyTitle,
|
||||
addKernelArg,
|
||||
addPackage,
|
||||
addPartition,
|
||||
changeFileSystemConfigurationType,
|
||||
removePackage,
|
||||
clearPartitions,
|
||||
changeEnabledServices,
|
||||
changeMaskedServices,
|
||||
changeCompliance,
|
||||
changeDisabledServices,
|
||||
changeEnabledServices,
|
||||
changeFileSystemConfigurationType,
|
||||
changeMaskedServices,
|
||||
clearKernelAppend,
|
||||
addKernelArg,
|
||||
clearPartitions,
|
||||
removePackage,
|
||||
selectCompliancePolicyID,
|
||||
selectCompliancePolicyTitle,
|
||||
selectDistribution,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import { useHasSpecificTargetOnly } from '../../../utilities/hasSpecificTargetOnly';
|
||||
import { parseSizeUnit } from '../../../utilities/parseSizeUnit';
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ import { TimesIcon } from '@patternfly/react-icons';
|
|||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import {
|
||||
useGetOscapProfilesQuery,
|
||||
useGetOscapCustomizationsQuery,
|
||||
useLazyGetOscapCustomizationsQuery,
|
||||
useBackendPrefetch,
|
||||
useGetOscapCustomizationsQuery,
|
||||
useGetOscapProfilesQuery,
|
||||
useLazyGetOscapCustomizationsQuery,
|
||||
} from '../../../../../store/backendApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import {
|
||||
|
|
@ -32,20 +32,20 @@ import {
|
|||
Services,
|
||||
} from '../../../../../store/imageBuilderApi';
|
||||
import {
|
||||
changeCompliance,
|
||||
selectDistribution,
|
||||
selectComplianceProfileID,
|
||||
addKernelArg,
|
||||
addPackage,
|
||||
addPartition,
|
||||
changeFileSystemConfigurationType,
|
||||
removePackage,
|
||||
clearPartitions,
|
||||
changeEnabledServices,
|
||||
changeMaskedServices,
|
||||
changeCompliance,
|
||||
changeDisabledServices,
|
||||
selectComplianceType,
|
||||
changeEnabledServices,
|
||||
changeFileSystemConfigurationType,
|
||||
changeMaskedServices,
|
||||
clearKernelAppend,
|
||||
addKernelArg,
|
||||
clearPartitions,
|
||||
removePackage,
|
||||
selectComplianceProfileID,
|
||||
selectComplianceType,
|
||||
selectDistribution,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import { useHasSpecificTargetOnly } from '../../../utilities/hasSpecificTargetOnly';
|
||||
import { parseSizeUnit } from '../../../utilities/parseSizeUnit';
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import React, { useEffect } from 'react';
|
|||
import {
|
||||
Alert,
|
||||
AlertActionLink,
|
||||
Form,
|
||||
Content,
|
||||
Form,
|
||||
Title,
|
||||
ToggleGroup,
|
||||
ToggleGroupItem,
|
||||
|
|
@ -24,18 +24,18 @@ import {
|
|||
import { usePoliciesQuery } from '../../../../store/complianceApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../store/hooks';
|
||||
import {
|
||||
ComplianceType,
|
||||
selectComplianceProfileID,
|
||||
changeCompliance,
|
||||
changeComplianceType,
|
||||
changeEnabledServices,
|
||||
changeMaskedServices,
|
||||
changeDisabledServices,
|
||||
removePackage,
|
||||
changeEnabledServices,
|
||||
changeFileSystemConfigurationType,
|
||||
selectDistribution,
|
||||
selectComplianceType,
|
||||
changeMaskedServices,
|
||||
clearKernelAppend,
|
||||
ComplianceType,
|
||||
removePackage,
|
||||
selectComplianceProfileID,
|
||||
selectComplianceType,
|
||||
selectDistribution,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import { useFlag } from '../../../../Utilities/useGetEnvironment';
|
||||
import { useOnPremOpenSCAPAvailable } from '../../../../Utilities/useOnPremOpenSCAP';
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import {
|
||||
RHEL_9_BETA,
|
||||
RHEL_9,
|
||||
RHEL_10_BETA,
|
||||
RHEL_10,
|
||||
RHEL_10_BETA,
|
||||
RHEL_9,
|
||||
RHEL_9_BETA,
|
||||
} from '../../../../constants';
|
||||
import { Distributions } from '../../../../store/imageBuilderApi';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ import React, { useEffect, useState } from 'react';
|
|||
import {
|
||||
Alert,
|
||||
Button,
|
||||
Content,
|
||||
ContentVariants,
|
||||
ExpandableSection,
|
||||
Flex,
|
||||
FlexItem,
|
||||
|
|
@ -12,8 +14,6 @@ import {
|
|||
PanelMainBody,
|
||||
Popover,
|
||||
Spinner,
|
||||
Content,
|
||||
ContentVariants,
|
||||
} from '@patternfly/react-core';
|
||||
import { HelpIcon, OptimizeIcon } from '@patternfly/react-icons';
|
||||
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import React, { ReactElement, useEffect, useMemo, useState } from 'react';
|
|||
import {
|
||||
Bullseye,
|
||||
Button,
|
||||
Content,
|
||||
DescriptionList,
|
||||
DescriptionListDescription,
|
||||
DescriptionListGroup,
|
||||
|
|
@ -14,6 +15,9 @@ import {
|
|||
EmptyStateVariant,
|
||||
Icon,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
Pagination,
|
||||
PaginationVariant,
|
||||
Popover,
|
||||
|
|
@ -23,15 +27,11 @@ import {
|
|||
Tab,
|
||||
Tabs,
|
||||
TabTitleText,
|
||||
Content,
|
||||
ToggleGroup,
|
||||
ToggleGroupItem,
|
||||
Toolbar,
|
||||
ToolbarContent,
|
||||
ToolbarItem,
|
||||
ModalHeader,
|
||||
ModalBody,
|
||||
ModalFooter,
|
||||
} from '@patternfly/react-core';
|
||||
import {
|
||||
CheckCircleIcon,
|
||||
|
|
@ -66,33 +66,33 @@ import {
|
|||
} from '../../../../constants';
|
||||
import { useGetArchitecturesQuery } from '../../../../store/backendApi';
|
||||
import {
|
||||
ApiRepositoryResponseRead,
|
||||
useCreateRepositoryMutation,
|
||||
useListRepositoriesQuery,
|
||||
useSearchRpmMutation,
|
||||
useSearchPackageGroupMutation,
|
||||
ApiSearchRpmResponse,
|
||||
ApiPackageSourcesResponse,
|
||||
ApiRepositoryResponseRead,
|
||||
ApiSearchRpmResponse,
|
||||
useCreateRepositoryMutation,
|
||||
useGetTemplateQuery,
|
||||
useListRepositoriesQuery,
|
||||
useSearchPackageGroupMutation,
|
||||
useSearchRpmMutation,
|
||||
} from '../../../../store/contentSourcesApi';
|
||||
import { useAppSelector } from '../../../../store/hooks';
|
||||
import { Package } from '../../../../store/imageBuilderApi';
|
||||
import {
|
||||
addGroup,
|
||||
addModule,
|
||||
addPackage,
|
||||
addRecommendedRepository,
|
||||
removeGroup,
|
||||
removeModule,
|
||||
removePackage,
|
||||
removeRecommendedRepository,
|
||||
selectArchitecture,
|
||||
selectPackages,
|
||||
selectGroups,
|
||||
selectCustomRepositories,
|
||||
selectDistribution,
|
||||
addPackage,
|
||||
removePackage,
|
||||
addGroup,
|
||||
removeGroup,
|
||||
addRecommendedRepository,
|
||||
removeRecommendedRepository,
|
||||
selectRecommendedRepositories,
|
||||
addModule,
|
||||
removeModule,
|
||||
selectGroups,
|
||||
selectModules,
|
||||
selectPackages,
|
||||
selectRecommendedRepositories,
|
||||
selectTemplate,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
FormHelperText,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
FormHelperText,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExclamationCircleIcon } from '@patternfly/react-icons';
|
||||
export type HelperTextVariant =
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Button, Popover, Content } from '@patternfly/react-core';
|
||||
import { Button, Content, Popover } from '@patternfly/react-core';
|
||||
import { HelpIcon } from '@patternfly/react-icons';
|
||||
|
||||
const PackageInfoNotAvailablePopover = () => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Button, Popover, Content } from '@patternfly/react-core';
|
||||
import { Button, Content, Popover } from '@patternfly/react-core';
|
||||
import { HelpIcon } from '@patternfly/react-icons';
|
||||
|
||||
export const IncludedReposPopover = () => {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import React from 'react';
|
|||
import {
|
||||
Alert,
|
||||
Button,
|
||||
Spinner,
|
||||
Content,
|
||||
ContentVariants,
|
||||
Popover,
|
||||
Spinner,
|
||||
} from '@patternfly/react-core';
|
||||
import { HelpIcon } from '@patternfly/react-icons';
|
||||
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@ import React, { useEffect, useState } from 'react';
|
|||
import {
|
||||
Alert,
|
||||
FormGroup,
|
||||
Spinner,
|
||||
Select,
|
||||
SelectList,
|
||||
SelectOption,
|
||||
MenuToggleElement,
|
||||
MenuToggle,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
FormHelperText,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
MenuToggle,
|
||||
MenuToggleElement,
|
||||
Select,
|
||||
SelectList,
|
||||
SelectOption,
|
||||
Spinner,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
} from '@patternfly/react-core';
|
||||
import { useAddNotification } from '@redhat-cloud-services/frontend-components-notifications/hooks';
|
||||
|
||||
|
|
@ -22,8 +22,8 @@ import ManageKeysButton from './ManageKeysButton';
|
|||
import { CDN_PROD_URL, CDN_STAGE_URL } from '../../../../../constants';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import {
|
||||
useListActivationKeysQuery,
|
||||
useCreateActivationKeysMutation,
|
||||
useListActivationKeysQuery,
|
||||
} from '../../../../../store/rhsmApi';
|
||||
import {
|
||||
changeActivationKey,
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import React, { useEffect, useState } from 'react';
|
|||
import {
|
||||
Button,
|
||||
Checkbox,
|
||||
Content,
|
||||
FormGroup,
|
||||
Popover,
|
||||
Radio,
|
||||
Content,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon, HelpIcon } from '@patternfly/react-icons';
|
||||
import { useFlag } from '@unleash/proxy-client-react';
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
ClipboardCopy,
|
||||
Form,
|
||||
Title,
|
||||
FormGroup,
|
||||
FormHelperText,
|
||||
ClipboardCopy,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
import useChrome from '@redhat-cloud-services/frontend-components/useChrome';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,21 +3,21 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|||
import {
|
||||
Alert,
|
||||
Button,
|
||||
Grid,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
Pagination,
|
||||
PaginationVariant,
|
||||
Panel,
|
||||
PanelMain,
|
||||
SearchInput,
|
||||
ToggleGroup,
|
||||
ToggleGroupItem,
|
||||
Toolbar,
|
||||
ToolbarContent,
|
||||
ToolbarItem,
|
||||
ToggleGroup,
|
||||
ToggleGroupItem,
|
||||
PaginationVariant,
|
||||
Grid,
|
||||
ModalHeader,
|
||||
ModalBody,
|
||||
ModalFooter,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
||||
|
|
@ -41,8 +41,8 @@ import {
|
|||
} from '../../../../constants';
|
||||
import {
|
||||
ApiRepositoryResponseRead,
|
||||
useListRepositoriesQuery,
|
||||
useGetTemplateQuery,
|
||||
useListRepositoriesQuery,
|
||||
useListRepositoryParametersQuery,
|
||||
} from '../../../../store/contentSourcesApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../store/hooks';
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
EmptyState,
|
||||
EmptyStateVariant,
|
||||
EmptyStateBody,
|
||||
EmptyStateFooter,
|
||||
Button,
|
||||
EmptyStateVariant,
|
||||
} from '@patternfly/react-core';
|
||||
import { RepositoryIcon } from '@patternfly/react-icons';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { EmptyState, Spinner, Bullseye } from '@patternfly/react-core';
|
||||
import { Bullseye, EmptyState, Spinner } from '@patternfly/react-core';
|
||||
|
||||
export const Loading = () => {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Alert, Form, Content, Title } from '@patternfly/react-core';
|
||||
import { Alert, Content, Form, Title } from '@patternfly/react-core';
|
||||
|
||||
import ManageRepositoriesButton from './components/ManageRepositoriesButton';
|
||||
import Repositories from './Repositories';
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
DropdownList,
|
||||
Button,
|
||||
DropdownItem,
|
||||
MenuToggleAction,
|
||||
Spinner,
|
||||
DropdownList,
|
||||
Flex,
|
||||
FlexItem,
|
||||
Button,
|
||||
MenuToggleAction,
|
||||
Modal,
|
||||
ModalHeader,
|
||||
ModalBody,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
Spinner,
|
||||
} from '@patternfly/react-core';
|
||||
import useChrome from '@redhat-cloud-services/frontend-components/useChrome';
|
||||
import { ChromeUser } from '@redhat-cloud-services/types';
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
DropdownList,
|
||||
DropdownItem,
|
||||
MenuToggleAction,
|
||||
Spinner,
|
||||
DropdownList,
|
||||
Flex,
|
||||
FlexItem,
|
||||
MenuToggleAction,
|
||||
Spinner,
|
||||
} from '@patternfly/react-core';
|
||||
import useChrome from '@redhat-cloud-services/frontend-components/useChrome';
|
||||
import { ChromeUser } from '@redhat-cloud-services/types';
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
Dropdown,
|
||||
Flex,
|
||||
MenuToggle,
|
||||
WizardFooterWrapper,
|
||||
useWizardContext,
|
||||
WizardFooterWrapper,
|
||||
} from '@patternfly/react-core';
|
||||
import { MenuToggleElement } from '@patternfly/react-core/dist/esm/components/MenuToggle/MenuToggle';
|
||||
import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome';
|
||||
|
|
|
|||
|
|
@ -2,40 +2,40 @@ import React, { useState } from 'react';
|
|||
|
||||
import {
|
||||
Button,
|
||||
ExpandableSection,
|
||||
Stack,
|
||||
StackItem,
|
||||
Content,
|
||||
ContentVariants,
|
||||
useWizardContext,
|
||||
SplitItem,
|
||||
ExpandableSection,
|
||||
Split,
|
||||
SplitItem,
|
||||
Stack,
|
||||
StackItem,
|
||||
useWizardContext,
|
||||
} from '@patternfly/react-core';
|
||||
import { ArrowRightIcon } from '@patternfly/react-icons';
|
||||
|
||||
import './ReviewStep.scss';
|
||||
import {
|
||||
ContentList,
|
||||
FSCList,
|
||||
FirstBootList,
|
||||
DetailsList,
|
||||
FirewallList,
|
||||
FirstBootList,
|
||||
FSCList,
|
||||
HostnameList,
|
||||
ImageOutputList,
|
||||
KernelList,
|
||||
LocaleList,
|
||||
OscapList,
|
||||
RegisterLaterList,
|
||||
RegisterNowList,
|
||||
RegisterSatelliteList,
|
||||
ServicesList,
|
||||
TargetEnvAWSList,
|
||||
TargetEnvAzureList,
|
||||
TargetEnvGCPList,
|
||||
TargetEnvOciList,
|
||||
TargetEnvOtherList,
|
||||
UsersList,
|
||||
TimezoneList,
|
||||
LocaleList,
|
||||
HostnameList,
|
||||
KernelList,
|
||||
FirewallList,
|
||||
ServicesList,
|
||||
RegisterSatelliteList,
|
||||
UsersList,
|
||||
} from './ReviewStepTextLists';
|
||||
|
||||
import isRhel from '../../../../../src/Utilities/isRhel';
|
||||
|
|
@ -44,21 +44,21 @@ import { useAppSelector } from '../../../../store/hooks';
|
|||
import {
|
||||
selectBlueprintDescription,
|
||||
selectBlueprintName,
|
||||
selectComplianceType,
|
||||
selectCompliancePolicyID,
|
||||
selectComplianceProfileID,
|
||||
selectComplianceType,
|
||||
selectDistribution,
|
||||
selectImageTypes,
|
||||
selectRegistrationType,
|
||||
selectHostname,
|
||||
selectLanguages,
|
||||
selectKeyboard,
|
||||
selectTimezone,
|
||||
selectNtpServers,
|
||||
selectFirewall,
|
||||
selectServices,
|
||||
selectUsers,
|
||||
selectHostname,
|
||||
selectImageTypes,
|
||||
selectKernel,
|
||||
selectKeyboard,
|
||||
selectLanguages,
|
||||
selectNtpServers,
|
||||
selectRegistrationType,
|
||||
selectServices,
|
||||
selectTimezone,
|
||||
selectUsers,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import { useHasSpecificTargetOnly } from '../../utilities/hasSpecificTargetOnly';
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ import { useAppSelector } from '../../../../store/hooks';
|
|||
import {
|
||||
selectCustomRepositories,
|
||||
selectDistribution,
|
||||
selectPackages,
|
||||
selectGroups,
|
||||
selectPackages,
|
||||
selectPartitions,
|
||||
selectRecommendedRepositories,
|
||||
selectTemplate,
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ import React, { useEffect, useMemo } from 'react';
|
|||
import {
|
||||
Alert,
|
||||
Button,
|
||||
Popover,
|
||||
CodeBlock,
|
||||
CodeBlockCode,
|
||||
Content,
|
||||
ContentVariants,
|
||||
FormGroup,
|
||||
CodeBlock,
|
||||
CodeBlockCode,
|
||||
Icon,
|
||||
Popover,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExclamationTriangleIcon } from '@patternfly/react-icons';
|
||||
|
||||
|
|
@ -34,8 +34,8 @@ import {
|
|||
UNIT_GIB,
|
||||
} from '../../../../constants';
|
||||
import {
|
||||
useListSnapshotsByDateMutation,
|
||||
useGetTemplateQuery,
|
||||
useListSnapshotsByDateMutation,
|
||||
} from '../../../../store/contentSourcesApi';
|
||||
import { useAppSelector } from '../../../../store/hooks';
|
||||
import { useGetSourceListQuery } from '../../../../store/provisioningApi';
|
||||
|
|
@ -45,39 +45,39 @@ import {
|
|||
selectArchitecture,
|
||||
selectAwsAccountId,
|
||||
selectAwsShareMethod,
|
||||
selectAwsSourceId,
|
||||
selectAzureResourceGroup,
|
||||
selectAzureShareMethod,
|
||||
selectAzureSource,
|
||||
selectAzureResourceGroup,
|
||||
selectAzureSubscriptionId,
|
||||
selectAzureTenantId,
|
||||
selectAwsSourceId,
|
||||
selectBlueprintDescription,
|
||||
selectBlueprintName,
|
||||
selectCustomRepositories,
|
||||
selectDistribution,
|
||||
selectFileSystemConfigurationType,
|
||||
selectFirewall,
|
||||
selectFirstBootScript,
|
||||
selectGcpAccountType,
|
||||
selectGcpEmail,
|
||||
selectGcpShareMethod,
|
||||
selectPackages,
|
||||
selectGroups,
|
||||
selectRegistrationType,
|
||||
selectFileSystemConfigurationType,
|
||||
selectRecommendedRepositories,
|
||||
selectSnapshotDate,
|
||||
selectUseLatest,
|
||||
selectPartitions,
|
||||
selectFirstBootScript,
|
||||
selectTimezone,
|
||||
selectNtpServers,
|
||||
selectLanguages,
|
||||
selectKeyboard,
|
||||
selectHostname,
|
||||
selectKernel,
|
||||
selectFirewall,
|
||||
selectServices,
|
||||
selectUsers,
|
||||
selectTemplate,
|
||||
selectKeyboard,
|
||||
selectLanguages,
|
||||
selectNtpServers,
|
||||
selectPackages,
|
||||
selectPartitions,
|
||||
selectRecommendedRepositories,
|
||||
selectRedHatRepositories,
|
||||
selectRegistrationType,
|
||||
selectServices,
|
||||
selectSnapshotDate,
|
||||
selectTemplate,
|
||||
selectTimezone,
|
||||
selectUseLatest,
|
||||
selectUsers,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import { toMonthAndYear, yyyyMMddFormat } from '../../../../Utilities/time';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Form, Content, Title } from '@patternfly/react-core';
|
||||
import { Content, Form, Title } from '@patternfly/react-core';
|
||||
|
||||
import Review from './ReviewStep';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ import React, { useState } from 'react';
|
|||
|
||||
import {
|
||||
Button,
|
||||
Content,
|
||||
DatePicker,
|
||||
Flex,
|
||||
FormGroup,
|
||||
Grid,
|
||||
Radio,
|
||||
Content,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
|
|
@ -15,12 +15,12 @@ import Templates from './Templates';
|
|||
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import {
|
||||
selectSnapshotDate,
|
||||
changeUseLatest,
|
||||
changeSnapshotDate,
|
||||
changeTemplate,
|
||||
selectUseLatest,
|
||||
changeUseLatest,
|
||||
selectSnapshotDate,
|
||||
selectTemplate,
|
||||
selectUseLatest,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import { yyyyMMddFormat } from '../../../../../Utilities/time';
|
||||
import { useFlag } from '../../../../../Utilities/useGetEnvironment';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {
|
|||
Panel,
|
||||
PanelMain,
|
||||
} from '@patternfly/react-core';
|
||||
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
||||
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
||||
|
||||
import TemplatesEmpty from './TemplatesEmpty';
|
||||
|
||||
|
|
@ -16,11 +16,11 @@ import { PAGINATION_COUNT } from '../../../../../constants';
|
|||
import { useListTemplatesQuery } from '../../../../../store/contentSourcesApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import {
|
||||
changeTemplate,
|
||||
changeTemplateName,
|
||||
selectArchitecture,
|
||||
selectDistribution,
|
||||
selectTemplate,
|
||||
changeTemplate,
|
||||
changeTemplateName,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import { releaseToVersion } from '../../../../../Utilities/releaseToVersion';
|
||||
import { Error } from '../../Repositories/components/Error';
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
EmptyState,
|
||||
EmptyStateVariant,
|
||||
EmptyStateBody,
|
||||
EmptyStateFooter,
|
||||
Button,
|
||||
EmptyStateVariant,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Form, Content, Title } from '@patternfly/react-core';
|
||||
import { Content, Form, Title } from '@patternfly/react-core';
|
||||
|
||||
import Snapshot from './components/Snapshot';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ import React, { useEffect } from 'react';
|
|||
|
||||
import {
|
||||
Alert,
|
||||
FormGroup,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
TextInput,
|
||||
FormGroup,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ import {
|
|||
Alert,
|
||||
Button,
|
||||
FormGroup,
|
||||
MenuToggle,
|
||||
MenuToggleElement,
|
||||
Select,
|
||||
SelectList,
|
||||
SelectOption,
|
||||
MenuToggle,
|
||||
MenuToggleElement,
|
||||
Spinner,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Radio,
|
||||
Button,
|
||||
Content,
|
||||
Form,
|
||||
Title,
|
||||
FormGroup,
|
||||
TextInput,
|
||||
Gallery,
|
||||
GalleryItem,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
Button,
|
||||
Radio,
|
||||
TextInput,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
FormGroup,
|
||||
Spinner,
|
||||
MenuToggle,
|
||||
MenuToggleElement,
|
||||
Select,
|
||||
SelectList,
|
||||
SelectOption,
|
||||
MenuToggleElement,
|
||||
MenuToggle,
|
||||
Spinner,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
TextInputGroupUtilities,
|
||||
Button,
|
||||
} from '@patternfly/react-core';
|
||||
import { TimesIcon } from '@patternfly/react-icons';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Alert,
|
||||
Button,
|
||||
FormGroup,
|
||||
MenuToggle,
|
||||
MenuToggleElement,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
TextInputGroupUtilities,
|
||||
FormGroup,
|
||||
Spinner,
|
||||
Select,
|
||||
SelectList,
|
||||
SelectOption,
|
||||
Spinner,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
TextInputGroupUtilities,
|
||||
} from '@patternfly/react-core';
|
||||
import { TimesIcon } from '@patternfly/react-icons';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Radio,
|
||||
Button,
|
||||
Content,
|
||||
Form,
|
||||
Title,
|
||||
FormGroup,
|
||||
TextInput,
|
||||
Gallery,
|
||||
GalleryItem,
|
||||
Button,
|
||||
Radio,
|
||||
TextInput,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Radio,
|
||||
Content,
|
||||
Form,
|
||||
Title,
|
||||
FormGroup,
|
||||
ContentVariants,
|
||||
Form,
|
||||
FormGroup,
|
||||
Radio,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
FormGroup,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
Select,
|
||||
SelectOption,
|
||||
SelectList,
|
||||
MenuToggle,
|
||||
MenuToggleElement,
|
||||
Select,
|
||||
SelectList,
|
||||
SelectOption,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
TextInputGroupUtilities,
|
||||
Button,
|
||||
FormGroup,
|
||||
} from '@patternfly/react-core';
|
||||
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ import React, { useState } from 'react';
|
|||
|
||||
import {
|
||||
Button,
|
||||
FormGroup,
|
||||
Checkbox,
|
||||
Tabs,
|
||||
Tab,
|
||||
TabTitleText,
|
||||
FormGroup,
|
||||
Icon,
|
||||
Tab,
|
||||
Tabs,
|
||||
TabTitleText,
|
||||
} from '@patternfly/react-core';
|
||||
import {
|
||||
ExclamationCircleIcon,
|
||||
|
|
@ -20,15 +20,15 @@ import RemoveUserModal from './RemoveUserModal';
|
|||
import { GENERATING_SSH_KEY_PAIRS_URL } from '../../../../../constants';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../../store/hooks';
|
||||
import {
|
||||
addUser,
|
||||
addUserGroupByIndex,
|
||||
removeUser,
|
||||
removeUserGroupByIndex,
|
||||
selectUsers,
|
||||
setUserAdministratorByIndex,
|
||||
setUserNameByIndex,
|
||||
setUserPasswordByIndex,
|
||||
setUserSshKeyByIndex,
|
||||
setUserAdministratorByIndex,
|
||||
addUser,
|
||||
selectUsers,
|
||||
addUserGroupByIndex,
|
||||
removeUserGroupByIndex,
|
||||
removeUser,
|
||||
} from '../../../../../store/wizardSlice';
|
||||
import LabelInput from '../../../LabelInput';
|
||||
import { PasswordValidatedInput } from '../../../utilities/PasswordValidatedInput';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Form, Content, Title } from '@patternfly/react-core';
|
||||
import { Content, Form, Title } from '@patternfly/react-core';
|
||||
|
||||
import EmptyUserState from './components/EmptyUserState';
|
||||
import UserInfo from './components/UserInfo';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import React, { useState } from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
FormGroup,
|
||||
FormHelperText,
|
||||
HelperText,
|
||||
|
|
@ -8,7 +9,6 @@ import {
|
|||
InputGroup,
|
||||
InputGroupItem,
|
||||
TextInput,
|
||||
Button,
|
||||
TextInputProps,
|
||||
} from '@patternfly/react-core';
|
||||
import { EyeIcon, EyeSlashIcon } from '@patternfly/react-icons';
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import { useListRepositoriesQuery } from '../../../store/contentSourcesApi';
|
|||
import { useAppSelector } from '../../../store/hooks';
|
||||
import {
|
||||
selectArchitecture,
|
||||
selectDistribution,
|
||||
selectCustomRepositories,
|
||||
selectDistribution,
|
||||
} from '../../../store/wizardSlice';
|
||||
import { releaseToVersion } from '../../../Utilities/releaseToVersion';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@ import { parseSizeUnit } from './parseSizeUnit';
|
|||
import {
|
||||
CENTOS_9,
|
||||
FIRST_BOOT_SERVICE_DATA,
|
||||
SATELLITE_SERVICE_DATA,
|
||||
FIRSTBOOT_PATH,
|
||||
FIRSTBOOT_SERVICE_PATH,
|
||||
RHEL_10,
|
||||
RHEL_10_BETA,
|
||||
RHEL_8,
|
||||
RHEL_9,
|
||||
RHEL_9_BETA,
|
||||
RHEL_10,
|
||||
RHEL_10_BETA,
|
||||
FIRSTBOOT_PATH,
|
||||
FIRSTBOOT_SERVICE_PATH,
|
||||
SATELLITE_SERVICE_PATH,
|
||||
SATELLITE_PATH,
|
||||
SATELLITE_SERVICE_DATA,
|
||||
SATELLITE_SERVICE_PATH,
|
||||
} from '../../../constants';
|
||||
import { RootState } from '../../../store';
|
||||
import {
|
||||
|
|
@ -43,58 +43,58 @@ import {
|
|||
} from '../../../store/imageBuilderApi';
|
||||
import { ApiRepositoryImportResponseRead } from '../../../store/service/contentSourcesApi';
|
||||
import {
|
||||
ComplianceType,
|
||||
initialState,
|
||||
selectActivationKey,
|
||||
selectArchitecture,
|
||||
selectAwsAccountId,
|
||||
selectAwsShareMethod,
|
||||
selectAwsSourceId,
|
||||
selectAzureHyperVGeneration,
|
||||
selectAzureResourceGroup,
|
||||
selectAzureShareMethod,
|
||||
selectAzureSource,
|
||||
selectAzureSubscriptionId,
|
||||
selectAzureTenantId,
|
||||
selectAzureHyperVGeneration,
|
||||
selectBaseUrl,
|
||||
selectBlueprintDescription,
|
||||
selectBlueprintName,
|
||||
ComplianceType,
|
||||
selectCompliancePolicyID,
|
||||
selectComplianceProfileID,
|
||||
selectComplianceType,
|
||||
selectCustomRepositories,
|
||||
selectDistribution,
|
||||
selectFileSystemConfigurationType,
|
||||
selectFirewall,
|
||||
selectFirstBootScript,
|
||||
selectGcpAccountType,
|
||||
selectGcpEmail,
|
||||
selectGcpShareMethod,
|
||||
selectGroups,
|
||||
selectHostname,
|
||||
selectImageTypes,
|
||||
selectKernel,
|
||||
selectKeyboard,
|
||||
selectLanguages,
|
||||
selectMetadata,
|
||||
selectModules,
|
||||
selectNtpServers,
|
||||
selectPackages,
|
||||
selectPartitions,
|
||||
selectPayloadRepositories,
|
||||
selectRecommendedRepositories,
|
||||
selectRegistrationType,
|
||||
selectServerUrl,
|
||||
selectServices,
|
||||
wizardState,
|
||||
selectFileSystemConfigurationType,
|
||||
selectPartitions,
|
||||
selectSnapshotDate,
|
||||
selectUseLatest,
|
||||
selectFirstBootScript,
|
||||
initialState,
|
||||
selectTimezone,
|
||||
selectNtpServers,
|
||||
selectLanguages,
|
||||
selectKeyboard,
|
||||
selectHostname,
|
||||
selectUsers,
|
||||
selectMetadata,
|
||||
selectFirewall,
|
||||
selectTemplate,
|
||||
selectTemplateName,
|
||||
selectSatelliteCaCertificate,
|
||||
selectSatelliteRegistrationCommand,
|
||||
selectModules,
|
||||
selectServerUrl,
|
||||
selectServices,
|
||||
selectSnapshotDate,
|
||||
selectTemplate,
|
||||
selectTemplateName,
|
||||
selectTimezone,
|
||||
selectUseLatest,
|
||||
selectUsers,
|
||||
wizardState,
|
||||
} from '../../../store/wizardSlice';
|
||||
import isRhel from '../../../Utilities/isRhel';
|
||||
import { FileSystemConfigurationType } from '../steps/FileSystem';
|
||||
|
|
|
|||
|
|
@ -11,30 +11,30 @@ import { useAppSelector } from '../../../store/hooks';
|
|||
import { BlueprintsResponse } from '../../../store/imageBuilderApi';
|
||||
import { useShowActivationKeyQuery } from '../../../store/rhsmApi';
|
||||
import {
|
||||
selectActivationKey,
|
||||
selectBlueprintDescription,
|
||||
selectBlueprintId,
|
||||
selectBlueprintName,
|
||||
selectBlueprintDescription,
|
||||
selectFileSystemConfigurationType,
|
||||
selectFirstBootScript,
|
||||
selectPartitions,
|
||||
selectSnapshotDate,
|
||||
selectUseLatest,
|
||||
selectActivationKey,
|
||||
selectRegistrationType,
|
||||
selectHostname,
|
||||
selectKernel,
|
||||
selectUsers,
|
||||
selectNtpServers,
|
||||
selectFirewall,
|
||||
selectServices,
|
||||
selectLanguages,
|
||||
selectFirstBootScript,
|
||||
selectHostname,
|
||||
selectImageTypes,
|
||||
selectKernel,
|
||||
selectKeyboard,
|
||||
selectTimezone,
|
||||
selectLanguages,
|
||||
selectNtpServers,
|
||||
selectPartitions,
|
||||
selectRegistrationType,
|
||||
selectSatelliteCaCertificate,
|
||||
selectSatelliteRegistrationCommand,
|
||||
selectImageTypes,
|
||||
UserWithAdditionalInfo,
|
||||
selectServices,
|
||||
selectSnapshotDate,
|
||||
selectTemplate,
|
||||
selectTimezone,
|
||||
selectUseLatest,
|
||||
selectUsers,
|
||||
UserWithAdditionalInfo,
|
||||
} from '../../../store/wizardSlice';
|
||||
import { keyboardsList } from '../steps/Locale/keyboardsList';
|
||||
import { languagesList } from '../steps/Locale/languagesList';
|
||||
|
|
@ -43,17 +43,17 @@ import { timezones } from '../steps/Timezone/timezonesList';
|
|||
import {
|
||||
getDuplicateMountPoints,
|
||||
isBlueprintNameValid,
|
||||
isMountpointMinSizeValid,
|
||||
isSnapshotValid,
|
||||
isHostnameValid,
|
||||
isUserNameValid,
|
||||
isSshKeyValid,
|
||||
isNtpServerValid,
|
||||
isKernelArgumentValid,
|
||||
isKernelNameValid,
|
||||
isMountpointMinSizeValid,
|
||||
isNtpServerValid,
|
||||
isPortValid,
|
||||
isServiceValid,
|
||||
isSnapshotValid,
|
||||
isSshKeyValid,
|
||||
isUserGroupValid,
|
||||
isUserNameValid,
|
||||
} from '../validators';
|
||||
|
||||
export type StepValidation = {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import React, { useEffect, useState } from 'react';
|
|||
import { ClipboardCopy } from '@patternfly/react-core';
|
||||
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
||||
|
||||
import { StatusClone, AwsDetailsStatus } from './Status';
|
||||
import { AwsDetailsStatus, StatusClone } from './Status';
|
||||
|
||||
import {
|
||||
ClonesResponseItem,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
EmptyState,
|
||||
EmptyStateBody,
|
||||
EmptyStateVariant,
|
||||
Content,
|
||||
EmptyStateActions,
|
||||
EmptyStateFooter,
|
||||
Bullseye,
|
||||
Button,
|
||||
Content,
|
||||
EmptyState,
|
||||
EmptyStateActions,
|
||||
EmptyStateBody,
|
||||
EmptyStateFooter,
|
||||
EmptyStateVariant,
|
||||
} from '@patternfly/react-core';
|
||||
import {
|
||||
ExternalLinkAltIcon,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Alert,
|
||||
Button,
|
||||
ClipboardCopy,
|
||||
DescriptionList,
|
||||
DescriptionListGroup,
|
||||
DescriptionListDescription,
|
||||
DescriptionListGroup,
|
||||
DescriptionListTerm,
|
||||
Button,
|
||||
Popover,
|
||||
Alert,
|
||||
Skeleton,
|
||||
} from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
Alert,
|
||||
Badge,
|
||||
Bullseye,
|
||||
Button,
|
||||
PageSection,
|
||||
Pagination,
|
||||
PaginationVariant,
|
||||
Spinner,
|
||||
Toolbar,
|
||||
ToolbarContent,
|
||||
ToolbarItem,
|
||||
Alert,
|
||||
Spinner,
|
||||
Bullseye,
|
||||
Badge,
|
||||
Button,
|
||||
PageSection,
|
||||
} from '@patternfly/react-core';
|
||||
import { OnSetPage } from '@patternfly/react-core/dist/esm/components/Pagination/Pagination';
|
||||
import {
|
||||
|
|
@ -42,11 +42,11 @@ import ImagesTableToolbar from './ImagesTableToolbar';
|
|||
import {
|
||||
AwsS3Instance,
|
||||
CloudInstance,
|
||||
OciInstance,
|
||||
LocalInstance,
|
||||
OciInstance,
|
||||
} from './Instance';
|
||||
import Release from './Release';
|
||||
import { ExpiringStatus, CloudStatus, LocalStatus } from './Status';
|
||||
import { CloudStatus, ExpiringStatus, LocalStatus } from './Status';
|
||||
import { AwsTarget, Target } from './Target';
|
||||
|
||||
import {
|
||||
|
|
@ -59,10 +59,10 @@ import {
|
|||
STATUS_POLLING_INTERVAL,
|
||||
} from '../../constants';
|
||||
import {
|
||||
useGetComposeStatusQuery,
|
||||
useGetComposesQuery,
|
||||
useGetBlueprintsQuery,
|
||||
useGetBlueprintComposesQuery,
|
||||
useGetBlueprintsQuery,
|
||||
useGetComposesQuery,
|
||||
useGetComposeStatusQuery,
|
||||
} from '../../store/backendApi';
|
||||
import {
|
||||
selectBlueprintSearchInput,
|
||||
|
|
|
|||
|
|
@ -7,28 +7,28 @@ import {
|
|||
List,
|
||||
ListItem,
|
||||
Pagination,
|
||||
Title,
|
||||
Toolbar,
|
||||
ToolbarContent,
|
||||
ToolbarItem,
|
||||
Title,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
import { useFixupBPWithNotification as useFixupBlueprintMutation } from '../../Hooks';
|
||||
import {
|
||||
useGetBlueprintsQuery,
|
||||
useGetBlueprintQuery,
|
||||
useGetBlueprintsQuery,
|
||||
} from '../../store/backendApi';
|
||||
import {
|
||||
selectSelectedBlueprintId,
|
||||
selectBlueprintSearchInput,
|
||||
selectBlueprintVersionFilterAPI,
|
||||
selectSelectedBlueprintId,
|
||||
} from '../../store/BlueprintSlice';
|
||||
import { useAppSelector } from '../../store/hooks';
|
||||
import {
|
||||
BlueprintItem,
|
||||
useGetBlueprintComposesQuery,
|
||||
Distributions,
|
||||
GetBlueprintComposesApiArg,
|
||||
useGetBlueprintComposesQuery,
|
||||
} from '../../store/imageBuilderApi';
|
||||
import { BlueprintActionsMenu } from '../Blueprints/BlueprintActionsMenu';
|
||||
import BlueprintDiffModal from '../Blueprints/BlueprintDiffModal';
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ import {
|
|||
} from '../../constants';
|
||||
import { useGetBlueprintsQuery, useGetComposeStatusQuery } from '../../store/backendApi';
|
||||
import {
|
||||
selectSelectedBlueprintId,
|
||||
selectBlueprintSearchInput,
|
||||
selectSelectedBlueprintId,
|
||||
} from '../../store/BlueprintSlice';
|
||||
import { LocalUploadStatus } from '../../store/cockpit/composerCloudApi';
|
||||
import { useAppSelector } from '../../store/hooks';
|
||||
|
|
@ -45,8 +45,8 @@ import {
|
|||
ImageTypes,
|
||||
} from '../../store/imageBuilderApi';
|
||||
import {
|
||||
isAwsUploadRequestOptions,
|
||||
isAwss3UploadStatus,
|
||||
isAwsUploadRequestOptions,
|
||||
isGcpUploadRequestOptions,
|
||||
isOciUploadStatus,
|
||||
} from '../../store/typeGuards';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import {
|
|||
Button,
|
||||
CodeBlock,
|
||||
CodeBlockCode,
|
||||
Content,
|
||||
Flex,
|
||||
Icon,
|
||||
Panel,
|
||||
|
|
@ -13,7 +14,6 @@ import {
|
|||
Popover,
|
||||
Skeleton,
|
||||
Spinner,
|
||||
Content,
|
||||
} from '@patternfly/react-core';
|
||||
import {
|
||||
CheckCircleIcon,
|
||||
|
|
@ -34,9 +34,9 @@ import {
|
|||
import { useGetComposeStatusQuery } from '../../store/backendApi';
|
||||
import {
|
||||
ClonesResponseItem,
|
||||
ComposesResponseItem,
|
||||
ComposeStatus,
|
||||
ComposeStatusError,
|
||||
ComposesResponseItem,
|
||||
UploadStatus,
|
||||
} from '../../store/imageBuilderApi';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import {
|
|||
Alert,
|
||||
AlertActionCloseButton,
|
||||
AlertActionLink,
|
||||
Content,
|
||||
Flex,
|
||||
FlexItem,
|
||||
Content,
|
||||
} from '@patternfly/react-core';
|
||||
|
||||
// Import for optional quickstarts functionality
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import {
|
||||
ActionGroup,
|
||||
Button,
|
||||
Form,
|
||||
FormGroup,
|
||||
FormHelperText,
|
||||
HelperText,
|
||||
HelperTextItem,
|
||||
FormHelperText,
|
||||
Label,
|
||||
LabelGroup,
|
||||
MenuToggle,
|
||||
Popover,
|
||||
Select,
|
||||
SelectOption,
|
||||
SelectList,
|
||||
ValidatedOptions,
|
||||
MenuToggle,
|
||||
SelectOption,
|
||||
TextInputGroup,
|
||||
TextInputGroupMain,
|
||||
TextInputGroupUtilities,
|
||||
ValidatedOptions,
|
||||
} from '@patternfly/react-core';
|
||||
import { MenuToggleElement } from '@patternfly/react-core/dist/esm/components/MenuToggle/MenuToggle';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { useState } from 'react';
|
||||
|
||||
import { Button, Popover, Content, Flex } from '@patternfly/react-core';
|
||||
import { Button, Content, Flex, Popover } from '@patternfly/react-core';
|
||||
import { ExternalLinkAltIcon, HelpIcon } from '@patternfly/react-icons';
|
||||
import {
|
||||
OpenSourceBadge,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
EPEL_10_REPO_DEFINITION,
|
||||
EPEL_8_REPO_DEFINITION,
|
||||
EPEL_9_REPO_DEFINITION,
|
||||
EPEL_10_REPO_DEFINITION,
|
||||
} from '../constants';
|
||||
|
||||
type EpelRepoDefinition = typeof EPEL_8_REPO_DEFINITION;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import {
|
||||
RHEL_10,
|
||||
RHEL_10_BETA,
|
||||
RHEL_8,
|
||||
RHEL_9,
|
||||
RHEL_9_BETA,
|
||||
RHEL_10,
|
||||
RHEL_10_BETA,
|
||||
} from '../constants';
|
||||
|
||||
function isRhel(distro: string) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { CENTOS_9, RHEL_8, RHEL_9, RHEL_10 } from '../constants';
|
||||
import { CENTOS_9, RHEL_10, RHEL_8, RHEL_9 } from '../constants';
|
||||
|
||||
export const releaseToVersion = (release: string) => {
|
||||
switch (release) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { PayloadAction, createSlice } from '@reduxjs/toolkit';
|
||||
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
||||
|
||||
import type { RootState } from '.';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { PayloadAction, createSlice } from '@reduxjs/toolkit';
|
||||
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
||||
|
||||
import type { CloudProviderConfigState } from './cockpit/types';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { BaseQueryFn } from '@reduxjs/toolkit/query';
|
||||
import cockpit from 'cockpit';
|
||||
|
||||
import type { Method, Params, Headers } from './types.js';
|
||||
import type { Headers, Method, Params } from './types.js';
|
||||
|
||||
export const baseQuery =
|
||||
(
|
||||
|
|
|
|||
|
|
@ -30,35 +30,35 @@ import {
|
|||
} from '../../Components/Blueprints/helpers/onPremToHostedBlueprintMapper';
|
||||
import { BLUEPRINTS_DIR } from '../../constants';
|
||||
import {
|
||||
ComposeBlueprintApiResponse,
|
||||
BlueprintItem,
|
||||
ComposeBlueprintApiArg,
|
||||
CreateBlueprintRequest,
|
||||
ComposeBlueprintApiResponse,
|
||||
ComposeResponse,
|
||||
ComposesResponseItem,
|
||||
GetArchitecturesApiResponse,
|
||||
CreateBlueprintApiArg,
|
||||
CreateBlueprintApiResponse,
|
||||
CreateBlueprintRequest,
|
||||
DeleteBlueprintApiArg,
|
||||
DeleteBlueprintApiResponse,
|
||||
DistributionProfileItem,
|
||||
GetArchitecturesApiArg,
|
||||
GetBlueprintsApiArg,
|
||||
GetBlueprintsApiResponse,
|
||||
GetArchitecturesApiResponse,
|
||||
GetBlueprintApiArg,
|
||||
GetBlueprintApiResponse,
|
||||
GetBlueprintComposesApiArg,
|
||||
GetBlueprintComposesApiResponse,
|
||||
GetBlueprintsApiArg,
|
||||
GetBlueprintsApiResponse,
|
||||
GetComposesApiArg,
|
||||
GetComposesApiResponse,
|
||||
GetComposeStatusApiArg,
|
||||
GetComposeStatusApiResponse,
|
||||
DeleteBlueprintApiResponse,
|
||||
DeleteBlueprintApiArg,
|
||||
BlueprintItem,
|
||||
GetOscapCustomizationsApiArg,
|
||||
GetOscapCustomizationsApiResponse,
|
||||
GetOscapProfilesApiArg,
|
||||
GetOscapProfilesApiResponse,
|
||||
GetBlueprintApiResponse,
|
||||
GetBlueprintApiArg,
|
||||
CreateBlueprintApiResponse,
|
||||
CreateBlueprintApiArg,
|
||||
ComposeResponse,
|
||||
UpdateBlueprintApiResponse,
|
||||
UpdateBlueprintApiArg,
|
||||
DistributionProfileItem,
|
||||
GetOscapCustomizationsApiResponse,
|
||||
GetOscapCustomizationsApiArg,
|
||||
UpdateBlueprintApiResponse,
|
||||
} from '../service/imageBuilderApi';
|
||||
|
||||
const lookupDatastreamDistro = (distribution: string) => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { useDispatch, useSelector } from 'react-redux';
|
||||
|
||||
import type { RootState, AppDispatch } from './index';
|
||||
import type { AppDispatch, RootState } from './index';
|
||||
|
||||
// Use throughout your app instead of plain `useDispatch` and `useSelector`
|
||||
export const useAppDispatch = useDispatch.withTypes<AppDispatch>();
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
// listenerMiddleware.ts
|
||||
// https://redux-toolkit.js.org/api/createListenerMiddleware#typescript-usage
|
||||
import {
|
||||
createListenerMiddleware,
|
||||
addListener,
|
||||
type TypedStartListening,
|
||||
type TypedAddListener
|
||||
createListenerMiddleware,
|
||||
type TypedAddListener,
|
||||
type TypedStartListening
|
||||
} from '@reduxjs/toolkit';
|
||||
|
||||
import type { RootState, AppDispatch } from './index';
|
||||
import type { AppDispatch, RootState } from './index';
|
||||
|
||||
export const listenerMiddleware = createListenerMiddleware();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
AwsUploadRequestOptions,
|
||||
Awss3UploadStatus,
|
||||
AwsUploadRequestOptions,
|
||||
AzureUploadRequestOptions,
|
||||
AzureUploadStatus,
|
||||
GcpUploadRequestOptions,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { PayloadAction, createSlice } from '@reduxjs/toolkit';
|
||||
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
import type { ApiRepositoryResponseRead } from './contentSourcesApi';
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ import {
|
|||
} from '../../../../../constants';
|
||||
import { mockBlueprintIds } from '../../../../fixtures/blueprints';
|
||||
import {
|
||||
SCRIPT,
|
||||
SCRIPT_DOS,
|
||||
SCRIPT_WITHOUT_SHEBANG,
|
||||
baseCreateBlueprintRequest,
|
||||
firstBootCreateBlueprintRequest,
|
||||
firstBootData,
|
||||
SCRIPT,
|
||||
SCRIPT_DOS,
|
||||
SCRIPT_WITHOUT_SHEBANG,
|
||||
} from '../../../../fixtures/editMode';
|
||||
import {
|
||||
blueprintRequest,
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ import {
|
|||
blueprintRequest,
|
||||
clickBack,
|
||||
clickNext,
|
||||
clickReviewAndFinish,
|
||||
clickRegisterLater,
|
||||
clickReviewAndFinish,
|
||||
enterBlueprintName,
|
||||
interceptBlueprintRequest,
|
||||
interceptEditBlueprintRequest,
|
||||
|
|
|
|||
|
|
@ -23,20 +23,20 @@ import {
|
|||
import { registrationCreateBlueprintRequest } from '../../../../fixtures/editMode';
|
||||
import { server } from '../../../../mocks/server';
|
||||
import {
|
||||
enterBlueprintName,
|
||||
renderCreateMode,
|
||||
interceptBlueprintRequest,
|
||||
goToRegistrationStep,
|
||||
clickBack,
|
||||
clickNext,
|
||||
clickRegisterLater,
|
||||
renderEditMode,
|
||||
clickRegisterSatellite,
|
||||
clickReviewAndFinish,
|
||||
enterBlueprintName,
|
||||
getNextButton,
|
||||
goToRegistrationStep,
|
||||
interceptBlueprintRequest,
|
||||
interceptEditBlueprintRequest,
|
||||
openAndDismissSaveAndBuildModal,
|
||||
clickNext,
|
||||
clickBack,
|
||||
renderCreateMode,
|
||||
renderEditMode,
|
||||
verifyCancelButton,
|
||||
clickReviewAndFinish,
|
||||
getNextButton,
|
||||
clickRegisterSatellite,
|
||||
} from '../../wizardTestUtils';
|
||||
|
||||
const localStorageMock = (() => {
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ import {
|
|||
clickRegisterLater,
|
||||
enterBlueprintName,
|
||||
interceptBlueprintRequest,
|
||||
openAndDismissSaveAndBuildModal,
|
||||
interceptEditBlueprintRequest,
|
||||
openAndDismissSaveAndBuildModal,
|
||||
renderCreateMode,
|
||||
renderEditMode,
|
||||
verifyCancelButton,
|
||||
selectRhel9,
|
||||
verifyCancelButton,
|
||||
} from '../../wizardTestUtils';
|
||||
|
||||
let router: RemixRouter | undefined = undefined;
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import { screen, waitFor, within } from '@testing-library/react';
|
|||
import userEvent from '@testing-library/user-event';
|
||||
|
||||
import {
|
||||
mockComposes,
|
||||
mockClones,
|
||||
mockCloneStatus,
|
||||
mockComposes,
|
||||
} from '../../fixtures/composes';
|
||||
import { renderCustomRoutesWithReduxRouter } from '../../testUtils';
|
||||
|
||||
|
|
|
|||
6
src/test/fixtures/blueprints.ts
vendored
6
src/test/fixtures/blueprints.ts
vendored
|
|
@ -1,10 +1,10 @@
|
|||
import { RHEL_8, RHEL_9 } from '../../constants';
|
||||
import {
|
||||
GetBlueprintsApiResponse,
|
||||
CreateBlueprintResponse,
|
||||
GetBlueprintComposesApiResponse,
|
||||
GetBlueprintApiResponse,
|
||||
Distributions,
|
||||
GetBlueprintApiResponse,
|
||||
GetBlueprintComposesApiResponse,
|
||||
GetBlueprintsApiResponse,
|
||||
} from '../../store/imageBuilderApi';
|
||||
|
||||
export const mockBlueprintsCreation: CreateBlueprintResponse[] = [
|
||||
|
|
|
|||
2
src/test/fixtures/composes.ts
vendored
2
src/test/fixtures/composes.ts
vendored
|
|
@ -2,9 +2,9 @@ import { RHEL_8, RHEL_9 } from '../../constants';
|
|||
import {
|
||||
AwsUploadStatus,
|
||||
ClonesResponse,
|
||||
ComposeStatus,
|
||||
ComposesResponse,
|
||||
ComposesResponseItem,
|
||||
ComposeStatus,
|
||||
UploadStatus,
|
||||
} from '../../store/imageBuilderApi';
|
||||
|
||||
|
|
|
|||
2
src/test/fixtures/oscap.ts
vendored
2
src/test/fixtures/oscap.ts
vendored
|
|
@ -1,8 +1,8 @@
|
|||
import { mockPolicies } from './compliance';
|
||||
|
||||
import {
|
||||
GetOscapProfilesApiResponse,
|
||||
GetOscapCustomizationsApiResponse,
|
||||
GetOscapProfilesApiResponse,
|
||||
} from '../../store/imageBuilderApi';
|
||||
|
||||
export const distributionOscapProfiles = (): GetOscapProfilesApiResponse => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import path from 'path';
|
||||
|
||||
import type { Method, Headers, Params } from '../../../store/cockpit/types';
|
||||
import type { Headers, Method, Params } from '../../../store/cockpit/types';
|
||||
import { mockStatus } from '../../fixtures/composes';
|
||||
|
||||
type requestOptions = {
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ import {
|
|||
} from '../fixtures/oscap';
|
||||
import {
|
||||
mockPkgRecommendations,
|
||||
mockSourcesPackagesResults,
|
||||
mockSourcesGroupsResults,
|
||||
mockSourcesPackagesResults,
|
||||
} from '../fixtures/packages';
|
||||
import {
|
||||
mockPopularRepo,
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ import LandingPage from '../Components/LandingPage/LandingPage';
|
|||
import ShareImageModal from '../Components/ShareImageModal/ShareImageModal';
|
||||
import {
|
||||
serviceMiddleware as middleware,
|
||||
serviceReducer as reducer,
|
||||
onPremMiddleware as onPremMiddleware,
|
||||
onPremReducer as onPremReducer,
|
||||
serviceReducer as reducer,
|
||||
} from '../store';
|
||||
import { resolveRelPath } from '../Utilities/path';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue