@flightctl/ui-components 1.1.0-rc1 → 1.1.0-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.css +5 -1
- package/dist/types/imagebuilder/index.d.ts +2 -0
- package/dist/types/imagebuilder/index.d.ts.map +1 -1
- package/dist/types/imagebuilder/index.js +3 -1
- package/dist/types/imagebuilder/index.js.map +1 -1
- package/dist/types/imagebuilder/models/ApiVersion.d.ts +8 -0
- package/dist/types/imagebuilder/models/ApiVersion.d.ts.map +1 -0
- package/dist/types/imagebuilder/models/ApiVersion.js +16 -0
- package/dist/types/imagebuilder/models/ApiVersion.js.map +1 -0
- package/dist/types/imagebuilder/models/ImageBuild.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageBuild.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/ImageBuildList.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageBuildList.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/ImageExport.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageExport.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/ImageExportList.d.ts +2 -4
- package/dist/types/imagebuilder/models/ImageExportList.d.ts.map +1 -1
- package/dist/types/imagebuilder/models/Status.d.ts +28 -0
- package/dist/types/imagebuilder/models/Status.d.ts.map +1 -0
- package/dist/types/imagebuilder/models/Status.js +3 -0
- package/dist/types/imagebuilder/models/Status.js.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/models/ApiVersion.d.ts +9 -0
- package/dist/types/models/ApiVersion.d.ts.map +1 -0
- package/dist/types/models/ApiVersion.js +17 -0
- package/dist/types/models/ApiVersion.js.map +1 -0
- package/dist/types/models/ApplicationProviderBase.d.ts +12 -0
- package/dist/types/models/ApplicationProviderBase.d.ts.map +1 -0
- package/dist/types/models/ApplicationProviderBase.js +3 -0
- package/dist/types/models/ApplicationProviderBase.js.map +1 -0
- package/dist/types/models/ApplicationProviderSpec.d.ts +5 -15
- package/dist/types/models/ApplicationProviderSpec.d.ts.map +1 -1
- package/dist/types/models/ApplicationUser.d.ts +7 -0
- package/dist/types/models/ApplicationUser.d.ts.map +1 -0
- package/dist/types/models/ApplicationUser.js +3 -0
- package/dist/types/models/ApplicationUser.js.map +1 -0
- package/dist/types/models/AuthConfig.d.ts +2 -4
- package/dist/types/models/AuthConfig.d.ts.map +1 -1
- package/dist/types/models/AuthProvider.d.ts +2 -4
- package/dist/types/models/AuthProvider.d.ts.map +1 -1
- package/dist/types/models/AuthProviderList.d.ts +2 -4
- package/dist/types/models/AuthProviderList.d.ts.map +1 -1
- package/dist/types/models/CertificateSigningRequest.d.ts +2 -4
- package/dist/types/models/CertificateSigningRequest.d.ts.map +1 -1
- package/dist/types/models/CertificateSigningRequestList.d.ts +2 -4
- package/dist/types/models/CertificateSigningRequestList.d.ts.map +1 -1
- package/dist/types/models/ComposeApplication.d.ts +7 -0
- package/dist/types/models/ComposeApplication.d.ts.map +1 -0
- package/dist/types/models/ComposeApplication.js +3 -0
- package/dist/types/models/ComposeApplication.js.map +1 -0
- package/dist/types/models/ContainerApplication.d.ts +18 -0
- package/dist/types/models/ContainerApplication.d.ts.map +1 -0
- package/dist/types/models/ContainerApplication.js +3 -0
- package/dist/types/models/ContainerApplication.js.map +1 -0
- package/dist/types/models/ContainerApplicationProperties.d.ts +13 -0
- package/dist/types/models/ContainerApplicationProperties.d.ts.map +1 -0
- package/dist/types/models/ContainerApplicationProperties.js +3 -0
- package/dist/types/models/ContainerApplicationProperties.js.map +1 -0
- package/dist/types/models/Device.d.ts +2 -4
- package/dist/types/models/Device.d.ts.map +1 -1
- package/dist/types/models/DeviceList.d.ts +2 -4
- package/dist/types/models/DeviceList.d.ts.map +1 -1
- package/dist/types/models/EnrollmentRequest.d.ts +2 -4
- package/dist/types/models/EnrollmentRequest.d.ts.map +1 -1
- package/dist/types/models/EnrollmentRequestList.d.ts +2 -4
- package/dist/types/models/EnrollmentRequestList.d.ts.map +1 -1
- package/dist/types/models/Event.d.ts +2 -4
- package/dist/types/models/Event.d.ts.map +1 -1
- package/dist/types/models/Event.js.map +1 -1
- package/dist/types/models/EventList.d.ts +2 -4
- package/dist/types/models/EventList.d.ts.map +1 -1
- package/dist/types/models/Fleet.d.ts +2 -4
- package/dist/types/models/Fleet.d.ts.map +1 -1
- package/dist/types/models/FleetList.d.ts +2 -4
- package/dist/types/models/FleetList.d.ts.map +1 -1
- package/dist/types/models/HelmApplication.d.ts +20 -0
- package/dist/types/models/HelmApplication.d.ts.map +1 -0
- package/dist/types/models/HelmApplication.js +3 -0
- package/dist/types/models/HelmApplication.js.map +1 -0
- package/dist/types/models/ImageApplicationProviderSpec.d.ts +2 -22
- package/dist/types/models/ImageApplicationProviderSpec.d.ts.map +1 -1
- package/dist/types/models/InlineApplicationProviderSpec.d.ts +2 -3
- package/dist/types/models/InlineApplicationProviderSpec.d.ts.map +1 -1
- package/dist/types/models/Organization.d.ts +2 -4
- package/dist/types/models/Organization.d.ts.map +1 -1
- package/dist/types/models/OrganizationList.d.ts +2 -4
- package/dist/types/models/OrganizationList.d.ts.map +1 -1
- package/dist/types/models/QuadletApplication.d.ts +8 -0
- package/dist/types/models/QuadletApplication.d.ts.map +1 -0
- package/dist/types/models/QuadletApplication.js +3 -0
- package/dist/types/models/QuadletApplication.js.map +1 -0
- package/dist/types/models/Repository.d.ts +2 -4
- package/dist/types/models/Repository.d.ts.map +1 -1
- package/dist/types/models/RepositoryList.d.ts +2 -4
- package/dist/types/models/RepositoryList.d.ts.map +1 -1
- package/dist/types/models/ResourceSync.d.ts +2 -4
- package/dist/types/models/ResourceSync.d.ts.map +1 -1
- package/dist/types/models/ResourceSyncList.d.ts +2 -4
- package/dist/types/models/ResourceSyncList.d.ts.map +1 -1
- package/dist/types/models/Status.d.ts +2 -4
- package/dist/types/models/Status.d.ts.map +1 -1
- package/dist/types/models/TemplateVersion.d.ts +2 -4
- package/dist/types/models/TemplateVersion.d.ts.map +1 -1
- package/dist/types/models/TemplateVersionList.d.ts +2 -4
- package/dist/types/models/TemplateVersionList.d.ts.map +1 -1
- package/dist/ui-components/src/components/AuthProvider/CreateAuthProvider/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/AuthProvider/CreateAuthProvider/utils.js +51 -51
- package/dist/ui-components/src/components/AuthProvider/CreateAuthProvider/utils.js.map +1 -1
- package/dist/ui-components/src/components/DetailsPage/Tables/ApplicationsTable.js +1 -1
- package/dist/ui-components/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js +5 -4
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/TerminalTab.js +5 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/TerminalTab.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +310 -363
- package/dist/ui-components/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.js +18 -19
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js +5 -4
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js +2 -2
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +20 -23
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationIntegritySettings.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationIntegritySettings.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +25 -45
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.d.ts +8 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.d.ts.map +1 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js +37 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js.map +1 -0
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.d.ts +1 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js +5 -8
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/utils.d.ts +18 -18
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.d.ts +4 -2
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.d.ts.map +1 -1
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.js +2 -2
- package/dist/ui-components/src/components/ErrorAlert/ErrorAlert.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.d.ts +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.js +3 -3
- package/dist/ui-components/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js +3 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.d.ts +7 -0
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.d.ts.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.js +40 -0
- package/dist/ui-components/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.js.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.d.ts +8 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.d.ts.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.js +37 -0
- package/dist/ui-components/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.js.map +1 -0
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.js +4 -3
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/OutputImageStep.js +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/OutputImageStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.js +13 -10
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.js +4 -2
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.js +7 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/types.d.ts +3 -5
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/types.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.d.ts +3 -2
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js +139 -34
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.js +23 -12
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.js +115 -39
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.d.ts +1 -0
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.js +17 -18
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.d.ts +5 -2
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js +22 -12
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js +17 -8
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.d.ts +10 -9
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.js +122 -26
- package/dist/ui-components/src/components/ImageBuilds/ImageExportCards.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts +2 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js +10 -4
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.js +3 -4
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/ui-components/src/components/form/RepositorySelect.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/RepositorySelect.js +1 -1
- package/dist/ui-components/src/components/form/RepositorySelect.js.map +1 -1
- package/dist/ui-components/src/components/form/UploadField.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/UploadField.js +25 -16
- package/dist/ui-components/src/components/form/UploadField.js.map +1 -1
- package/dist/ui-components/src/components/form/validations.d.ts +25 -18
- package/dist/ui-components/src/components/form/validations.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/validations.js +79 -33
- package/dist/ui-components/src/components/form/validations.js.map +1 -1
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts +2 -1
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -1
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js +2 -2
- package/dist/ui-components/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js.map +1 -1
- package/dist/ui-components/src/constants.d.ts +5 -6
- package/dist/ui-components/src/constants.d.ts.map +1 -1
- package/dist/ui-components/src/constants.js +19 -11
- package/dist/ui-components/src/constants.js.map +1 -1
- package/dist/ui-components/src/hooks/useWebSocket.d.ts.map +1 -1
- package/dist/ui-components/src/hooks/useWebSocket.js +25 -4
- package/dist/ui-components/src/hooks/useWebSocket.js.map +1 -1
- package/dist/ui-components/src/types/deviceSpec.d.ts +44 -76
- package/dist/ui-components/src/types/deviceSpec.d.ts.map +1 -1
- package/dist/ui-components/src/types/deviceSpec.js +13 -26
- package/dist/ui-components/src/types/deviceSpec.js.map +1 -1
- package/dist/ui-components/src/types/extraTypes.d.ts +1 -7
- package/dist/ui-components/src/types/extraTypes.d.ts.map +1 -1
- package/dist/ui-components/src/types/extraTypes.js.map +1 -1
- package/dist/ui-components/src/types/rbac.d.ts +7 -1
- package/dist/ui-components/src/types/rbac.d.ts.map +1 -1
- package/dist/ui-components/src/types/rbac.js +6 -0
- package/dist/ui-components/src/types/rbac.js.map +1 -1
- package/dist/ui-components/src/utils/imageBuilds.d.ts +1 -0
- package/dist/ui-components/src/utils/imageBuilds.d.ts.map +1 -1
- package/dist/ui-components/src/utils/imageBuilds.js +20 -29
- package/dist/ui-components/src/utils/imageBuilds.js.map +1 -1
- package/dist/ui-components/src/utils/search.d.ts +2 -1
- package/dist/ui-components/src/utils/search.d.ts.map +1 -1
- package/dist/ui-components/src/utils/search.js +2 -2
- package/dist/ui-components/src/utils/search.js.map +1 -1
- package/package.json +2 -2
- package/src/components/AuthProvider/CreateAuthProvider/utils.ts +2 -2
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +2 -2
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +10 -4
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +9 -1
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +361 -425
- package/src/components/Device/EditDeviceWizard/steps/ApplicationContainerForm.tsx +19 -29
- package/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.tsx +5 -13
- package/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.tsx +2 -16
- package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +8 -7
- package/src/components/Device/EditDeviceWizard/steps/ApplicationIntegritySettings.tsx +5 -5
- package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +29 -101
- package/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.tsx +87 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx +5 -10
- package/src/components/ErrorAlert/ErrorAlert.tsx +13 -3
- package/src/components/Fleet/CreateFleet/utils.ts +4 -5
- package/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx +11 -8
- package/src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.tsx +81 -0
- package/src/components/ImageBuilds/ConfirmImageExportModal/ConfirmImageExportModal.tsx +61 -0
- package/src/components/ImageBuilds/CreateImageBuildWizard/CreateImageBuildWizard.tsx +8 -3
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/OutputImageStep.tsx +1 -1
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/RegistrationStep.tsx +18 -10
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/ReviewStep.tsx +5 -1
- package/src/components/ImageBuilds/CreateImageBuildWizard/steps/SourceImageStep.tsx +13 -1
- package/src/components/ImageBuilds/CreateImageBuildWizard/types.ts +3 -6
- package/src/components/ImageBuilds/CreateImageBuildWizard/utils.ts +161 -37
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsPage.tsx +36 -17
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildExportsGallery.tsx +131 -44
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildLogsTab.tsx +22 -26
- package/src/components/ImageBuilds/ImageBuildRow.tsx +41 -20
- package/src/components/ImageBuilds/ImageBuildsPage.tsx +34 -15
- package/src/components/ImageBuilds/ImageExportCards.tsx +198 -80
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.css +5 -1
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +14 -4
- package/src/components/Repository/CreateRepository/utils.ts +4 -4
- package/src/components/form/RepositorySelect.tsx +1 -0
- package/src/components/form/UploadField.tsx +29 -30
- package/src/components/form/validations.ts +156 -106
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +3 -1
- package/src/constants.ts +19 -6
- package/src/hooks/useWebSocket.ts +25 -3
- package/src/types/deviceSpec.ts +68 -108
- package/src/types/extraTypes.ts +2 -12
- package/src/types/rbac.ts +6 -0
- package/src/utils/imageBuilds.ts +22 -32
- package/src/utils/search.ts +2 -2
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js
CHANGED
|
@@ -13,7 +13,6 @@ const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
|
13
13
|
const TextField_1 = tslib_1.__importDefault(require("../../../form/TextField"));
|
|
14
14
|
const FormSelect_1 = tslib_1.__importDefault(require("../../../form/FormSelect"));
|
|
15
15
|
const RadioField_1 = tslib_1.__importDefault(require("../../../form/RadioField"));
|
|
16
|
-
const FieldHelperText_1 = tslib_1.__importDefault(require("../../../form/FieldHelperText"));
|
|
17
16
|
const ExpandableFormSection_1 = tslib_1.__importDefault(require("../../../form/ExpandableFormSection"));
|
|
18
17
|
const WithHelperText_1 = require("../../../common/WithHelperText");
|
|
19
18
|
const apps_1 = require("../../../../utils/apps");
|
|
@@ -22,36 +21,36 @@ const ApplicationInlineForm_1 = tslib_1.__importDefault(require("./ApplicationIn
|
|
|
22
21
|
const ApplicationContainerForm_1 = tslib_1.__importDefault(require("./ApplicationContainerForm"));
|
|
23
22
|
const ApplicationHelmForm_1 = tslib_1.__importDefault(require("./ApplicationHelmForm"));
|
|
24
23
|
const ApplicationVolumeForm_1 = tslib_1.__importDefault(require("./ApplicationVolumeForm"));
|
|
24
|
+
const ApplicationVariablesForm_1 = tslib_1.__importDefault(require("./ApplicationVariablesForm"));
|
|
25
25
|
const ApplicationIntegritySettings_1 = tslib_1.__importDefault(require("./ApplicationIntegritySettings"));
|
|
26
26
|
require("./ApplicationsForm.css");
|
|
27
27
|
const ApplicationSection = ({ index, isReadOnly }) => {
|
|
28
28
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
29
29
|
const appFieldName = `applications[${index}]`;
|
|
30
|
-
const [{ value: app },
|
|
30
|
+
const [{ value: app }, , { setValue }] = (0, formik_1.useField)(appFieldName);
|
|
31
31
|
const { appType, specType, name: appName } = app;
|
|
32
|
-
const isContainer =
|
|
33
|
-
const isHelm =
|
|
34
|
-
const isQuadlet =
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
const isContainer = app.appType === types_1.AppType.AppTypeContainer;
|
|
33
|
+
const isHelm = app.appType === types_1.AppType.AppTypeHelm;
|
|
34
|
+
const isQuadlet = app.appType === types_1.AppType.AppTypeQuadlet;
|
|
35
|
+
const isCompose = app.appType === types_1.AppType.AppTypeCompose;
|
|
36
|
+
// Each AppForm type has all data structures it needs initialized with safe defaults (eg. empty arrays, etc).
|
|
37
|
+
// However, when the user switches to a type that doesn't have those fields, we must reset the app to define the missing fields.
|
|
38
|
+
const isContainerIncomplete = isContainer && !('ports' in app);
|
|
38
39
|
const isHelmIncomplete = isHelm && !('valuesFiles' in app);
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const appVarsError = typeof (error === null || error === void 0 ? void 0 : error.variables) === 'string' ? error.variables : undefined; // eslint-disable @typescript-eslint/no-unsafe-assignment
|
|
40
|
+
const isQuadletComposeIncomplete = (isQuadlet || isCompose) && !('volumes' in app);
|
|
41
|
+
const shouldResetApp = isContainerIncomplete || isHelmIncomplete || isQuadletComposeIncomplete;
|
|
42
42
|
const appTypesOptions = (0, apps_1.appTypeOptions)(t);
|
|
43
43
|
React.useEffect(() => {
|
|
44
|
-
// When switching types we must ensure all mandatory fields are initialized for the new type
|
|
45
44
|
if (shouldResetApp) {
|
|
46
|
-
const
|
|
47
|
-
setValue(
|
|
45
|
+
const initialApp = (0, deviceSpecUtils_1.createInitialAppForm)(appType, appName || '');
|
|
46
|
+
setValue(initialApp, false);
|
|
48
47
|
}
|
|
49
|
-
}, [shouldResetApp,
|
|
48
|
+
}, [shouldResetApp, appType, appName, setValue]);
|
|
50
49
|
return (React.createElement(ExpandableFormSection_1.default, { title: app.name || t('Application {{ appNum }}', { appNum: index + 1 }), fieldName: appFieldName },
|
|
51
50
|
React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
52
51
|
React.createElement(react_core_1.FormGroup, { label: t('Application type'), isRequired: true },
|
|
53
52
|
React.createElement(FormSelect_1.default, { items: appTypesOptions, name: `${appFieldName}.appType`, placeholderText: t('Select an application type'), isDisabled: isReadOnly })),
|
|
54
|
-
isContainer ? (React.createElement(ApplicationContainerForm_1.default, {
|
|
53
|
+
isContainer ? (React.createElement(ApplicationContainerForm_1.default, { index: index, isReadOnly: isReadOnly })) : isHelm ? (React.createElement(ApplicationHelmForm_1.default, { index: index, isReadOnly: isReadOnly })) : (React.createElement(React.Fragment, null,
|
|
55
54
|
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Definition source'), isRequired: true, content: React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
56
55
|
React.createElement(react_core_1.StackItem, null,
|
|
57
56
|
React.createElement("strong", null,
|
|
@@ -71,39 +70,20 @@ const ApplicationSection = ({ index, isReadOnly }) => {
|
|
|
71
70
|
t('Define application files directly in this interface (custom, one-off).'))))) },
|
|
72
71
|
React.createElement(react_core_1.Split, { hasGutter: true },
|
|
73
72
|
React.createElement(react_core_1.SplitItem, null,
|
|
74
|
-
React.createElement(RadioField_1.default, { id: `${appFieldName}-spec-type-image`, name: `${appFieldName}.specType`, label: t('OCI reference URL'), checkedValue: deviceSpec_1.AppSpecType.OCI_IMAGE
|
|
73
|
+
React.createElement(RadioField_1.default, { id: `${appFieldName}-spec-type-image`, name: `${appFieldName}.specType`, label: t('OCI reference URL'), isDisabled: isReadOnly, checkedValue: deviceSpec_1.AppSpecType.OCI_IMAGE })),
|
|
75
74
|
React.createElement(react_core_1.SplitItem, null,
|
|
76
|
-
React.createElement(RadioField_1.default, { id: `${appFieldName}-spec-type-inline`, name: `${appFieldName}.specType`, label: t('Inline'), checkedValue: deviceSpec_1.AppSpecType.INLINE
|
|
75
|
+
React.createElement(RadioField_1.default, { id: `${appFieldName}-spec-type-inline`, name: `${appFieldName}.specType`, label: t('Inline'), isDisabled: isReadOnly, checkedValue: deviceSpec_1.AppSpecType.INLINE })),
|
|
77
76
|
' ')),
|
|
78
|
-
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Application name'), content:
|
|
77
|
+
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Application name'), content: specType === deviceSpec_1.AppSpecType.INLINE
|
|
79
78
|
? t('The unique identifier for this application.')
|
|
80
|
-
: t('If not specified, the image name will be used. Application name must be unique.'), isRequired:
|
|
79
|
+
: t('If not specified, the image name will be used. Application name must be unique.'), isRequired: specType === deviceSpec_1.AppSpecType.INLINE },
|
|
81
80
|
React.createElement(TextField_1.default, { "aria-label": t('Application name'), name: `${appFieldName}.name`, isDisabled: isReadOnly })),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
specType === deviceSpec_1.AppSpecType.OCI_IMAGE && React.createElement(ApplicationImageForm_1.default, { index: index, isReadOnly: isReadOnly }),
|
|
82
|
+
specType === deviceSpec_1.AppSpecType.INLINE && (React.createElement(ApplicationInlineForm_1.default, { files: app.files || [], index: index, isReadOnly: isReadOnly })))),
|
|
83
|
+
(isQuadlet || isContainer) && React.createElement(ApplicationIntegritySettings_1.default, { index: index, isReadOnly: isReadOnly }),
|
|
85
84
|
!isHelm && (React.createElement(React.Fragment, null,
|
|
86
|
-
React.createElement(ApplicationVolumeForm_1.default, { appFieldName: appFieldName,
|
|
87
|
-
React.createElement(
|
|
88
|
-
var _a;
|
|
89
|
-
return (React.createElement(React.Fragment, null, (_a = app.variables) === null || _a === void 0 ? void 0 :
|
|
90
|
-
_a.map((variable, varIndex) => (React.createElement(react_core_1.Split, { hasGutter: true, key: varIndex },
|
|
91
|
-
React.createElement(react_core_1.SplitItem, { className: "fctl-application-template__variable-name" },
|
|
92
|
-
React.createElement(react_core_1.FormGroup, { label: t('Variable {{ number }}', { number: varIndex + 1 }) })),
|
|
93
|
-
React.createElement(react_core_1.SplitItem, null,
|
|
94
|
-
React.createElement(react_core_1.FormGroup, { label: t('Name'), isRequired: true },
|
|
95
|
-
React.createElement(TextField_1.default, { "aria-label": t('Name'), name: `${appFieldName}.variables.${varIndex}.name`, value: variable.name, isDisabled: isReadOnly }))),
|
|
96
|
-
React.createElement(react_core_1.SplitItem, { isFilled: true },
|
|
97
|
-
React.createElement(react_core_1.FormGroup, { label: t('Value'), isRequired: true },
|
|
98
|
-
React.createElement(TextField_1.default, { "aria-label": t('Value'), name: `${appFieldName}.variables.${varIndex}.value`, value: variable.value, isDisabled: isReadOnly }))),
|
|
99
|
-
!isReadOnly && (React.createElement(react_core_1.SplitItem, null,
|
|
100
|
-
React.createElement(react_core_1.Button, { "aria-label": t('Delete variable'), variant: "link", icon: React.createElement(minus_circle_icon_1.MinusCircleIcon, null), iconPosition: "end", onClick: () => remove(varIndex) })))))),
|
|
101
|
-
React.createElement(FieldHelperText_1.default, { error: appVarsError }),
|
|
102
|
-
!isReadOnly && (React.createElement(react_core_1.FormGroup, null,
|
|
103
|
-
React.createElement(react_core_1.Button, { variant: "link", style: { paddingInline: 0 }, icon: React.createElement(plus_circle_icon_1.PlusCircleIcon, null), iconPosition: "start", onClick: () => {
|
|
104
|
-
push({ name: '', value: '' });
|
|
105
|
-
} }, t('Add an application variable'))))));
|
|
106
|
-
}))))));
|
|
85
|
+
React.createElement(ApplicationVolumeForm_1.default, { appFieldName: appFieldName, isReadOnly: isReadOnly, isSingleContainerApp: isContainer }),
|
|
86
|
+
React.createElement(ApplicationVariablesForm_1.default, { appFieldName: appFieldName, isReadOnly: isReadOnly }))))));
|
|
107
87
|
};
|
|
108
88
|
const ApplicationTemplates = ({ isReadOnly }) => {
|
|
109
89
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
@@ -124,7 +104,7 @@ const ApplicationTemplates = ({ isReadOnly }) => {
|
|
|
124
104
|
!isReadOnly && (React.createElement(react_core_1.FormSection, null,
|
|
125
105
|
React.createElement(react_core_1.FormGroup, null,
|
|
126
106
|
React.createElement(react_core_1.Button, { variant: "link", icon: React.createElement(plus_circle_icon_1.PlusCircleIcon, null), iconPosition: "start", onClick: () => {
|
|
127
|
-
push((0, deviceSpecUtils_1.createInitialAppForm)(types_1.AppType.AppTypeContainer
|
|
107
|
+
push((0, deviceSpecUtils_1.createInitialAppForm)(types_1.AppType.AppTypeContainer));
|
|
128
108
|
} }, t('Add application')))))))))));
|
|
129
109
|
};
|
|
130
110
|
exports.default = ApplicationTemplates;
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationTemplates.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDAUgC;AAChC,mCAAgE;AAChE,+FAA0F;AAC1F,6FAAwF;AAExF,4CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"ApplicationTemplates.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDAUgC;AAChC,mCAAgE;AAChE,+FAA0F;AAC1F,6FAAwF;AAExF,4CAA2C;AAC3C,6DAAgG;AAChG,wDAA0D;AAC1D,qEAAkE;AAClE,gFAAgD;AAChD,kFAAkD;AAClD,kFAAkD;AAClD,wGAAwE;AACxE,mEAAyE;AACzE,iDAAwD;AACxD,0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G,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACxC,oBAAC,wBAAW,IAAC,GAAG,EAAE,KAAK;oBACrB,oBAAC,kBAAK,IAAC,SAAS;wBACd,oBAAC,sBAAS,IAAC,QAAQ;4BACjB,oBAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,GAAI,CAClD;wBACX,CAAC,UAAU,IAAI,CACd,oBAAC,sBAAS;4BACR,oBAAC,mBAAM,kBACO,CAAC,CAAC,oBAAoB,CAAC,EACnC,OAAO,EAAC,MAAM,EACd,IAAI,EAAE,oBAAC,mCAAe,OAAG,EACzB,YAAY,EAAC,OAAO,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAC5B,CACQ,CACb,CACK,CACI,CACf,CAAC;gBAED,CAAC,UAAU,IAAI,CACd,oBAAC,wBAAW;oBACV,oBAAC,sBAAS;wBACR,oBAAC,mBAAM,IACL,OAAO,EAAC,MAAM,EACd,IAAI,EAAE,oBAAC,iCAAc,OAAG,EACxB,YAAY,EAAC,OAAO,EACpB,OAAO,EAAE,GAAG,EAAE;gCACZ,IAAI,CAAC,IAAA,sCAAoB,EAAC,eAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;4BACvD,CAAC,IAEA,CAAC,CAAC,iBAAiB,CAAC,CACd,CACC,CACA,CACf,CACA,CACJ,CACU,CACZ,CACqB,CAC3B,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type ApplicationVariablesFormProps = {
|
|
3
|
+
appFieldName: string;
|
|
4
|
+
isReadOnly?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const ApplicationVariablesForm: ({ appFieldName, isReadOnly }: ApplicationVariablesFormProps) => React.JSX.Element;
|
|
7
|
+
export default ApplicationVariablesForm;
|
|
8
|
+
//# sourceMappingURL=ApplicationVariablesForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationVariablesForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,6BAA6B,GAAG;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,wBAAwB,iCAAkC,6BAA6B,sBAoE5F,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const formik_1 = require("formik");
|
|
6
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
+
const minus_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/minus-circle-icon");
|
|
8
|
+
const plus_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/plus-circle-icon");
|
|
9
|
+
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
10
|
+
const TextField_1 = tslib_1.__importDefault(require("../../../form/TextField"));
|
|
11
|
+
const FieldHelperText_1 = tslib_1.__importDefault(require("../../../form/FieldHelperText"));
|
|
12
|
+
const ApplicationVariablesForm = ({ appFieldName, isReadOnly }) => {
|
|
13
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
14
|
+
const [{ value: variables = [] }, { error }] = (0, formik_1.useField)(`${appFieldName}.variables`);
|
|
15
|
+
// @ts-expect-error Formik error object includes "variables"
|
|
16
|
+
const appVarsError = typeof (error === null || error === void 0 ? void 0 : error.variables) === 'string' ? error.variables : undefined;
|
|
17
|
+
return (React.createElement(react_core_1.FormGroup, { label: t('Environment variables'), className: "fctl-application-variables-form" },
|
|
18
|
+
React.createElement(formik_1.FieldArray, { name: `${appFieldName}.variables` }, ({ push, remove }) => (React.createElement(React.Fragment, null,
|
|
19
|
+
variables.map((_variable, variableIndex) => {
|
|
20
|
+
const variableFieldName = `${appFieldName}.variables[${variableIndex}]`;
|
|
21
|
+
return (React.createElement(react_core_1.FormSection, { key: variableIndex },
|
|
22
|
+
React.createElement(react_core_1.Split, { hasGutter: true },
|
|
23
|
+
React.createElement(react_core_1.SplitItem, { isFilled: true },
|
|
24
|
+
React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
25
|
+
React.createElement(react_core_1.FormGroup, { label: t('Name'), isRequired: true },
|
|
26
|
+
React.createElement(TextField_1.default, { name: `${variableFieldName}.name`, "aria-label": t('Variable name'), isDisabled: isReadOnly })),
|
|
27
|
+
React.createElement(react_core_1.FormGroup, { label: t('Value'), isRequired: true },
|
|
28
|
+
React.createElement(TextField_1.default, { name: `${variableFieldName}.value`, "aria-label": t('Variable value'), isDisabled: isReadOnly })))),
|
|
29
|
+
!isReadOnly && (React.createElement(react_core_1.SplitItem, null,
|
|
30
|
+
React.createElement(react_core_1.Button, { "aria-label": t('Delete variable'), variant: "link", icon: React.createElement(minus_circle_icon_1.MinusCircleIcon, null), iconPosition: "start", onClick: () => remove(variableIndex) }))))));
|
|
31
|
+
}),
|
|
32
|
+
React.createElement(FieldHelperText_1.default, { error: appVarsError }),
|
|
33
|
+
!isReadOnly && (React.createElement(react_core_1.FormGroup, null,
|
|
34
|
+
React.createElement(react_core_1.Button, { variant: "link", icon: React.createElement(plus_circle_icon_1.PlusCircleIcon, null), iconPosition: "start", onClick: () => push({ name: '', value: '' }) }, t('Add variable')))))))));
|
|
35
|
+
};
|
|
36
|
+
exports.default = ApplicationVariablesForm;
|
|
37
|
+
//# sourceMappingURL=ApplicationVariablesForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationVariablesForm.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA8C;AAC9C,uDAAgG;AAChG,+FAA0F;AAC1F,6FAAwF;AAGxF,qEAAkE;AAClE,gFAAgD;AAChD,4FAA4D;AAO5D,MAAM,wBAAwB,GAAG,CAAC,EAAE,YAAY,EAAE,UAAU,EAAiC,EAAE,EAAE;IAC/F,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAQ,EAAgB,GAAG,YAAY,YAAY,CAAC,CAAC;IAEpG,4DAA4D;IAC5D,MAAM,YAAY,GAAG,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,CAAA,KAAK,QAAQ,CAAC,CAAC,CAAE,KAAK,CAAC,SAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;IAEpG,OAAO,CACL,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAC,EAAE,SAAS,EAAC,iCAAiC;QACvF,oBAAC,mBAAU,IAAC,IAAI,EAAE,GAAG,YAAY,YAAY,IAC1C,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACrB;YACG,SAAS,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE;gBAC1C,MAAM,iBAAiB,GAAG,GAAG,YAAY,cAAc,aAAa,GAAG,CAAC;gBACxE,OAAO,CACL,oBAAC,wBAAW,IAAC,GAAG,EAAE,aAAa;oBAC7B,oBAAC,kBAAK,IAAC,SAAS;wBACd,oBAAC,sBAAS,IAAC,Q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olumeForm.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ApplicationVolumeForm as VolumeFormType } from '../../../../types/deviceSpec';
|
|
3
2
|
import './ApplicationVolumeForm.css';
|
|
4
3
|
type ApplicationVolumeFormProps = {
|
|
5
4
|
appFieldName: string;
|
|
6
|
-
volumes: VolumeFormType[];
|
|
7
5
|
isReadOnly?: boolean;
|
|
8
6
|
isSingleContainerApp?: boolean;
|
|
9
7
|
};
|
|
10
|
-
declare const ApplicationVolumeForm: ({ appFieldName,
|
|
8
|
+
declare const ApplicationVolumeForm: ({ appFieldName, isReadOnly, isSingleContainerApp, }: ApplicationVolumeFormProps) => React.JSX.Element;
|
|
11
9
|
export default ApplicationVolumeForm;
|
|
12
10
|
//# sourceMappingURL=ApplicationVolumeForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationVolumeForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationVolumeForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,6BAA6B,CAAC;AAErC,KAAK,0BAA0B,GAAG;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAQF,QAAA,MAAM,qBAAqB,wDAIxB,0BAA0B,sBA6G5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js
CHANGED
|
@@ -19,10 +19,10 @@ const getPullPolicyOptions = (t) => ({
|
|
|
19
19
|
[types_1.ImagePullPolicy.PullAlways]: t('Always'),
|
|
20
20
|
[types_1.ImagePullPolicy.PullNever]: t('Never'),
|
|
21
21
|
});
|
|
22
|
-
const ApplicationVolumeForm = ({ appFieldName,
|
|
22
|
+
const ApplicationVolumeForm = ({ appFieldName, isReadOnly, isSingleContainerApp = false, }) => {
|
|
23
23
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
24
|
-
const [, { error }] = (0, formik_1.useField)(`${appFieldName}.volumes`);
|
|
25
24
|
const pullPolicyOptions = React.useMemo(() => getPullPolicyOptions(t), [t]);
|
|
25
|
+
const [{ value: volumes = [] }, { error }] = (0, formik_1.useField)(`${appFieldName}.volumes`);
|
|
26
26
|
const volumesError = typeof error === 'string' ? error : undefined;
|
|
27
27
|
return (React.createElement(react_core_1.FormGroup, { label: t('Volumes'), className: "fctl-application-volume-form" },
|
|
28
28
|
React.createElement(formik_1.FieldArray, { name: `${appFieldName}.volumes` }, ({ push, remove }) => (React.createElement(React.Fragment, null,
|
|
@@ -49,15 +49,12 @@ const ApplicationVolumeForm = ({ appFieldName, volumes, isReadOnly, isSingleCont
|
|
|
49
49
|
React.createElement(FieldHelperText_1.default, { error: volumesError }),
|
|
50
50
|
!isReadOnly && (React.createElement(react_core_1.FormGroup, null,
|
|
51
51
|
React.createElement(react_core_1.Button, { variant: "link", icon: React.createElement(plus_circle_icon_1.PlusCircleIcon, null), iconPosition: "start", onClick: () => {
|
|
52
|
-
|
|
52
|
+
push({
|
|
53
53
|
name: '',
|
|
54
54
|
imageRef: '',
|
|
55
55
|
imagePullPolicy: types_1.ImagePullPolicy.PullIfNotPresent,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
emptyVolume.mountPath = '';
|
|
59
|
-
}
|
|
60
|
-
push(emptyVolume);
|
|
56
|
+
mountPath: '',
|
|
57
|
+
});
|
|
61
58
|
} }, t('Add volume')))))))));
|
|
62
59
|
};
|
|
63
60
|
exports.default = ApplicationVolumeForm;
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationVolumeForm.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA8C;AAE9C,uDAAgG;AAChG,+FAA0F;AAC1F,6FAAwF;AAExF,4CAAmD;AAEnD,qEAAkE;AAClE,gFAAgD;AAChD,kFAAkD;AAClD,4FAA4D;AAC5D,wGAAwE;AACxE,mEAAyE;AAEzE,uCAAqC;
|
|
1
|
+
{"version":3,"file":"ApplicationVolumeForm.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA8C;AAE9C,uDAAgG;AAChG,+FAA0F;AAC1F,6FAAwF;AAExF,4CAAmD;AAEnD,qEAAkE;AAClE,gFAAgD;AAChD,kFAAkD;AAClD,4FAA4D;AAC5D,wGAAwE;AACxE,mEAAyE;AAEzE,uCAAqC;AAQrC,MAAM,oBAAoB,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,CAAC,uBAAe,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,gBAAgB,CAAC;IACvD,CAAC,uBAAe,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;IACzC,CAAC,uBAAe,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC;CACxC,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,CAAC,EAC7B,YAAY,EACZ,UAAU,EACV,oBAAoB,GAAG,KAAK,GACD,EAAE,EAAE;IAC/B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,iBAAiB,GAAG,KAAK,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C;YACF,oBAAC,yBAAe,IAAC,KAAK,EAAE,YAAY,GAAI;YACvC,CAAC,UAAU,IAAI,CACd,oBAAC,sBAAS;gBACR,oBAAC,mBAAM,IACL,OAAO,EAAC,MAAM,EACd,IAAI,EAAE,oBAAC,iCAAc,OAAG,EACxB,YAAY,EAAC,OAAO,EACpB,OAAO,EAAE,GAAG,EAAE;wBACZ,IAAI,CAAC;4BACH,IAAI,EAAE,EAAE;4BACR,QAAQ,EAAE,EAAE;4BACZ,eAAe,EAAE,uBAAe,CAAC,gBAAgB;4BACjD,SAAS,EAAE,EAAE;yBACd,CAAC,CAAC;oBACL,CAAC,IAEA,CAAC,CAAC,YAAY,CAAC,CACT,CACC,CACb,CACA,CACJ,CACU,CACH,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC"}
|
|
@@ -28,34 +28,34 @@ export declare const getValidationSchema: (t: TFunction) => Yup.Lazy<{
|
|
|
28
28
|
type: string;
|
|
29
29
|
})[] | undefined;
|
|
30
30
|
applications?: ({
|
|
31
|
+
ports?: {
|
|
32
|
+
hostPort: string;
|
|
33
|
+
containerPort: string;
|
|
34
|
+
}[] | undefined;
|
|
31
35
|
volumes?: {
|
|
32
36
|
imageRef?: string | undefined;
|
|
33
37
|
imagePullPolicy?: string | undefined;
|
|
34
38
|
mountPath?: string | undefined;
|
|
35
39
|
name: string;
|
|
36
40
|
}[] | undefined;
|
|
37
|
-
|
|
38
|
-
hostPort: string;
|
|
39
|
-
containerPort: string;
|
|
40
|
-
}[] | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
41
42
|
runAs?: string | undefined;
|
|
42
43
|
image: string;
|
|
43
|
-
variables: {
|
|
44
|
-
value: string;
|
|
45
|
-
name: string;
|
|
46
|
-
}[];
|
|
47
44
|
appType: import("@flightctl/types").AppType.AppTypeContainer;
|
|
48
45
|
specType: import("./../../../types/deviceSpec").AppSpecType.OCI_IMAGE;
|
|
49
|
-
name: string;
|
|
50
46
|
limits: {
|
|
51
47
|
cpu?: string | undefined;
|
|
52
48
|
memory?: string | undefined;
|
|
53
49
|
};
|
|
50
|
+
variables: {
|
|
51
|
+
value: string;
|
|
52
|
+
name: string;
|
|
53
|
+
}[];
|
|
54
54
|
} | {
|
|
55
55
|
name?: string | undefined;
|
|
56
56
|
namespace?: string | undefined;
|
|
57
|
-
valuesYaml?: string | undefined;
|
|
58
57
|
valuesFiles?: (string | undefined)[] | undefined;
|
|
58
|
+
valuesYaml?: string | undefined;
|
|
59
59
|
image: string;
|
|
60
60
|
appType: import("@flightctl/types").AppType.AppTypeHelm;
|
|
61
61
|
specType: import("./../../../types/deviceSpec").AppSpecType.OCI_IMAGE;
|
|
@@ -67,25 +67,25 @@ export declare const getValidationSchema: (t: TFunction) => Yup.Lazy<{
|
|
|
67
67
|
}[] | undefined;
|
|
68
68
|
name?: string | undefined;
|
|
69
69
|
image: string;
|
|
70
|
+
appType: NonNullable<import("@flightctl/types").AppType.AppTypeCompose | import("@flightctl/types").AppType.AppTypeQuadlet | undefined>;
|
|
71
|
+
specType: import("./../../../types/deviceSpec").AppSpecType.OCI_IMAGE;
|
|
70
72
|
variables: {
|
|
71
73
|
value: string;
|
|
72
74
|
name: string;
|
|
73
75
|
}[];
|
|
74
|
-
appType: NonNullable<import("@flightctl/types").AppType.AppTypeCompose | import("@flightctl/types").AppType.AppTypeQuadlet | undefined>;
|
|
75
|
-
specType: import("./../../../types/deviceSpec").AppSpecType.OCI_IMAGE;
|
|
76
76
|
} | {
|
|
77
77
|
volumes?: {
|
|
78
78
|
name: string;
|
|
79
79
|
imageRef: string;
|
|
80
80
|
imagePullPolicy: NonNullable<import("@flightctl/types").ImagePullPolicy | undefined>;
|
|
81
81
|
}[] | undefined;
|
|
82
|
+
name: string;
|
|
83
|
+
appType: import("@flightctl/types").AppType.AppTypeQuadlet;
|
|
84
|
+
specType: NonNullable<import("./../../../types/deviceSpec").AppSpecType | undefined>;
|
|
82
85
|
variables: {
|
|
83
86
|
value: string;
|
|
84
87
|
name: string;
|
|
85
88
|
}[];
|
|
86
|
-
appType: import("@flightctl/types").AppType.AppTypeQuadlet;
|
|
87
|
-
specType: NonNullable<import("./../../../types/deviceSpec").AppSpecType | undefined>;
|
|
88
|
-
name: string;
|
|
89
89
|
files: {
|
|
90
90
|
content?: string | undefined;
|
|
91
91
|
path: string;
|
|
@@ -96,13 +96,13 @@ export declare const getValidationSchema: (t: TFunction) => Yup.Lazy<{
|
|
|
96
96
|
imageRef: string;
|
|
97
97
|
imagePullPolicy: NonNullable<import("@flightctl/types").ImagePullPolicy | undefined>;
|
|
98
98
|
}[] | undefined;
|
|
99
|
+
name: string;
|
|
100
|
+
appType: import("@flightctl/types").AppType.AppTypeCompose;
|
|
101
|
+
specType: NonNullable<import("./../../../types/deviceSpec").AppSpecType | undefined>;
|
|
99
102
|
variables: {
|
|
100
103
|
value: string;
|
|
101
104
|
name: string;
|
|
102
105
|
}[];
|
|
103
|
-
appType: import("@flightctl/types").AppType.AppTypeCompose;
|
|
104
|
-
specType: NonNullable<import("./../../../types/deviceSpec").AppSpecType | undefined>;
|
|
105
|
-
name: string;
|
|
106
106
|
files: {
|
|
107
107
|
content?: string | undefined;
|
|
108
108
|
path: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type ErrorAlertProps = {
|
|
3
3
|
error: unknown;
|
|
4
|
-
|
|
4
|
+
onRetry?: VoidFunction;
|
|
5
|
+
};
|
|
6
|
+
declare const ErrorAlert: ({ error, onRetry }: ErrorAlertProps) => React.JSX.Element;
|
|
5
7
|
export default ErrorAlert;
|
|
6
8
|
//# sourceMappingURL=ErrorAlert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorAlert/ErrorAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,
|
|
1
|
+
{"version":3,"file":"ErrorAlert.d.ts","sourceRoot":"","sources":["../../../../../src/components/ErrorAlert/ErrorAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,UAAU,uBAAwB,eAAe,sBAYtD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -5,9 +5,9 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
5
5
|
const react_core_1 = require("@patternfly/react-core");
|
|
6
6
|
const useTranslation_1 = require("../../hooks/useTranslation");
|
|
7
7
|
const error_1 = require("../../utils/error");
|
|
8
|
-
const ErrorAlert = ({ error }) => {
|
|
8
|
+
const ErrorAlert = ({ error, onRetry }) => {
|
|
9
9
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
10
|
-
return (React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('Unexpected error occurred') }, (0, error_1.getErrorMessage)(error)));
|
|
10
|
+
return (React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('Unexpected error occurred'), actionLinks: onRetry ? React.createElement(react_core_1.AlertActionLink, { onClick: onRetry }, t('Try again')) : undefined }, (0, error_1.getErrorMessage)(error)));
|
|
11
11
|
};
|
|
12
12
|
exports.default = ErrorAlert;
|
|
13
13
|
//# sourceMappingURL=ErrorAlert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorAlert.js","sourceRoot":"","sources":["../../../../../src/components/ErrorAlert/ErrorAlert.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"ErrorAlert.js","sourceRoot":"","sources":["../../../../../src/components/ErrorAlert/ErrorAlert.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAgE;AAChE,+DAA4D;AAC5D,6CAAoD;AAOpD,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAmB,EAAE,EAAE;IACzD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,oBAAC,kBAAK,IACJ,QAAQ,QACR,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAE,CAAC,CAAC,2BAA2B,CAAC,EACrC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,oBAAC,4BAAe,IAAC,OAAO,EAAE,OAAO,IAAG,CAAC,CAAC,WAAW,CAAC,CAAmB,CAAC,CAAC,CAAC,SAAS,IAEvG,IAAA,uBAAe,EAAC,KAAK,CAAC,CACjB,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fleet, PatchRequest } from '@flightctl/types';
|
|
2
1
|
import { TFunction } from 'i18next';
|
|
3
2
|
import * as Yup from 'yup';
|
|
3
|
+
import { Fleet, PatchRequest } from '@flightctl/types';
|
|
4
4
|
import { FleetFormValues } from '../../../types/deviceSpec';
|
|
5
5
|
export declare const getValidationSchema: (t: TFunction) => Yup.Lazy<{}, Yup.AnyObject, any>;
|
|
6
6
|
export declare const getFleetPatches: (currentFleet: Fleet, updatedFleet: FleetFormValues) => PatchRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Fleet/CreateFleet/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Fleet/CreateFleet/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAc,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAoCnE,OAAO,EAAE,eAAe,EAAoB,MAAM,2BAA2B,CAAC;AAE9E,eAAO,MAAM,mBAAmB,MAAO,SAAS,qCAsB/C,CAAC;AAEF,eAAO,MAAM,eAAe,iBAAkB,KAAK,gBAAgB,eAAe,iBAuGjF,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,eAAe,KAAG,KAgD1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,KAAK,KAAG,eA0ChD,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getInitialValues = exports.getFleetResource = exports.getFleetPatches = exports.getValidationSchema = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
-
const
|
|
6
|
+
const types_1 = require("@flightctl/types");
|
|
7
7
|
const labels_1 = require("../../../utils/labels");
|
|
8
8
|
const validations_1 = require("../../form/validations");
|
|
9
9
|
const patch_1 = require("../../../utils/patch");
|
|
@@ -121,7 +121,7 @@ const getFleetResource = (values) => {
|
|
|
121
121
|
},
|
|
122
122
|
};
|
|
123
123
|
const fleet = {
|
|
124
|
-
apiVersion:
|
|
124
|
+
apiVersion: types_1.ApiVersion.ApiVersionV1beta1,
|
|
125
125
|
kind: 'Fleet',
|
|
126
126
|
metadata: {
|
|
127
127
|
name: values.name,
|
|
@@ -137,7 +137,7 @@ const getFleetResource = (values) => {
|
|
|
137
137
|
fleet: values.name,
|
|
138
138
|
},
|
|
139
139
|
},
|
|
140
|
-
spec: Object.assign({ os: values.osImage ? { image: values.osImage || '' } : undefined, config: values.configTemplates.map(deviceSpecUtils_1.getApiConfig), applications: values.applications.map(deviceSpecUtils_1.
|
|
140
|
+
spec: Object.assign({ os: values.osImage ? { image: values.osImage || '' } : undefined, config: values.configTemplates.map(deviceSpecUtils_1.getApiConfig), applications: values.applications.map(deviceSpecUtils_1.toApiApplication) }, systemdPatterns),
|
|
141
141
|
},
|
|
142
142
|
},
|
|
143
143
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/components/Fleet/CreateFleet/utils.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/components/Fleet/CreateFleet/utils.ts"],"names":[],"mappings":";;;;AACA,iDAA2B;AAC3B,4CAAmE;AACnE,kDAAmD;AACnD,wDAUgC;AAChC,gDAQ8B;AAC9B,mFAYuD;AACvD,qDAA4G;AAGrG,MAAM,mBAAmB,GAAG,CAAC,CAAY,EAAE,EAAE;IAClD,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,MAAuB,EAAE,EAAE;;QAC1C,OAAA,GAAG,CAAC,MAAM,CAAkB;YAC1B,IAAI,EAAE,IAAA,yCAA2B,EAAC,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;YAC1D,OAAO,EAAE,IAAA,0BAAY,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;YAC3C,WAAW,EAAE,IAAA,+BAAiB,EAAC,CAAC,CAAC;YACjC,MAAM,EAAE,IAAA,+BAAiB,EAAC,CAAC,CAAC;YAC5B,eAAe,EAAE,IAAA,wCAA0B,EAAC,CAAC,CAAC;YAC9C,YAAY,EAAE,IAAA,qCAAuB,EAAC,CAAC,CAAC;YACxC,YAAY,EAAE,IAAA,6CAA+B,EAAC,CAAC,CAAC;YAChD,aAAa,EACX,CAAC,MAAM,CAAC,oBAAoB,KAAI,MAAA,MAAM,CAAC,aAAa,0CAAE,UAAU,CAAA;gBAC9D,CAAC,CAAC,IAAA,2CAA6B,EAAC,CAAC,CAAC;gBAClC,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE;YAClB,gBAAgB,EACd,CAAC,MAAM,CAAC,oBAAoB,KAAI,MAAA,MAAM,CAAC,gBAAgB,0CAAE,UA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,YAAY,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC7D,kBAAkB;YAClB,aAAa;YACb,gBAAgB;YAChB,YAAY;YACZ,oBAAoB,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,CAAC,gBAAgB,CAAC,UAAU,IAAI,CAAC,YAAY,CAAC,UAAU;SAC5G,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;QAChB,kBAAkB,EAAE,KAAK;QACzB,aAAa,EAAE,IAAA,uCAAsB,EAAC,SAAS,CAAC;QAChD,gBAAgB,EAAE,IAAA,0CAAyB,EAAC,SAAS,CAAC;QACtD,YAAY,EAAE,IAAA,sCAAqB,EAAC,SAAS,CAAC;QAC9C,oBAAoB,EAAE,IAAI;KAC3B,CAAC;AACJ,CAAC,CAAC;AA1CW,QAAA,gBAAgB,oBA0C3B"}
|
package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryStep.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;AAGxD,OAAO,EAAe,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"RepositoryStep.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;AAGxD,OAAO,EAAe,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAYjD,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAE7C,eAAO,MAAM,eAAe,WAAY,qBAAqB,UAAU,aAAa,qBAAqB,CAAC,YAYzG,CAAC;AA4CF,QAAA,MAAM,cAAc;kBAAiD,UAAU,EAAE;eAAa,OAAO;uBA8CpG,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -14,6 +14,7 @@ const FormSelect_1 = tslib_1.__importDefault(require("../../../form/FormSelect")
|
|
|
14
14
|
const FlightCtlForm_1 = tslib_1.__importDefault(require("../../../form/FlightCtlForm"));
|
|
15
15
|
const PermissionsContext_1 = require("../../../common/PermissionsContext");
|
|
16
16
|
const rbac_1 = require("../../../../types/rbac");
|
|
17
|
+
const WithTooltip_1 = tslib_1.__importDefault(require("../../../common/WithTooltip"));
|
|
17
18
|
exports.repositoryStepId = 'repository';
|
|
18
19
|
const isRepoStepValid = (values, errors) => {
|
|
19
20
|
if (values.useExistingRepo) {
|
|
@@ -66,7 +67,8 @@ const RepositoryStep = ({ repositories, hasLoaded }) => {
|
|
|
66
67
|
React.createElement(react_core_1.Grid, { span: 8 },
|
|
67
68
|
canCreateRepo && (React.createElement(react_core_1.FormSection, null,
|
|
68
69
|
React.createElement(react_core_1.FormGroup, { isInline: true },
|
|
69
|
-
React.createElement(
|
|
70
|
+
React.createElement(WithTooltip_1.default, { showTooltip: noRepositoriesExist, content: t('No Git repositories found') },
|
|
71
|
+
React.createElement(react_core_1.Radio, { isChecked: values.useExistingRepo, onChange: () => setFieldValue('useExistingRepo', true, true), id: "existing-repo", name: "repo", label: t('Use an existing Git repository'), isDisabled: noRepositoriesExist })),
|
|
70
72
|
React.createElement(react_core_1.Radio, { isChecked: !values.useExistingRepo, onChange: () => setFieldValue('useExistingRepo', false, true), id: "new-repo", name: "repo", label: t('Use a new Git repository') })))),
|
|
71
73
|
React.createElement(react_core_1.FormSection, null, values.useExistingRepo ? React.createElement(ExistingRepoForm, { repositories: repositories }) : React.createElement(CreateRepositoryForm_1.RepositoryForm, null)))));
|
|
72
74
|
};
|
package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryStep.js","sourceRoot":"","sources":["../../../../../../../src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAA6E;AAC7E,mCAAwD;AACxD,yDAA0E;AAK1E,oGAA2F;AAC3F,gGAAgE;AAChE,oEAAgF;AAChF,qEAAkE;AAClE,kFAAkD;AAClD,wFAAwD;AACxD,2EAA2E;AAC3E,iDAAwD;
|
|
1
|
+
{"version":3,"file":"RepositoryStep.js","sourceRoot":"","sources":["../../../../../../../src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAA6E;AAC7E,mCAAwD;AACxD,yDAA0E;AAK1E,oGAA2F;AAC3F,gGAAgE;AAChE,oEAAgF;AAChF,qEAAkE;AAClE,kFAAkD;AAClD,wFAAwD;AACxD,2EAA2E;AAC3E,iDAAwD;AACxD,sFAAsD;AAEzC,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAEtC,MAAM,eAAe,GAAG,CAAC,MAA6B,EAAE,MAA2C,EAAE,EAAE;IAC5G,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;QAC3B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC;IAC9B,CAAC;IACD,OAAO,CACL,CAAC,MAAM,CAAC,IAAI;QACZ,CAAC,MAAM,CAAC,GAAG;QACX,CAAC,MAAM,CAAC,UAAU;QACl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: (confirmed?: boolean) => void;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default CancelImageBuildModal;
|
|
7
|
+
//# sourceMappingURL=CancelImageBuildModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CancelImageBuildModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ImageBuilds/CancelImageBuildModal/CancelImageBuildModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,QAAA,MAAM,qBAAqB;kBAIX,MAAM;0BACE,OAAO,KAAK,IAAI;uBAwDvC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|