@flightctl/ui-components 0.5.1 → 0.6.0-rc2
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/DetailsPage/DetailsPage.d.ts +3 -2
- package/dist/src/components/DetailsPage/DetailsPage.d.ts.map +1 -1
- package/dist/src/components/DetailsPage/DetailsPage.js +2 -2
- package/dist/src/components/DetailsPage/DetailsPage.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js +5 -3
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js +4 -5
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.d.ts +10 -0
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.js +110 -0
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.js.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.js +7 -1
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +9 -6
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.js +3 -3
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/SystemResourcesContent.js +3 -3
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/TerminalTab.js +34 -3
- package/dist/src/components/Device/DeviceDetails/TerminalTab.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js +35 -30
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DevicesPage.js +11 -2
- package/dist/src/components/Device/DevicesPage/DevicesPage.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js +14 -11
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +9 -2
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.js +21 -6
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.js +11 -4
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +6 -5
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +123 -10
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js +19 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +49 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +52 -19
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +13 -16
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js +5 -5
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js +2 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +16 -16
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js +58 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts +2 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js +17 -12
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts +2 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.d.ts +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +29 -3
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.js +8 -7
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.d.ts.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.d.ts +1 -4
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.d.ts.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +5 -5
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.d.ts +2 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.js +19 -11
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +5 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.d.ts +2 -1
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.js +8 -4
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js +2 -2
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js +8 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts +19 -2
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js +53 -18
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js +1 -2
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js +9 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js +22 -9
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js +4 -4
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js +5 -5
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.css +3 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts +9 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js +127 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.js +13 -4
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/FleetsPage.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetsPage.js +8 -12
- package/dist/src/components/Fleet/FleetsPage.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.js +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.js.map +1 -1
- package/dist/src/components/ListPage/ListPage.d.ts +1 -0
- package/dist/src/components/ListPage/ListPage.d.ts.map +1 -1
- package/dist/src/components/ListPage/ListPage.js +3 -3
- package/dist/src/components/ListPage/ListPage.js.map +1 -1
- package/dist/src/components/Masthead/CommandLineToolsPage.d.ts +4 -0
- package/dist/src/components/Masthead/CommandLineToolsPage.d.ts.map +1 -0
- package/dist/src/components/Masthead/CommandLineToolsPage.js +90 -0
- package/dist/src/components/Masthead/CommandLineToolsPage.js.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesModal.d.ts.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesModal.js.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesProvider.d.ts.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesProvider.js.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js +3 -3
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Tasks/TasksCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/Tasks/TasksCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/{ToDo/ToDoCard.js → Tasks/TasksCard.js} +4 -4
- package/dist/src/components/OverviewPage/Cards/Tasks/TasksCard.js.map +1 -0
- package/dist/src/components/OverviewPage/Overview.js +2 -2
- package/dist/src/components/OverviewPage/Overview.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +6 -5
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +3 -3
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.js +4 -1
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.js +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.js.map +1 -1
- package/dist/src/components/Repository/RepositoryList.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryList.js +3 -11
- package/dist/src/components/Repository/RepositoryList.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +3 -6
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/Status/DeviceResourceStatus.js +3 -3
- package/dist/src/components/Status/utils.d.ts.map +1 -1
- package/dist/src/components/Status/utils.js +3 -3
- package/dist/src/components/Status/utils.js.map +1 -1
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Table/Table.d.ts.map +1 -1
- package/dist/src/components/Table/Table.js +9 -5
- package/dist/src/components/Table/Table.js.map +1 -1
- package/dist/src/components/Table/TablePagination.d.ts.map +1 -1
- package/dist/src/components/Table/TablePagination.js +1 -1
- package/dist/src/components/Table/TablePagination.js.map +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts.map +1 -1
- package/dist/src/components/Terminal/Terminal.js +10 -3
- package/dist/src/components/Terminal/Terminal.js.map +1 -1
- package/dist/src/components/charts/DonutChart.js +1 -1
- package/dist/src/components/charts/DonutChart.js.map +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.js +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/WithHelperText.d.ts +10 -5
- package/dist/src/components/common/WithHelperText.d.ts.map +1 -1
- package/dist/src/components/common/WithHelperText.js +13 -8
- package/dist/src/components/common/WithHelperText.js.map +1 -1
- package/dist/src/components/form/CheckboxField.d.ts +6 -3
- package/dist/src/components/form/CheckboxField.d.ts.map +1 -1
- package/dist/src/components/form/CheckboxField.js +20 -1
- package/dist/src/components/form/CheckboxField.js.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.d.ts +3 -3
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.js +43 -53
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -1
- package/dist/src/components/form/RichValidationTextField.d.ts +1 -1
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -1
- package/dist/src/components/form/RichValidationTextField.js +8 -4
- package/dist/src/components/form/RichValidationTextField.js.map +1 -1
- package/dist/src/components/form/validations.d.ts +44 -4
- package/dist/src/components/form/validations.d.ts.map +1 -1
- package/dist/src/components/form/validations.js +148 -25
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js +5 -3
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +3 -2
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts.map +1 -1
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js +7 -12
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js +4 -4
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +4 -4
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +2 -2
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js +2 -2
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js.map +1 -1
- package/dist/src/hooks/timeZones.d.ts +3 -0
- package/dist/src/hooks/timeZones.d.ts.map +1 -0
- package/dist/src/hooks/timeZones.js +607 -0
- package/dist/src/hooks/timeZones.js.map +1 -0
- package/dist/src/hooks/useAppContext.d.ts +14 -8
- package/dist/src/hooks/useAppContext.d.ts.map +1 -1
- package/dist/src/hooks/useAppContext.js +13 -6
- package/dist/src/hooks/useAppContext.js.map +1 -1
- package/dist/src/hooks/useFetch.d.ts +3 -5
- package/dist/src/hooks/useFetch.d.ts.map +1 -1
- package/dist/src/hooks/useFetch.js +3 -2
- package/dist/src/hooks/useFetch.js.map +1 -1
- package/dist/src/hooks/useNavigate.d.ts +2 -1
- package/dist/src/hooks/useNavigate.d.ts.map +1 -1
- package/dist/src/hooks/useNavigate.js +1 -0
- package/dist/src/hooks/useNavigate.js.map +1 -1
- package/dist/src/hooks/useTimeZones.d.ts +4 -0
- package/dist/src/hooks/useTimeZones.d.ts.map +1 -0
- package/dist/src/hooks/useTimeZones.js +22 -0
- package/dist/src/hooks/useTimeZones.js.map +1 -0
- package/dist/src/hooks/useWebSocket.d.ts +6 -2
- package/dist/src/hooks/useWebSocket.d.ts.map +1 -1
- package/dist/src/hooks/useWebSocket.js +22 -7
- package/dist/src/hooks/useWebSocket.js.map +1 -1
- package/dist/src/links.d.ts +3 -0
- package/dist/src/links.d.ts.map +1 -1
- package/dist/src/links.js +10 -3
- package/dist/src/links.js.map +1 -1
- package/dist/src/types/deviceSpec.d.ts +93 -5
- package/dist/src/types/deviceSpec.d.ts.map +1 -1
- package/dist/src/types/deviceSpec.js +28 -2
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +19 -1
- package/dist/src/types/extraTypes.d.ts.map +1 -1
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/utils/labels.d.ts +1 -0
- package/dist/src/utils/labels.d.ts.map +1 -1
- package/dist/src/utils/labels.js +9 -2
- package/dist/src/utils/labels.js.map +1 -1
- package/dist/src/utils/patch.d.ts +13 -5
- package/dist/src/utils/patch.d.ts.map +1 -1
- package/dist/src/utils/patch.js +115 -71
- package/dist/src/utils/patch.js.map +1 -1
- package/dist/src/utils/query.d.ts +1 -0
- package/dist/src/utils/query.d.ts.map +1 -1
- package/dist/src/utils/query.js +10 -3
- package/dist/src/utils/query.js.map +1 -1
- package/dist/src/utils/search.d.ts +6 -0
- package/dist/src/utils/search.d.ts.map +1 -1
- package/dist/src/utils/search.js +9 -1
- package/dist/src/utils/search.js.map +1 -1
- package/dist/src/utils/time.d.ts +31 -0
- package/dist/src/utils/time.d.ts.map +1 -0
- package/dist/src/utils/time.js +134 -0
- package/dist/src/utils/time.js.map +1 -0
- package/package.json +1 -4
- package/src/components/DetailsPage/DetailsPage.tsx +6 -4
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +6 -3
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +4 -13
- package/src/components/Device/DeviceDetails/DeviceAliasEdit.tsx +180 -0
- package/src/components/Device/DeviceDetails/DeviceApplications.tsx +8 -1
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +21 -5
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +3 -4
- package/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.tsx +7 -10
- package/src/components/Device/DeviceDetails/DeviceDetailsTabContent/SystemResourcesContent.tsx +3 -3
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +43 -5
- package/src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx +2 -1
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.tsx +66 -38
- package/src/components/Device/DevicesPage/DevicesPage.tsx +11 -2
- package/src/components/Device/DevicesPage/EnrolledDevicesTable.tsx +16 -11
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +11 -2
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.tsx +22 -6
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.tsx +15 -2
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +147 -14
- package/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.tsx +28 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +94 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +81 -50
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +23 -28
- package/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx +1 -2
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +18 -39
- package/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx +8 -14
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +26 -39
- package/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx +88 -0
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx +18 -19
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.tsx +2 -2
- package/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx +2 -1
- package/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/utils.ts +16 -9
- package/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.tsx +7 -6
- package/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.tsx +1 -5
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +7 -9
- package/src/components/EnrollmentRequest/EnrollmentRequestList.tsx +30 -17
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +5 -1
- package/src/components/EnrollmentRequest/useEnrollmentRequests.ts +12 -4
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +4 -3
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +9 -2
- package/src/components/Fleet/CreateFleet/fleetSpecUtils.ts +51 -17
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +1 -1
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +2 -13
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +3 -3
- package/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.tsx +10 -1
- package/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.tsx +49 -16
- package/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.tsx +18 -33
- package/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.tsx +14 -24
- package/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.css +3 -0
- package/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.tsx +246 -0
- package/src/components/Fleet/CreateFleet/utils.ts +23 -7
- package/src/components/Fleet/FleetsPage.tsx +15 -17
- package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +1 -1
- package/src/components/ListPage/ListPage.tsx +7 -4
- package/src/components/Masthead/CommandLineToolsPage.tsx +179 -0
- package/src/components/OverviewPage/Cards/Status/StatusCard.tsx +6 -6
- package/src/components/OverviewPage/Cards/{ToDo/ToDoCard.tsx → Tasks/TasksCard.tsx} +3 -3
- package/src/components/OverviewPage/Overview.tsx +2 -2
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +11 -26
- package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +8 -17
- package/src/components/Repository/CreateRepository/utils.ts +4 -1
- package/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.tsx +3 -4
- package/src/components/Repository/RepositoryList.tsx +9 -16
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +7 -11
- package/src/components/Status/DeviceResourceStatus.tsx +4 -4
- package/src/components/Status/utils.ts +3 -5
- package/src/components/Table/Table.tsx +32 -9
- package/src/components/Table/TablePagination.tsx +0 -1
- package/src/components/Terminal/Terminal.tsx +10 -4
- package/src/components/charts/DonutChart.tsx +2 -2
- package/src/components/common/LeaveFormConfirmation.tsx +2 -2
- package/src/components/common/WithHelperText.tsx +53 -21
- package/src/components/form/CheckboxField.tsx +28 -3
- package/src/components/form/FormSelectTypeahead.tsx +53 -80
- package/src/components/form/RichValidationTextField.tsx +73 -62
- package/src/components/form/validations.ts +207 -28
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +5 -5
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +3 -2
- package/src/components/modals/EditLabelsModal/EditLabelsForm.tsx +9 -20
- package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx +2 -2
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +2 -2
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +2 -2
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +2 -2
- package/src/hooks/timeZones.ts +606 -0
- package/src/hooks/useAppContext.tsx +20 -10
- package/src/hooks/useFetch.ts +3 -2
- package/src/hooks/useNavigate.tsx +1 -0
- package/src/hooks/useTimeZones.ts +26 -0
- package/src/hooks/useWebSocket.ts +29 -7
- package/src/links.ts +13 -4
- package/src/types/deviceSpec.ts +118 -2
- package/src/types/extraTypes.ts +33 -1
- package/src/utils/labels.ts +7 -1
- package/src/utils/patch.ts +126 -72
- package/src/utils/query.ts +13 -4
- package/src/utils/search.ts +8 -0
- package/src/utils/time.ts +147 -0
- package/dist/jest.config.d.ts +0 -12
- package/dist/jest.config.d.ts.map +0 -1
- package/dist/jest.config.js +0 -24
- package/dist/jest.config.js.map +0 -1
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts +0 -2
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts.map +0 -1
- package/dist/src/components/DetailsPage/DetailsPage.spec.js +0 -81
- package/dist/src/components/DetailsPage/DetailsPage.spec.js.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts +0 -23
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/types.js +0 -3
- package/dist/src/components/Device/EditDeviceWizard/types.js.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/types.d.ts +0 -29
- package/dist/src/components/Fleet/CreateFleet/types.d.ts.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/types.js +0 -9
- package/dist/src/components/Fleet/CreateFleet/types.js.map +0 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts +0 -4
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts.map +0 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesModal.js.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesProvider.js.map +0 -1
- package/dist/src/setupTests.d.ts +0 -2
- package/dist/src/setupTests.d.ts.map +0 -1
- package/dist/src/setupTests.js +0 -24
- package/dist/src/setupTests.js.map +0 -1
- package/dist/src/tests/test-utils.d.ts +0 -7
- package/dist/src/tests/test-utils.d.ts.map +0 -1
- package/dist/src/tests/test-utils.js +0 -21
- package/dist/src/tests/test-utils.js.map +0 -1
- package/src/components/DetailsPage/DetailsPage.spec.tsx +0 -128
- package/src/components/Device/EditDeviceWizard/types.ts +0 -22
- package/src/components/Fleet/CreateFleet/types.ts +0 -33
- package/src/setupTests.ts +0 -21
- package/src/tests/test-utils.tsx +0 -21
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesModal.d.ts +0 -0
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesModal.js +0 -0
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesProvider.d.ts +0 -0
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesProvider.js +0 -0
- /package/src/components/{UserPreferences → Masthead}/UserPreferencesModal.tsx +0 -0
- /package/src/components/{UserPreferences → Masthead}/UserPreferencesProvider.tsx +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Link, Navigate, Route, NavigateFunction as RouterNavigateFunction, Routes, useBlocker, useLocation, useParams, useSearchParams } from 'react-router-dom';
|
|
3
3
|
import { PatchRequest } from '@flightctl/types';
|
|
4
|
+
import { CliArtifactsResponse } from '@flightctl/ui-components/src/types/extraTypes';
|
|
4
5
|
import { ROUTE } from './useNavigate';
|
|
5
6
|
import { RESOURCE, VERB } from '../types/rbac';
|
|
6
7
|
export declare const appRoutes: {
|
|
@@ -20,6 +21,7 @@ export declare const appRoutes: {
|
|
|
20
21
|
RESOURCE_SYNC_DETAILS: string;
|
|
21
22
|
ENROLLMENT_REQUESTS: string;
|
|
22
23
|
ENROLLMENT_REQUEST_DETAILS: string;
|
|
24
|
+
COMMAND_LINE_TOOLS: string;
|
|
23
25
|
};
|
|
24
26
|
export type NavLinkFC = React.FC<{
|
|
25
27
|
to: string;
|
|
@@ -30,12 +32,20 @@ export type NavLinkFC = React.FC<{
|
|
|
30
32
|
export type PromptFC = React.FC<{
|
|
31
33
|
message: string;
|
|
32
34
|
}>;
|
|
35
|
+
export declare enum FlightCtlApp {
|
|
36
|
+
STANDALONE = "standalone",
|
|
37
|
+
OCP = "ocp",
|
|
38
|
+
AAP = "aap"
|
|
39
|
+
}
|
|
33
40
|
export type AppContextProps = {
|
|
34
|
-
appType:
|
|
41
|
+
appType: FlightCtlApp;
|
|
35
42
|
user?: string;
|
|
36
43
|
i18n: {
|
|
37
44
|
transNamespace?: string;
|
|
38
45
|
};
|
|
46
|
+
settings: {
|
|
47
|
+
isRHEM?: boolean;
|
|
48
|
+
};
|
|
39
49
|
router: {
|
|
40
50
|
useNavigate: () => RouterNavigateFunction;
|
|
41
51
|
Link: typeof Link;
|
|
@@ -51,10 +61,7 @@ export type AppContextProps = {
|
|
|
51
61
|
Prompt?: PromptFC;
|
|
52
62
|
};
|
|
53
63
|
fetch: {
|
|
54
|
-
getWsEndpoint: (deviceId: string) =>
|
|
55
|
-
wsEndpoint: string;
|
|
56
|
-
protocols: string[];
|
|
57
|
-
};
|
|
64
|
+
getWsEndpoint: (deviceId: string) => string;
|
|
58
65
|
get: <R>(kind: string, abortSignal?: AbortSignal) => Promise<R>;
|
|
59
66
|
post: <R>(kind: string, data: R, abortSignal?: AbortSignal) => Promise<R>;
|
|
60
67
|
put: <R>(kind: string, data: R, abortSignal?: AbortSignal) => Promise<R>;
|
|
@@ -62,9 +69,8 @@ export type AppContextProps = {
|
|
|
62
69
|
patch: <R>(kind: string, patches: PatchRequest, abortSignal?: AbortSignal) => Promise<R>;
|
|
63
70
|
checkPermissions: (resource: RESOURCE, verb: VERB) => Promise<boolean>;
|
|
64
71
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
72
|
+
getMetrics?: <R>(query: string, abortSignal?: AbortSignal) => Promise<R>;
|
|
73
|
+
getCliArtifacts?: (abortSignal?: AbortSignal) => Promise<CliArtifactsResponse>;
|
|
68
74
|
};
|
|
69
75
|
export declare const AppContext: React.Context<AppContextProps>;
|
|
70
76
|
export declare const useAppContext: () => AppContextProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppContext.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EAEJ,QAAQ,EACR,KAAK,EACL,gBAAgB,IAAI,sBAAsB,EAC1C,MAAM,EACN,UAAU,EACV,WAAW,EAEX,SAAS,EACT,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"useAppContext.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EAEJ,QAAQ,EACR,KAAK,EACL,gBAAgB,IAAI,sBAAsB,EAC1C,MAAM,EACN,UAAU,EACV,WAAW,EAEX,SAAS,EACT,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAkBrB,CAAC;AAE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AAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;QAChE,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;QAC1E,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;QACzE,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;QACnE,KAAK,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;QACzF,gBAAgB,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;KACxE,CAAC;IAEF,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IACzE,eAAe,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAChF,CAAC;AAEF,eAAO,MAAM,UAAU,gCAgCrB,CAAC;AAEH,eAAO,MAAM,aAAa,uBAAqC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useAppContext = exports.AppContext = exports.appRoutes = void 0;
|
|
3
|
+
exports.useAppContext = exports.AppContext = exports.FlightCtlApp = exports.appRoutes = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_router_dom_1 = require("react-router-dom");
|
|
@@ -22,9 +22,19 @@ exports.appRoutes = {
|
|
|
22
22
|
[useNavigate_1.ROUTE.RESOURCE_SYNC_DETAILS]: '/devicemanagement/resourcesyncs',
|
|
23
23
|
[useNavigate_1.ROUTE.ENROLLMENT_REQUESTS]: '/devicemanagement/enrollmentrequests',
|
|
24
24
|
[useNavigate_1.ROUTE.ENROLLMENT_REQUEST_DETAILS]: '/devicemanagement/enrollmentrequests',
|
|
25
|
+
[useNavigate_1.ROUTE.COMMAND_LINE_TOOLS]: '/command-line-tools',
|
|
25
26
|
};
|
|
27
|
+
var FlightCtlApp;
|
|
28
|
+
(function (FlightCtlApp) {
|
|
29
|
+
FlightCtlApp["STANDALONE"] = "standalone";
|
|
30
|
+
FlightCtlApp["OCP"] = "ocp";
|
|
31
|
+
FlightCtlApp["AAP"] = "aap";
|
|
32
|
+
})(FlightCtlApp || (exports.FlightCtlApp = FlightCtlApp = {}));
|
|
26
33
|
exports.AppContext = React.createContext({
|
|
27
|
-
appType:
|
|
34
|
+
appType: FlightCtlApp.STANDALONE,
|
|
35
|
+
settings: {
|
|
36
|
+
isRHEM: false,
|
|
37
|
+
},
|
|
28
38
|
router: {
|
|
29
39
|
useNavigate: react_router_dom_1.useNavigate,
|
|
30
40
|
Link: react_router_dom_1.Link,
|
|
@@ -43,7 +53,7 @@ exports.AppContext = React.createContext({
|
|
|
43
53
|
},
|
|
44
54
|
/* eslint-disable */
|
|
45
55
|
fetch: {
|
|
46
|
-
getWsEndpoint: () =>
|
|
56
|
+
getWsEndpoint: () => '',
|
|
47
57
|
get: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({}); }),
|
|
48
58
|
post: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({}); }),
|
|
49
59
|
put: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({}); }),
|
|
@@ -51,9 +61,6 @@ exports.AppContext = React.createContext({
|
|
|
51
61
|
patch: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({}); }),
|
|
52
62
|
checkPermissions: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return true; }),
|
|
53
63
|
},
|
|
54
|
-
metrics: {
|
|
55
|
-
get: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return ({}); }),
|
|
56
|
-
},
|
|
57
64
|
/* eslint-enable */
|
|
58
65
|
});
|
|
59
66
|
const useAppContext = () => React.useContext(exports.AppContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppContext.js","sourceRoot":"","sources":["../../../src/hooks/useAppContext.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAY0B;
|
|
1
|
+
{"version":3,"file":"useAppContext.js","sourceRoot":"","sources":["../../../src/hooks/useAppContext.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAY0B;AAG1B,+CAAsC;AAGzB,QAAA,SAAS,GAAG;IACvB,CAAC,mBAAK,CAAC,IAAI,CAAC,EAAE,GAAG;IACjB,CAAC,mBAAK,CAAC,MAAM,CAAC,EAAE,0BAA0B;IAC1C,CAAC,mBAAK,CAAC,aAAa,CAAC,EAAE,0BAA0B;IACjD,CAAC,mBAAK,CAAC,YAAY,CAAC,EAAE,iCAAiC;IACvD,CAAC,mBAAK,CAAC,UAAU,CAAC,EAAE,+BAA+B;IACnD,CAAC,mBAAK,CAAC,YAAY,CAAC,EAAE,iCAAiC;IACvD,CAAC,mBAAK,CAAC,OAAO,CAAC,EAAE,2BAA2B;IAC5C,CAAC,mBAAK,CAAC,cAAc,CAAC,EAAE,2BAA2B;IACnD,CAAC,mBAAK,CAAC,WAAW,CAAC,EAAE,gCAAgC;IACrD,CAAC,mBAAK,CAAC,WAAW,CAAC,EAAE,uCAAuC;IAC5D,CAAC,mBAA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,EAAE,0DAAC,OAAA,CAAC,EAAE,CAAQ,CAAA,GAAA;QAC5B,MAAM,EAAE,GAAS,EAAE,0DAAC,OAAA,CAAC,EAAE,CAAQ,CAAA,GAAA;QAC/B,KAAK,EAAE,GAAS,EAAE,0DAAC,OAAA,CAAC,EAAE,CAAQ,CAAA,GAAA;QAC9B,gBAAgB,EAAE,GAAS,EAAE,0DAAC,OAAA,IAAI,CAAA,GAAA;KACnC;IACD,mBAAmB;CACpB,CAAC,CAAC;AAEI,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,kBAAU,CAAC,CAAC;AAAnD,QAAA,aAAa,iBAAsC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export declare const useFetch: () => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
protocols: string[];
|
|
6
|
-
};
|
|
2
|
+
getCliArtifacts: ((abortSignal?: AbortSignal | undefined) => Promise<import("../types/extraTypes").CliArtifactsResponse>) | undefined;
|
|
3
|
+
getMetrics: (<R>(query: string, abortSignal?: AbortSignal | undefined) => Promise<R>) | undefined;
|
|
4
|
+
getWsEndpoint: (deviceId: string) => string;
|
|
7
5
|
get: <R_1>(kind: string, abortSignal?: AbortSignal | undefined) => Promise<R_1>;
|
|
8
6
|
post: <R_2>(kind: string, data: R_2, abortSignal?: AbortSignal | undefined) => Promise<R_2>;
|
|
9
7
|
put: <R_3>(kind: string, data: R_3, abortSignal?: AbortSignal | undefined) => Promise<R_3>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetch.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"useFetch.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;CAQpB,CAAC"}
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useFetch = void 0;
|
|
4
4
|
const useAppContext_1 = require("./useAppContext");
|
|
5
5
|
const useFetch = () => {
|
|
6
|
-
const { fetch,
|
|
7
|
-
return Object.assign(Object.assign({}, fetch), {
|
|
6
|
+
const { fetch, getCliArtifacts, getMetrics } = (0, useAppContext_1.useAppContext)();
|
|
7
|
+
return Object.assign(Object.assign({}, fetch), { getCliArtifacts,
|
|
8
|
+
getMetrics });
|
|
8
9
|
};
|
|
9
10
|
exports.useFetch = useFetch;
|
|
10
11
|
//# sourceMappingURL=useFetch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetch.js","sourceRoot":"","sources":["../../../src/hooks/useFetch.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEzC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useFetch.js","sourceRoot":"","sources":["../../../src/hooks/useFetch.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEzC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,IAAA,6BAAa,GAAE,CAAC;IAE/D,uCACK,KAAK,KACR,eAAe;QACf,UAAU,IACV;AACJ,CAAC,CAAC;AARW,QAAA,QAAQ,YAQnB"}
|
|
@@ -20,7 +20,8 @@ export declare enum ROUTE {
|
|
|
20
20
|
REPO_DETAILS = "REPO_DETAILS",
|
|
21
21
|
RESOURCE_SYNC_DETAILS = "RESOURCE_SYNC_DETAILS",
|
|
22
22
|
ENROLLMENT_REQUESTS = "ENROLLMENT_REQUESTS",
|
|
23
|
-
ENROLLMENT_REQUEST_DETAILS = "ENROLLMENT_REQUEST_DETAILS"
|
|
23
|
+
ENROLLMENT_REQUEST_DETAILS = "ENROLLMENT_REQUEST_DETAILS",
|
|
24
|
+
COMMAND_LINE_TOOLS = "COMMAND_LINE_TOOLS"
|
|
24
25
|
}
|
|
25
26
|
export type RouteWithPostfix = ROUTE.FLEET_DETAILS | ROUTE.FLEET_EDIT | ROUTE.REPO_DETAILS | ROUTE.RESOURCE_SYNC_DETAILS | ROUTE.REPO_EDIT | ROUTE.DEVICE_DETAILS | ROUTE.DEVICE_EDIT | ROUTE.ENROLLMENT_REQUEST_DETAILS;
|
|
26
27
|
export type Route = Exclude<ROUTE, RouteWithPostfix>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigate.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNavigate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGhE,MAAM,WAAW,gBAAgB;IAC/B,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAC1B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,0BAA0B,+BAA+B;
|
|
1
|
+
{"version":3,"file":"useNavigate.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNavigate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGhE,MAAM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UTE["RESOURCE_SYNC_DETAILS"] = "RESOURCE_SYNC_DETAILS";
|
|
23
23
|
ROUTE["ENROLLMENT_REQUESTS"] = "ENROLLMENT_REQUESTS";
|
|
24
24
|
ROUTE["ENROLLMENT_REQUEST_DETAILS"] = "ENROLLMENT_REQUEST_DETAILS";
|
|
25
|
+
ROUTE["COMMAND_LINE_TOOLS"] = "COMMAND_LINE_TOOLS";
|
|
25
26
|
})(ROUTE || (exports.ROUTE = ROUTE = {}));
|
|
26
27
|
const useNavigate = () => {
|
|
27
28
|
const { router: { useNavigate: useRouterNavigate, appRoutes }, } = (0, useAppContext_1.useAppContext)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigate.js","sourceRoot":"","sources":["../../../src/hooks/useNavigate.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,mDAAgD;AAOhD,IAAY,
|
|
1
|
+
{"version":3,"file":"useNavigate.js","sourceRoot":"","sources":["../../../src/hooks/useNavigate.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAE/B,mDAAgD;AAOhD,IAAY,KAkBX;AAlBD,WAAY,KAAK;IACf,sBAAa,CAAA;IACb,0BAAiB,CAAA;IACjB,sCAA6B,CAAA;IAC7B,sCAA6B,CAAA;IAC7B,wCAA+B,CAAA;IAC/B,kCAAyB,CAAA;IACzB,4BAAmB,CAAA;IACnB,0CAAiC,CAAA;IACjC,oCAA2B,CAAA;IAC3B,sCAA6B,CAAA;IAC7B,oCAA2B,CAAA;IAC3B,gCAAuB,CAAA;IACvB,sCAA6B,CAAA;IAC7B,wDAA+C,CAAA;IAC/C,oDAA2C,CAAA;IAC3C,kEAAyD,CAAA;IACzD,kDAAyC,CAAA;AAC3C,CAAC,EAlBW,KAAK,qBAAL,KAAK,QAkBhB;AAeM,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,MAAM,EACJ,MAAM,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,SAAS,EAAE,GACtD,G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AAC,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,KAAK,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC;IAED,OAAO,oBAAC,UAAU,kBAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,IAAM,IAAI,EAAI,CAAC;AAC3E,CAAC,CAAC;AAbW,QAAA,IAAI,QAaf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimeZones.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTimeZones.ts"],"names":[],"mappings":"AAEA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAG1C,QAAA,MAAM,YAAY,mBAkBjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
// Hook allows us to only load the timeZones when they are being used
|
|
6
|
+
const useTimeZones = () => {
|
|
7
|
+
const [zones, setZones] = React.useState({});
|
|
8
|
+
React.useEffect(() => {
|
|
9
|
+
const loadZones = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
10
|
+
const timeZones = (yield Promise.resolve().then(() => tslib_1.__importStar(require('./timeZones')))).default;
|
|
11
|
+
const filledZones = Object.entries(timeZones).reduce((finalMap, [name, offset]) => {
|
|
12
|
+
finalMap[name] = `(GMT ${offset}) ${name}`;
|
|
13
|
+
return finalMap;
|
|
14
|
+
}, {});
|
|
15
|
+
setZones(filledZones);
|
|
16
|
+
});
|
|
17
|
+
void loadZones();
|
|
18
|
+
}, []);
|
|
19
|
+
return zones;
|
|
20
|
+
};
|
|
21
|
+
exports.default = useTimeZones;
|
|
22
|
+
//# sourceMappingURL=useTimeZones.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimeZones.js","sourceRoot":"","sources":["../../../src/hooks/useTimeZones.ts"],"names":[],"mappings":";;;AAAA,qDAA+B;AAI/B,qEAAqE;AACrE,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAc,EAAE,CAAC,CAAC;IAE1D,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,SAAS,GAAG,GAAS,EAAE;YAC3B,MAAM,SAAS,GAAG,CAAC,gEAAa,aAAa,GAAC,CAAC,CAAC,OAAO,CAAC;YAExD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE;gBAChF,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,MAAM,KAAK,IAAI,EAAE,CAAC;gBAC3C,OAAO,QAAQ,CAAC;YAClB,CAAC,EAAE,EAAiB,CAAC,CAAC;YAEtB,QAAQ,CAAC,WAAW,CAAC,CAAC;QACxB,CAAC,CAAA,CAAC;QACF,KAAK,SAAS,EAAE,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export type WsMetadata = {
|
|
2
|
+
tty: boolean;
|
|
3
|
+
term: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const useWebSocket: <T>(deviceId: string, onMsgReceived: (msg: T) => Promise<void>, wsMetadata: WsMetadata) => {
|
|
6
|
+
sendMessage: (msg: string, resize?: boolean) => void;
|
|
3
7
|
isConnecting: boolean;
|
|
4
8
|
isClosed: boolean;
|
|
5
9
|
error: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWebSocket.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWebSocket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWebSocket.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWebSocket.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,gBACb,MAAM,6BACW,QAAQ,IAAI,CAAC,cAC5B,UAAU;uBAEH,MAAM,WAAW,OAAO,KAAK,IAAI;kBACtC,OAAO;cACX,OAAO;WACV,OAAO;eACH,YAAY;CAoExB,CAAC"}
|
|
@@ -5,7 +5,15 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const useTranslation_1 = require("./useTranslation");
|
|
7
7
|
const useAppContext_1 = require("./useAppContext");
|
|
8
|
-
const
|
|
8
|
+
const msgToBytes = (msg, resize) => {
|
|
9
|
+
const encoder = new TextEncoder();
|
|
10
|
+
const encodedData = encoder.encode(msg);
|
|
11
|
+
const result = new Uint8Array(encodedData.length + 1);
|
|
12
|
+
result[0] = resize ? 0x4 : 0x00;
|
|
13
|
+
result.set(encodedData, 1);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
const useWebSocket = (deviceId, onMsgReceived, wsMetadata) => {
|
|
9
17
|
const { fetch: { getWsEndpoint }, } = (0, useAppContext_1.useAppContext)();
|
|
10
18
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
11
19
|
const wsRef = React.useRef();
|
|
@@ -13,18 +21,25 @@ const useWebSocket = (deviceId, onMsgReceived) => {
|
|
|
13
21
|
const [isClosed, setIsClosed] = React.useState(false);
|
|
14
22
|
const [error, setError] = React.useState();
|
|
15
23
|
const [reset, setReset] = React.useState(0);
|
|
16
|
-
const sendMessage = React.useCallback((data) => {
|
|
24
|
+
const sendMessage = React.useCallback((data, resize) => {
|
|
17
25
|
var _a;
|
|
18
|
-
(_a = wsRef.current) === null || _a === void 0 ? void 0 : _a.send(data);
|
|
26
|
+
(_a = wsRef.current) === null || _a === void 0 ? void 0 : _a.send(msgToBytes(data, resize));
|
|
19
27
|
}, []);
|
|
20
28
|
React.useEffect(() => {
|
|
21
29
|
try {
|
|
22
30
|
setIsConnecting(true);
|
|
23
31
|
setIsClosed(false);
|
|
24
|
-
const
|
|
25
|
-
const
|
|
32
|
+
const wsEndpoint = getWsEndpoint(deviceId);
|
|
33
|
+
const wsMeta = JSON.stringify(wsMetadata);
|
|
34
|
+
const params = new URLSearchParams({
|
|
35
|
+
metadata: wsMeta,
|
|
36
|
+
});
|
|
37
|
+
const ws = new WebSocket(`${wsEndpoint}?${params.toString()}`, 'v5.channel.k8s.io');
|
|
26
38
|
ws.addEventListener('open', () => setIsConnecting(false));
|
|
27
|
-
ws.addEventListener('close', () =>
|
|
39
|
+
ws.addEventListener('close', () => {
|
|
40
|
+
setIsClosed(true);
|
|
41
|
+
wsRef.current = undefined;
|
|
42
|
+
});
|
|
28
43
|
ws.addEventListener('error', (evt) => {
|
|
29
44
|
// eslint-disable-next-line no-console
|
|
30
45
|
console.error('Error creating websocket:', evt);
|
|
@@ -41,7 +56,7 @@ const useWebSocket = (deviceId, onMsgReceived) => {
|
|
|
41
56
|
(_a = wsRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
42
57
|
wsRef.current = undefined;
|
|
43
58
|
};
|
|
44
|
-
}, [deviceId, t, getWsEndpoint, reset]);
|
|
59
|
+
}, [deviceId, t, getWsEndpoint, reset, wsMetadata]);
|
|
45
60
|
const reconnect = React.useCallback(() => {
|
|
46
61
|
var _a;
|
|
47
62
|
(_a = wsRef.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWebSocket.js","sourceRoot":"","sources":["../../../src/hooks/useWebSocket.ts"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,qDAAkD;AAClD,mDAAgD;
|
|
1
|
+
{"version":3,"file":"useWebSocket.js","sourceRoot":"","sources":["../../../src/hooks/useWebSocket.ts"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,qDAAkD;AAClD,mDAAgD;AAEhD,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,MAAgB,EAAE,EAAE;IACnD,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtD,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IAChC,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAC3B,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAOK,MAAM,YAAY,GAAG,CAC1B,QAAgB,EAChB,aAAwC,EACxC,UAAsB,EAOtB,EAAE;IACF,MAAM,EACJ,KAAK,EAAE,EAAE,aAAa,EAAE,GACzB,GAAG,IAAA,6BAAa,GAAE,CAAC;IACpB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAa,CAAC;IACxC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,CAAC,KAAK,EAAE,QAAQ,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,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AA7EW,QAAA,YAAY,gBA6EvB"}
|
package/dist/src/links.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const CREATING_APPLICATIONS_LINK = "https://github.com/flightctl/flightctl/blob/main/docs/user/managing-devices.md#creating-applications";
|
|
2
2
|
export declare const USING_TEMPLATE_VARIABLES_LINK = "https://github.com/flightctl/flightctl/blob/main/docs/user/managing-fleets.md#defining-device-templates";
|
|
3
|
+
export declare const ADDING_NEW_DEVICES_LINK = "https://github.com/flightctl/flightctl/blob/main/docs/user/getting-started.md#building-a-bootable-container-image-including-the-flight-control-agent";
|
|
4
|
+
export declare const CREATE_ACM_REPOSITORY = "https://github.com/flightctl/flightctl/blob/main/docs/user/registering-microshift-devices-acm.md#creating-the-acm-registration-repository";
|
|
5
|
+
export declare const DEMO_REPOSITORY_URL = "https://github.com/flightctl/flightctl-demos";
|
|
3
6
|
export declare const TECH_PREVIEW_LEVEL_LINK = "https://access.redhat.com/support/offerings/techpreview";
|
|
4
7
|
//# sourceMappingURL=links.d.ts.map
|
package/dist/src/links.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/links.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/links.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,0BAA0B,yGAAsE,CAAC;AAE9G,eAAO,MAAM,6BAA6B,4GAAyE,CAAC;AAEpH,eAAO,MAAM,uBAAuB,yJAAsH,CAAC;AAE3J,eAAO,MAAM,qBAAqB,8IAA2G,CAAC;AAG9I,eAAO,MAAM,mBAAmB,iDAAiD,CAAC;AAGlF,eAAO,MAAM,uBAAuB,4DAA4D,CAAC"}
|
package/dist/src/links.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TECH_PREVIEW_LEVEL_LINK = exports.USING_TEMPLATE_VARIABLES_LINK = exports.CREATING_APPLICATIONS_LINK = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
exports.TECH_PREVIEW_LEVEL_LINK = exports.DEMO_REPOSITORY_URL = exports.CREATE_ACM_REPOSITORY = exports.ADDING_NEW_DEVICES_LINK = exports.USING_TEMPLATE_VARIABLES_LINK = exports.CREATING_APPLICATIONS_LINK = void 0;
|
|
4
|
+
const baseDocsRepoUrl = 'https://github.com/flightctl/flightctl/blob/main/docs';
|
|
5
|
+
// Links to the fLightctl upstream docs
|
|
6
|
+
exports.CREATING_APPLICATIONS_LINK = `${baseDocsRepoUrl}/user/managing-devices.md#creating-applications`;
|
|
7
|
+
exports.USING_TEMPLATE_VARIABLES_LINK = `${baseDocsRepoUrl}/user/managing-fleets.md#defining-device-templates`;
|
|
8
|
+
exports.ADDING_NEW_DEVICES_LINK = `${baseDocsRepoUrl}/user/getting-started.md#building-a-bootable-container-image-including-the-flight-control-agent`;
|
|
9
|
+
exports.CREATE_ACM_REPOSITORY = `${baseDocsRepoUrl}/user/registering-microshift-devices-acm.md#creating-the-acm-registration-repository`;
|
|
10
|
+
// Links to other flightctl upstream resources
|
|
11
|
+
exports.DEMO_REPOSITORY_URL = 'https://github.com/flightctl/flightctl-demos';
|
|
12
|
+
// Links to general Red Hat docs
|
|
6
13
|
exports.TECH_PREVIEW_LEVEL_LINK = 'https://access.redhat.com/support/offerings/techpreview';
|
|
7
14
|
//# sourceMappingURL=links.js.map
|
package/dist/src/links.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/links.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/links.ts"],"names":[],"mappings":";;;AAAA,MAAM,eAAe,GAAG,uDAAuD,CAAC;AAEhF,uCAAuC;AAC1B,QAAA,0BAA0B,GAAG,GAAG,eAAe,iDAAiD,CAAC;AAEjG,QAAA,6BAA6B,GAAG,GAAG,eAAe,oDAAoD,CAAC;AAEvG,QAAA,uBAAuB,GAAG,GAAG,eAAe,iGAAiG,CAAC;AAE9I,QAAA,qBAAqB,GAAG,GAAG,eAAe,sFAAsF,CAAC;AAE9I,8CAA8C;AACjC,QAAA,mBAAmB,GAAG,8CAA8C,CAAC;AAElF,gCAAgC;AACnB,QAAA,uBAAuB,GAAG,yDAAyD,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { ConfigProviderSpec, GitConfigProviderSpec, HttpConfigProviderSpec, InlineConfigProviderSpec, KubernetesSecretProviderSpec } from '@flightctl/types';
|
|
1
|
+
import { ConfigProviderSpec, DisruptionBudget, GitConfigProviderSpec, HttpConfigProviderSpec, ImageApplicationProviderSpec, InlineApplicationProviderSpec, InlineConfigProviderSpec, KubernetesSecretProviderSpec } from '@flightctl/types';
|
|
2
|
+
import { FlightCtlLabel } from './extraTypes';
|
|
3
|
+
import { UpdateScheduleMode } from '../utils/time';
|
|
4
|
+
import { ApplicationProviderSpecFixed } from './extraTypes';
|
|
2
5
|
export declare enum ConfigType {
|
|
3
6
|
GIT = "git",
|
|
4
7
|
HTTP = "http",
|
|
@@ -16,11 +19,41 @@ export type GitConfigTemplate = ConfigTemplate & {
|
|
|
16
19
|
path: string;
|
|
17
20
|
mountPath?: string;
|
|
18
21
|
};
|
|
22
|
+
export declare enum AppSpecType {
|
|
23
|
+
OCI_IMAGE = "image",
|
|
24
|
+
INLINE = "inline"
|
|
25
|
+
}
|
|
26
|
+
type InlineContent = {
|
|
27
|
+
content?: string;
|
|
28
|
+
path: string;
|
|
29
|
+
base64?: boolean;
|
|
30
|
+
};
|
|
31
|
+
type AppBase = {
|
|
32
|
+
specType: AppSpecType;
|
|
33
|
+
name?: string;
|
|
34
|
+
variables: {
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
export type InlineAppForm = AppBase & {
|
|
40
|
+
name: string;
|
|
41
|
+
files: InlineContent[];
|
|
42
|
+
};
|
|
43
|
+
export type ImageAppForm = AppBase & {
|
|
44
|
+
image: string;
|
|
45
|
+
};
|
|
19
46
|
export declare const isGitConfigTemplate: (configTemplate: ConfigTemplate) => configTemplate is GitConfigTemplate;
|
|
20
47
|
export declare const isGitProviderSpec: (providerSpec: ConfigProviderSpec) => providerSpec is GitConfigProviderSpec;
|
|
21
48
|
export type ConfigSourceProvider = GitConfigProviderSpec | KubernetesSecretProviderSpec | InlineConfigProviderSpec | HttpConfigProviderSpec;
|
|
22
49
|
export type RepoConfig = GitConfigProviderSpec | HttpConfigProviderSpec;
|
|
23
50
|
export declare const isRepoConfig: (config: ConfigSourceProvider) => config is RepoConfig;
|
|
51
|
+
export type AppForm = ImageAppForm | InlineAppForm;
|
|
52
|
+
export declare const isInlineAppProvider: (app: ApplicationProviderSpecFixed) => app is InlineApplicationProviderSpec;
|
|
53
|
+
export declare const isImageAppProvider: (app: ApplicationProviderSpecFixed) => app is ImageApplicationProviderSpec;
|
|
54
|
+
export declare const isImageAppForm: (app: AppBase) => app is ImageAppForm;
|
|
55
|
+
export declare const isInlineAppForm: (app: AppBase) => app is InlineAppForm;
|
|
56
|
+
export declare const getAppIdentifier: (app: AppForm) => string;
|
|
24
57
|
export declare const getConfigFullRepoUrl: (config: RepoConfig, repositoryUrl: string) => string;
|
|
25
58
|
export declare const getRepoName: (config: RepoConfig) => string;
|
|
26
59
|
export type KubeSecretTemplate = ConfigTemplate & {
|
|
@@ -33,10 +66,7 @@ export declare const isKubeSecretTemplate: (configTemplate: ConfigTemplate) => c
|
|
|
33
66
|
export declare const isKubeProviderSpec: (providerSpec: ConfigProviderSpec) => providerSpec is KubernetesSecretProviderSpec;
|
|
34
67
|
export type InlineConfigTemplate = ConfigTemplate & {
|
|
35
68
|
type: ConfigType.INLINE;
|
|
36
|
-
files: Array<{
|
|
37
|
-
path: string;
|
|
38
|
-
content: string;
|
|
39
|
-
base64: boolean;
|
|
69
|
+
files: Array<InlineContent & {
|
|
40
70
|
permissions?: string;
|
|
41
71
|
user?: string;
|
|
42
72
|
group?: string;
|
|
@@ -54,4 +84,62 @@ export type HttpConfigTemplate = ConfigTemplate & {
|
|
|
54
84
|
export declare const isHttpConfigTemplate: (configTemplate: ConfigTemplate) => configTemplate is HttpConfigTemplate;
|
|
55
85
|
export declare const isHttpProviderSpec: (providerSpec: ConfigProviderSpec) => providerSpec is HttpConfigProviderSpec;
|
|
56
86
|
export type SpecConfigTemplate = GitConfigTemplate | HttpConfigTemplate | KubeSecretTemplate | InlineConfigTemplate;
|
|
87
|
+
export type SystemdUnitFormValue = {
|
|
88
|
+
pattern: string;
|
|
89
|
+
exists: boolean;
|
|
90
|
+
};
|
|
91
|
+
export type DeviceSpecConfigFormValues = {
|
|
92
|
+
osImage?: string;
|
|
93
|
+
configTemplates: SpecConfigTemplate[];
|
|
94
|
+
applications: AppForm[];
|
|
95
|
+
systemdUnits: SystemdUnitFormValue[];
|
|
96
|
+
updatePolicy: UpdatePolicyForm;
|
|
97
|
+
registerMicroShift: boolean;
|
|
98
|
+
};
|
|
99
|
+
export type EditDeviceFormValues = DeviceSpecConfigFormValues & {
|
|
100
|
+
deviceAlias: string;
|
|
101
|
+
labels: FlightCtlLabel[];
|
|
102
|
+
fleetMatch: string;
|
|
103
|
+
};
|
|
104
|
+
export type FleetFormValues = DeviceSpecConfigFormValues & {
|
|
105
|
+
name: string;
|
|
106
|
+
fleetLabels: FlightCtlLabel[];
|
|
107
|
+
labels: FlightCtlLabel[];
|
|
108
|
+
rolloutPolicy: RolloutPolicyForm;
|
|
109
|
+
disruptionBudget: DisruptionBudgetForm;
|
|
110
|
+
updatePolicy: UpdatePolicyForm;
|
|
111
|
+
};
|
|
112
|
+
export declare enum BatchLimitType {
|
|
113
|
+
BatchLimitPercent = "percent",
|
|
114
|
+
BatchLimitAbsoluteNumber = "value"
|
|
115
|
+
}
|
|
116
|
+
export type BatchForm = {
|
|
117
|
+
selector: FlightCtlLabel[];
|
|
118
|
+
limit?: number;
|
|
119
|
+
limitType: BatchLimitType;
|
|
120
|
+
successThreshold?: number;
|
|
121
|
+
};
|
|
122
|
+
export type RolloutPolicyForm = {
|
|
123
|
+
isAdvanced: boolean;
|
|
124
|
+
updateTimeout: number;
|
|
125
|
+
batches: BatchForm[];
|
|
126
|
+
};
|
|
127
|
+
export type DisruptionBudgetForm = DisruptionBudget & {
|
|
128
|
+
isAdvanced: boolean;
|
|
129
|
+
};
|
|
130
|
+
export type UpdatePolicyForm = {
|
|
131
|
+
isAdvanced: boolean;
|
|
132
|
+
downloadAndInstallDiffer: boolean;
|
|
133
|
+
downloadStartsAt?: string;
|
|
134
|
+
downloadEndsAt?: string;
|
|
135
|
+
downloadScheduleMode: UpdateScheduleMode;
|
|
136
|
+
downloadWeekDays: boolean[];
|
|
137
|
+
downloadTimeZone: string;
|
|
138
|
+
installStartsAt?: string;
|
|
139
|
+
installEndsAt?: string;
|
|
140
|
+
installScheduleMode: UpdateScheduleMode;
|
|
141
|
+
installWeekDays: boolean[];
|
|
142
|
+
installTimeZone: string;
|
|
143
|
+
};
|
|
144
|
+
export {};
|
|
57
145
|
//# sourceMappingURL=deviceSpec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceSpec.d.ts","sourceRoot":"","sources":["../../../src/types/deviceSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"deviceSpec.d.ts","sourceRoot":"","sources":["../../../src/types/deviceSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B,EAC7B,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isHttpProviderSpec = exports.isHttpConfigTemplate = exports.isInlineProviderSpec = exports.isInlineConfigTemplate = exports.isKubeProviderSpec = exports.isKubeSecretTemplate = exports.getRepoName = exports.getConfigFullRepoUrl = exports.isRepoConfig = exports.isGitProviderSpec = exports.isGitConfigTemplate = exports.ConfigType = void 0;
|
|
3
|
+
exports.BatchLimitType = exports.isHttpProviderSpec = exports.isHttpConfigTemplate = exports.isInlineProviderSpec = exports.isInlineConfigTemplate = exports.isKubeProviderSpec = exports.isKubeSecretTemplate = exports.getRepoName = exports.getConfigFullRepoUrl = exports.getAppIdentifier = exports.isInlineAppForm = exports.isImageAppForm = exports.isImageAppProvider = exports.isInlineAppProvider = exports.isRepoConfig = exports.isGitProviderSpec = exports.isGitConfigTemplate = exports.AppSpecType = exports.ConfigType = void 0;
|
|
4
4
|
var ConfigType;
|
|
5
5
|
(function (ConfigType) {
|
|
6
6
|
ConfigType["GIT"] = "git";
|
|
@@ -8,13 +8,34 @@ var ConfigType;
|
|
|
8
8
|
ConfigType["K8S_SECRET"] = "secret";
|
|
9
9
|
ConfigType["INLINE"] = "inline";
|
|
10
10
|
})(ConfigType || (exports.ConfigType = ConfigType = {}));
|
|
11
|
+
var AppSpecType;
|
|
12
|
+
(function (AppSpecType) {
|
|
13
|
+
AppSpecType["OCI_IMAGE"] = "image";
|
|
14
|
+
AppSpecType["INLINE"] = "inline";
|
|
15
|
+
})(AppSpecType || (exports.AppSpecType = AppSpecType = {}));
|
|
11
16
|
const isGitConfigTemplate = (configTemplate) => configTemplate.type === ConfigType.GIT;
|
|
12
17
|
exports.isGitConfigTemplate = isGitConfigTemplate;
|
|
13
18
|
const isGitProviderSpec = (providerSpec) => 'gitRef' in providerSpec;
|
|
14
19
|
exports.isGitProviderSpec = isGitProviderSpec;
|
|
15
20
|
const isRepoConfig = (config) => (0, exports.isGitProviderSpec)(config) || (0, exports.isHttpProviderSpec)(config);
|
|
16
21
|
exports.isRepoConfig = isRepoConfig;
|
|
17
|
-
const
|
|
22
|
+
const isInlineAppProvider = (app) => 'inline' in app;
|
|
23
|
+
exports.isInlineAppProvider = isInlineAppProvider;
|
|
24
|
+
const isImageAppProvider = (app) => 'image' in app;
|
|
25
|
+
exports.isImageAppProvider = isImageAppProvider;
|
|
26
|
+
const isImageAppForm = (app) => app.specType === AppSpecType.OCI_IMAGE;
|
|
27
|
+
exports.isImageAppForm = isImageAppForm;
|
|
28
|
+
const isInlineAppForm = (app) => app.specType === AppSpecType.INLINE;
|
|
29
|
+
exports.isInlineAppForm = isInlineAppForm;
|
|
30
|
+
const hasTemplateVariables = (str) => /{{.+?}}/.test(str);
|
|
31
|
+
const getAppIdentifier = (app) => {
|
|
32
|
+
if ((0, exports.isImageAppForm)(app)) {
|
|
33
|
+
return app.name || app.image;
|
|
34
|
+
}
|
|
35
|
+
// Name is mandatory for inline applications
|
|
36
|
+
return app.name;
|
|
37
|
+
};
|
|
38
|
+
exports.getAppIdentifier = getAppIdentifier;
|
|
18
39
|
const getConfigFullRepoUrl = (config, repositoryUrl) => {
|
|
19
40
|
let relativePath = '';
|
|
20
41
|
if ((0, exports.isHttpProviderSpec)(config)) {
|
|
@@ -49,4 +70,9 @@ const isHttpConfigTemplate = (configTemplate) => configTemplate.type === ConfigT
|
|
|
49
70
|
exports.isHttpConfigTemplate = isHttpConfigTemplate;
|
|
50
71
|
const isHttpProviderSpec = (providerSpec) => 'httpRef' in providerSpec;
|
|
51
72
|
exports.isHttpProviderSpec = isHttpProviderSpec;
|
|
73
|
+
var BatchLimitType;
|
|
74
|
+
(function (BatchLimitType) {
|
|
75
|
+
BatchLimitType["BatchLimitPercent"] = "percent";
|
|
76
|
+
BatchLimitType["BatchLimitAbsoluteNumber"] = "value";
|
|
77
|
+
})(BatchLimitType || (exports.BatchLimitType = BatchLimitType = {}));
|
|
52
78
|
//# sourceMappingURL=deviceSpec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceSpec.js","sourceRoot":"","sources":["../../../src/types/de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