@flightctl/ui-components 0.0.3 → 0.0.5
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/__mocks__/fileMock.d.ts +3 -0
- package/dist/__mocks__/fileMock.d.ts.map +1 -0
- package/dist/__mocks__/styleMock.d.ts +2 -0
- package/dist/__mocks__/styleMock.d.ts.map +1 -0
- package/dist/jest.config.d.ts +12 -0
- package/dist/jest.config.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts +8 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts +18 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts +2 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts +17 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts +7 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js +2 -3
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts +9 -0
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js +2 -1
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts +12 -0
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts.map +1 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts +6 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts +4 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +10 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts +12 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +24 -22
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts +8 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js +3 -3
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js +24 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts +9 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts +10 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts +17 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js +61 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts +14 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableRow.js +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableToolbar.js +5 -6
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js +127 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts +22 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList/DeviceList.js → DevicesPage/DevicesPage.js} +20 -47
- package/dist/src/components/Device/DevicesPage/DevicesPage.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts +13 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js +104 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts +11 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js +18 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts +12 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceBackendFilters.js +1 -1
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts +8 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceFilters.js +3 -3
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js +83 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +87 -21
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js +61 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +88 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js +3 -3
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js +26 -31
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts +11 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +14 -12
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js +26 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +9 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts +20 -0
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts +3 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +44 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.js +6 -4
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts +11 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts.map +1 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts +17 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts +5 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +2 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts +15 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +9 -13
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts +4 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +4 -5
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +10 -0
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +11 -6
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/types.d.ts +8 -0
- package/dist/src/components/Fleet/CreateFleet/types.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts +3 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts +9 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.js +8 -3
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts +7 -0
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts +4 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js +10 -20
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts +9 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js +18 -12
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js.map +1 -1
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts +7 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js +115 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js.map +1 -0
- package/dist/src/components/Fleet/FleetRow.d.ts +13 -0
- package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetRow.js +5 -5
- package/dist/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/src/components/Fleet/FleetStatus.d.ts +7 -0
- package/dist/src/components/Fleet/FleetStatus.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts +4 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts.map +1 -0
- package/dist/src/components/Fleet/{FleetList.js → FleetsPage.js} +28 -42
- package/dist/src/components/Fleet/FleetsPage.js.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts +12 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts +8 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts +6 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.d.ts +10 -0
- package/dist/src/components/ListPage/ListPage.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.js +2 -2
- package/dist/src/components/ListPage/ListPage.js.map +1 -1
- package/dist/src/components/ListPage/ListPageActions.d.ts +17 -0
- package/dist/src/components/ListPage/ListPageActions.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPageActions.js +13 -2
- package/dist/src/components/ListPage/ListPageActions.js.map +1 -1
- package/dist/src/components/ListPage/ListPageBody.d.ts +9 -0
- package/dist/src/components/ListPage/ListPageBody.d.ts.map +1 -0
- package/dist/src/components/ListPage/types.d.ts +16 -0
- package/dist/src/components/ListPage/types.d.ts.map +1 -0
- package/dist/src/components/NavItem/NavItem.d.ts +8 -0
- package/dist/src/components/NavItem/NavItem.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js +7 -20
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js +11 -10
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts +14 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js +22 -51
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts +15 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.js +9 -26
- package/dist/src/components/OverviewPage/Cards/Status/utils.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js +2 -3
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Overview.d.ts +4 -0
- package/dist/src/components/OverviewPage/Overview.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts +4 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts +4 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts +21 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +8 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts +9 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +18 -11
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/types.d.ts +42 -0
- package/dist/src/components/Repository/CreateRepository/types.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts +75 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.js +40 -7
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts +9 -0
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts +4 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +3 -2
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js +14 -13
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts +6 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts +22 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js +43 -11
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js +30 -33
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js.map +1 -1
- package/dist/src/components/Repository/RepositoryList.d.ts +5 -0
- package/dist/src/components/Repository/RepositoryList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryList.js +3 -3
- package/dist/src/components/Repository/RepositoryList.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.css +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +72 -25
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts +9 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js +9 -18
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts +4 -0
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.js.map +1 -1
- package/dist/src/components/Status/DeviceResourceStatus.d.ts +9 -0
- package/dist/src/components/Status/DeviceResourceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/DeviceStatus.d.ts +7 -0
- package/dist/src/components/Status/DeviceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts +7 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts.map +1 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts +7 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts.map +1 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts +10 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/StatusDisplay.css +3 -0
- package/dist/src/components/Status/StatusDisplay.d.ts +23 -0
- package/dist/src/components/Status/StatusDisplay.d.ts.map +1 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts +7 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts.map +1 -0
- package/dist/src/components/Status/SystemdStatus.d.ts +6 -0
- package/dist/src/components/Status/SystemdStatus.d.ts.map +1 -0
- package/dist/src/components/Status/utils.d.ts +5 -0
- package/dist/src/components/Status/utils.d.ts.map +1 -0
- package/dist/src/components/Table/Table.d.ts +25 -0
- package/dist/src/components/Table/Table.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.d.ts +7 -0
- package/dist/src/components/Table/TableActions.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.js +3 -3
- package/dist/src/components/Table/TableActions.js.map +1 -1
- package/dist/src/components/Table/TableTextSearch.d.ts +9 -0
- package/dist/src/components/Table/TableTextSearch.d.ts.map +1 -0
- package/dist/src/components/Table/TableTextSearch.js +2 -4
- package/dist/src/components/Table/TableTextSearch.js.map +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts +15 -0
- package/dist/src/components/Terminal/Terminal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts +7 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts +11 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts.map +1 -0
- package/dist/src/components/charts/DonutChart.d.ts +17 -0
- package/dist/src/components/charts/DonutChart.d.ts.map +1 -0
- package/dist/src/components/charts/utils.d.ts +15 -0
- package/dist/src/components/charts/utils.d.ts.map +1 -0
- package/dist/src/components/charts/utils.js +30 -0
- package/dist/src/components/charts/utils.js.map +1 -0
- package/dist/src/components/common/CopyButton.d.ts +10 -0
- package/dist/src/components/common/CopyButton.d.ts.map +1 -0
- package/dist/src/components/common/CopyButton.js +3 -3
- package/dist/src/components/common/CopyButton.js.map +1 -1
- package/dist/src/components/common/EditableLabelControl.d.ts +10 -0
- package/dist/src/components/common/EditableLabelControl.d.ts.map +1 -0
- package/dist/src/components/common/ErrorBoundary.d.ts +9 -0
- package/dist/src/components/common/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts +5 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js +13 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js.map +1 -0
- package/dist/src/components/common/HelperTextItems.d.ts +3 -0
- package/dist/src/components/common/HelperTextItems.d.ts.map +1 -0
- package/dist/src/components/common/HelperTextItems.js +1 -9
- package/dist/src/components/common/HelperTextItems.js.map +1 -1
- package/dist/src/components/common/LabelsView.d.ts +10 -0
- package/dist/src/components/common/LabelsView.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts +4 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.js +4 -1
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/ResourceLink.d.ts +13 -0
- package/dist/src/components/common/ResourceLink.d.ts.map +1 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts +8 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts.map +1 -0
- package/dist/src/components/common/WithHelperText.d.ts +11 -0
- package/dist/src/components/common/WithHelperText.d.ts.map +1 -0
- package/dist/src/components/common/WithTooltip.d.ts +10 -0
- package/dist/src/components/common/WithTooltip.d.ts.map +1 -0
- package/dist/src/components/form/CheckboxField.d.ts +10 -0
- package/dist/src/components/form/CheckboxField.d.ts.map +1 -0
- package/dist/src/components/{Device/EditDeviceWizard/steps/ConfigTemplateForm.css → form/ExpandableFormSection.css} +2 -2
- package/dist/src/components/form/ExpandableFormSection.d.ts +11 -0
- package/dist/src/components/form/ExpandableFormSection.d.ts.map +1 -0
- package/dist/src/components/form/ExpandableFormSection.js +30 -0
- package/dist/src/components/form/ExpandableFormSection.js.map +1 -0
- package/dist/src/components/form/FieldHelperText.d.ts +14 -0
- package/dist/src/components/form/FieldHelperText.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.css +11 -1
- package/dist/src/components/form/FilterSelect.d.ts +16 -0
- package/dist/src/components/form/FilterSelect.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.js +14 -9
- package/dist/src/components/form/FilterSelect.js.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts +5 -0
- package/dist/src/components/form/FlightCtlActionGroup.d.ts.map +1 -0
- package/dist/src/components/form/FlightCtlForm.d.ts +6 -0
- package/dist/src/components/form/FlightCtlForm.d.ts.map +1 -0
- package/dist/src/components/form/FormSelect.css +8 -0
- package/dist/src/components/form/FormSelect.d.ts +16 -0
- package/dist/src/components/form/FormSelect.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts +19 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.js +116 -0
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -0
- package/dist/src/components/form/LabelsField.d.ts +12 -0
- package/dist/src/components/form/LabelsField.d.ts.map +1 -0
- package/dist/src/components/form/NameField.d.ts +10 -0
- package/dist/src/components/form/NameField.d.ts.map +1 -0
- package/dist/src/components/form/RadioField.d.ts +12 -0
- package/dist/src/components/form/RadioField.d.ts.map +1 -0
- package/dist/src/components/form/RichValidationTextField.d.ts +13 -0
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.d.ts +9 -0
- package/dist/src/components/form/SwitchField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.js +24 -0
- package/dist/src/components/form/SwitchField.js.map +1 -0
- package/dist/src/components/form/TextAreaField.d.ts +11 -0
- package/dist/src/components/form/TextAreaField.d.ts.map +1 -0
- package/dist/src/components/form/TextField.d.ts +10 -0
- package/dist/src/components/form/TextField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.d.ts +13 -0
- package/dist/src/components/form/UploadField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.js +74 -0
- package/dist/src/components/form/UploadField.js.map +1 -0
- package/dist/src/components/form/validations.d.ts +82 -0
- package/dist/src/components/form/validations.d.ts.map +1 -0
- package/dist/src/components/form/validations.js +54 -19
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts +16 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts +6 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts +8 -0
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts +11 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts +10 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts +9 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js +1 -2
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts +11 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js +3 -41
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -0
- 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.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +22 -21
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts.map +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/hooks/useAppContext.d.ts +70 -0
- package/dist/src/hooks/useAppContext.d.ts.map +1 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts +9 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/hooks/useDocumentTitle.d.ts +2 -0
- package/dist/src/hooks/useDocumentTitle.d.ts.map +1 -0
- package/dist/src/hooks/useFetch.d.ts +12 -0
- package/dist/src/hooks/useFetch.d.ts.map +1 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts +3 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -0
- package/dist/src/hooks/useNavigate.d.ts +38 -0
- package/dist/src/hooks/useNavigate.d.ts.map +1 -0
- package/dist/src/hooks/useTableSelect.d.ts +13 -0
- package/dist/src/hooks/useTableSelect.d.ts.map +1 -0
- package/dist/src/hooks/useTableSort.d.ts +7 -0
- package/dist/src/hooks/useTableSort.d.ts.map +1 -0
- package/dist/src/hooks/useTableTextSearch.d.ts +6 -0
- package/dist/src/hooks/useTableTextSearch.d.ts.map +1 -0
- package/dist/src/hooks/useTemplateVersion.d.ts +3 -0
- package/dist/src/hooks/useTemplateVersion.d.ts.map +1 -0
- package/dist/src/hooks/useThemePreferences.d.ts +8 -0
- package/dist/src/hooks/useThemePreferences.d.ts.map +1 -0
- package/dist/src/hooks/useTranslation.d.ts +2 -0
- package/dist/src/hooks/useTranslation.d.ts.map +1 -0
- package/dist/src/hooks/useUserPreferences.d.ts +2 -0
- package/dist/src/hooks/useUserPreferences.d.ts.map +1 -0
- package/dist/src/hooks/useWebSocket.d.ts +8 -0
- package/dist/src/hooks/useWebSocket.d.ts.map +1 -0
- package/dist/src/setupTests.d.ts +2 -0
- package/dist/src/setupTests.d.ts.map +1 -0
- package/dist/src/tests/test-utils.d.ts +7 -0
- package/dist/src/tests/test-utils.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.d.ts +57 -0
- package/dist/src/types/deviceSpec.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.js +41 -9
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +36 -0
- package/dist/src/types/extraTypes.d.ts.map +1 -0
- package/dist/src/types/extraTypes.js +1 -3
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/types/typeUtils.d.ts +3 -0
- package/dist/src/types/typeUtils.d.ts.map +1 -0
- package/dist/src/utils/api.d.ts +24 -0
- package/dist/src/utils/api.d.ts.map +1 -0
- package/dist/src/utils/dates.d.ts +5 -0
- package/dist/src/utils/dates.d.ts.map +1 -0
- package/dist/src/utils/devices.d.ts +4 -0
- package/dist/src/utils/devices.d.ts.map +1 -0
- package/dist/src/utils/devices.js +1 -27
- package/dist/src/utils/devices.js.map +1 -1
- package/dist/src/utils/error.d.ts +4 -0
- package/dist/src/utils/error.d.ts.map +1 -0
- package/dist/src/utils/labels.d.ts +11 -0
- package/dist/src/utils/labels.d.ts.map +1 -0
- package/dist/src/utils/labels.js +4 -14
- package/dist/src/utils/labels.js.map +1 -1
- package/dist/src/utils/metrics.d.ts +9 -0
- package/dist/src/utils/metrics.d.ts.map +1 -0
- package/dist/src/utils/patch.d.ts +15 -0
- package/dist/src/utils/patch.d.ts.map +1 -0
- package/dist/src/utils/patch.js +71 -1
- package/dist/src/utils/patch.js.map +1 -1
- package/dist/src/utils/resource.d.ts +6 -0
- package/dist/src/utils/resource.d.ts.map +1 -0
- package/dist/src/utils/search.d.ts +3 -0
- package/dist/src/utils/search.d.ts.map +1 -0
- package/dist/src/utils/search.js +15 -1
- package/dist/src/utils/search.js.map +1 -1
- package/dist/src/utils/sort/device.d.ts +4 -0
- package/dist/src/utils/sort/device.d.ts.map +1 -0
- package/dist/src/utils/sort/device.js +3 -43
- package/dist/src/utils/sort/device.js.map +1 -1
- package/dist/src/utils/sort/fleet.d.ts +4 -0
- package/dist/src/utils/sort/fleet.d.ts.map +1 -0
- package/dist/src/utils/sort/fleet.js +6 -8
- package/dist/src/utils/sort/fleet.js.map +1 -1
- package/dist/src/utils/sort/generic.d.ts +8 -0
- package/dist/src/utils/sort/generic.d.ts.map +1 -0
- package/dist/src/utils/sort/generic.js +14 -11
- package/dist/src/utils/sort/generic.js.map +1 -1
- package/dist/src/utils/sort/repository.d.ts +6 -0
- package/dist/src/utils/sort/repository.d.ts.map +1 -0
- package/dist/src/utils/sort/repository.js +2 -2
- package/dist/src/utils/sort/repository.js.map +1 -1
- package/dist/src/utils/sort/resourceSync.d.ts +6 -0
- package/dist/src/utils/sort/resourceSync.d.ts.map +1 -0
- package/dist/src/utils/status/applications.d.ts +7 -0
- package/dist/src/utils/status/applications.d.ts.map +1 -0
- package/dist/src/utils/status/applications.js +19 -21
- package/dist/src/utils/status/applications.js.map +1 -1
- package/dist/src/utils/status/common.d.ts +12 -0
- package/dist/src/utils/status/common.d.ts.map +1 -0
- package/dist/src/utils/status/devices.d.ts +17 -0
- package/dist/src/utils/status/devices.d.ts.map +1 -0
- package/dist/src/utils/status/devices.js +9 -19
- package/dist/src/utils/status/devices.js.map +1 -1
- package/dist/src/utils/status/enrollmentRequest.d.ts +12 -0
- package/dist/src/utils/status/enrollmentRequest.d.ts.map +1 -0
- package/dist/src/utils/status/fleet.d.ts +15 -0
- package/dist/src/utils/status/fleet.d.ts.map +1 -0
- package/dist/src/utils/status/integrity.d.ts +5 -0
- package/dist/src/utils/status/integrity.d.ts.map +1 -0
- package/dist/src/utils/status/repository.d.ts +24 -0
- package/dist/src/utils/status/repository.d.ts.map +1 -0
- package/dist/src/utils/status/repository.js +9 -5
- package/dist/src/utils/status/repository.js.map +1 -1
- package/dist/src/utils/status/system.d.ts +6 -0
- package/dist/src/utils/status/system.d.ts.map +1 -0
- package/dist/src/utils/status/system.js +5 -5
- package/dist/src/utils/status/system.js.map +1 -1
- package/package.json +11 -3
- package/src/components/DetailsPage/DetailsNotFound.tsx +114 -0
- package/src/components/DetailsPage/DetailsPage.css +3 -0
- package/src/components/DetailsPage/DetailsPage.spec.tsx +128 -0
- package/src/components/DetailsPage/DetailsPage.tsx +99 -0
- package/src/components/DetailsPage/DetailsPageActions.tsx +73 -0
- package/src/components/DetailsPage/DetailsPageCard.css +8 -0
- package/src/components/DetailsPage/DetailsPageCard.tsx +12 -0
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +44 -0
- package/src/components/DetailsPage/Tables/ConditionsTable.tsx +40 -0
- package/src/components/DetailsPage/Tables/IntegrityDetails.tsx +44 -0
- package/src/components/DetailsPage/Tables/SystemdDetailsTable.tsx +63 -0
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +146 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +117 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.css +4 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +216 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.tsx +76 -0
- package/src/components/Device/DeviceDetails/DeviceOs.tsx +43 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.tsx +60 -0
- package/src/components/Device/DeviceDetails/SystemdTable.tsx +65 -0
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +53 -0
- package/src/components/Device/DevicesPage/DeviceFilterSelect.tsx +111 -0
- package/src/components/Device/DevicesPage/DeviceTableRow.tsx +95 -0
- package/src/components/Device/DevicesPage/DeviceTableToolbar.tsx +195 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.tsx +305 -0
- package/src/components/Device/DevicesPage/DevicesPage.tsx +265 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestList.tsx +183 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.tsx +35 -0
- package/src/components/Device/DevicesPage/types.ts +22 -0
- package/src/components/Device/DevicesPage/useDeviceBackendFilters.ts +119 -0
- package/src/components/Device/DevicesPage/useDeviceFilters.ts +15 -0
- package/src/components/Device/DevicesPage/useDevices.ts +112 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.css +4 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +150 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.tsx +52 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.tsx +66 -0
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +278 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.tsx +140 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +161 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx +50 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.tsx +174 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +229 -0
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +75 -0
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +61 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx +35 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +83 -0
- package/src/components/Device/EditDeviceWizard/types.ts +19 -0
- package/src/components/Device/EditDeviceWizard/useEditDevice.ts +36 -0
- package/src/components/Device/EditDeviceWizard/utils.ts +79 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsForm.tsx +92 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsModal.tsx +62 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.css +3 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +226 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +69 -0
- package/src/components/ErrorAlert/ErrorAlert.tsx +15 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.css +3 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +152 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +56 -0
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +114 -0
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +55 -0
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +83 -0
- package/src/components/Fleet/CreateFleet/types.ts +8 -0
- package/src/components/Fleet/CreateFleet/useEditFleet.ts +35 -0
- package/src/components/Fleet/CreateFleet/utils.ts +160 -0
- package/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.tsx +89 -0
- package/src/components/Fleet/FleetDetails/FleetDetails.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDevices.tsx +115 -0
- package/src/components/Fleet/FleetDetails/FleetDevicesLink.tsx +16 -0
- package/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx +51 -0
- package/src/components/Fleet/FleetResourceSyncs.tsx +161 -0
- package/src/components/Fleet/FleetRow.tsx +86 -0
- package/src/components/Fleet/FleetStatus.tsx +37 -0
- package/src/components/Fleet/FleetsPage.tsx +204 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.css +3 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +216 -0
- package/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx +115 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +42 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.tsx +70 -0
- package/src/components/Fleet/ImportFleetWizard/types.ts +6 -0
- package/src/components/ListPage/ListPage.tsx +22 -0
- package/src/components/ListPage/ListPageActions.tsx +68 -0
- package/src/components/ListPage/ListPageBody.tsx +34 -0
- package/src/components/ListPage/types.ts +13 -0
- package/src/components/NavItem/NavItem.tsx +42 -0
- package/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/DeviceStatusChart.tsx +38 -0
- package/src/components/OverviewPage/Cards/Status/StatusCard.tsx +115 -0
- package/src/components/OverviewPage/Cards/Status/StatusCardFilters.tsx +111 -0
- package/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/utils.ts +19 -0
- package/src/components/OverviewPage/Cards/ToDo/ToDoCard.tsx +72 -0
- package/src/components/OverviewPage/Overview.tsx +19 -0
- package/src/components/OverviewPage/OverviewPage.tsx +22 -0
- package/src/components/Repository/CreateRepository/CreateRepository.tsx +144 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.css +7 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +440 -0
- package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +98 -0
- package/src/components/Repository/CreateRepository/types.ts +43 -0
- package/src/components/Repository/CreateRepository/utils.ts +539 -0
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +156 -0
- package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +78 -0
- package/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx +102 -0
- package/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.tsx +28 -0
- package/src/components/Repository/RepositoryDetails/RepositorySource.tsx +96 -0
- package/src/components/Repository/RepositoryDetails/RepositorySourceList.tsx +79 -0
- package/src/components/Repository/RepositoryList.tsx +216 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.css +14 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +322 -0
- package/src/components/ResourceSync/ResourceSyncStatus.tsx +77 -0
- package/src/components/ResourceSync/ResourceSyncToRepository.tsx +73 -0
- package/src/components/Status/ApplicationStatus.tsx +25 -0
- package/src/components/Status/ApplicationSummaryStatus.tsx +24 -0
- package/src/components/Status/DeviceResourceStatus.tsx +112 -0
- package/src/components/Status/DeviceStatus.tsx +20 -0
- package/src/components/Status/EnrollmentRequestStatus.tsx +24 -0
- package/src/components/Status/IntegrityStatus.tsx +19 -0
- package/src/components/Status/RepositoryStatus.tsx +50 -0
- package/src/components/Status/StatusDisplay.css +12 -0
- package/src/components/Status/StatusDisplay.tsx +83 -0
- package/src/components/Status/SystemUpdateStatus.tsx +34 -0
- package/src/components/Status/SystemdStatus.tsx +22 -0
- package/src/components/Status/utils.ts +8 -0
- package/src/components/Table/Table.tsx +78 -0
- package/src/components/Table/TableActions.tsx +33 -0
- package/src/components/Table/TableTextSearch.tsx +23 -0
- package/src/components/Terminal/Terminal.css +1 -0
- package/src/components/Terminal/Terminal.tsx +100 -0
- package/src/components/UserPreferences/UserPreferencesModal.tsx +85 -0
- package/src/components/UserPreferences/UserPreferencesProvider.tsx +29 -0
- package/src/components/charts/DonutChart.css +10 -0
- package/src/components/charts/DonutChart.tsx +115 -0
- package/src/components/charts/utils.ts +38 -0
- package/src/components/common/CopyButton.tsx +36 -0
- package/src/components/common/EditableLabelControl.tsx +69 -0
- package/src/components/common/ErrorBoundary.tsx +53 -0
- package/src/components/common/FlightCtlDescriptionList.tsx +13 -0
- package/src/components/common/HelperTextItems.tsx +25 -0
- package/src/components/common/LabelsView.css +9 -0
- package/src/components/common/LabelsView.tsx +38 -0
- package/src/components/common/LeaveFormConfirmation.tsx +96 -0
- package/src/components/common/ResourceLink.css +29 -0
- package/src/components/common/ResourceLink.tsx +42 -0
- package/src/components/common/ResourceListEmptyState.tsx +19 -0
- package/src/components/common/WithHelperText.css +3 -0
- package/src/components/common/WithHelperText.tsx +34 -0
- package/src/components/common/WithTooltip.tsx +14 -0
- package/src/components/form/CheckboxField.tsx +39 -0
- package/src/components/form/ExpandableFormSection.css +3 -0
- package/src/components/form/ExpandableFormSection.tsx +59 -0
- package/src/components/form/FieldHelperText.tsx +45 -0
- package/src/components/form/FilterSelect.css +18 -0
- package/src/components/form/FilterSelect.tsx +92 -0
- package/src/components/form/FlightCtlActionGroup.css +9 -0
- package/src/components/form/FlightCtlActionGroup.tsx +11 -0
- package/src/components/form/FlightCtlForm.tsx +18 -0
- package/src/components/form/FormSelect.css +16 -0
- package/src/components/form/FormSelect.tsx +96 -0
- package/src/components/form/FormSelectTypeahead.tsx +212 -0
- package/src/components/form/LabelsField.tsx +116 -0
- package/src/components/form/NameField.tsx +73 -0
- package/src/components/form/RadioField.tsx +57 -0
- package/src/components/form/RichValidationTextField.tsx +142 -0
- package/src/components/form/SwitchField.tsx +32 -0
- package/src/components/form/TextAreaField.tsx +46 -0
- package/src/components/form/TextField.tsx +49 -0
- package/src/components/form/UploadField.tsx +133 -0
- package/src/components/form/validations.ts +386 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +74 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +65 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.css +24 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.tsx +101 -0
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +25 -0
- package/src/components/modals/DeleteModal/DeleteModal.tsx +68 -0
- package/src/components/modals/EditLabelsModal/EditLabelsForm.tsx +101 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.css +4 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +192 -0
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +117 -0
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +193 -0
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +172 -0
- package/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx +116 -0
- package/src/constants.ts +4 -0
- package/src/hooks/useAppContext.tsx +108 -0
- package/src/hooks/useDeviceLabelMatch.ts +101 -0
- package/src/hooks/useDocumentTitle.ts +12 -0
- package/src/hooks/useFetch.ts +10 -0
- package/src/hooks/useFetchPeriodically.ts +82 -0
- package/src/hooks/useNavigate.tsx +92 -0
- package/src/hooks/useTableSelect.ts +48 -0
- package/src/hooks/useTableSort.ts +42 -0
- package/src/hooks/useTableTextSearch.ts +23 -0
- package/src/hooks/useTemplateVersion.ts +23 -0
- package/src/hooks/useThemePreferences.ts +64 -0
- package/src/hooks/useTranslation.ts +8 -0
- package/src/hooks/useUserPreferences.ts +16 -0
- package/src/hooks/useWebSocket.ts +74 -0
- package/src/setupTests.ts +21 -0
- package/src/tests/test-utils.tsx +21 -0
- package/src/types/deviceSpec.ts +110 -0
- package/src/types/extraTypes.ts +52 -0
- package/src/types/typeUtils.ts +7 -0
- package/src/typings.d.ts +12 -0
- package/src/utils/api.ts +87 -0
- package/src/utils/dates.ts +60 -0
- package/src/utils/devices.ts +10 -0
- package/src/utils/error.ts +24 -0
- package/src/utils/labels.ts +40 -0
- package/src/utils/metrics.ts +49 -0
- package/src/utils/patch.ts +202 -0
- package/src/utils/resource.ts +4 -0
- package/src/utils/search.ts +25 -0
- package/src/utils/sort/device.ts +60 -0
- package/src/utils/sort/fleet.ts +16 -0
- package/src/utils/sort/generic.ts +37 -0
- package/src/utils/sort/repository.ts +28 -0
- package/src/utils/sort/resourceSync.ts +30 -0
- package/src/utils/status/applications.ts +58 -0
- package/src/utils/status/common.ts +71 -0
- package/src/utils/status/devices.ts +74 -0
- package/src/utils/status/enrollmentRequest.ts +49 -0
- package/src/utils/status/fleet.ts +47 -0
- package/src/utils/status/integrity.ts +26 -0
- package/src/utils/status/repository.ts +117 -0
- package/src/utils/status/system.ts +28 -0
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js +0 -87
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceList.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableRow.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableToolbar.js.map +0 -1
- package/dist/src/components/Device/DeviceList/types.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceBackendFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js +0 -98
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js +0 -29
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js.map +0 -1
- package/dist/src/components/Fleet/FleetList.js.map +0 -1
- package/dist/src/components/Fleet/ResourceSyncRow.js +0 -36
- package/dist/src/components/Fleet/ResourceSyncRow.js.map +0 -1
- /package/dist/src/components/Device/{DeviceList → DevicesPage}/types.js +0 -0
package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryGeneralDetailsCard.js","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"RepositoryGeneralDetailsCard.js","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAQgC;AAChC,+EAA2E;AAC3E,yFAAoF;AAEpF,4CAA4D;AAE5D,iEAAsG;AACtG,kEAA+D;AAC/D,6GAAiF;AACjF,6FAA6D;AAC7D,qDAA0E;AAC1E,yDAA0E;AAE1E,MAAM,WAAW,GAAG,CAAC,EAAE,IAAI,EAAwB,EAAE,EAAE;IACrD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,IAAA,sBAAc,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YACxG,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC;IACH,CAAC;SAAM,IAAI,IAAA,qBAAa,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC;YACtC,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC,CAAC,CAAC,CACjB;QACE,oBAAC,iBAAI;YACH,oBAAC,oBAAQ,OAAG,CACP;QAAC,GAAG;QACV,CAAC,CAAC,oBAAoB,CAAC,CACvB,CACJ,CAAC,CAAC,CAAC,CACF;QACE,oBAAC,iBAAI;YACH,oBAAC,6BAAY,OAAG,CACX;QAAC,GAAG;QACV,CAAC,CAAC,mBAAmB,CAAC,CACtB,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF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EAAC,WAAW,CAAC,GAAI,CAAC,CAAC,CAAC,GAAG,CAChE,CACR;gBACvB,oBAAC,iCAAoB;oBACnB,oBAAC,gCAAmB,QAAE,CAAC,CAAC,SAAS,CAAC,CAAuB;oBACzD,oBAAC,uCAA0B;wBACzB,oBAAC,WAAW,IAAC,IAAI,EAAE,WAAW,GAAI,CACP,CACR;gBACvB,oBAAC,iCAAoB;oBACnB,oBAAC,gCAAmB,QAAE,CAAC,CAAC,iBAAiB,CAAC,CAAuB;oBACjE,oBAAC,uCAA0B,QACxB,WAAW,CAAC,CAAC,CAAC,IAAA,sCAAyB,EAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CACxC,CACR,CACM,CACtB,CACN,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryResourceSyncsCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,gBAAgB;kBAAsC,MAAM;uBAkBjE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InlineConfigProviderSpec, KubernetesSecretProviderSpec } from '@flightctl/types';
|
|
3
|
+
import { ConfigSourceProvider, RepoConfig } from '../../../types/deviceSpec';
|
|
4
|
+
type ExtraArgs = Record<string, string>;
|
|
5
|
+
export declare const DefaultConfigDetails: ({ config, }: {
|
|
6
|
+
config: InlineConfigProviderSpec | KubernetesSecretProviderSpec;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export declare const HttpRepositoryUrl: ({ name, url }: {
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
url: string;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export declare const GitRepositoryLink: ({ name, url }: {
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
url: string;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
|
+
export declare const RepositoryConfigDetails: ({ config, extraArgs }: {
|
|
17
|
+
config: RepoConfig;
|
|
18
|
+
extraArgs: ExtraArgs;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
|
+
export declare const getConfigDetails: (config: ConfigSourceProvider, extraArgs: ExtraArgs) => React.JSX.Element;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=RepositorySource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositorySource.d.ts","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositorySource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAGL,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,oBAAoB,EAEpB,UAAU,EAIX,MAAM,2BAA2B,CAAC;AAKnC,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAExC,eAAO,MAAM,oBAAoB;YAGvB,wBAAwB,GAAG,4BAA4B;uBAGhE,CAAC;AAEF,eAAO,MAAM,iBAAiB;;SAAyC,MAAM;uBAQ5E,CAAC;AAEF,eAAO,MAAM,iBAAiB;;SAAyC,MAAM;uBAY5E,CAAC;AAEF,eAAO,MAAM,uBAAuB;YAAqC,UAAU;eAAa,SAAS;uBAuBxG,CAAC;AAEF,eAAO,MAAM,gBAAgB,WAAY,oBAAoB,aAAa,SAAS,sBAalF,CAAC"}
|
|
@@ -1,24 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConfigDetails = exports.RepositoryConfigDetails = exports.GitRepositoryLink = exports.HttpRepositoryUrl = exports.DefaultConfigDetails = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
-
const exclamation_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon");
|
|
7
7
|
const external_link_alt_icon_1 = require("@patternfly/react-icons/dist/js/icons/external-link-alt-icon");
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const exclamation_circle_icon_1 = tslib_1.__importDefault(require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon"));
|
|
9
|
+
const deviceSpec_1 = require("../../../types/deviceSpec");
|
|
10
|
+
const CopyButton_1 = tslib_1.__importDefault(require("../../common/CopyButton"));
|
|
11
|
+
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
12
|
+
const deviceSpecUtils_1 = require("../../Device/EditDeviceWizard/deviceSpecUtils");
|
|
13
|
+
const DefaultConfigDetails = ({ config, }) => {
|
|
14
|
+
return react_1.default.createElement(react_1.default.Fragment, null, config.name);
|
|
15
|
+
};
|
|
16
|
+
exports.DefaultConfigDetails = DefaultConfigDetails;
|
|
17
|
+
const HttpRepositoryUrl = ({ name, url }) => {
|
|
18
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
19
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
20
|
+
name || url,
|
|
21
|
+
react_1.default.createElement(CopyButton_1.default, { text: url, ariaLabel: t('Copy Url') })));
|
|
22
|
+
};
|
|
23
|
+
exports.HttpRepositoryUrl = HttpRepositoryUrl;
|
|
24
|
+
const GitRepositoryLink = ({ name, url }) => (react_1.default.createElement(react_core_1.Button, { component: "a", variant: "link", isInline: true, href: url, target: "_blank", icon: react_1.default.createElement(external_link_alt_icon_1.ExternalLinkAltIcon, null), iconPosition: "end" }, name || url));
|
|
25
|
+
exports.GitRepositoryLink = GitRepositoryLink;
|
|
26
|
+
const RepositoryConfigDetails = ({ config, extraArgs }) => {
|
|
27
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
28
|
+
if (extraArgs.errorMsg) {
|
|
29
|
+
const fullError = `${t('The repository "{{name}}" defined for this source failed to load.', {
|
|
30
|
+
name: (0, deviceSpec_1.getRepoName)(config),
|
|
31
|
+
})} ${extraArgs.errorMsg}`;
|
|
10
32
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
11
|
-
|
|
33
|
+
config.name,
|
|
12
34
|
' ',
|
|
13
|
-
react_1.default.createElement(react_core_1.Tooltip, { content:
|
|
35
|
+
react_1.default.createElement(react_core_1.Tooltip, { content: fullError },
|
|
14
36
|
react_1.default.createElement(react_core_1.Icon, { status: "danger" },
|
|
15
|
-
react_1.default.createElement(exclamation_circle_icon_1.
|
|
37
|
+
react_1.default.createElement(exclamation_circle_icon_1.default, null)))));
|
|
16
38
|
}
|
|
17
|
-
|
|
18
|
-
|
|
39
|
+
const url = (0, deviceSpec_1.getConfigFullRepoUrl)(config, extraArgs.url);
|
|
40
|
+
if ((0, deviceSpec_1.isHttpProviderSpec)(config)) {
|
|
41
|
+
return react_1.default.createElement(exports.HttpRepositoryUrl, { name: config.name, url: url });
|
|
42
|
+
}
|
|
43
|
+
return react_1.default.createElement(exports.GitRepositoryLink, { name: config.name, url: url });
|
|
44
|
+
};
|
|
45
|
+
exports.RepositoryConfigDetails = RepositoryConfigDetails;
|
|
46
|
+
const getConfigDetails = (config, extraArgs) => {
|
|
47
|
+
switch ((0, deviceSpecUtils_1.getConfigType)(config)) {
|
|
48
|
+
case deviceSpec_1.ConfigType.GIT:
|
|
49
|
+
case deviceSpec_1.ConfigType.HTTP:
|
|
50
|
+
return (react_1.default.createElement(exports.RepositoryConfigDetails, { config: config, extraArgs: extraArgs }));
|
|
51
|
+
default:
|
|
52
|
+
return react_1.default.createElement(exports.DefaultConfigDetails, { config: config });
|
|
19
53
|
}
|
|
20
|
-
// Configurations related to a repository whose details could be obtained
|
|
21
|
-
return (react_1.default.createElement(react_core_1.Button, { component: "a", variant: "link", isInline: true, href: sourceDetails.details, target: "_blank", icon: react_1.default.createElement(external_link_alt_icon_1.ExternalLinkAltIcon, null), iconPosition: "end" }, sourceDetails.name || sourceDetails.details));
|
|
22
54
|
};
|
|
23
|
-
exports.
|
|
55
|
+
exports.getConfigDetails = getConfigDetails;
|
|
24
56
|
//# sourceMappingURL=RepositorySource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositorySource.js","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositorySource.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RepositorySource.js","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositorySource.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA+D;AAC/D,yGAAmG;AACnG,oIAAkG;AAQlG,0DAOmC;AACnC,iFAAiD;AACjD,kEAA+D;AAC/D,mFAA8E;AAIvE,MAAM,oBAAoB,GAAG,CAAC,EACnC,MAAM,GAGP,EAAE,EAAE;IACH,OAAO,8DAAG,MAAM,CAAC,IAAI,CAAI,CAAC;AAC5B,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B;AAEK,MAAM,iBAAiB,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,EAAkC,EAAE,EAAE;IACjF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,OAAO,CACL;QACG,IAAI,IAAI,GAAG;QACZ,8BAAC,oBAAU,IAAC,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,GAAI,CAClD,CACJ,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B;AAEK,MAAM,iBAAiB,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,EAAkC,EAAE,EAAE,CAAC,CAClF,8BAAC,mBAAM,IACL,SAAS,EAAC,GAAG,EACb,OAAO,E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,QAAQ,IAAA,+BAAa,EAAC,MAAM,CAAC,EAAE,CAAC;QAC9B,KAAK,uBAAU,CAAC,GAAG,CAAC;QACpB,KAAK,uBAAU,CAAC,IAAI;YAClB,OAAO,CACL,8BAAC,+BAAuB,IACtB,MAAM,EAAE,MAAwD,EAChE,SAAS,EAAE,SAAS,GACpB,CACH,CAAC;QACJ;YACE,OAAO,8BAAC,4BAAoB,IAAC,MAAM,EAAE,MAAiE,GAAI,CAAC;IAC/G,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConfigSourceProvider } from '../../../types/deviceSpec';
|
|
3
|
+
declare const RepositorySourceList: ({ configs }: {
|
|
4
|
+
configs: Array<ConfigSourceProvider>;
|
|
5
|
+
}) => React.JSX.Element | "-";
|
|
6
|
+
export default RepositorySourceList;
|
|
7
|
+
//# sourceMappingURL=RepositorySourceList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositorySourceList.d.ts","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositorySourceList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,oBAAoB,EAA6B,MAAM,2BAA2B,CAAC;AAiB5F,QAAA,MAAM,oBAAoB;aAA4B,MAAM,oBAAoB,CAAC;6BAsDhF,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -4,10 +4,10 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const react_core_1 = require("@patternfly/react-core");
|
|
6
6
|
const useFetch_1 = require("../../../hooks/useFetch");
|
|
7
|
+
const deviceSpec_1 = require("../../../types/deviceSpec");
|
|
7
8
|
const typeUtils_1 = require("../../../types/typeUtils");
|
|
8
9
|
const error_1 = require("../../../utils/error");
|
|
9
|
-
const RepositorySource_1 =
|
|
10
|
-
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
10
|
+
const RepositorySource_1 = require("./RepositorySource");
|
|
11
11
|
const useArrayEq = (array) => {
|
|
12
12
|
const prevArrayRef = react_1.default.useRef(array);
|
|
13
13
|
if (prevArrayRef.current.length !== array.length || prevArrayRef.current.some((item) => !array.includes(item))) {
|
|
@@ -15,50 +15,47 @@ const useArrayEq = (array) => {
|
|
|
15
15
|
}
|
|
16
16
|
return prevArrayRef.current;
|
|
17
17
|
};
|
|
18
|
-
const
|
|
19
|
-
const RepositorySourceList = ({ sourceItems }) => {
|
|
18
|
+
const RepositorySourceList = ({ configs }) => {
|
|
20
19
|
const { get } = (0, useFetch_1.useFetch)();
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const [
|
|
20
|
+
const repoConfigs = configs.filter(deviceSpec_1.isRepoConfig);
|
|
21
|
+
// Map indexed by repository name, with the result of fetching the repository details
|
|
22
|
+
const [repoDetailsMap, setRepoDetailsMap] = react_1.default.useState({});
|
|
23
|
+
const repoConfigNames = useArrayEq(repoConfigs.map((config) => config.name));
|
|
24
|
+
const repositoryNames = useArrayEq(repoConfigs.map(deviceSpec_1.getRepoName));
|
|
24
25
|
const [isLoading, setIsLoading] = react_1.default.useState(true);
|
|
25
|
-
const repositoryItems = sourceItems.filter((item) => repoConfigTypes.includes(item.type));
|
|
26
|
-
const configNames = useArrayEq(repositoryItems.map((item) => item.name));
|
|
27
|
-
const repositoryNames = useArrayEq(repositoryItems.map((item) => item.details));
|
|
28
|
-
const repositoryTypes = useArrayEq(repositoryItems.map((item) => item.type));
|
|
29
26
|
react_1.default.useEffect(() => {
|
|
30
27
|
const fetch = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
31
|
-
const promises = repositoryNames.map((
|
|
28
|
+
const promises = repositoryNames.map((repoName) => get(`repositories/${repoName}`));
|
|
32
29
|
const results = yield Promise.allSettled(promises);
|
|
33
|
-
const
|
|
30
|
+
const map = {};
|
|
31
|
+
results.forEach((result, index) => {
|
|
34
32
|
const isRepoMissing = (0, typeUtils_1.isPromiseRejected)(result);
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
details: url,
|
|
45
|
-
type: repositoryTypes[index],
|
|
46
|
-
errorMessage,
|
|
47
|
-
};
|
|
33
|
+
const repoName = repositoryNames[index];
|
|
34
|
+
const repoInfo = {};
|
|
35
|
+
if (isRepoMissing) {
|
|
36
|
+
repoInfo.errorMsg = (0, error_1.getErrorMessage)(result.reason);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
repoInfo.url = result.value.spec.url;
|
|
40
|
+
}
|
|
41
|
+
map[repoName] = repoInfo;
|
|
48
42
|
});
|
|
49
|
-
|
|
43
|
+
setRepoDetailsMap(map);
|
|
50
44
|
setIsLoading(false);
|
|
51
45
|
});
|
|
52
46
|
void fetch();
|
|
53
|
-
}, [
|
|
47
|
+
}, [get, repoConfigNames, repositoryNames]);
|
|
54
48
|
if (isLoading) {
|
|
55
49
|
return react_1.default.createElement(react_core_1.Spinner, { size: "sm" });
|
|
56
50
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
return configs.length > 0 ? (react_1.default.createElement(react_core_1.List, null, configs.map((config) => {
|
|
52
|
+
let extraArgs = {};
|
|
53
|
+
if ((0, deviceSpec_1.isRepoConfig)(config)) {
|
|
54
|
+
const repoName = (0, deviceSpec_1.getRepoName)(config);
|
|
55
|
+
extraArgs = repoDetailsMap[repoName] || {};
|
|
56
|
+
}
|
|
57
|
+
return react_1.default.createElement(react_core_1.ListItem, { key: config.name }, (0, RepositorySource_1.getConfigDetails)(config, extraArgs));
|
|
58
|
+
}))) : ('-');
|
|
62
59
|
};
|
|
63
60
|
exports.default = RepositorySourceList;
|
|
64
61
|
//# sourceMappingURL=RepositorySourceList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositorySourceList.js","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositorySourceList.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAAiE;AAGjE,sDAAmD;AACnD,wDAA6D;AAC7D,gDAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"RepositorySourceList.js","sourceRoot":"","sources":["../../../../../src/components/Repository/RepositoryDetails/RepositorySourceList.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAAiE;AAGjE,sDAAmD;AACnD,0DAA4F;AAC5F,wDAA6D;AAC7D,gDAAuD;AACvD,yDAAsD;AAEtD,MAAM,UAAU,GAAG,CAAC,KAAe,EAAE,EAAE;IACrC,MAAM,YAAY,GAAG,eAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEzC,IAAI,YAAY,CAAC,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,IAAI,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QAC/G,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC;IAC/B,CAAC;IAED,OAAO,YAAY,CAAC,OAAO,CAAC;AAC9B,CAAC,CAAC;AAIF,MAAM,oBAAoB,GAAG,CAAC,EAAE,OAAO,EAA4C,EAAE,EAAE;IACrF,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,yBAAY,CAAC,CAAC;IAEjD,qFAAqF;IACrF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAkD,EAAE,CAAC,CAAC;IAEhH,MAAM,eAAe,GAAG,UAA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AEF,KAAK,KAAK,EAAE,CAAC;IACf,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;IAE5C,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,8BAAC,oBAAO,IAAC,IAAI,EAAC,IAAI,GAAG,CAAC;IAC/B,CAAC;IAED,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC1B,8BAAC,iBAAI,QACF,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACtB,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,IAAI,IAAA,yBAAY,EAAC,MAAM,CAAC,EAAE,CAAC;YACzB,MAAM,QAAQ,GAAG,IAAA,wBAAW,EAAC,MAAM,CAAC,CAAC;YACrC,SAAS,GAAG,cAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC7C,CAAC;QACD,OAAO,8BAAC,qBAAQ,IAAC,GAAG,EAAE,MAAM,CAAC,IAAI,IAAG,IAAA,mCAAgB,EAAC,MAAM,EAAE,SAAS,CAAC,CAAY,CAAC;IACtF,CAAC,CAAC,CACG,CACR,CAAC,CAAC,CAAC,CACF,GAAG,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryList.d.ts","sourceRoot":"","sources":["../../../../src/components/Repository/RepositoryList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,OAAO,EAA4B,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA6L5E,QAAA,MAAM,cAAc,yBAOnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -89,9 +89,9 @@ const RepositoryTable = () => {
|
|
|
89
89
|
react_1.default.createElement(react_core_1.ToolbarItem, null,
|
|
90
90
|
react_1.default.createElement(CreateRepositoryButton, { buttonText: t('Create repository') })),
|
|
91
91
|
react_1.default.createElement(react_core_1.ToolbarItem, null,
|
|
92
|
-
react_1.default.createElement(TableActions_1.default,
|
|
92
|
+
react_1.default.createElement(TableActions_1.default, { isDisabled: !hasSelectedRows },
|
|
93
93
|
react_1.default.createElement(react_core_1.DropdownList, null,
|
|
94
|
-
react_1.default.createElement(react_core_1.SelectOption, {
|
|
94
|
+
react_1.default.createElement(react_core_1.SelectOption, { onClick: () => setIsMassDeleteModalOpen(true) }, t('Delete'))))))),
|
|
95
95
|
react_1.default.createElement(Table_1.default, { "aria-label": t('Repositories table'), emptyFilters: filteredData.length === 0, emptyData: ((repositoryList === null || repositoryList === void 0 ? void 0 : repositoryList.items.length) || 0) === 0, isAllSelected: isAllSelected, onSelectAll: setAllSelected, columns: columns, getSortParams: getSortParams },
|
|
96
96
|
react_1.default.createElement(react_table_1.Tbody, null, sortedData.map((repository, rowIndex) => (react_1.default.createElement(react_table_1.Tr, { key: repository.metadata.name },
|
|
97
97
|
react_1.default.createElement(react_table_1.Td, { select: {
|
|
@@ -105,7 +105,7 @@ const RepositoryTable = () => {
|
|
|
105
105
|
react_1.default.createElement(react_table_1.Td, { dataLabel: t('Url') }, repository.spec.url || '-'),
|
|
106
106
|
react_1.default.createElement(react_table_1.Td, { dataLabel: t('Sync status') },
|
|
107
107
|
react_1.default.createElement(RepositoryStatus_1.default, { statusInfo: (0, repository_1.getRepositorySyncStatus)(repository) })),
|
|
108
|
-
react_1.default.createElement(react_table_1.Td, { dataLabel: t('Last transition') }, (0, repository_1.
|
|
108
|
+
react_1.default.createElement(react_table_1.Td, { dataLabel: t('Last transition') }, (0, repository_1.getLastTransitionTimeText)(repository, t).text),
|
|
109
109
|
react_1.default.createElement(react_table_1.Td, { isActionCell: true },
|
|
110
110
|
react_1.default.createElement(react_table_1.ActionsColumn, { items: [
|
|
111
111
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryList.js","sourceRoot":"","sources":["../../../../src/components/Repository/RepositoryList.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAWgC;AAChC,yDAAuE;AACvE,2FAAuF;AAGvF,4CAA4E;AAC5E,2EAAwE;AACxE,oFAAoD;AACpD,4EAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"RepositoryList.js","sourceRoot":"","sources":["../../../../src/components/Repository/RepositoryList.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAWgC;AAChC,yDAAuE;AACvE,2FAAuF;AAGvF,4CAA4E;AAC5E,2EAAwE;AACxE,oFAAoD;AACpD,4EAA4C;AAC5C,8DAAmG;AACnG,2DAAwD;AACxD,sDAAsD;AACtD,8EAAwD;AACxD,uEAAoE;AACpE,8GAA8E;AAC9E,uFAAuD;AACvD,mEAAoD;AACpD,iFAAiD;AACjD,+DAA4D;AAC5D,iJAAiH;AACjH,sGAAsE;AACtE,+DAA4D;AAC5D,yDAA6D;AAC7D,kFAAkD;AAClD,0FAA0D;AAE1D,MAAM,sBAAsB,GAAG,CAAC,EAAE,UAAU,EAA2B,EAAE,EAAE;IACzE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAE/B,OAAO,CACL,8BAAC,mBAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAK,CAAC,WAAW,CAAC,IACjE,UAAU,IAAI,CAAC,CAAC,qBAAqB,CAAC,CAChC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAChC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,8BAAC,gCAAsB,IAAC,IAAI,EAAE,gCAAc,EAAE,SAAS,EAAE,CAAC,CAAC,uBAAuB,CAAC;QACjF,8BAAC,2BAAc;YACb;gBACG,CAAC,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gBAChC,OAAO,EAAE,CAAC;YACZ,CAAC,EACD,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,GAC9C,CACH,CACY,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,GAAG,EAAE;IAC1B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,8BAAC,kBAAQ,IAAC,KAAK,EAAE,CAAC,CAAC,cAAc,CAAC;QAChC,8BAAC,eAAe,OAAG,CACV,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './RepositoryResourceSyncList.css';
|
|
3
|
+
declare const RepositoryResourceSyncList: ({ repositoryId }: {
|
|
4
|
+
repositoryId: string;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export default RepositoryResourceSyncList;
|
|
7
|
+
//# sourceMappingURL=RepositoryResourceSyncList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryResourceSyncList.d.ts","sourceRoot":"","sources":["../../../../src/components/ResourceSync/RepositoryResourceSyncList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyD/B,OAAO,kCAAkC,CAAC;AAwH1C,QAAA,MAAM,0BAA0B;kBAAsC,MAAM;uBA8I3E,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -4,6 +4,9 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const React = tslib_1.__importStar(require("react"));
|
|
5
5
|
const react_table_1 = require("@patternfly/react-table");
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
+
const plus_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/plus-circle-icon");
|
|
8
|
+
const code_branch_icon_1 = require("@patternfly/react-icons/dist/js/icons/code-branch-icon");
|
|
9
|
+
const formik_1 = require("formik");
|
|
7
10
|
const useFetchPeriodically_1 = require("../../hooks/useFetchPeriodically");
|
|
8
11
|
const useFetch_1 = require("../../hooks/useFetch");
|
|
9
12
|
const repository_1 = require("../../utils/status/repository");
|
|
@@ -20,6 +23,13 @@ const MassDeleteResourceSyncModal_1 = tslib_1.__importDefault(require("../modals
|
|
|
20
23
|
const ResourceSyncStatus_1 = tslib_1.__importDefault(require("./ResourceSyncStatus"));
|
|
21
24
|
const useTranslation_1 = require("../../hooks/useTranslation");
|
|
22
25
|
const useAppContext_1 = require("../../hooks/useAppContext");
|
|
26
|
+
const error_1 = require("../../utils/error");
|
|
27
|
+
const utils_1 = require("../Repository/CreateRepository/utils");
|
|
28
|
+
const CreateResourceSyncsForm_1 = require("../Repository/CreateRepository/CreateResourceSyncsForm");
|
|
29
|
+
const FlightCtlActionGroup_1 = tslib_1.__importDefault(require("../form/FlightCtlActionGroup"));
|
|
30
|
+
const FlightCtlForm_1 = tslib_1.__importDefault(require("../form/FlightCtlForm"));
|
|
31
|
+
const ResourceListEmptyState_1 = tslib_1.__importDefault(require("../common/ResourceListEmptyState"));
|
|
32
|
+
const ListPageBody_1 = tslib_1.__importDefault(require("../ListPage/ListPageBody"));
|
|
23
33
|
require("./RepositoryResourceSyncList.css");
|
|
24
34
|
const getColumns = (t) => [
|
|
25
35
|
{
|
|
@@ -53,7 +63,50 @@ const createRefs = (rsList) => {
|
|
|
53
63
|
return rsRefs;
|
|
54
64
|
};
|
|
55
65
|
const getSearchText = (resourceSync) => [resourceSync.metadata.name];
|
|
56
|
-
const
|
|
66
|
+
const ResourceSyncEmptyState = ({ addResourceSync }) => {
|
|
67
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
68
|
+
return (React.createElement(ResourceListEmptyState_1.default, { icon: code_branch_icon_1.CodeBranchIcon, titleText: t('No resource syncs here!') },
|
|
69
|
+
React.createElement(react_core_1.EmptyStateBody, null, t("A resource sync is an automated Gitops way to manage imported fleets. The resource syncs monitors changes made to the source repository and updates the fleets' configurations accordingly.")),
|
|
70
|
+
React.createElement(react_core_1.EmptyStateFooter, null,
|
|
71
|
+
React.createElement(react_core_1.EmptyStateActions, null,
|
|
72
|
+
React.createElement(react_core_1.Button, { variant: "secondary", onClick: addResourceSync }, t('Add a resource sync'))))));
|
|
73
|
+
};
|
|
74
|
+
const CreateResourceSyncModalForm = ({ onClose }) => {
|
|
75
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
76
|
+
const { values, submitForm, errors, dirty, isSubmitting } = (0, formik_1.useFormikContext)();
|
|
77
|
+
const rsToAdd = values.resourceSyncs[0];
|
|
78
|
+
const isSubmitDisabled = !dirty || Object.keys(errors).length > 0;
|
|
79
|
+
return (React.createElement(FlightCtlForm_1.default, null,
|
|
80
|
+
React.createElement(CreateResourceSyncsForm_1.CreateResourceSyncForm, { rs: rsToAdd, index: 0 }),
|
|
81
|
+
React.createElement(FlightCtlActionGroup_1.default, null,
|
|
82
|
+
React.createElement(react_core_1.Button, { variant: "primary", onClick: submitForm, isLoading: isSubmitting, isDisabled: isSubmitDisabled }, t('Add a resource sync')),
|
|
83
|
+
React.createElement(react_core_1.Button, { variant: "link", isDisabled: isSubmitting, onClick: onClose }, t('Cancel')))));
|
|
84
|
+
};
|
|
85
|
+
const CreateResourceSyncModal = ({ repositoryId, storedRSs, onClose, }) => {
|
|
86
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
87
|
+
const { post } = (0, useFetch_1.useFetch)();
|
|
88
|
+
const [submitError, setSubmitError] = React.useState();
|
|
89
|
+
return (React.createElement(react_core_1.Modal, { variant: "medium", title: t('Add a resource sync'), onClose: () => onClose(), isOpen: true },
|
|
90
|
+
React.createElement(formik_1.Formik, { initialValues: { resourceSyncs: [{ name: '', targetRevision: '', path: '' }] }, validationSchema: (0, utils_1.singleResourceSyncSchema)(t, storedRSs), onSubmit: (values) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
91
|
+
const rsToAdd = (0, utils_1.getResourceSync)(repositoryId, values.resourceSyncs[0]);
|
|
92
|
+
try {
|
|
93
|
+
yield post('resourcesyncs', rsToAdd);
|
|
94
|
+
setSubmitError(undefined);
|
|
95
|
+
onClose(true);
|
|
96
|
+
}
|
|
97
|
+
catch (e) {
|
|
98
|
+
setSubmitError((0, error_1.getErrorMessage)(e));
|
|
99
|
+
}
|
|
100
|
+
}) },
|
|
101
|
+
React.createElement(React.Fragment, null,
|
|
102
|
+
React.createElement(CreateResourceSyncModalForm, { onClose: onClose }),
|
|
103
|
+
submitError && (React.createElement(react_core_1.Alert, { variant: "danger", title: t('Unexpected error occurred'), isInline: true }, submitError))))));
|
|
104
|
+
};
|
|
105
|
+
const RepositoryResourceSyncList = ({ repositoryId }) => {
|
|
106
|
+
const [rsList, isLoading, error, refetch] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
107
|
+
endpoint: `resourcesyncs?repository=${repositoryId}`,
|
|
108
|
+
});
|
|
109
|
+
const resourceSyncs = (rsList === null || rsList === void 0 ? void 0 : rsList.items) || [];
|
|
57
110
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
58
111
|
const { remove } = (0, useFetch_1.useFetch)();
|
|
59
112
|
const { router: { useLocation }, } = (0, useAppContext_1.useAppContext)();
|
|
@@ -74,23 +127,27 @@ const ResourceSyncTable = ({ resourceSyncs, refetch }) => {
|
|
|
74
127
|
const { getSortParams, sortedData } = (0, useTableSort_1.useTableSort)(filteredData, columns);
|
|
75
128
|
const { onRowSelect, hasSelectedRows, isAllSelected, isRowSelected, setAllSelected } = (0, useTableSelect_1.useTableSelect)();
|
|
76
129
|
const { deleteAction, deleteModal } = (0, ListPageActions_1.useDeleteListAction)({
|
|
77
|
-
resourceType: '
|
|
130
|
+
resourceType: 'ResourceSync',
|
|
78
131
|
onDelete: (resourceId) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
79
132
|
yield remove(`resourcesyncs/${resourceId}`);
|
|
80
133
|
refetch();
|
|
81
134
|
}),
|
|
82
135
|
});
|
|
83
136
|
const [isMassDeleteModalOpen, setIsMassDeleteModalOpen] = React.useState(false);
|
|
84
|
-
|
|
137
|
+
const [isAddRsModalOpen, setIsAddRsModalOpen] = React.useState(false);
|
|
138
|
+
return (React.createElement(ListPageBody_1.default, { error: error, loading: isLoading },
|
|
85
139
|
React.createElement(react_core_1.Toolbar, { id: "resource-sync-toolbar", inset: { default: 'insetNone' } },
|
|
86
140
|
React.createElement(react_core_1.ToolbarContent, null,
|
|
87
141
|
React.createElement(react_core_1.ToolbarGroup, null,
|
|
88
142
|
React.createElement(react_core_1.ToolbarItem, { variant: "search-filter" },
|
|
89
|
-
React.createElement(TableTextSearch_1.default, { value: search, setValue: setSearch }))),
|
|
143
|
+
React.createElement(TableTextSearch_1.default, { value: search, setValue: setSearch, placeholder: t('Search by name') }))),
|
|
90
144
|
React.createElement(react_core_1.ToolbarItem, null,
|
|
91
|
-
React.createElement(TableActions_1.default,
|
|
145
|
+
React.createElement(TableActions_1.default, { isDisabled: !hasSelectedRows },
|
|
92
146
|
React.createElement(react_core_1.SelectList, null,
|
|
93
|
-
React.createElement(react_core_1.SelectOption, {
|
|
147
|
+
React.createElement(react_core_1.SelectOption, { onClick: () => setIsMassDeleteModalOpen(true) }, t('Delete'))))))),
|
|
148
|
+
resourceSyncs.length > 0 && (React.createElement(react_core_1.Button, { variant: "link", icon: React.createElement(plus_circle_icon_1.PlusCircleIcon, null), className: "fctl-rslist__addrsbutton", onClick: () => {
|
|
149
|
+
setIsAddRsModalOpen(true);
|
|
150
|
+
} }, t('Add a resource sync'))),
|
|
94
151
|
React.createElement(Table_1.default, { "aria-label": t('Resource syncs table'), isAllSelected: isAllSelected, onSelectAll: setAllSelected, columns: columns, emptyFilters: filteredData.length === 0, emptyData: resourceSyncs.length === 0, getSortParams: getSortParams },
|
|
95
152
|
React.createElement(react_table_1.Tbody, null, sortedData.map((resourceSync, rowIndex) => {
|
|
96
153
|
const rsName = resourceSync.metadata.name;
|
|
@@ -111,30 +168,20 @@ const ResourceSyncTable = ({ resourceSyncs, refetch }) => {
|
|
|
111
168
|
React.createElement(react_table_1.Td, { isActionCell: true },
|
|
112
169
|
React.createElement(react_table_1.ActionsColumn, { items: [deleteAction({ resourceId: resourceSync.metadata.name || '' })] }))));
|
|
113
170
|
}))),
|
|
171
|
+
resourceSyncs.length === 0 && (React.createElement(ResourceSyncEmptyState, { addResourceSync: () => {
|
|
172
|
+
setIsAddRsModalOpen(true);
|
|
173
|
+
} })),
|
|
114
174
|
deleteModal,
|
|
115
175
|
isMassDeleteModalOpen && (React.createElement(MassDeleteResourceSyncModal_1.default, { onClose: () => setIsMassDeleteModalOpen(false), resources: sortedData.filter(isRowSelected), onDeleteSuccess: () => {
|
|
116
176
|
setIsMassDeleteModalOpen(false);
|
|
117
177
|
refetch();
|
|
178
|
+
} })),
|
|
179
|
+
isAddRsModalOpen && (React.createElement(CreateResourceSyncModal, { repositoryId: repositoryId, storedRSs: resourceSyncs, onClose: (isAdded) => {
|
|
180
|
+
setIsAddRsModalOpen(false);
|
|
181
|
+
if (isAdded) {
|
|
182
|
+
refetch();
|
|
183
|
+
}
|
|
118
184
|
} }))));
|
|
119
185
|
};
|
|
120
|
-
const ResourceSyncEmptyState = ({ isLoading, error }) => {
|
|
121
|
-
const { t } = (0, useTranslation_1.useTranslation)();
|
|
122
|
-
let content = t('This repository does not have associated resource syncs yet');
|
|
123
|
-
if (isLoading) {
|
|
124
|
-
content = React.createElement(react_core_1.Spinner, null);
|
|
125
|
-
}
|
|
126
|
-
else if (error) {
|
|
127
|
-
content = (React.createElement("span", { style: { color: 'var(--pf-v5-global--danger-color--100)' } }, t(`Failed to load the repository's resource syncs`)));
|
|
128
|
-
}
|
|
129
|
-
return (React.createElement(react_core_1.EmptyState, null,
|
|
130
|
-
React.createElement(react_core_1.EmptyStateBody, null, content)));
|
|
131
|
-
};
|
|
132
|
-
const RepositoryResourceSyncList = ({ repositoryId }) => {
|
|
133
|
-
const [rsList, isLoading, error, refetch] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
134
|
-
endpoint: `resourcesyncs?repository=${repositoryId}`,
|
|
135
|
-
});
|
|
136
|
-
const items = (rsList === null || rsList === void 0 ? void 0 : rsList.items) || [];
|
|
137
|
-
return items.length === 0 ? (React.createElement(ResourceSyncEmptyState, { isLoading: isLoading, error: error })) : (React.createElement(ResourceSyncTable, { resourceSyncs: items, refetch: refetch }));
|
|
138
|
-
};
|
|
139
186
|
exports.default = RepositoryResourceSyncList;
|
|
140
187
|
//# sourceMappingURL=RepositoryResourceSyncList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RepositoryResourceSyncList.js","sourceRoot":"","sources":["../../../../src/components/ResourceSync/RepositoryResourceSyncList.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,yDAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"RepositoryResourceSyncList.js","sourceRoot":"","sources":["../../../../src/components/ResourceSync/RepositoryResourceSyncList.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,yDAAuE;AACvE,uDAagC;AAEhC,6FAAwF;AACxF,6FAAwF;AACxF,mCAAkD;AAElD,2EAAwE;AACxE,mDAAgD;AAEhD,8DAAgE;AAChE,iEAAkE;AAClE,2DAAwD;AACxD,sDAAsD;AACtD,gEAKuC;AACvC,mEAAoD;AACpD,uEAAoE;AACpE,uFAAuD;AACvD,+DAA4D;AAC5D,iFAAiD;AAEjD,uJAAuH;AACvH,sFAAsD;AACtD,+DAA4D;AAC5D,6DAA0D;AAC1D,6CAAoD;AAEpD,gEAI8C;AAC9C,oGAAgG;AAChG,gGAAgE;AAChE,kFAAkD;AAClD,sGAAsE;AACtE,oFAAoD;AAEpD,4CAA0C;AAE1C,MAAM,UAAU,GAAG,CAAC,CAAY,EAA+B,EAAE,CAAC;IAChE;QACE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,oB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AC;YACH,CAAC,GACD,CACH,CACY,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ResourceSync } from '@flightctl/types';
|
|
3
|
+
type ResourceSyncStatusProps = {
|
|
4
|
+
resourceSync: ResourceSync;
|
|
5
|
+
showLinksOnError?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const ResourceSyncStatus: ({ resourceSync, showLinksOnError }: ResourceSyncStatusProps) => React.JSX.Element;
|
|
8
|
+
export default ResourceSyncStatus;
|
|
9
|
+
//# sourceMappingURL=ResourceSyncStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceSyncStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/ResourceSync/ResourceSyncStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAiB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAO/D,KAAK,uBAAuB,GAAG;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,kBAAkB,uCAAgD,uBAAuB,sBA0D9F,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|