@plutonhq/core-frontend 0.0.1
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/LICENSE +202 -0
- package/README.md +3 -0
- package/dist/@types/backups.d.ts +76 -0
- package/dist/@types/backups.d.ts.map +1 -0
- package/dist/@types/devices.d.ts +234 -0
- package/dist/@types/devices.d.ts.map +1 -0
- package/dist/@types/index.d.ts +11 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/index.js +2 -0
- package/dist/@types/index.js.map +1 -0
- package/dist/@types/plans.d.ts +192 -0
- package/dist/@types/plans.d.ts.map +1 -0
- package/dist/@types/restores.d.ts +107 -0
- package/dist/@types/restores.d.ts.map +1 -0
- package/dist/@types/settings.d.ts +20 -0
- package/dist/@types/settings.d.ts.map +1 -0
- package/dist/@types/storages.d.ts +33 -0
- package/dist/@types/storages.d.ts.map +1 -0
- package/dist/@types/system.d.ts +12 -0
- package/dist/@types/system.d.ts.map +1 -0
- package/dist/components/App/App/App.d.ts +3 -0
- package/dist/components/App/App/App.d.ts.map +1 -0
- package/dist/components/App/App/App.js +35 -0
- package/dist/components/App/App/App.js.map +1 -0
- package/dist/components/App/App/App.module.scss +14 -0
- package/dist/components/App/App/App.module.scss.js +10 -0
- package/dist/components/App/App/App.module.scss.js.map +1 -0
- package/dist/components/App/AppContent/AppContent.d.ts +4 -0
- package/dist/components/App/AppContent/AppContent.d.ts.map +1 -0
- package/dist/components/App/AppContent/AppContent.js +7 -0
- package/dist/components/App/AppContent/AppContent.js.map +1 -0
- package/dist/components/App/AppContent/AppContent.module.scss +12 -0
- package/dist/components/App/AppContent/AppContent.module.scss.js +8 -0
- package/dist/components/App/AppContent/AppContent.module.scss.js.map +1 -0
- package/dist/components/App/Footer/Footer.d.ts +8 -0
- package/dist/components/App/Footer/Footer.d.ts.map +1 -0
- package/dist/components/App/Footer/Footer.js +23 -0
- package/dist/components/App/Footer/Footer.js.map +1 -0
- package/dist/components/App/Footer/Footer.module.scss +23 -0
- package/dist/components/App/Footer/Footer.module.scss.js +8 -0
- package/dist/components/App/Footer/Footer.module.scss.js.map +1 -0
- package/dist/components/App/PageTitle/PageTitle.d.ts +5 -0
- package/dist/components/App/PageTitle/PageTitle.d.ts.map +1 -0
- package/dist/components/App/PageTitle/PageTitle.js +13 -0
- package/dist/components/App/PageTitle/PageTitle.js.map +1 -0
- package/dist/components/App/SideNav/SideNav.d.ts +3 -0
- package/dist/components/App/SideNav/SideNav.d.ts.map +1 -0
- package/dist/components/App/SideNav/SideNav.js +91 -0
- package/dist/components/App/SideNav/SideNav.js.map +1 -0
- package/dist/components/App/SideNav/SideNav.module.scss +58 -0
- package/dist/components/App/SideNav/SideNav.module.scss.js +12 -0
- package/dist/components/App/SideNav/SideNav.module.scss.js.map +1 -0
- package/dist/components/Device/DeviceBackups/DeviceBackups.d.ts +7 -0
- package/dist/components/Device/DeviceBackups/DeviceBackups.d.ts.map +1 -0
- package/dist/components/Device/DeviceBackups/DeviceBackups.js +94 -0
- package/dist/components/Device/DeviceBackups/DeviceBackups.js.map +1 -0
- package/dist/components/Device/DeviceBackups/DeviceBackups.module.scss +142 -0
- package/dist/components/Device/DeviceBackups/DeviceBackups.module.scss.js +40 -0
- package/dist/components/Device/DeviceBackups/DeviceBackups.module.scss.js.map +1 -0
- package/dist/components/Device/DeviceCPU/DeviceCPU.d.ts +7 -0
- package/dist/components/Device/DeviceCPU/DeviceCPU.d.ts.map +1 -0
- package/dist/components/Device/DeviceCPU/DeviceCPU.js +51 -0
- package/dist/components/Device/DeviceCPU/DeviceCPU.js.map +1 -0
- package/dist/components/Device/DeviceInfo/DeviceInfo.d.ts +8 -0
- package/dist/components/Device/DeviceInfo/DeviceInfo.d.ts.map +1 -0
- package/dist/components/Device/DeviceInfo/DeviceInfo.js +27 -0
- package/dist/components/Device/DeviceInfo/DeviceInfo.js.map +1 -0
- package/dist/components/Device/DeviceInfo/DeviceInfo.module.scss +214 -0
- package/dist/components/Device/DeviceInfo/DeviceInfo.module.scss.js +42 -0
- package/dist/components/Device/DeviceInfo/DeviceInfo.module.scss.js.map +1 -0
- package/dist/components/Device/DeviceItem/DeviceItem.d.ts +8 -0
- package/dist/components/Device/DeviceItem/DeviceItem.d.ts.map +1 -0
- package/dist/components/Device/DeviceItem/DeviceItem.js +89 -0
- package/dist/components/Device/DeviceItem/DeviceItem.js.map +1 -0
- package/dist/components/Device/DeviceItem/DeviceItem.module.scss +216 -0
- package/dist/components/Device/DeviceItem/DeviceItem.module.scss.js +38 -0
- package/dist/components/Device/DeviceItem/DeviceItem.module.scss.js.map +1 -0
- package/dist/components/Device/DeviceMemory/DeviceMemory.d.ts +7 -0
- package/dist/components/Device/DeviceMemory/DeviceMemory.d.ts.map +1 -0
- package/dist/components/Device/DeviceMemory/DeviceMemory.js +82 -0
- package/dist/components/Device/DeviceMemory/DeviceMemory.js.map +1 -0
- package/dist/components/Device/DeviceNetworks/DeviceNetworks.d.ts +7 -0
- package/dist/components/Device/DeviceNetworks/DeviceNetworks.d.ts.map +1 -0
- package/dist/components/Device/DeviceNetworks/DeviceNetworks.js +28 -0
- package/dist/components/Device/DeviceNetworks/DeviceNetworks.js.map +1 -0
- package/dist/components/Device/DeviceRcloneSettings/DeviceRcloneSettings.d.ts +8 -0
- package/dist/components/Device/DeviceRcloneSettings/DeviceRcloneSettings.d.ts.map +1 -0
- package/dist/components/Device/DeviceRcloneSettings/DeviceRcloneSettings.js +140 -0
- package/dist/components/Device/DeviceRcloneSettings/DeviceRcloneSettings.js.map +1 -0
- package/dist/components/Device/DeviceResticSettings/DeviceResticSettings.d.ts +8 -0
- package/dist/components/Device/DeviceResticSettings/DeviceResticSettings.d.ts.map +1 -0
- package/dist/components/Device/DeviceResticSettings/DeviceResticSettings.js +55 -0
- package/dist/components/Device/DeviceResticSettings/DeviceResticSettings.js.map +1 -0
- package/dist/components/Device/DeviceStorageDisks/DeviceStorageDisks.d.ts +7 -0
- package/dist/components/Device/DeviceStorageDisks/DeviceStorageDisks.d.ts.map +1 -0
- package/dist/components/Device/DeviceStorageDisks/DeviceStorageDisks.js +26 -0
- package/dist/components/Device/DeviceStorageDisks/DeviceStorageDisks.js.map +1 -0
- package/dist/components/Device/DeviceStorageDrives/DeviceStorageDrives.d.ts +7 -0
- package/dist/components/Device/DeviceStorageDrives/DeviceStorageDrives.d.ts.map +1 -0
- package/dist/components/Device/DeviceStorageDrives/DeviceStorageDrives.js +48 -0
- package/dist/components/Device/DeviceStorageDrives/DeviceStorageDrives.js.map +1 -0
- package/dist/components/Device/DeviceSystem/DeviceSystem.d.ts +8 -0
- package/dist/components/Device/DeviceSystem/DeviceSystem.d.ts.map +1 -0
- package/dist/components/Device/DeviceSystem/DeviceSystem.js +43 -0
- package/dist/components/Device/DeviceSystem/DeviceSystem.js.map +1 -0
- package/dist/components/Device/EditDevice/EditDevice.d.ts +8 -0
- package/dist/components/Device/EditDevice/EditDevice.d.ts.map +1 -0
- package/dist/components/Device/EditDevice/EditDevice.js +130 -0
- package/dist/components/Device/EditDevice/EditDevice.js.map +1 -0
- package/dist/components/Device/EditDevice/EditDevice.module.scss +110 -0
- package/dist/components/Device/EditDevice/EditDevice.module.scss.js +20 -0
- package/dist/components/Device/EditDevice/EditDevice.module.scss.js.map +1 -0
- package/dist/components/Plan/AddPlan/AddPlan.d.ts +7 -0
- package/dist/components/Plan/AddPlan/AddPlan.d.ts.map +1 -0
- package/dist/components/Plan/AddPlan/AddPlan.js +38 -0
- package/dist/components/Plan/AddPlan/AddPlan.js.map +1 -0
- package/dist/components/Plan/AddPlan/AddPlan.module.scss +191 -0
- package/dist/components/Plan/AddPlan/AddPlan.module.scss.js +20 -0
- package/dist/components/Plan/AddPlan/AddPlan.module.scss.js.map +1 -0
- package/dist/components/Plan/BackupEvents/BackupEvents.d.ts +14 -0
- package/dist/components/Plan/BackupEvents/BackupEvents.d.ts.map +1 -0
- package/dist/components/Plan/BackupEvents/BackupEvents.js +73 -0
- package/dist/components/Plan/BackupEvents/BackupEvents.js.map +1 -0
- package/dist/components/Plan/BackupEvents/BackupEvents.module.scss +189 -0
- package/dist/components/Plan/BackupEvents/BackupEvents.module.scss.js +46 -0
- package/dist/components/Plan/BackupEvents/BackupEvents.module.scss.js.map +1 -0
- package/dist/components/Plan/BackupProgress/BackupProgress.d.ts +12 -0
- package/dist/components/Plan/BackupProgress/BackupProgress.d.ts.map +1 -0
- package/dist/components/Plan/BackupProgress/BackupProgress.js +160 -0
- package/dist/components/Plan/BackupProgress/BackupProgress.js.map +1 -0
- package/dist/components/Plan/BackupProgress/BackupProgress.module.scss +120 -0
- package/dist/components/Plan/BackupProgress/BackupProgress.module.scss.js +34 -0
- package/dist/components/Plan/BackupProgress/BackupProgress.module.scss.js.map +1 -0
- package/dist/components/Plan/Backups/Backups.d.ts +11 -0
- package/dist/components/Plan/Backups/Backups.d.ts.map +1 -0
- package/dist/components/Plan/Backups/Backups.js +276 -0
- package/dist/components/Plan/Backups/Backups.js.map +1 -0
- package/dist/components/Plan/Backups/Backups.module.scss +210 -0
- package/dist/components/Plan/Backups/Backups.module.scss.js +46 -0
- package/dist/components/Plan/Backups/Backups.module.scss.js.map +1 -0
- package/dist/components/Plan/EditPlan/EditPlan.d.ts +8 -0
- package/dist/components/Plan/EditPlan/EditPlan.d.ts.map +1 -0
- package/dist/components/Plan/EditPlan/EditPlan.js +42 -0
- package/dist/components/Plan/EditPlan/EditPlan.js.map +1 -0
- package/dist/components/Plan/EditPlan/EditPlan.module.scss +41 -0
- package/dist/components/Plan/PlanBackups/PlanBackups.d.ts +7 -0
- package/dist/components/Plan/PlanBackups/PlanBackups.d.ts.map +1 -0
- package/dist/components/Plan/PlanBackups/PlanBackups.js +49 -0
- package/dist/components/Plan/PlanBackups/PlanBackups.js.map +1 -0
- package/dist/components/Plan/PlanBackups/PlanBackups.module.scss +58 -0
- package/dist/components/Plan/PlanBackups/PlanBackups.module.scss.js +16 -0
- package/dist/components/Plan/PlanBackups/PlanBackups.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanForm/PlanForm.d.ts +15 -0
- package/dist/components/Plan/PlanForm/PlanForm.d.ts.map +1 -0
- package/dist/components/Plan/PlanForm/PlanForm.js +173 -0
- package/dist/components/Plan/PlanForm/PlanForm.js.map +1 -0
- package/dist/components/Plan/PlanForm/PlanForm.module.scss +72 -0
- package/dist/components/Plan/PlanForm/PlanForm.module.scss.js +18 -0
- package/dist/components/Plan/PlanForm/PlanForm.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanForm/PlanFormNav.d.ts +8 -0
- package/dist/components/Plan/PlanForm/PlanFormNav.d.ts.map +1 -0
- package/dist/components/Plan/PlanForm/PlanFormNav.js +70 -0
- package/dist/components/Plan/PlanForm/PlanFormNav.js.map +1 -0
- package/dist/components/Plan/PlanHistory/PlanHistory.d.ts +9 -0
- package/dist/components/Plan/PlanHistory/PlanHistory.d.ts.map +1 -0
- package/dist/components/Plan/PlanHistory/PlanHistory.js +49 -0
- package/dist/components/Plan/PlanHistory/PlanHistory.js.map +1 -0
- package/dist/components/Plan/PlanHistory/PlanHistory.module.scss +44 -0
- package/dist/components/Plan/PlanHistory/PlanHistory.module.scss.js +18 -0
- package/dist/components/Plan/PlanHistory/PlanHistory.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanItems/PlanItem.d.ts +8 -0
- package/dist/components/Plan/PlanItems/PlanItem.d.ts.map +1 -0
- package/dist/components/Plan/PlanItems/PlanItem.js +171 -0
- package/dist/components/Plan/PlanItems/PlanItem.js.map +1 -0
- package/dist/components/Plan/PlanItems/PlanItem.module.scss +332 -0
- package/dist/components/Plan/PlanItems/PlanItem.module.scss.js +40 -0
- package/dist/components/Plan/PlanItems/PlanItem.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanLogs/PlanLogs.d.ts +9 -0
- package/dist/components/Plan/PlanLogs/PlanLogs.d.ts.map +1 -0
- package/dist/components/Plan/PlanLogs/PlanLogs.js +13 -0
- package/dist/components/Plan/PlanLogs/PlanLogs.js.map +1 -0
- package/dist/components/Plan/PlanLogs/PlanLogs.module.scss +0 -0
- package/dist/components/Plan/PlanPendingBackup/PlanPendingBackup.d.ts +7 -0
- package/dist/components/Plan/PlanPendingBackup/PlanPendingBackup.d.ts.map +1 -0
- package/dist/components/Plan/PlanPendingBackup/PlanPendingBackup.js +33 -0
- package/dist/components/Plan/PlanPendingBackup/PlanPendingBackup.js.map +1 -0
- package/dist/components/Plan/PlanPendingBackup/PlanPendingBackup.module.scss +42 -0
- package/dist/components/Plan/PlanPendingBackup/PlanPendingBackup.module.scss.js +20 -0
- package/dist/components/Plan/PlanPendingBackup/PlanPendingBackup.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanProgress/PlanProgress.d.ts +13 -0
- package/dist/components/Plan/PlanProgress/PlanProgress.d.ts.map +1 -0
- package/dist/components/Plan/PlanProgress/PlanProgress.js +45 -0
- package/dist/components/Plan/PlanProgress/PlanProgress.js.map +1 -0
- package/dist/components/Plan/PlanProgress/PlanProgress.module.scss +19 -0
- package/dist/components/Plan/PlanProgress/PlanProgress.module.scss.js +8 -0
- package/dist/components/Plan/PlanProgress/PlanProgress.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanPruneModal/PlanPruneModal.d.ts +12 -0
- package/dist/components/Plan/PlanPruneModal/PlanPruneModal.d.ts.map +1 -0
- package/dist/components/Plan/PlanPruneModal/PlanPruneModal.js +44 -0
- package/dist/components/Plan/PlanPruneModal/PlanPruneModal.js.map +1 -0
- package/dist/components/Plan/PlanRemoveModal/PlanRemoveModal.d.ts +9 -0
- package/dist/components/Plan/PlanRemoveModal/PlanRemoveModal.d.ts.map +1 -0
- package/dist/components/Plan/PlanRemoveModal/PlanRemoveModal.js +56 -0
- package/dist/components/Plan/PlanRemoveModal/PlanRemoveModal.js.map +1 -0
- package/dist/components/Plan/PlanRemoveModal/PlanRemoveModal.module.scss +9 -0
- package/dist/components/Plan/PlanRemoveModal/PlanRemoveModal.module.scss.js +8 -0
- package/dist/components/Plan/PlanRemoveModal/PlanRemoveModal.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanAdvancedSettings.d.ts +11 -0
- package/dist/components/Plan/PlanSettings/PlanAdvancedSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanAdvancedSettings.js +94 -0
- package/dist/components/Plan/PlanSettings/PlanAdvancedSettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanGeneralSettings.d.ts +8 -0
- package/dist/components/Plan/PlanSettings/PlanGeneralSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanGeneralSettings.js +55 -0
- package/dist/components/Plan/PlanSettings/PlanGeneralSettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanNotificationSettings.d.ts +10 -0
- package/dist/components/Plan/PlanSettings/PlanNotificationSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanNotificationSettings.js +67 -0
- package/dist/components/Plan/PlanSettings/PlanNotificationSettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanPerformanceSettings.d.ts +8 -0
- package/dist/components/Plan/PlanSettings/PlanPerformanceSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanPerformanceSettings.js +88 -0
- package/dist/components/Plan/PlanSettings/PlanPerformanceSettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanPruneSettings.d.ts +8 -0
- package/dist/components/Plan/PlanSettings/PlanPruneSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanPruneSettings.js +104 -0
- package/dist/components/Plan/PlanSettings/PlanPruneSettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanScriptsSettings.d.ts +9 -0
- package/dist/components/Plan/PlanSettings/PlanScriptsSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanScriptsSettings.js +273 -0
- package/dist/components/Plan/PlanSettings/PlanScriptsSettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanSettings.module.scss +464 -0
- package/dist/components/Plan/PlanSettings/PlanSettings.module.scss.js +60 -0
- package/dist/components/Plan/PlanSettings/PlanSettings.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanSourceSettings.d.ts +10 -0
- package/dist/components/Plan/PlanSettings/PlanSourceSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanSourceSettings.js +47 -0
- package/dist/components/Plan/PlanSettings/PlanSourceSettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanStrategySettings.d.ts +16 -0
- package/dist/components/Plan/PlanSettings/PlanStrategySettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanStrategySettings.js +19 -0
- package/dist/components/Plan/PlanSettings/PlanStrategySettings.js.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanTypeSettings.d.ts +16 -0
- package/dist/components/Plan/PlanSettings/PlanTypeSettings.d.ts.map +1 -0
- package/dist/components/Plan/PlanSettings/PlanTypeSettings.js +17 -0
- package/dist/components/Plan/PlanSettings/PlanTypeSettings.js.map +1 -0
- package/dist/components/Plan/PlanStats/PlanStats.d.ts +9 -0
- package/dist/components/Plan/PlanStats/PlanStats.d.ts.map +1 -0
- package/dist/components/Plan/PlanStats/PlanStats.js +81 -0
- package/dist/components/Plan/PlanStats/PlanStats.js.map +1 -0
- package/dist/components/Plan/PlanStats/PlanStats.module.scss +125 -0
- package/dist/components/Plan/PlanStats/PlanStats.module.scss.js +22 -0
- package/dist/components/Plan/PlanStats/PlanStats.module.scss.js.map +1 -0
- package/dist/components/Plan/PlanUnlockModal/PlanUnlockModal.d.ts +8 -0
- package/dist/components/Plan/PlanUnlockModal/PlanUnlockModal.d.ts.map +1 -0
- package/dist/components/Plan/PlanUnlockModal/PlanUnlockModal.js +29 -0
- package/dist/components/Plan/PlanUnlockModal/PlanUnlockModal.js.map +1 -0
- package/dist/components/Plan/Restores/Restores.d.ts +10 -0
- package/dist/components/Plan/Restores/Restores.d.ts.map +1 -0
- package/dist/components/Plan/Restores/Restores.js +144 -0
- package/dist/components/Plan/Restores/Restores.js.map +1 -0
- package/dist/components/Restore/RestoreChangeViewer/RestoreChangeViewer.d.ts +8 -0
- package/dist/components/Restore/RestoreChangeViewer/RestoreChangeViewer.d.ts.map +1 -0
- package/dist/components/Restore/RestoreChangeViewer/RestoreChangeViewer.js +27 -0
- package/dist/components/Restore/RestoreChangeViewer/RestoreChangeViewer.js.map +1 -0
- package/dist/components/Restore/RestoreChangeViewer/RestoreChangeViewer.module.scss +71 -0
- package/dist/components/Restore/RestoreChangeViewer/RestoreChangeViewer.module.scss.js +16 -0
- package/dist/components/Restore/RestoreChangeViewer/RestoreChangeViewer.module.scss.js.map +1 -0
- package/dist/components/Restore/RestoreFileSelector/RestoreFileSelector.d.ts +17 -0
- package/dist/components/Restore/RestoreFileSelector/RestoreFileSelector.d.ts.map +1 -0
- package/dist/components/Restore/RestoreFileSelector/RestoreFileSelector.js +268 -0
- package/dist/components/Restore/RestoreFileSelector/RestoreFileSelector.js.map +1 -0
- package/dist/components/Restore/RestoreFileSelector/RestoreFileSelector.module.scss +326 -0
- package/dist/components/Restore/RestoreFileSelector/RestoreFileSelector.module.scss.js +70 -0
- package/dist/components/Restore/RestoreFileSelector/RestoreFileSelector.module.scss.js.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreConfirmStep.d.ts +17 -0
- package/dist/components/Restore/RestoreWizard/RestoreConfirmStep.d.ts.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreConfirmStep.js +77 -0
- package/dist/components/Restore/RestoreWizard/RestoreConfirmStep.js.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreFileSelectorStep.d.ts +19 -0
- package/dist/components/Restore/RestoreWizard/RestoreFileSelectorStep.d.ts.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreFileSelectorStep.js +59 -0
- package/dist/components/Restore/RestoreWizard/RestoreFileSelectorStep.js.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestorePreviewStep.d.ts +18 -0
- package/dist/components/Restore/RestoreWizard/RestorePreviewStep.d.ts.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestorePreviewStep.js +85 -0
- package/dist/components/Restore/RestoreWizard/RestorePreviewStep.js.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreSettingsStep.d.ts +11 -0
- package/dist/components/Restore/RestoreWizard/RestoreSettingsStep.d.ts.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreSettingsStep.js +160 -0
- package/dist/components/Restore/RestoreWizard/RestoreSettingsStep.js.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreWizard.d.ts +8 -0
- package/dist/components/Restore/RestoreWizard/RestoreWizard.d.ts.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreWizard.js +115 -0
- package/dist/components/Restore/RestoreWizard/RestoreWizard.js.map +1 -0
- package/dist/components/Restore/RestoreWizard/RestoreWizard.module.scss +390 -0
- package/dist/components/Restore/RestoreWizard/RestoreWizard.module.scss.js +64 -0
- package/dist/components/Restore/RestoreWizard/RestoreWizard.module.scss.js.map +1 -0
- package/dist/components/Restore/RestoredFileBrowser/RestoredFileBrowser.d.ts +8 -0
- package/dist/components/Restore/RestoredFileBrowser/RestoredFileBrowser.d.ts.map +1 -0
- package/dist/components/Restore/RestoredFileBrowser/RestoredFileBrowser.js +192 -0
- package/dist/components/Restore/RestoredFileBrowser/RestoredFileBrowser.js.map +1 -0
- package/dist/components/Restore/RestoredFileBrowser/RestoredFileBrowser.module.scss +299 -0
- package/dist/components/Restore/RestoredFileBrowser/RestoredFileBrowser.module.scss.js +68 -0
- package/dist/components/Restore/RestoredFileBrowser/RestoredFileBrowser.module.scss.js.map +1 -0
- package/dist/components/Settings/AppLogs/AppLogs.d.ts +6 -0
- package/dist/components/Settings/AppLogs/AppLogs.d.ts.map +1 -0
- package/dist/components/Settings/AppLogs/AppLogs.js +14 -0
- package/dist/components/Settings/AppLogs/AppLogs.js.map +1 -0
- package/dist/components/Settings/GeneralSettings/GeneralSettings.d.ts +8 -0
- package/dist/components/Settings/GeneralSettings/GeneralSettings.d.ts.map +1 -0
- package/dist/components/Settings/GeneralSettings/GeneralSettings.js +59 -0
- package/dist/components/Settings/GeneralSettings/GeneralSettings.js.map +1 -0
- package/dist/components/Settings/GeneralSettings/GeneralSettings.module.scss +3 -0
- package/dist/components/Settings/GeneralSettings/GeneralSettings.module.scss.js +8 -0
- package/dist/components/Settings/GeneralSettings/GeneralSettings.module.scss.js.map +1 -0
- package/dist/components/Settings/IntegrationSettings/IntegrationSettings.d.ts +8 -0
- package/dist/components/Settings/IntegrationSettings/IntegrationSettings.d.ts.map +1 -0
- package/dist/components/Settings/IntegrationSettings/IntegrationSettings.js +47 -0
- package/dist/components/Settings/IntegrationSettings/IntegrationSettings.js.map +1 -0
- package/dist/components/Settings/IntegrationSettings/IntegrationSettings.module.scss +38 -0
- package/dist/components/Settings/IntegrationSettings/IntegrationSettings.module.scss.js +12 -0
- package/dist/components/Settings/IntegrationSettings/IntegrationSettings.module.scss.js.map +1 -0
- package/dist/components/Settings/IntegrationSettings/SMTPSettings.d.ts +9 -0
- package/dist/components/Settings/IntegrationSettings/SMTPSettings.d.ts.map +1 -0
- package/dist/components/Settings/IntegrationSettings/SMTPSettings.js +73 -0
- package/dist/components/Settings/IntegrationSettings/SMTPSettings.js.map +1 -0
- package/dist/components/Skeleton/SkeletonItems.d.ts +8 -0
- package/dist/components/Skeleton/SkeletonItems.d.ts.map +1 -0
- package/dist/components/Skeleton/SkeletonItems.js +21 -0
- package/dist/components/Skeleton/SkeletonItems.js.map +1 -0
- package/dist/components/Skeleton/SkeletonItems.module.scss +162 -0
- package/dist/components/Skeleton/SkeletonItems.module.scss.js +26 -0
- package/dist/components/Skeleton/SkeletonItems.module.scss.js.map +1 -0
- package/dist/components/Storage/AddStorage/AddStorage.d.ts +6 -0
- package/dist/components/Storage/AddStorage/AddStorage.d.ts.map +1 -0
- package/dist/components/Storage/AddStorage/AddStorage.js +186 -0
- package/dist/components/Storage/AddStorage/AddStorage.js.map +1 -0
- package/dist/components/Storage/AddStorage/AddStorage.module.scss +168 -0
- package/dist/components/Storage/AddStorage/AddStorage.module.scss.js +34 -0
- package/dist/components/Storage/AddStorage/AddStorage.module.scss.js.map +1 -0
- package/dist/components/Storage/EditStorage/EditStorage.d.ts +8 -0
- package/dist/components/Storage/EditStorage/EditStorage.d.ts.map +1 -0
- package/dist/components/Storage/EditStorage/EditStorage.js +149 -0
- package/dist/components/Storage/EditStorage/EditStorage.js.map +1 -0
- package/dist/components/Storage/EditStorage/EditStorage.module.scss +0 -0
- package/dist/components/Storage/StorageAuthSettings/StorageAuthSettings.d.ts +14 -0
- package/dist/components/Storage/StorageAuthSettings/StorageAuthSettings.d.ts.map +1 -0
- package/dist/components/Storage/StorageAuthSettings/StorageAuthSettings.js +116 -0
- package/dist/components/Storage/StorageAuthSettings/StorageAuthSettings.js.map +1 -0
- package/dist/components/Storage/StorageItem/StorageItem.d.ts +8 -0
- package/dist/components/Storage/StorageItem/StorageItem.d.ts.map +1 -0
- package/dist/components/Storage/StorageItem/StorageItem.js +149 -0
- package/dist/components/Storage/StorageItem/StorageItem.js.map +1 -0
- package/dist/components/Storage/StorageItem/StorageItem.module.scss +231 -0
- package/dist/components/Storage/StorageItem/StorageItem.module.scss.js +32 -0
- package/dist/components/Storage/StorageItem/StorageItem.module.scss.js.map +1 -0
- package/dist/components/Storage/StorageSettings/StorageSettings.d.ts +10 -0
- package/dist/components/Storage/StorageSettings/StorageSettings.d.ts.map +1 -0
- package/dist/components/Storage/StorageSettings/StorageSettings.js +139 -0
- package/dist/components/Storage/StorageSettings/StorageSettings.js.map +1 -0
- package/dist/components/Storage/StorageSettings/StorageSettings.module.scss +29 -0
- package/dist/components/Storage/StorageSettings/StorageSettings.module.scss.js +8 -0
- package/dist/components/Storage/StorageSettings/StorageSettings.module.scss.js.map +1 -0
- package/dist/components/common/ActionModal/ActionModal.d.ts +25 -0
- package/dist/components/common/ActionModal/ActionModal.d.ts.map +1 -0
- package/dist/components/common/ActionModal/ActionModal.js +42 -0
- package/dist/components/common/ActionModal/ActionModal.js.map +1 -0
- package/dist/components/common/ActionModal/ActionModal.module.scss +60 -0
- package/dist/components/common/ActionModal/ActionModal.module.scss.js +16 -0
- package/dist/components/common/ActionModal/ActionModal.module.scss.js.map +1 -0
- package/dist/components/common/AnimatedWrapper/AnimatedWrapper.d.ts +13 -0
- package/dist/components/common/AnimatedWrapper/AnimatedWrapper.d.ts.map +1 -0
- package/dist/components/common/AnimatedWrapper/AnimatedWrapper.js +47 -0
- package/dist/components/common/AnimatedWrapper/AnimatedWrapper.js.map +1 -0
- package/dist/components/common/AnimatedWrapper/AnimatedWrapper.module.scss +88 -0
- package/dist/components/common/AnimatedWrapper/AnimatedWrapper.module.scss.js +30 -0
- package/dist/components/common/AnimatedWrapper/AnimatedWrapper.module.scss.js.map +1 -0
- package/dist/components/common/Button/Button.d.ts +15 -0
- package/dist/components/common/Button/Button.d.ts.map +1 -0
- package/dist/components/common/Button/Button.js +25 -0
- package/dist/components/common/Button/Button.js.map +1 -0
- package/dist/components/common/Button/Button.module.scss +56 -0
- package/dist/components/common/Button/Button.module.scss.js +26 -0
- package/dist/components/common/Button/Button.module.scss.js.map +1 -0
- package/dist/components/common/FileIcon/FileIcon.d.ts +8 -0
- package/dist/components/common/FileIcon/FileIcon.d.ts.map +1 -0
- package/dist/components/common/FileIcon/FileIcon.js +10 -0
- package/dist/components/common/FileIcon/FileIcon.js.map +1 -0
- package/dist/components/common/FileManager/FileManager.d.ts +14 -0
- package/dist/components/common/FileManager/FileManager.d.ts.map +1 -0
- package/dist/components/common/FileManager/FileManager.js +156 -0
- package/dist/components/common/FileManager/FileManager.js.map +1 -0
- package/dist/components/common/FileManager/FileManager.module.scss +196 -0
- package/dist/components/common/FileManager/FileManager.module.scss.js +30 -0
- package/dist/components/common/FileManager/FileManager.module.scss.js.map +1 -0
- package/dist/components/common/FolderPicker/FolderPicker.d.ts +12 -0
- package/dist/components/common/FolderPicker/FolderPicker.d.ts.map +1 -0
- package/dist/components/common/FolderPicker/FolderPicker.js +50 -0
- package/dist/components/common/FolderPicker/FolderPicker.js.map +1 -0
- package/dist/components/common/FolderPicker/FolderPicker.module.scss +77 -0
- package/dist/components/common/FolderPicker/FolderPicker.module.scss.js +16 -0
- package/dist/components/common/FolderPicker/FolderPicker.module.scss.js.map +1 -0
- package/dist/components/common/Icon/Icon.d.ts +10 -0
- package/dist/components/common/Icon/Icon.d.ts.map +1 -0
- package/dist/components/common/Icon/Icon.js +1349 -0
- package/dist/components/common/Icon/Icon.js.map +1 -0
- package/dist/components/common/ItemsLayout/ItemsLayout.d.ts +8 -0
- package/dist/components/common/ItemsLayout/ItemsLayout.d.ts.map +1 -0
- package/dist/components/common/ItemsLayout/ItemsLayout.js +30 -0
- package/dist/components/common/ItemsLayout/ItemsLayout.js.map +1 -0
- package/dist/components/common/ItemsLayout/ItemsLayout.module.scss +51 -0
- package/dist/components/common/ItemsLayout/ItemsLayout.module.scss.js +10 -0
- package/dist/components/common/ItemsLayout/ItemsLayout.module.scss.js.map +1 -0
- package/dist/components/common/LogViewer/LogViewer.d.ts +13 -0
- package/dist/components/common/LogViewer/LogViewer.d.ts.map +1 -0
- package/dist/components/common/LogViewer/LogViewer.js +112 -0
- package/dist/components/common/LogViewer/LogViewer.js.map +1 -0
- package/dist/components/common/LogViewer/LogViewer.module.scss +188 -0
- package/dist/components/common/LogViewer/LogViewer.module.scss.js +52 -0
- package/dist/components/common/LogViewer/LogViewer.module.scss.js.map +1 -0
- package/dist/components/common/Logo/Logo.d.ts +9 -0
- package/dist/components/common/Logo/Logo.d.ts.map +1 -0
- package/dist/components/common/Logo/Logo.js +12 -0
- package/dist/components/common/Logo/Logo.js.map +1 -0
- package/dist/components/common/Modal/Modal.d.ts +13 -0
- package/dist/components/common/Modal/Modal.d.ts.map +1 -0
- package/dist/components/common/Modal/Modal.js +49 -0
- package/dist/components/common/Modal/Modal.js.map +1 -0
- package/dist/components/common/Modal/Modal.module.scss +81 -0
- package/dist/components/common/Modal/Modal.module.scss.js +16 -0
- package/dist/components/common/Modal/Modal.module.scss.js.map +1 -0
- package/dist/components/common/NotFound/NotFound.d.ts +8 -0
- package/dist/components/common/NotFound/NotFound.d.ts.map +1 -0
- package/dist/components/common/NotFound/NotFound.js +20 -0
- package/dist/components/common/NotFound/NotFound.js.map +1 -0
- package/dist/components/common/NotFound/NotFound.module.scss +36 -0
- package/dist/components/common/NotFound/NotFound.module.scss.js +8 -0
- package/dist/components/common/NotFound/NotFound.module.scss.js.map +1 -0
- package/dist/components/common/PageHeader/PageHeader.d.ts +12 -0
- package/dist/components/common/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/common/PageHeader/PageHeader.js +22 -0
- package/dist/components/common/PageHeader/PageHeader.js.map +1 -0
- package/dist/components/common/PageHeader/PageHeader.module.scss +61 -0
- package/dist/components/common/PageHeader/PageHeader.module.scss.js +14 -0
- package/dist/components/common/PageHeader/PageHeader.module.scss.js.map +1 -0
- package/dist/components/common/PathPicker/PathPicker.d.ts +16 -0
- package/dist/components/common/PathPicker/PathPicker.d.ts.map +1 -0
- package/dist/components/common/PathPicker/PathPicker.js +213 -0
- package/dist/components/common/PathPicker/PathPicker.js.map +1 -0
- package/dist/components/common/PathPicker/PathPicker.module.scss +278 -0
- package/dist/components/common/PathPicker/PathPicker.module.scss.js +38 -0
- package/dist/components/common/PathPicker/PathPicker.module.scss.js.map +1 -0
- package/dist/components/common/SearchItems/SearchItems.d.ts +7 -0
- package/dist/components/common/SearchItems/SearchItems.d.ts.map +1 -0
- package/dist/components/common/SearchItems/SearchItems.js +38 -0
- package/dist/components/common/SearchItems/SearchItems.js.map +1 -0
- package/dist/components/common/SearchItems/SearchItems.module.scss +48 -0
- package/dist/components/common/SearchItems/SearchItems.module.scss.js +14 -0
- package/dist/components/common/SearchItems/SearchItems.module.scss.js.map +1 -0
- package/dist/components/common/SidePanel/SidePanel.d.ts +12 -0
- package/dist/components/common/SidePanel/SidePanel.d.ts.map +1 -0
- package/dist/components/common/SidePanel/SidePanel.js +40 -0
- package/dist/components/common/SidePanel/SidePanel.js.map +1 -0
- package/dist/components/common/SidePanel/SidePanel.module.scss +217 -0
- package/dist/components/common/SidePanel/SidePanel.module.scss.js +26 -0
- package/dist/components/common/SidePanel/SidePanel.module.scss.js.map +1 -0
- package/dist/components/common/SortItems/SortItems.d.ts +10 -0
- package/dist/components/common/SortItems/SortItems.d.ts.map +1 -0
- package/dist/components/common/SortItems/SortItems.js +52 -0
- package/dist/components/common/SortItems/SortItems.js.map +1 -0
- package/dist/components/common/SortItems/SortItems.module.scss +53 -0
- package/dist/components/common/SortItems/SortItems.module.scss.js +16 -0
- package/dist/components/common/SortItems/SortItems.module.scss.js.map +1 -0
- package/dist/components/common/StatusLabel/StatusLabel.d.ts +7 -0
- package/dist/components/common/StatusLabel/StatusLabel.d.ts.map +1 -0
- package/dist/components/common/StatusLabel/StatusLabel.js +29 -0
- package/dist/components/common/StatusLabel/StatusLabel.js.map +1 -0
- package/dist/components/common/StatusLabel/StatusLabel.module.scss +0 -0
- package/dist/components/common/Tabs/Tabs.d.ts +32 -0
- package/dist/components/common/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/common/Tabs/Tabs.js +33 -0
- package/dist/components/common/Tabs/Tabs.js.map +1 -0
- package/dist/components/common/Tabs/Tabs.module.scss +43 -0
- package/dist/components/common/Tabs/Tabs.module.scss.js +15 -0
- package/dist/components/common/Tabs/Tabs.module.scss.js.map +1 -0
- package/dist/components/common/TagsFilter/TagsFilter.d.ts +7 -0
- package/dist/components/common/TagsFilter/TagsFilter.d.ts.map +1 -0
- package/dist/components/common/TagsFilter/TagsFilter.js +45 -0
- package/dist/components/common/TagsFilter/TagsFilter.js.map +1 -0
- package/dist/components/common/TagsFilter/TagsFilter.module.scss +59 -0
- package/dist/components/common/TagsFilter/TagsFilter.module.scss.js +18 -0
- package/dist/components/common/TagsFilter/TagsFilter.module.scss.js.map +1 -0
- package/dist/components/common/form/FormField/FormField.d.ts +14 -0
- package/dist/components/common/form/FormField/FormField.d.ts.map +1 -0
- package/dist/components/common/form/FormField/FormField.js +19 -0
- package/dist/components/common/form/FormField/FormField.js.map +1 -0
- package/dist/components/common/form/FormField/FormField.module.scss +32 -0
- package/dist/components/common/form/FormField/FormField.module.scss.js +18 -0
- package/dist/components/common/form/FormField/FormField.module.scss.js.map +1 -0
- package/dist/components/common/form/Input/Input.d.ts +21 -0
- package/dist/components/common/form/Input/Input.d.ts.map +1 -0
- package/dist/components/common/form/Input/Input.js +57 -0
- package/dist/components/common/form/Input/Input.js.map +1 -0
- package/dist/components/common/form/Input/Input.module.scss +71 -0
- package/dist/components/common/form/Input/Input.module.scss.js +22 -0
- package/dist/components/common/form/Input/Input.module.scss.js.map +1 -0
- package/dist/components/common/form/IntervalField/IntervalField.d.ts +14 -0
- package/dist/components/common/form/IntervalField/IntervalField.d.ts.map +1 -0
- package/dist/components/common/form/IntervalField/IntervalField.js +133 -0
- package/dist/components/common/form/IntervalField/IntervalField.js.map +1 -0
- package/dist/components/common/form/IntervalField/IntervalField.module.scss +47 -0
- package/dist/components/common/form/IntervalField/IntervalField.module.scss.js +18 -0
- package/dist/components/common/form/IntervalField/IntervalField.module.scss.js.map +1 -0
- package/dist/components/common/form/MultiSelect/MultiSelect.d.ts +26 -0
- package/dist/components/common/form/MultiSelect/MultiSelect.d.ts.map +1 -0
- package/dist/components/common/form/MultiSelect/MultiSelect.js +76 -0
- package/dist/components/common/form/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/common/form/MultiSelect/MultiSelect.module.scss +157 -0
- package/dist/components/common/form/MultiSelect/MultiSelect.module.scss.js +30 -0
- package/dist/components/common/form/MultiSelect/MultiSelect.module.scss.js.map +1 -0
- package/dist/components/common/form/NumberInput/NumberInput.d.ts +19 -0
- package/dist/components/common/form/NumberInput/NumberInput.d.ts.map +1 -0
- package/dist/components/common/form/NumberInput/NumberInput.js +63 -0
- package/dist/components/common/form/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/common/form/NumberInput/NumberInput.module.scss +102 -0
- package/dist/components/common/form/NumberInput/NumberInput.module.scss.js +22 -0
- package/dist/components/common/form/NumberInput/NumberInput.module.scss.js.map +1 -0
- package/dist/components/common/form/PasswordField/PasswordField.d.ts +19 -0
- package/dist/components/common/form/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/components/common/form/PasswordField/PasswordField.js +57 -0
- package/dist/components/common/form/PasswordField/PasswordField.js.map +1 -0
- package/dist/components/common/form/PasswordField/PasswordField.module.scss +78 -0
- package/dist/components/common/form/PasswordField/PasswordField.module.scss.js +24 -0
- package/dist/components/common/form/PasswordField/PasswordField.module.scss.js.map +1 -0
- package/dist/components/common/form/RadioIconSelect/RadioIconSelect.d.ts +20 -0
- package/dist/components/common/form/RadioIconSelect/RadioIconSelect.d.ts.map +1 -0
- package/dist/components/common/form/RadioIconSelect/RadioIconSelect.js +50 -0
- package/dist/components/common/form/RadioIconSelect/RadioIconSelect.js.map +1 -0
- package/dist/components/common/form/RadioIconSelect/RadioIconSelect.module.scss +104 -0
- package/dist/components/common/form/RadioIconSelect/RadioIconSelect.module.scss.js +26 -0
- package/dist/components/common/form/RadioIconSelect/RadioIconSelect.module.scss.js.map +1 -0
- package/dist/components/common/form/Select/Select.d.ts +27 -0
- package/dist/components/common/form/Select/Select.d.ts.map +1 -0
- package/dist/components/common/form/Select/Select.js +76 -0
- package/dist/components/common/form/Select/Select.js.map +1 -0
- package/dist/components/common/form/Select/Select.module.scss +193 -0
- package/dist/components/common/form/Select/Select.module.scss.js +40 -0
- package/dist/components/common/form/Select/Select.module.scss.js.map +1 -0
- package/dist/components/common/form/SizePicker/SizePicker.d.ts +13 -0
- package/dist/components/common/form/SizePicker/SizePicker.d.ts.map +1 -0
- package/dist/components/common/form/SizePicker/SizePicker.js +60 -0
- package/dist/components/common/form/SizePicker/SizePicker.js.map +1 -0
- package/dist/components/common/form/SizePicker/SizePicker.module.scss +82 -0
- package/dist/components/common/form/SizePicker/SizePicker.module.scss.js +20 -0
- package/dist/components/common/form/SizePicker/SizePicker.module.scss.js.map +1 -0
- package/dist/components/common/form/StoragePicker/StoragePicker.d.ts +18 -0
- package/dist/components/common/form/StoragePicker/StoragePicker.d.ts.map +1 -0
- package/dist/components/common/form/StoragePicker/StoragePicker.js +77 -0
- package/dist/components/common/form/StoragePicker/StoragePicker.js.map +1 -0
- package/dist/components/common/form/StoragePicker/StoragePicker.module.scss +114 -0
- package/dist/components/common/form/StoragePicker/StoragePicker.module.scss.js +16 -0
- package/dist/components/common/form/StoragePicker/StoragePicker.module.scss.js.map +1 -0
- package/dist/components/common/form/TagsInput/TagsInput.d.ts +13 -0
- package/dist/components/common/form/TagsInput/TagsInput.d.ts.map +1 -0
- package/dist/components/common/form/TagsInput/TagsInput.js +51 -0
- package/dist/components/common/form/TagsInput/TagsInput.js.map +1 -0
- package/dist/components/common/form/TagsInput/TagsInput.module.scss +54 -0
- package/dist/components/common/form/TagsInput/TagsInput.module.scss.js +14 -0
- package/dist/components/common/form/TagsInput/TagsInput.module.scss.js.map +1 -0
- package/dist/components/common/form/TimePicker/TimePicker.d.ts +10 -0
- package/dist/components/common/form/TimePicker/TimePicker.d.ts.map +1 -0
- package/dist/components/common/form/TimePicker/TimePicker.js +69 -0
- package/dist/components/common/form/TimePicker/TimePicker.js.map +1 -0
- package/dist/components/common/form/TimePicker/TimePicker.module.scss +73 -0
- package/dist/components/common/form/TimePicker/TimePicker.module.scss.js +28 -0
- package/dist/components/common/form/TimePicker/TimePicker.module.scss.js.map +1 -0
- package/dist/components/common/form/Toggle/Toggle.d.ts +13 -0
- package/dist/components/common/form/Toggle/Toggle.d.ts.map +1 -0
- package/dist/components/common/form/Toggle/Toggle.js +19 -0
- package/dist/components/common/form/Toggle/Toggle.js.map +1 -0
- package/dist/components/common/form/Toggle/Toggle.module.scss +68 -0
- package/dist/components/common/form/Toggle/Toggle.module.scss.js +12 -0
- package/dist/components/common/form/Toggle/Toggle.module.scss.js.map +1 -0
- package/dist/components/common/form/Tristate/Tristate.d.ts +17 -0
- package/dist/components/common/form/Tristate/Tristate.d.ts.map +1 -0
- package/dist/components/common/form/Tristate/Tristate.js +34 -0
- package/dist/components/common/form/Tristate/Tristate.js.map +1 -0
- package/dist/components/common/form/Tristate/Tristate.module.scss +67 -0
- package/dist/components/common/form/Tristate/Tristate.module.scss.js +18 -0
- package/dist/components/common/form/Tristate/Tristate.module.scss.js.map +1 -0
- package/dist/components/index.d.ts +100 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components.js +198 -0
- package/dist/components.js.map +1 -0
- package/dist/config/features.d.ts +5 -0
- package/dist/config/features.d.ts.map +1 -0
- package/dist/context/ComponentOverrideContext.d.ts +13 -0
- package/dist/context/ComponentOverrideContext.d.ts.map +1 -0
- package/dist/context/ComponentOverrideContext.js +9 -0
- package/dist/context/ComponentOverrideContext.js.map +1 -0
- package/dist/context/ThemeContext.d.ts +13 -0
- package/dist/context/ThemeContext.d.ts.map +1 -0
- package/dist/context/ThemeContext.js +38 -0
- package/dist/context/ThemeContext.js.map +1 -0
- package/dist/context/index.d.ts +6 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context.js +10 -0
- package/dist/context.js.map +1 -0
- package/dist/favicon.png +0 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/usePlanSingleActions.d.ts +28 -0
- package/dist/hooks/usePlanSingleActions.d.ts.map +1 -0
- package/dist/hooks/usePlanSingleActions.js +70 -0
- package/dist/hooks/usePlanSingleActions.js.map +1 -0
- package/dist/hooks/usePwaAutoUpdate.d.ts +6 -0
- package/dist/hooks/usePwaAutoUpdate.d.ts.map +1 -0
- package/dist/hooks/usePwaAutoUpdate.js +16 -0
- package/dist/hooks/usePwaAutoUpdate.js.map +1 -0
- package/dist/hooks.js +7 -0
- package/dist/hooks.js.map +1 -0
- package/dist/icons/icon-128x128.png +0 -0
- package/dist/icons/icon-144x144.png +0 -0
- package/dist/icons/icon-192x192.png +0 -0
- package/dist/icons/icon-512x512.png +0 -0
- package/dist/icons/icon-72x72.png +0 -0
- package/dist/icons/icon-96x96.png +0 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/providers/1fichier.png +0 -0
- package/dist/providers/arvan.png +0 -0
- package/dist/providers/azureBlob.png +0 -0
- package/dist/providers/azureFiles.png +0 -0
- package/dist/providers/b2.png +0 -0
- package/dist/providers/box.png +0 -0
- package/dist/providers/ceph.png +0 -0
- package/dist/providers/dreamobjects.png +0 -0
- package/dist/providers/drive.png +0 -0
- package/dist/providers/dropbox.png +0 -0
- package/dist/providers/files.png +0 -0
- package/dist/providers/ftp.png +0 -0
- package/dist/providers/gcs.png +0 -0
- package/dist/providers/gofile.png +0 -0
- package/dist/providers/gphotos.png +0 -0
- package/dist/providers/hdfs.png +0 -0
- package/dist/providers/hidrive.png +0 -0
- package/dist/providers/http.png +0 -0
- package/dist/providers/ibmcos.png +0 -0
- package/dist/providers/idrive.png +0 -0
- package/dist/providers/internetarchive.png +0 -0
- package/dist/providers/ionos.png +0 -0
- package/dist/providers/jottacloud.png +0 -0
- package/dist/providers/koofr.png +0 -0
- package/dist/providers/leviia.png +0 -0
- package/dist/providers/liara.png +0 -0
- package/dist/providers/linkbox.png +0 -0
- package/dist/providers/linode.png +0 -0
- package/dist/providers/local.png +0 -0
- package/dist/providers/lyvecloud.png +0 -0
- package/dist/providers/magalu.png +0 -0
- package/dist/providers/mailru.png +0 -0
- package/dist/providers/mega.png +0 -0
- package/dist/providers/minio.png +0 -0
- package/dist/providers/netstorage.png +0 -0
- package/dist/providers/obs.png +0 -0
- package/dist/providers/onedrive.png +0 -0
- package/dist/providers/opendrive.png +0 -0
- package/dist/providers/oracle.png +0 -0
- package/dist/providers/oss.png +0 -0
- package/dist/providers/outscale.png +0 -0
- package/dist/providers/pcloud.png +0 -0
- package/dist/providers/petabox.png +0 -0
- package/dist/providers/pikpak.png +0 -0
- package/dist/providers/pixeldrain.png +0 -0
- package/dist/providers/premiumizeme.png +0 -0
- package/dist/providers/proton.png +0 -0
- package/dist/providers/putio.png +0 -0
- package/dist/providers/qingstor.png +0 -0
- package/dist/providers/qiniu.png +0 -0
- package/dist/providers/quatrix.png +0 -0
- package/dist/providers/r2.png +0 -0
- package/dist/providers/rackcorp.png +0 -0
- package/dist/providers/rclone.png +0 -0
- package/dist/providers/s3.png +0 -0
- package/dist/providers/scaleway.png +0 -0
- package/dist/providers/seafile.png +0 -0
- package/dist/providers/seaweedfs.png +0 -0
- package/dist/providers/selectel.png +0 -0
- package/dist/providers/sftp.png +0 -0
- package/dist/providers/sharefile.png +0 -0
- package/dist/providers/sia.png +0 -0
- package/dist/providers/smb.png +0 -0
- package/dist/providers/spaces.png +0 -0
- package/dist/providers/storj.png +0 -0
- package/dist/providers/sugarsync.png +0 -0
- package/dist/providers/swift.png +0 -0
- package/dist/providers/synologyc2.png +0 -0
- package/dist/providers/tencent.png +0 -0
- package/dist/providers/ulozto.png +0 -0
- package/dist/providers/wasabi.png +0 -0
- package/dist/providers/webdav.png +0 -0
- package/dist/providers/yandex.png +0 -0
- package/dist/providers/zoho.png +0 -0
- package/dist/router.d.ts +2 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +40 -0
- package/dist/router.js.map +1 -0
- package/dist/routes/DeviceSingle/DeviceSingle.d.ts +3 -0
- package/dist/routes/DeviceSingle/DeviceSingle.d.ts.map +1 -0
- package/dist/routes/DeviceSingle/DeviceSingle.js +67 -0
- package/dist/routes/DeviceSingle/DeviceSingle.js.map +1 -0
- package/dist/routes/DeviceSingle/DeviceSingle.module.scss +105 -0
- package/dist/routes/DeviceSingle/DeviceSingle.module.scss.js +14 -0
- package/dist/routes/DeviceSingle/DeviceSingle.module.scss.js.map +1 -0
- package/dist/routes/Login/Login.d.ts +3 -0
- package/dist/routes/Login/Login.d.ts.map +1 -0
- package/dist/routes/Login/Login.js +72 -0
- package/dist/routes/Login/Login.js.map +1 -0
- package/dist/routes/Login/Login.module.scss +94 -0
- package/dist/routes/Login/Login.module.scss.js +20 -0
- package/dist/routes/Login/Login.module.scss.js.map +1 -0
- package/dist/routes/NotFoundRoute/NotFoundRoute.d.ts +3 -0
- package/dist/routes/NotFoundRoute/NotFoundRoute.d.ts.map +1 -0
- package/dist/routes/NotFoundRoute/NotFoundRoute.js +7 -0
- package/dist/routes/NotFoundRoute/NotFoundRoute.js.map +1 -0
- package/dist/routes/NotFoundRoute/NotFoundRoute.module.scss +0 -0
- package/dist/routes/PlanSingle/PlanSingle.d.ts +3 -0
- package/dist/routes/PlanSingle/PlanSingle.d.ts.map +1 -0
- package/dist/routes/PlanSingle/PlanSingle.js +172 -0
- package/dist/routes/PlanSingle/PlanSingle.js.map +1 -0
- package/dist/routes/PlanSingle/PlanSingle.module.scss +76 -0
- package/dist/routes/PlanSingle/PlanSingle.module.scss.js +20 -0
- package/dist/routes/PlanSingle/PlanSingle.module.scss.js.map +1 -0
- package/dist/routes/Plans/Plans.d.ts +3 -0
- package/dist/routes/Plans/Plans.d.ts.map +1 -0
- package/dist/routes/Plans/Plans.js +91 -0
- package/dist/routes/Plans/Plans.js.map +1 -0
- package/dist/routes/Plans/Plans.module.scss +29 -0
- package/dist/routes/Plans/Plans.module.scss.js +12 -0
- package/dist/routes/Plans/Plans.module.scss.js.map +1 -0
- package/dist/routes/Settings/Settings.d.ts +3 -0
- package/dist/routes/Settings/Settings.d.ts.map +1 -0
- package/dist/routes/Settings/Settings.js +89 -0
- package/dist/routes/Settings/Settings.js.map +1 -0
- package/dist/routes/Settings/Settings.module.scss +112 -0
- package/dist/routes/Settings/Settings.module.scss.js +20 -0
- package/dist/routes/Settings/Settings.module.scss.js.map +1 -0
- package/dist/routes/Sources/Sources.d.ts +7 -0
- package/dist/routes/Sources/Sources.d.ts.map +1 -0
- package/dist/routes/Sources/Sources.js +50 -0
- package/dist/routes/Sources/Sources.js.map +1 -0
- package/dist/routes/Sources/Sources.module.scss +29 -0
- package/dist/routes/Sources/Sources.module.scss.js +12 -0
- package/dist/routes/Sources/Sources.module.scss.js.map +1 -0
- package/dist/routes/Storages/Storages.d.ts +3 -0
- package/dist/routes/Storages/Storages.d.ts.map +1 -0
- package/dist/routes/Storages/Storages.js +63 -0
- package/dist/routes/Storages/Storages.js.map +1 -0
- package/dist/routes/Storages/Storages.module.scss +30 -0
- package/dist/routes/Storages/Storages.module.scss.js +12 -0
- package/dist/routes/Storages/Storages.module.scss.js.map +1 -0
- package/dist/routes/index.d.ts +9 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes.js +19 -0
- package/dist/routes.js.map +1 -0
- package/dist/screenshots/screenshot-desktop.png +0 -0
- package/dist/screenshots/screenshot-mobile.png +0 -0
- package/dist/services/backups.d.ts +53 -0
- package/dist/services/backups.d.ts.map +1 -0
- package/dist/services/backups.js +182 -0
- package/dist/services/backups.js.map +1 -0
- package/dist/services/devices.d.ts +33 -0
- package/dist/services/devices.d.ts.map +1 -0
- package/dist/services/devices.js +130 -0
- package/dist/services/devices.js.map +1 -0
- package/dist/services/index.d.ts +11 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/plans.d.ts +40 -0
- package/dist/services/plans.d.ts.map +1 -0
- package/dist/services/plans.js +307 -0
- package/dist/services/plans.js.map +1 -0
- package/dist/services/restores.d.ts +71 -0
- package/dist/services/restores.d.ts.map +1 -0
- package/dist/services/restores.js +204 -0
- package/dist/services/restores.js.map +1 -0
- package/dist/services/settings.d.ts +27 -0
- package/dist/services/settings.d.ts.map +1 -0
- package/dist/services/settings.js +124 -0
- package/dist/services/settings.js.map +1 -0
- package/dist/services/storage.d.ts +33 -0
- package/dist/services/storage.d.ts.map +1 -0
- package/dist/services/storage.js +147 -0
- package/dist/services/storage.js.map +1 -0
- package/dist/services/users.d.ts +12 -0
- package/dist/services/users.d.ts.map +1 -0
- package/dist/services/users.js +68 -0
- package/dist/services/users.js.map +1 -0
- package/dist/services.js +110 -0
- package/dist/services.js.map +1 -0
- package/dist/styles/core-frontend.css +1 -0
- package/dist/styles/fields.scss +49 -0
- package/dist/styles/global.scss +360 -0
- package/dist/styles/steps.scss +67 -0
- package/dist/utils/constants.d.ts +6 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +92 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/dummy.d.ts +2 -0
- package/dist/utils/dummy.d.ts.map +1 -0
- package/dist/utils/getIconNameforFile.d.ts +2 -0
- package/dist/utils/getIconNameforFile.d.ts.map +1 -0
- package/dist/utils/getIconNameforFile.js +71 -0
- package/dist/utils/getIconNameforFile.js.map +1 -0
- package/dist/utils/helpers.d.ts +36 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/helpers.js +176 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/plans.d.ts +5 -0
- package/dist/utils/plans.d.ts.map +1 -0
- package/dist/utils/plans.js +61 -0
- package/dist/utils/plans.js.map +1 -0
- package/dist/utils/progressHelpers.d.ts +7 -0
- package/dist/utils/progressHelpers.d.ts.map +1 -0
- package/dist/utils/progressHelpers.js +164 -0
- package/dist/utils/progressHelpers.js.map +1 -0
- package/dist/utils/restore.d.ts +5 -0
- package/dist/utils/restore.d.ts.map +1 -0
- package/dist/utils/restore.js +14 -0
- package/dist/utils/restore.js.map +1 -0
- package/dist/utils/storageProviders.d.ts +376 -0
- package/dist/utils/storageProviders.d.ts.map +1 -0
- package/dist/utils/storageProviders.js +377 -0
- package/dist/utils/storageProviders.js.map +1 -0
- package/dist/utils/supportedExtensions.d.ts +1797 -0
- package/dist/utils/supportedExtensions.d.ts.map +1 -0
- package/dist/utils/supportedExtensions.js +5471 -0
- package/dist/utils/supportedExtensions.js.map +1 -0
- package/dist/utils.js +48 -0
- package/dist/utils.js.map +1 -0
- package/package.json +142 -0
- package/src/@types/backups.ts +75 -0
- package/src/@types/devices.ts +239 -0
- package/src/@types/index.ts +11 -0
- package/src/@types/plans.ts +197 -0
- package/src/@types/restores.ts +115 -0
- package/src/@types/settings.ts +20 -0
- package/src/@types/storages.ts +30 -0
- package/src/@types/system.ts +11 -0
- package/src/assets/fileicons.css +6205 -0
- package/src/assets/fileicons.png +0 -0
- package/src/assets/fonts/Inter18pt-Bold.woff +0 -0
- package/src/assets/fonts/Inter18pt-Bold.woff2 +0 -0
- package/src/assets/fonts/Inter18pt-Regular.woff +0 -0
- package/src/assets/fonts/Inter18pt-Regular.woff2 +0 -0
- package/src/assets/fonts/Inter18pt-SemiBold.woff +0 -0
- package/src/assets/fonts/Inter18pt-SemiBold.woff2 +0 -0
- package/src/assets/fonts/fonts.css +29 -0
- package/src/components/App/App/App.module.scss +14 -0
- package/src/components/App/App/App.tsx +51 -0
- package/src/components/App/AppContent/AppContent.module.scss +12 -0
- package/src/components/App/AppContent/AppContent.tsx +14 -0
- package/src/components/App/Footer/Footer.module.scss +23 -0
- package/src/components/App/Footer/Footer.tsx +34 -0
- package/src/components/App/PageTitle/PageTitle.tsx +16 -0
- package/src/components/App/SideNav/SideNav.module.scss +58 -0
- package/src/components/App/SideNav/SideNav.tsx +106 -0
- package/src/components/Device/DeviceBackups/DeviceBackups.module.scss +142 -0
- package/src/components/Device/DeviceBackups/DeviceBackups.tsx +135 -0
- package/src/components/Device/DeviceCPU/DeviceCPU.tsx +60 -0
- package/src/components/Device/DeviceInfo/DeviceInfo.module.scss +214 -0
- package/src/components/Device/DeviceInfo/DeviceInfo.tsx +44 -0
- package/src/components/Device/DeviceItem/DeviceItem.module.scss +216 -0
- package/src/components/Device/DeviceItem/DeviceItem.tsx +94 -0
- package/src/components/Device/DeviceMemory/DeviceMemory.tsx +97 -0
- package/src/components/Device/DeviceNetworks/DeviceNetworks.tsx +48 -0
- package/src/components/Device/DeviceRcloneSettings/DeviceRcloneSettings.tsx +150 -0
- package/src/components/Device/DeviceResticSettings/DeviceResticSettings.tsx +59 -0
- package/src/components/Device/DeviceStorageDisks/DeviceStorageDisks.tsx +38 -0
- package/src/components/Device/DeviceStorageDrives/DeviceStorageDrives.tsx +51 -0
- package/src/components/Device/DeviceSystem/DeviceSystem.tsx +52 -0
- package/src/components/Device/EditDevice/EditDevice.module.scss +110 -0
- package/src/components/Device/EditDevice/EditDevice.tsx +154 -0
- package/src/components/Plan/AddPlan/AddPlan.module.scss +191 -0
- package/src/components/Plan/AddPlan/AddPlan.tsx +56 -0
- package/src/components/Plan/BackupEvents/BackupEvents.module.scss +189 -0
- package/src/components/Plan/BackupEvents/BackupEvents.tsx +113 -0
- package/src/components/Plan/BackupProgress/BackupProgress.module.scss +120 -0
- package/src/components/Plan/BackupProgress/BackupProgress.tsx +212 -0
- package/src/components/Plan/Backups/Backups.module.scss +210 -0
- package/src/components/Plan/Backups/Backups.tsx +295 -0
- package/src/components/Plan/EditPlan/EditPlan.module.scss +41 -0
- package/src/components/Plan/EditPlan/EditPlan.tsx +56 -0
- package/src/components/Plan/PlanBackups/PlanBackups.module.scss +58 -0
- package/src/components/Plan/PlanBackups/PlanBackups.tsx +55 -0
- package/src/components/Plan/PlanForm/PlanForm.module.scss +72 -0
- package/src/components/Plan/PlanForm/PlanForm.tsx +249 -0
- package/src/components/Plan/PlanForm/PlanFormNav.tsx +64 -0
- package/src/components/Plan/PlanHistory/PlanHistory.module.scss +44 -0
- package/src/components/Plan/PlanHistory/PlanHistory.tsx +65 -0
- package/src/components/Plan/PlanItems/PlanItem.module.scss +332 -0
- package/src/components/Plan/PlanItems/PlanItem.tsx +202 -0
- package/src/components/Plan/PlanLogs/PlanLogs.module.scss +0 -0
- package/src/components/Plan/PlanLogs/PlanLogs.tsx +25 -0
- package/src/components/Plan/PlanPendingBackup/PlanPendingBackup.module.scss +42 -0
- package/src/components/Plan/PlanPendingBackup/PlanPendingBackup.tsx +55 -0
- package/src/components/Plan/PlanProgress/PlanProgress.module.scss +19 -0
- package/src/components/Plan/PlanProgress/PlanProgress.tsx +75 -0
- package/src/components/Plan/PlanPruneModal/PlanPruneModal.tsx +59 -0
- package/src/components/Plan/PlanRemoveModal/PlanRemoveModal.module.scss +9 -0
- package/src/components/Plan/PlanRemoveModal/PlanRemoveModal.tsx +72 -0
- package/src/components/Plan/PlanSettings/PlanAdvancedSettings.tsx +115 -0
- package/src/components/Plan/PlanSettings/PlanGeneralSettings.tsx +53 -0
- package/src/components/Plan/PlanSettings/PlanNotificationSettings.tsx +78 -0
- package/src/components/Plan/PlanSettings/PlanPerformanceSettings.tsx +87 -0
- package/src/components/Plan/PlanSettings/PlanPruneSettings.tsx +104 -0
- package/src/components/Plan/PlanSettings/PlanScriptsSettings.tsx +290 -0
- package/src/components/Plan/PlanSettings/PlanSettings.module.scss +464 -0
- package/src/components/Plan/PlanSettings/PlanSourceSettings.tsx +56 -0
- package/src/components/Plan/PlanSettings/PlanStrategySettings.tsx +34 -0
- package/src/components/Plan/PlanSettings/PlanTypeSettings.tsx +34 -0
- package/src/components/Plan/PlanStats/PlanStats.module.scss +125 -0
- package/src/components/Plan/PlanStats/PlanStats.tsx +96 -0
- package/src/components/Plan/PlanUnlockModal/PlanUnlockModal.tsx +34 -0
- package/src/components/Plan/Restores/Restores.tsx +155 -0
- package/src/components/Restore/RestoreChangeViewer/RestoreChangeViewer.module.scss +71 -0
- package/src/components/Restore/RestoreChangeViewer/RestoreChangeViewer.tsx +37 -0
- package/src/components/Restore/RestoreFileSelector/RestoreFileSelector.module.scss +326 -0
- package/src/components/Restore/RestoreFileSelector/RestoreFileSelector.tsx +518 -0
- package/src/components/Restore/RestoreWizard/RestoreConfirmStep.tsx +105 -0
- package/src/components/Restore/RestoreWizard/RestoreFileSelectorStep.tsx +79 -0
- package/src/components/Restore/RestoreWizard/RestorePreviewStep.tsx +124 -0
- package/src/components/Restore/RestoreWizard/RestoreSettingsStep.tsx +171 -0
- package/src/components/Restore/RestoreWizard/RestoreWizard.module.scss +390 -0
- package/src/components/Restore/RestoreWizard/RestoreWizard.tsx +135 -0
- package/src/components/Restore/RestoredFileBrowser/RestoredFileBrowser.module.scss +299 -0
- package/src/components/Restore/RestoredFileBrowser/RestoredFileBrowser.tsx +329 -0
- package/src/components/Settings/AppLogs/AppLogs.tsx +23 -0
- package/src/components/Settings/GeneralSettings/GeneralSettings.module.scss +3 -0
- package/src/components/Settings/GeneralSettings/GeneralSettings.tsx +65 -0
- package/src/components/Settings/IntegrationSettings/IntegrationSettings.module.scss +38 -0
- package/src/components/Settings/IntegrationSettings/IntegrationSettings.tsx +62 -0
- package/src/components/Settings/IntegrationSettings/SMTPSettings.tsx +97 -0
- package/src/components/Skeleton/SkeletonItems.module.scss +162 -0
- package/src/components/Skeleton/SkeletonItems.tsx +33 -0
- package/src/components/Storage/AddStorage/AddStorage.module.scss +168 -0
- package/src/components/Storage/AddStorage/AddStorage.tsx +279 -0
- package/src/components/Storage/EditStorage/EditStorage.module.scss +0 -0
- package/src/components/Storage/EditStorage/EditStorage.tsx +213 -0
- package/src/components/Storage/StorageAuthSettings/StorageAuthSettings.tsx +120 -0
- package/src/components/Storage/StorageItem/StorageItem.module.scss +231 -0
- package/src/components/Storage/StorageItem/StorageItem.tsx +150 -0
- package/src/components/Storage/StorageSettings/StorageSettings.module.scss +29 -0
- package/src/components/Storage/StorageSettings/StorageSettings.tsx +176 -0
- package/src/components/common/ActionModal/ActionModal.module.scss +60 -0
- package/src/components/common/ActionModal/ActionModal.tsx +71 -0
- package/src/components/common/AnimatedWrapper/AnimatedWrapper.module.scss +88 -0
- package/src/components/common/AnimatedWrapper/AnimatedWrapper.tsx +66 -0
- package/src/components/common/Button/Button.module.scss +56 -0
- package/src/components/common/Button/Button.tsx +36 -0
- package/src/components/common/FileIcon/FileIcon.tsx +20 -0
- package/src/components/common/FileManager/FileManager.module.scss +196 -0
- package/src/components/common/FileManager/FileManager.tsx +251 -0
- package/src/components/common/FolderPicker/FolderPicker.module.scss +77 -0
- package/src/components/common/FolderPicker/FolderPicker.tsx +60 -0
- package/src/components/common/Icon/Icon.tsx +1494 -0
- package/src/components/common/ItemsLayout/ItemsLayout.module.scss +51 -0
- package/src/components/common/ItemsLayout/ItemsLayout.tsx +43 -0
- package/src/components/common/LogViewer/LogViewer.module.scss +188 -0
- package/src/components/common/LogViewer/LogViewer.tsx +161 -0
- package/src/components/common/Logo/Logo.tsx +19 -0
- package/src/components/common/Modal/Modal.module.scss +81 -0
- package/src/components/common/Modal/Modal.tsx +88 -0
- package/src/components/common/NotFound/NotFound.module.scss +36 -0
- package/src/components/common/NotFound/NotFound.tsx +22 -0
- package/src/components/common/PageHeader/PageHeader.module.scss +61 -0
- package/src/components/common/PageHeader/PageHeader.tsx +36 -0
- package/src/components/common/PathPicker/PathPicker.module.scss +278 -0
- package/src/components/common/PathPicker/PathPicker.tsx +270 -0
- package/src/components/common/SearchItems/SearchItems.module.scss +48 -0
- package/src/components/common/SearchItems/SearchItems.tsx +45 -0
- package/src/components/common/SidePanel/SidePanel.module.scss +217 -0
- package/src/components/common/SidePanel/SidePanel.tsx +68 -0
- package/src/components/common/SortItems/SortItems.module.scss +53 -0
- package/src/components/common/SortItems/SortItems.tsx +61 -0
- package/src/components/common/StatusLabel/StatusLabel.module.scss +0 -0
- package/src/components/common/StatusLabel/StatusLabel.tsx +36 -0
- package/src/components/common/Tabs/Tabs.module.scss +43 -0
- package/src/components/common/Tabs/Tabs.tsx +101 -0
- package/src/components/common/TagsFilter/TagsFilter.module.scss +59 -0
- package/src/components/common/TagsFilter/TagsFilter.tsx +52 -0
- package/src/components/common/form/FormField/FormField.module.scss +32 -0
- package/src/components/common/form/FormField/FormField.tsx +38 -0
- package/src/components/common/form/Input/Input.module.scss +71 -0
- package/src/components/common/form/Input/Input.tsx +72 -0
- package/src/components/common/form/IntervalField/IntervalField.module.scss +47 -0
- package/src/components/common/form/IntervalField/IntervalField.tsx +148 -0
- package/src/components/common/form/MultiSelect/MultiSelect.module.scss +157 -0
- package/src/components/common/form/MultiSelect/MultiSelect.tsx +132 -0
- package/src/components/common/form/NumberInput/NumberInput.module.scss +102 -0
- package/src/components/common/form/NumberInput/NumberInput.tsx +90 -0
- package/src/components/common/form/PasswordField/PasswordField.module.scss +78 -0
- package/src/components/common/form/PasswordField/PasswordField.tsx +73 -0
- package/src/components/common/form/RadioIconSelect/RadioIconSelect.module.scss +104 -0
- package/src/components/common/form/RadioIconSelect/RadioIconSelect.tsx +68 -0
- package/src/components/common/form/Select/Select.module.scss +193 -0
- package/src/components/common/form/Select/Select.tsx +123 -0
- package/src/components/common/form/SizePicker/SizePicker.module.scss +82 -0
- package/src/components/common/form/SizePicker/SizePicker.tsx +98 -0
- package/src/components/common/form/StoragePicker/StoragePicker.module.scss +114 -0
- package/src/components/common/form/StoragePicker/StoragePicker.tsx +106 -0
- package/src/components/common/form/TagsInput/TagsInput.module.scss +54 -0
- package/src/components/common/form/TagsInput/TagsInput.tsx +83 -0
- package/src/components/common/form/TimePicker/TimePicker.module.scss +73 -0
- package/src/components/common/form/TimePicker/TimePicker.tsx +99 -0
- package/src/components/common/form/Toggle/Toggle.module.scss +68 -0
- package/src/components/common/form/Toggle/Toggle.tsx +34 -0
- package/src/components/common/form/Tristate/Tristate.module.scss +67 -0
- package/src/components/common/form/Tristate/Tristate.tsx +48 -0
- package/src/components/index.ts +117 -0
- package/src/config/features.ts +4 -0
- package/src/context/ComponentOverrideContext.tsx +25 -0
- package/src/context/ThemeContext.tsx +68 -0
- package/src/context/index.ts +6 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/usePlanSingleActions.tsx +137 -0
- package/src/hooks/usePwaAutoUpdate.ts +33 -0
- package/src/index.ts +26 -0
- package/src/main.tsx +24 -0
- package/src/router.tsx +48 -0
- package/src/routes/DeviceSingle/DeviceSingle.module.scss +105 -0
- package/src/routes/DeviceSingle/DeviceSingle.tsx +86 -0
- package/src/routes/Login/Login.module.scss +94 -0
- package/src/routes/Login/Login.tsx +99 -0
- package/src/routes/NotFoundRoute/NotFoundRoute.module.scss +0 -0
- package/src/routes/NotFoundRoute/NotFoundRoute.tsx +7 -0
- package/src/routes/PlanSingle/PlanSingle.module.scss +76 -0
- package/src/routes/PlanSingle/PlanSingle.tsx +181 -0
- package/src/routes/Plans/Plans.module.scss +29 -0
- package/src/routes/Plans/Plans.tsx +128 -0
- package/src/routes/Settings/Settings.module.scss +112 -0
- package/src/routes/Settings/Settings.tsx +102 -0
- package/src/routes/Sources/Sources.module.scss +29 -0
- package/src/routes/Sources/Sources.tsx +86 -0
- package/src/routes/Storages/Storages.module.scss +30 -0
- package/src/routes/Storages/Storages.tsx +92 -0
- package/src/routes/index.ts +9 -0
- package/src/services/backups.ts +231 -0
- package/src/services/devices.ts +161 -0
- package/src/services/index.ts +11 -0
- package/src/services/plans.ts +393 -0
- package/src/services/restores.ts +261 -0
- package/src/services/settings.ts +163 -0
- package/src/services/storage.ts +201 -0
- package/src/services/users.ts +91 -0
- package/src/styles/fields.scss +49 -0
- package/src/styles/global.scss +360 -0
- package/src/styles/steps.scss +67 -0
- package/src/utils/constants.ts +89 -0
- package/src/utils/dummy.ts +0 -0
- package/src/utils/getIconNameforFile.ts +142 -0
- package/src/utils/helpers.ts +440 -0
- package/src/utils/index.ts +12 -0
- package/src/utils/plans.ts +78 -0
- package/src/utils/progressHelpers.ts +244 -0
- package/src/utils/restore.ts +28 -0
- package/src/utils/storageProviders.ts +374 -0
- package/src/utils/supportedExtensions.ts +5595 -0
- package/src/vite-env.d.ts +2 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { useQuery as d, useQueryClient as c, useMutation as r } from "@tanstack/react-query";
|
|
2
|
+
import { toast as l } from "react-toastify";
|
|
3
|
+
import { API_URL as s } from "../utils/constants.js";
|
|
4
|
+
async function g() {
|
|
5
|
+
const e = new URL(`${s}/plans`), o = await (await fetch(e.toString(), {
|
|
6
|
+
method: "GET",
|
|
7
|
+
credentials: "include"
|
|
8
|
+
})).json();
|
|
9
|
+
if (!o.success)
|
|
10
|
+
throw new Error(o.error);
|
|
11
|
+
return o;
|
|
12
|
+
}
|
|
13
|
+
function Q() {
|
|
14
|
+
return d({
|
|
15
|
+
queryKey: ["plans"],
|
|
16
|
+
queryFn: () => g(),
|
|
17
|
+
refetchOnMount: !0,
|
|
18
|
+
retry: !1
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
async function P(e) {
|
|
22
|
+
if (!e)
|
|
23
|
+
throw new Error("ID Not Provided.");
|
|
24
|
+
const n = new URL(`${s}/plans/${e}`), o = await fetch(n.toString(), {
|
|
25
|
+
method: "GET",
|
|
26
|
+
credentials: "include"
|
|
27
|
+
}), t = await o.json();
|
|
28
|
+
if (!t.success) {
|
|
29
|
+
const a = new Error(t.error);
|
|
30
|
+
throw a.status = o.status, a;
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
function b(e) {
|
|
35
|
+
return d({
|
|
36
|
+
queryKey: ["plan", e],
|
|
37
|
+
queryFn: () => P(e),
|
|
38
|
+
refetchOnMount: !0,
|
|
39
|
+
retry: !1,
|
|
40
|
+
staleTime: 0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
async function j(e) {
|
|
44
|
+
const n = new URL(`${s}/plans/${e}/logs`), o = await fetch(n.toString(), {
|
|
45
|
+
method: "GET",
|
|
46
|
+
credentials: "include"
|
|
47
|
+
}), t = await o.json();
|
|
48
|
+
if (!t.success) {
|
|
49
|
+
const a = new Error(t.error);
|
|
50
|
+
throw a.status = o.status, a;
|
|
51
|
+
}
|
|
52
|
+
return t;
|
|
53
|
+
}
|
|
54
|
+
function U(e) {
|
|
55
|
+
return d({
|
|
56
|
+
queryKey: ["planLogs", e],
|
|
57
|
+
queryFn: () => j(e),
|
|
58
|
+
refetchOnMount: !0,
|
|
59
|
+
retry: !1
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
async function E(e) {
|
|
63
|
+
var w, y;
|
|
64
|
+
const n = await fetch(`${s}/plans/${e}/logs/download`, {
|
|
65
|
+
method: "GET",
|
|
66
|
+
credentials: "include"
|
|
67
|
+
// headers: header,
|
|
68
|
+
});
|
|
69
|
+
if (!n.ok) {
|
|
70
|
+
const u = await n.json();
|
|
71
|
+
throw new Error(u.error);
|
|
72
|
+
}
|
|
73
|
+
const o = ((w = n.headers.get("content-disposition")) == null ? void 0 : w.split("filename=")[1]) || `plan-${e}.log`, t = (y = n.body) == null ? void 0 : y.getReader(), a = new ReadableStream({
|
|
74
|
+
async start(u) {
|
|
75
|
+
for (; ; ) {
|
|
76
|
+
const { done: h, value: m } = await t.read();
|
|
77
|
+
if (h) break;
|
|
78
|
+
u.enqueue(m);
|
|
79
|
+
}
|
|
80
|
+
u.close(), t.releaseLock();
|
|
81
|
+
}
|
|
82
|
+
}), f = await new Response(a).blob(), p = window.URL.createObjectURL(f), i = document.createElement("a");
|
|
83
|
+
i.href = p, i.download = o, document.body.appendChild(i), i.click(), i.remove(), window.URL.revokeObjectURL(p);
|
|
84
|
+
}
|
|
85
|
+
function A() {
|
|
86
|
+
return r({
|
|
87
|
+
mutationFn: E,
|
|
88
|
+
onSuccess: (e) => {
|
|
89
|
+
console.log("# Logs Downloaded! :", e);
|
|
90
|
+
},
|
|
91
|
+
onError: (e) => {
|
|
92
|
+
console.log("# Logs Download Failed! :", e);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
async function q(e) {
|
|
97
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" });
|
|
98
|
+
console.log("newPlan :", e);
|
|
99
|
+
const t = await (await fetch(`${s}/plans`, {
|
|
100
|
+
method: "POST",
|
|
101
|
+
credentials: "include",
|
|
102
|
+
headers: n,
|
|
103
|
+
body: JSON.stringify(e)
|
|
104
|
+
})).json();
|
|
105
|
+
if (!t.success)
|
|
106
|
+
throw new Error(t.error || t.result);
|
|
107
|
+
return t;
|
|
108
|
+
}
|
|
109
|
+
function B() {
|
|
110
|
+
const e = c();
|
|
111
|
+
return r({
|
|
112
|
+
mutationFn: q,
|
|
113
|
+
onSuccess: (n) => {
|
|
114
|
+
console.log("# Plan Created! :", n), e.invalidateQueries({ queryKey: ["plans"] });
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
async function S(e) {
|
|
119
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" });
|
|
120
|
+
console.log("newPlan :", e);
|
|
121
|
+
const t = await (await fetch(`${s}/plans/${e.id}`, {
|
|
122
|
+
method: "PUT",
|
|
123
|
+
credentials: "include",
|
|
124
|
+
headers: n,
|
|
125
|
+
body: JSON.stringify({ plan: e.data })
|
|
126
|
+
})).json();
|
|
127
|
+
if (console.log("data :", t), !t.success)
|
|
128
|
+
throw new Error(t.error);
|
|
129
|
+
return t;
|
|
130
|
+
}
|
|
131
|
+
function G() {
|
|
132
|
+
const e = c();
|
|
133
|
+
return r({
|
|
134
|
+
mutationFn: S,
|
|
135
|
+
onSuccess: (n) => {
|
|
136
|
+
var t;
|
|
137
|
+
console.log("# Plan Updated! :", n);
|
|
138
|
+
const o = (t = n == null ? void 0 : n.result) == null ? void 0 : t.id;
|
|
139
|
+
o && e.invalidateQueries({ queryKey: ["plan", o] }), e.invalidateQueries({ queryKey: ["plans"] });
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
async function k({ id: e, removeRemoteData: n }) {
|
|
144
|
+
const o = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), a = await (await fetch(`${s}/plans/${e}?removeData=${n}`, {
|
|
145
|
+
method: "DELETE",
|
|
146
|
+
credentials: "include",
|
|
147
|
+
headers: o
|
|
148
|
+
})).json();
|
|
149
|
+
if (!a.success)
|
|
150
|
+
throw new Error(a.error);
|
|
151
|
+
return a;
|
|
152
|
+
}
|
|
153
|
+
function D() {
|
|
154
|
+
const e = c();
|
|
155
|
+
return r({
|
|
156
|
+
mutationFn: k,
|
|
157
|
+
onSuccess: (n) => {
|
|
158
|
+
console.log("# Plan Removed! :", n), e.invalidateQueries({ queryKey: ["plans"] });
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
async function $(e) {
|
|
163
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), t = await (await fetch(`${s}/plans/${e}/action/backup`, {
|
|
164
|
+
method: "POST",
|
|
165
|
+
credentials: "include",
|
|
166
|
+
headers: n
|
|
167
|
+
})).json();
|
|
168
|
+
if (!t.success)
|
|
169
|
+
throw new Error(t.error);
|
|
170
|
+
return t;
|
|
171
|
+
}
|
|
172
|
+
function H() {
|
|
173
|
+
const e = c();
|
|
174
|
+
return r({
|
|
175
|
+
mutationFn: $,
|
|
176
|
+
onSuccess: (n, o) => {
|
|
177
|
+
console.log("# Backup Started! :", n, o), e.invalidateQueries({ queryKey: ["plan", o] }), e.invalidateQueries({ queryKey: ["plans"] });
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
async function v(e) {
|
|
182
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), t = await (await fetch(`${s}/plans/${e}/action/pause`, {
|
|
183
|
+
method: "POST",
|
|
184
|
+
credentials: "include",
|
|
185
|
+
headers: n
|
|
186
|
+
})).json();
|
|
187
|
+
if (!t.success)
|
|
188
|
+
throw new Error(t.error);
|
|
189
|
+
return t;
|
|
190
|
+
}
|
|
191
|
+
function M() {
|
|
192
|
+
const e = c();
|
|
193
|
+
return r({
|
|
194
|
+
mutationFn: v,
|
|
195
|
+
onSuccess: (n, o) => {
|
|
196
|
+
console.log("# Backup Paused! :", n, o), e.invalidateQueries({ queryKey: ["plan", o] }), e.invalidateQueries({ queryKey: ["plans"] });
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
async function C(e) {
|
|
201
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), t = await (await fetch(`${s}/plans/${e}/action/resume`, {
|
|
202
|
+
method: "POST",
|
|
203
|
+
credentials: "include",
|
|
204
|
+
headers: n
|
|
205
|
+
})).json();
|
|
206
|
+
if (!t.success)
|
|
207
|
+
throw new Error(t.error);
|
|
208
|
+
return t;
|
|
209
|
+
}
|
|
210
|
+
function N() {
|
|
211
|
+
const e = c();
|
|
212
|
+
return r({
|
|
213
|
+
mutationFn: C,
|
|
214
|
+
onSuccess: (n, o) => {
|
|
215
|
+
console.log("# Backup Resumed! :", n, o), e.invalidateQueries({ queryKey: ["plan", o] }), e.invalidateQueries({ queryKey: ["plans"] });
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
async function T(e) {
|
|
220
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), t = await (await fetch(`${s}/plans/${e}/action/prune`, {
|
|
221
|
+
method: "POST",
|
|
222
|
+
credentials: "include",
|
|
223
|
+
headers: n
|
|
224
|
+
})).json();
|
|
225
|
+
if (!t.success)
|
|
226
|
+
throw new Error(t.error);
|
|
227
|
+
return t;
|
|
228
|
+
}
|
|
229
|
+
function J() {
|
|
230
|
+
const e = c();
|
|
231
|
+
return r({
|
|
232
|
+
mutationFn: T,
|
|
233
|
+
onError: (n) => {
|
|
234
|
+
console.log("error :", n == null ? void 0 : n.message), l.error(n.message || "Error Removing Old Backups.");
|
|
235
|
+
},
|
|
236
|
+
onSuccess: (n, o) => {
|
|
237
|
+
console.log("# Backup Pruned! :", n, o), e.invalidateQueries({ queryKey: ["plan", o] }), l.success((n == null ? void 0 : n.message) || "Removed Old Backups Successfully!", { autoClose: 5e3 });
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
async function R(e) {
|
|
242
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), t = await (await fetch(`${s}/plans/${e}/action/unlock`, {
|
|
243
|
+
method: "POST",
|
|
244
|
+
credentials: "include",
|
|
245
|
+
headers: n
|
|
246
|
+
})).json();
|
|
247
|
+
if (!t.success)
|
|
248
|
+
throw new Error(t.error);
|
|
249
|
+
return t;
|
|
250
|
+
}
|
|
251
|
+
function x() {
|
|
252
|
+
const e = c();
|
|
253
|
+
return r({
|
|
254
|
+
mutationFn: R,
|
|
255
|
+
onError: (n) => {
|
|
256
|
+
console.log("error :", n == null ? void 0 : n.message), l.error(n.message || "Error Removing stale locks.");
|
|
257
|
+
},
|
|
258
|
+
onSuccess: (n, o) => {
|
|
259
|
+
console.log("# Backup Pruned! :", n, o), e.invalidateQueries({ queryKey: ["plan", o] }), l.success("Removed Stale locks Successfully!", { autoClose: 5e3 });
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
async function L(e) {
|
|
264
|
+
const n = new URL(`${s}/plans/${e}/checkactive`), t = await (await fetch(n.toString(), {
|
|
265
|
+
method: "GET",
|
|
266
|
+
credentials: "include"
|
|
267
|
+
})).json();
|
|
268
|
+
if (!t.success)
|
|
269
|
+
throw new Error(t.error);
|
|
270
|
+
return t;
|
|
271
|
+
}
|
|
272
|
+
function _() {
|
|
273
|
+
return r({
|
|
274
|
+
// queryKey: ['planActiveBackups-' + planId],
|
|
275
|
+
mutationFn: L
|
|
276
|
+
// refetchOnMount: true,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
export {
|
|
280
|
+
L as checkActiveBackups,
|
|
281
|
+
q as createPlan,
|
|
282
|
+
k as deletePlan,
|
|
283
|
+
E as downloadPlanLogs,
|
|
284
|
+
g as getAllPlans,
|
|
285
|
+
j as getPlanLogs,
|
|
286
|
+
P as getSinglePlan,
|
|
287
|
+
v as pausePlan,
|
|
288
|
+
$ as performBackup,
|
|
289
|
+
T as prunePlan,
|
|
290
|
+
C as resumePlan,
|
|
291
|
+
R as unlockPlan,
|
|
292
|
+
S as updatePlan,
|
|
293
|
+
_ as useCheckActiveBackups,
|
|
294
|
+
B as useCreatePlan,
|
|
295
|
+
D as useDeletePlan,
|
|
296
|
+
A as useGetDownloadLogs,
|
|
297
|
+
b as useGetPlan,
|
|
298
|
+
U as useGetPlanLogs,
|
|
299
|
+
Q as useGetPlans,
|
|
300
|
+
M as usePausePlan,
|
|
301
|
+
H as usePerformBackup,
|
|
302
|
+
J as usePrunePlan,
|
|
303
|
+
N as useResumePlan,
|
|
304
|
+
x as useUnlockPlan,
|
|
305
|
+
G as useUpdatePlan
|
|
306
|
+
};
|
|
307
|
+
//# sourceMappingURL=plans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plans.js","sources":["../../src/services/plans.ts"],"sourcesContent":["import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\r\nimport { toast } from 'react-toastify';\r\nimport { API_URL } from '../utils/constants';\r\nimport { NewPlanSettings, Plan } from '../@types/plans';\r\n\r\n// Get All Plans\r\nexport async function getAllPlans() {\r\n const url = new URL(`${API_URL}/plans`);\r\n\r\n const res = await fetch(url.toString(), {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useGetPlans() {\r\n return useQuery({\r\n queryKey: ['plans'],\r\n queryFn: () => getAllPlans(),\r\n refetchOnMount: true,\r\n retry: false,\r\n });\r\n}\r\n\r\n// Get Single Plan\r\nexport async function getSinglePlan(id: string) {\r\n if (!id) {\r\n throw new Error('ID Not Provided.');\r\n }\r\n const url = new URL(`${API_URL}/plans/${id}`);\r\n\r\n const res = await fetch(url.toString(), {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n const error = new Error(data.error) as Error & { status?: number };\r\n error.status = res.status;\r\n throw error;\r\n }\r\n return data;\r\n}\r\n\r\nexport function useGetPlan(id: string) {\r\n return useQuery({\r\n queryKey: ['plan', id],\r\n queryFn: () => getSinglePlan(id),\r\n refetchOnMount: true,\r\n retry: false,\r\n staleTime: 0,\r\n });\r\n}\r\n\r\n// Get Plan Logs\r\nexport async function getPlanLogs(planId: string) {\r\n const url = new URL(`${API_URL}/plans/${planId}/logs`);\r\n\r\n const res = await fetch(url.toString(), {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n const error = new Error(data.error) as Error & { status?: number };\r\n error.status = res.status;\r\n throw error;\r\n }\r\n return data;\r\n}\r\n\r\nexport function useGetPlanLogs(planId: string) {\r\n return useQuery({\r\n queryKey: ['planLogs', planId],\r\n queryFn: () => getPlanLogs(planId),\r\n refetchOnMount: true,\r\n retry: false,\r\n });\r\n}\r\n\r\n// Download Plan Logs\r\nexport async function downloadPlanLogs(id: string) {\r\n const res = await fetch(`${API_URL}/plans/${id}/logs/download`, {\r\n method: 'GET',\r\n credentials: 'include',\r\n // headers: header,\r\n });\r\n // Check if response is ok\r\n if (!res.ok) {\r\n const data = await res.json();\r\n throw new Error(data.error);\r\n }\r\n\r\n const filename = res.headers.get('content-disposition')?.split('filename=')[1] || `plan-${id}.log`;\r\n\r\n // Use streams API\r\n const reader = res.body?.getReader();\r\n const stream = new ReadableStream({\r\n async start(controller) {\r\n while (true) {\r\n const { done, value } = await reader!.read();\r\n if (done) break;\r\n controller.enqueue(value);\r\n }\r\n controller.close();\r\n reader!.releaseLock();\r\n },\r\n });\r\n\r\n // Create download from stream\r\n const blob = await new Response(stream).blob();\r\n const url = window.URL.createObjectURL(blob);\r\n const link = document.createElement('a');\r\n link.href = url;\r\n link.download = filename;\r\n document.body.appendChild(link);\r\n link.click();\r\n link.remove();\r\n window.URL.revokeObjectURL(url);\r\n}\r\n\r\nexport function useGetDownloadLogs() {\r\n return useMutation({\r\n mutationFn: downloadPlanLogs,\r\n onSuccess: (res) => {\r\n console.log('# Logs Downloaded! :', res);\r\n },\r\n onError: (res) => {\r\n console.log('# Logs Download Failed! :', res);\r\n },\r\n });\r\n}\r\n\r\n// Create New Plan\r\nexport async function createPlan(newPlan: NewPlanSettings) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n console.log('newPlan :', newPlan);\r\n const res = await fetch(`${API_URL}/plans`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n body: JSON.stringify(newPlan),\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error || data.result);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useCreatePlan() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: createPlan,\r\n onSuccess: (res) => {\r\n // TODO: Should Display a Notification Bubble.\r\n console.log('# Plan Created! :', res);\r\n queryClient.invalidateQueries({ queryKey: ['plans'] });\r\n },\r\n });\r\n}\r\n\r\n// UpdatePlan\r\nexport async function updatePlan(updatePayload: { id: string; data: Partial<Plan> }) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n console.log('newPlan :', updatePayload);\r\n const res = await fetch(`${API_URL}/plans/${updatePayload.id}`, {\r\n method: 'PUT',\r\n credentials: 'include',\r\n headers: header,\r\n body: JSON.stringify({ plan: updatePayload.data }),\r\n });\r\n const data = await res.json();\r\n console.log('data :', data);\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useUpdatePlan() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: updatePlan,\r\n onSuccess: (res) => {\r\n // TODO: Should Display a Notification Bubble.\r\n console.log('# Plan Updated! :', res);\r\n const planID = res?.result?.id;\r\n if (planID) {\r\n queryClient.invalidateQueries({ queryKey: ['plan', planID] });\r\n }\r\n\r\n queryClient.invalidateQueries({ queryKey: ['plans'] });\r\n },\r\n });\r\n}\r\n\r\n// Remove Plan\r\nexport async function deletePlan({ id, removeRemoteData }: { id: string; removeRemoteData: boolean }) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/plans/${id}?removeData=${removeRemoteData}`, {\r\n method: 'DELETE',\r\n credentials: 'include',\r\n headers: header,\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useDeletePlan() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: deletePlan,\r\n onSuccess: (res) => {\r\n console.log('# Plan Removed! :', res);\r\n queryClient.invalidateQueries({ queryKey: ['plans'] });\r\n },\r\n });\r\n}\r\n\r\n// Perform Backup\r\nexport async function performBackup(id: string) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/plans/${id}/action/backup`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function usePerformBackup() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: performBackup,\r\n onSuccess: (res, planId) => {\r\n console.log('# Backup Started! :', res, planId);\r\n queryClient.invalidateQueries({ queryKey: ['plan', planId] });\r\n queryClient.invalidateQueries({ queryKey: ['plans'] });\r\n },\r\n });\r\n}\r\n\r\n// Pause Backup\r\nexport async function pausePlan(id: string) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/plans/${id}/action/pause`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function usePausePlan() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: pausePlan,\r\n onSuccess: (res, planId) => {\r\n console.log('# Backup Paused! :', res, planId);\r\n queryClient.invalidateQueries({ queryKey: ['plan', planId] });\r\n queryClient.invalidateQueries({ queryKey: ['plans'] });\r\n },\r\n });\r\n}\r\n\r\n// Resume Backup\r\nexport async function resumePlan(id: string) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/plans/${id}/action/resume`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useResumePlan() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: resumePlan,\r\n onSuccess: (res, planId) => {\r\n console.log('# Backup Resumed! :', res, planId);\r\n queryClient.invalidateQueries({ queryKey: ['plan', planId] });\r\n queryClient.invalidateQueries({ queryKey: ['plans'] });\r\n },\r\n });\r\n}\r\n\r\n// Prune Backup Plan\r\nexport async function prunePlan(id: string) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/plans/${id}/action/prune`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function usePrunePlan() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: prunePlan,\r\n onError: (error: Error) => {\r\n console.log('error :', error?.message);\r\n toast.error(error.message || `Error Removing Old Backups.`);\r\n },\r\n onSuccess: (res, planId) => {\r\n console.log('# Backup Pruned! :', res, planId);\r\n queryClient.invalidateQueries({ queryKey: ['plan', planId] });\r\n toast.success(res?.message || `Removed Old Backups Successfully!`, { autoClose: 5000 });\r\n },\r\n });\r\n}\r\n\r\n// Unlock Backup Plan\r\nexport async function unlockPlan(id: string) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/plans/${id}/action/unlock`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useUnlockPlan() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: unlockPlan,\r\n onError: (error: Error) => {\r\n console.log('error :', error?.message);\r\n toast.error(error.message || `Error Removing stale locks.`);\r\n },\r\n onSuccess: (res, planId) => {\r\n console.log('# Backup Pruned! :', res, planId);\r\n queryClient.invalidateQueries({ queryKey: ['plan', planId] });\r\n toast.success(`Removed Stale locks Successfully!`, { autoClose: 5000 });\r\n },\r\n });\r\n}\r\n\r\n// Get Backup Progress\r\nexport async function checkActiveBackups(planId: string) {\r\n const url = new URL(`${API_URL}/plans/${planId}/checkactive`);\r\n\r\n const res = await fetch(url.toString(), {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useCheckActiveBackups() {\r\n return useMutation({\r\n // queryKey: ['planActiveBackups-' + planId],\r\n mutationFn: checkActiveBackups,\r\n // refetchOnMount: true,\r\n });\r\n}\r\n"],"names":["getAllPlans","url","API_URL","data","useGetPlans","useQuery","getSinglePlan","id","res","error","useGetPlan","getPlanLogs","planId","useGetPlanLogs","downloadPlanLogs","filename","_a","reader","_b","stream","controller","done","value","blob","link","useGetDownloadLogs","useMutation","createPlan","newPlan","header","useCreatePlan","queryClient","useQueryClient","updatePlan","updatePayload","useUpdatePlan","planID","deletePlan","removeRemoteData","useDeletePlan","performBackup","usePerformBackup","pausePlan","usePausePlan","resumePlan","useResumePlan","prunePlan","usePrunePlan","toast","unlockPlan","useUnlockPlan","checkActiveBackups","useCheckActiveBackups"],"mappings":";;;AAMA,eAAsBA,IAAc;AACjC,QAAMC,IAAM,IAAI,IAAI,GAAGC,CAAO,QAAQ,GAMhCC,IAAO,OAJD,MAAM,MAAMF,EAAI,YAAY;AAAA,IACrC,QAAQ;AAAA,IACR,aAAa;AAAA,EAAA,CACf,GACsB,KAAA;AACvB,MAAI,CAACE,EAAK;AACP,UAAM,IAAI,MAAMA,EAAK,KAAK;AAE7B,SAAOA;AACV;AAEO,SAASC,IAAc;AAC3B,SAAOC,EAAS;A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promise<any>;
|
|
2
|
+
export declare function useGetRestores(): import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
3
|
+
export declare function getSingleRestore(id: string): Promise<any>;
|
|
4
|
+
export declare function useGetRestore(id: string): import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
5
|
+
export declare function deleteRestore(id: string): Promise<any>;
|
|
6
|
+
export declare function useDeleteRestore(): import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
|
|
7
|
+
export declare function restoreBackup({ backupId, planId, target, overwrite, includes, excludes, deleteOption, }: {
|
|
8
|
+
backupId: string;
|
|
9
|
+
planId: string;
|
|
10
|
+
target: string;
|
|
11
|
+
overwrite: string;
|
|
12
|
+
includes?: string[];
|
|
13
|
+
excludes?: string[];
|
|
14
|
+
deleteOption: boolean;
|
|
15
|
+
}): Promise<any>;
|
|
16
|
+
export declare function useRestoreBackup(): import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
17
|
+
backupId: string;
|
|
18
|
+
planId: string;
|
|
19
|
+
target: string;
|
|
20
|
+
overwrite: string;
|
|
21
|
+
includes?: string[];
|
|
22
|
+
excludes?: string[];
|
|
23
|
+
deleteOption: boolean;
|
|
24
|
+
}, unknown>;
|
|
25
|
+
export declare function getDryRestoreStats({ backupId, planId, target, overwrite, includes, excludes, deleteOption, }: {
|
|
26
|
+
backupId: string;
|
|
27
|
+
planId: string;
|
|
28
|
+
target: string;
|
|
29
|
+
overwrite: string;
|
|
30
|
+
includes?: string[];
|
|
31
|
+
excludes?: string[];
|
|
32
|
+
deleteOption?: boolean;
|
|
33
|
+
}): Promise<any>;
|
|
34
|
+
export declare function useGetDryRestoreStats(): import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
35
|
+
backupId: string;
|
|
36
|
+
planId: string;
|
|
37
|
+
target: string;
|
|
38
|
+
overwrite: string;
|
|
39
|
+
includes?: string[];
|
|
40
|
+
excludes?: string[];
|
|
41
|
+
deleteOption?: boolean;
|
|
42
|
+
}, unknown>;
|
|
43
|
+
export declare function getRestoreStats(id: string): Promise<any>;
|
|
44
|
+
export declare function useGetRestoreStats(id: string): import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
45
|
+
export declare function cancelRestore({ planId, restoreId }: {
|
|
46
|
+
planId: string;
|
|
47
|
+
restoreId: string;
|
|
48
|
+
}): Promise<any>;
|
|
49
|
+
export declare function useCancelRestore(): import("@tanstack/react-query").UseMutationResult<any, Error, {
|
|
50
|
+
planId: string;
|
|
51
|
+
restoreId: string;
|
|
52
|
+
}, unknown>;
|
|
53
|
+
export declare function getRestoreProgress({ id, sourceId, sourceType, planId }: {
|
|
54
|
+
id: string;
|
|
55
|
+
sourceId: string;
|
|
56
|
+
sourceType: string;
|
|
57
|
+
planId: string;
|
|
58
|
+
}): Promise<any>;
|
|
59
|
+
export declare function useGetRestoreProgress(payload: {
|
|
60
|
+
id: string;
|
|
61
|
+
sourceId: string;
|
|
62
|
+
sourceType: string;
|
|
63
|
+
planId: string;
|
|
64
|
+
}): import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
65
|
+
export declare function useGetRestoreProgressOnce(payload: {
|
|
66
|
+
id: string;
|
|
67
|
+
sourceId: string;
|
|
68
|
+
sourceType: string;
|
|
69
|
+
planId: string;
|
|
70
|
+
}): import("@tanstack/react-query").UseQueryResult<any, Error>;
|
|
71
|
+
//# sourceMappingURL=restores.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restores.d.ts","sourceRoot":"","sources":["../../src/services/restores.ts"],"names":[],"mappings":"AAKA,wBAAsB,cAAc,iBAYnC;AAED,wBAAgB,cAAc,+DAO7B;AAGD,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,MAAM,gBAehD;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,8DAQvC;AAGD,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,gBAY7C;AAED,wBAAgB,gBAAgB,mFAO/B;AAGD,wBAAsB,aAAa,CAAC,EACjC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AM;eAAa,MAAM;YAoB7F;AAGD,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,gBASlJ;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,8DA0BlH;AACD,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,8DAOtH"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { useMutation as d, useQueryClient as f, useQuery as l } from "@tanstack/react-query";
|
|
2
|
+
import { toast as w } from "react-toastify";
|
|
3
|
+
import { API_URL as o } from "../utils/constants.js";
|
|
4
|
+
async function p() {
|
|
5
|
+
const e = new URL(`${o}/restores`), s = await (await fetch(e.toString(), {
|
|
6
|
+
method: "GET",
|
|
7
|
+
credentials: "include"
|
|
8
|
+
})).json();
|
|
9
|
+
if (!s.success)
|
|
10
|
+
throw new Error(s.error);
|
|
11
|
+
return s;
|
|
12
|
+
}
|
|
13
|
+
function I() {
|
|
14
|
+
return l({
|
|
15
|
+
queryKey: ["restores"],
|
|
16
|
+
queryFn: () => p(),
|
|
17
|
+
refetchOnMount: !0,
|
|
18
|
+
retry: !1
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
async function R(e) {
|
|
22
|
+
if (!e)
|
|
23
|
+
throw new Error("ID Not Provided.");
|
|
24
|
+
const r = new URL(`${o}/restores/${e}`), t = await (await fetch(r.toString(), {
|
|
25
|
+
method: "GET",
|
|
26
|
+
credentials: "include"
|
|
27
|
+
})).json();
|
|
28
|
+
if (!t.success)
|
|
29
|
+
throw new Error(t.error);
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
function F(e) {
|
|
33
|
+
return l({
|
|
34
|
+
queryKey: ["restore", e],
|
|
35
|
+
queryFn: () => R(e),
|
|
36
|
+
refetchOnMount: !0,
|
|
37
|
+
retry: !1,
|
|
38
|
+
staleTime: 0
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async function m(e) {
|
|
42
|
+
const r = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), t = await (await fetch(`${o}/restores/${e}`, {
|
|
43
|
+
method: "DELETE",
|
|
44
|
+
credentials: "include",
|
|
45
|
+
headers: r
|
|
46
|
+
})).json();
|
|
47
|
+
if (!t.success)
|
|
48
|
+
throw new Error(t.error);
|
|
49
|
+
return t;
|
|
50
|
+
}
|
|
51
|
+
function O() {
|
|
52
|
+
return d({
|
|
53
|
+
mutationFn: m,
|
|
54
|
+
onSuccess: (e) => {
|
|
55
|
+
console.log("# Restore Removed! :", e);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async function g({
|
|
60
|
+
backupId: e,
|
|
61
|
+
planId: r,
|
|
62
|
+
target: s,
|
|
63
|
+
overwrite: t,
|
|
64
|
+
includes: u,
|
|
65
|
+
excludes: c,
|
|
66
|
+
deleteOption: a
|
|
67
|
+
}) {
|
|
68
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), i = await (await fetch(`${o}/restores/action/restore`, {
|
|
69
|
+
method: "POST",
|
|
70
|
+
credentials: "include",
|
|
71
|
+
headers: n,
|
|
72
|
+
body: JSON.stringify({ backupId: e, planId: r, target: s, overwrite: t, includes: u, excludes: c, delete: a })
|
|
73
|
+
})).json();
|
|
74
|
+
if (!i.success)
|
|
75
|
+
throw new Error(i.error);
|
|
76
|
+
return i;
|
|
77
|
+
}
|
|
78
|
+
function G() {
|
|
79
|
+
const e = f();
|
|
80
|
+
return d({
|
|
81
|
+
mutationFn: g,
|
|
82
|
+
onSuccess: (r, s) => {
|
|
83
|
+
console.log("# Backup Restored! :", r, s), e.invalidateQueries({ queryKey: ["plan", s.planId] });
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
async function S({
|
|
88
|
+
backupId: e,
|
|
89
|
+
planId: r,
|
|
90
|
+
target: s,
|
|
91
|
+
overwrite: t,
|
|
92
|
+
includes: u,
|
|
93
|
+
excludes: c,
|
|
94
|
+
deleteOption: a
|
|
95
|
+
}) {
|
|
96
|
+
const n = new Headers({ "Content-Type": "application/json", Accept: "application/json" }), i = await (await fetch(`${o}/restores/action/dryrestore`, {
|
|
97
|
+
method: "POST",
|
|
98
|
+
credentials: "include",
|
|
99
|
+
headers: n,
|
|
100
|
+
body: JSON.stringify({ backupId: e, planId: r, target: s, overwrite: t, includes: u, excludes: c, delete: a })
|
|
101
|
+
})).json();
|
|
102
|
+
if (!i.success)
|
|
103
|
+
throw new Error(i.error);
|
|
104
|
+
return i;
|
|
105
|
+
}
|
|
106
|
+
function P() {
|
|
107
|
+
return d({
|
|
108
|
+
mutationFn: S,
|
|
109
|
+
onSuccess: (e, r) => {
|
|
110
|
+
console.log("# Backup Restore Stats! :", e, r);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
async function $(e) {
|
|
115
|
+
if (!e)
|
|
116
|
+
throw new Error("ID Not Provided.");
|
|
117
|
+
const s = await (await fetch(`${o}/restores/${e}/stats`, {
|
|
118
|
+
method: "GET",
|
|
119
|
+
credentials: "include"
|
|
120
|
+
})).json();
|
|
121
|
+
if (!s.success)
|
|
122
|
+
throw new Error(s.error);
|
|
123
|
+
return s;
|
|
124
|
+
}
|
|
125
|
+
function C(e) {
|
|
126
|
+
return l({
|
|
127
|
+
queryKey: ["restore-stats", e],
|
|
128
|
+
queryFn: () => $(e),
|
|
129
|
+
refetchOnMount: !0,
|
|
130
|
+
retry: !1,
|
|
131
|
+
staleTime: 0
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
async function E({ planId: e, restoreId: r }) {
|
|
135
|
+
const t = await (await fetch(`${o}/restores/${r}/action/cancel?planId=${e}`, {
|
|
136
|
+
method: "POST",
|
|
137
|
+
credentials: "include"
|
|
138
|
+
// headers: header,
|
|
139
|
+
})).json();
|
|
140
|
+
if (!t.success)
|
|
141
|
+
throw new Error(t.error);
|
|
142
|
+
return t;
|
|
143
|
+
}
|
|
144
|
+
function v() {
|
|
145
|
+
return d({
|
|
146
|
+
mutationFn: E,
|
|
147
|
+
onSuccess: (e, r) => {
|
|
148
|
+
console.log("res :", r, e);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
async function y({ id: e, sourceId: r, sourceType: s, planId: t }) {
|
|
153
|
+
const u = new URL(`${o}/restores/${e}/progress?sourceId=${r}&sourceType=${s}&planId=${t}`);
|
|
154
|
+
return await (await fetch(u.toString(), {
|
|
155
|
+
method: "GET",
|
|
156
|
+
credentials: "include"
|
|
157
|
+
})).json();
|
|
158
|
+
}
|
|
159
|
+
function K(e) {
|
|
160
|
+
const r = f();
|
|
161
|
+
return l({
|
|
162
|
+
queryKey: ["progress-restore", e.id],
|
|
163
|
+
queryFn: () => y(e),
|
|
164
|
+
refetchOnMount: !0,
|
|
165
|
+
retry: !1,
|
|
166
|
+
refetchInterval(s) {
|
|
167
|
+
var c, a;
|
|
168
|
+
const t = (c = s.state) == null ? void 0 : c.data;
|
|
169
|
+
if ((a = t == null ? void 0 : t.events) == null ? void 0 : a.some((n) => n.phase === "finished" && n.completed === !0)) {
|
|
170
|
+
const n = (t == null ? void 0 : t.planId) || e.planId;
|
|
171
|
+
return n && (console.log("Invalidate Plan and Reload It :", n), r.invalidateQueries({ queryKey: ["plan", n] })), w.success("Restoration Complete!"), !1;
|
|
172
|
+
}
|
|
173
|
+
return 1e3;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function M(e) {
|
|
178
|
+
return l({
|
|
179
|
+
queryKey: ["progress-restore", e.id],
|
|
180
|
+
queryFn: () => y(e),
|
|
181
|
+
refetchOnMount: !0,
|
|
182
|
+
retry: !1
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
export {
|
|
186
|
+
E as cancelRestore,
|
|
187
|
+
m as deleteRestore,
|
|
188
|
+
p as getAllRestores,
|
|
189
|
+
S as getDryRestoreStats,
|
|
190
|
+
y as getRestoreProgress,
|
|
191
|
+
$ as getRestoreStats,
|
|
192
|
+
R as getSingleRestore,
|
|
193
|
+
g as restoreBackup,
|
|
194
|
+
v as useCancelRestore,
|
|
195
|
+
O as useDeleteRestore,
|
|
196
|
+
P as useGetDryRestoreStats,
|
|
197
|
+
F as useGetRestore,
|
|
198
|
+
K as useGetRestoreProgress,
|
|
199
|
+
M as useGetRestoreProgressOnce,
|
|
200
|
+
C as useGetRestoreStats,
|
|
201
|
+
I as useGetRestores,
|
|
202
|
+
G as useRestoreBackup
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=restores.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restores.js","sources":["../../src/services/restores.ts"],"sourcesContent":["import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\r\nimport { toast } from 'react-toastify';\r\nimport { API_URL } from '../utils/constants';\r\n\r\n// Get All Restores\r\nexport async function getAllRestores() {\r\n const url = new URL(`${API_URL}/restores`);\r\n\r\n const res = await fetch(url.toString(), {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useGetRestores() {\r\n return useQuery({\r\n queryKey: ['restores'],\r\n queryFn: () => getAllRestores(),\r\n refetchOnMount: true,\r\n retry: false,\r\n });\r\n}\r\n\r\n// Get Single Restore\r\nexport async function getSingleRestore(id: string) {\r\n if (!id) {\r\n throw new Error('ID Not Provided.');\r\n }\r\n const url = new URL(`${API_URL}/restores/${id}`);\r\n\r\n const res = await fetch(url.toString(), {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useGetRestore(id: string) {\r\n return useQuery({\r\n queryKey: ['restore', id],\r\n queryFn: () => getSingleRestore(id),\r\n refetchOnMount: true,\r\n retry: false,\r\n staleTime: 0,\r\n });\r\n}\r\n\r\n// Remove Restore\r\nexport async function deleteRestore(id: string) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/restores/${id}`, {\r\n method: 'DELETE',\r\n credentials: 'include',\r\n headers: header,\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useDeleteRestore() {\r\n return useMutation({\r\n mutationFn: deleteRestore,\r\n onSuccess: (res) => {\r\n console.log('# Restore Removed! :', res);\r\n },\r\n });\r\n}\r\n\r\n// Restore Backup\r\nexport async function restoreBackup({\r\n backupId,\r\n planId,\r\n target,\r\n overwrite,\r\n includes,\r\n excludes,\r\n deleteOption,\r\n}: {\r\n backupId: string;\r\n planId: string;\r\n target: string;\r\n overwrite: string;\r\n includes?: string[];\r\n excludes?: string[];\r\n deleteOption: boolean;\r\n}) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/restores/action/restore`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n body: JSON.stringify({ backupId, planId, target, overwrite, includes, excludes, delete: deleteOption }),\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useRestoreBackup() {\r\n const queryClient = useQueryClient();\r\n return useMutation({\r\n mutationFn: restoreBackup,\r\n onSuccess: (res, payload) => {\r\n console.log('# Backup Restored! :', res, payload);\r\n queryClient.invalidateQueries({ queryKey: ['plan', payload.planId] });\r\n },\r\n });\r\n}\r\n\r\n// DRY Restore Backup\r\nexport async function getDryRestoreStats({\r\n backupId,\r\n planId,\r\n target,\r\n overwrite,\r\n includes,\r\n excludes,\r\n deleteOption,\r\n}: {\r\n backupId: string;\r\n planId: string;\r\n target: string;\r\n overwrite: string;\r\n includes?: string[];\r\n excludes?: string[];\r\n deleteOption?: boolean;\r\n}) {\r\n const header = new Headers({ 'Content-Type': 'application/json', Accept: 'application/json' });\r\n const res = await fetch(`${API_URL}/restores/action/dryrestore`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n headers: header,\r\n body: JSON.stringify({ backupId, planId, target, overwrite, includes, excludes, delete: deleteOption }),\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useGetDryRestoreStats() {\r\n return useMutation({\r\n mutationFn: getDryRestoreStats,\r\n onSuccess: (res, payload) => {\r\n console.log('# Backup Restore Stats! :', res, payload);\r\n },\r\n });\r\n}\r\n\r\n// Get Restore Stats\r\nexport async function getRestoreStats(id: string) {\r\n if (!id) {\r\n throw new Error('ID Not Provided.');\r\n }\r\n\r\n const res = await fetch(`${API_URL}/restores/${id}/stats`, {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\n\r\nexport function useGetRestoreStats(id: string) {\r\n return useQuery({\r\n queryKey: ['restore-stats', id],\r\n queryFn: () => getRestoreStats(id),\r\n refetchOnMount: true,\r\n retry: false,\r\n staleTime: 0,\r\n });\r\n}\r\n\r\n// Cancel Restore\r\nexport async function cancelRestore({ planId, restoreId }: { planId: string; restoreId: string }) {\r\n const res = await fetch(`${API_URL}/restores/${restoreId}/action/cancel?planId=${planId}`, {\r\n method: 'POST',\r\n credentials: 'include',\r\n // headers: header,\r\n });\r\n // Check if response is ok\r\n const data = await res.json();\r\n if (!data.success) {\r\n throw new Error(data.error);\r\n }\r\n return data;\r\n}\r\nexport function useCancelRestore() {\r\n return useMutation({\r\n mutationFn: cancelRestore,\r\n onSuccess: (res, payload) => {\r\n console.log('res :', payload, res);\r\n },\r\n });\r\n}\r\n\r\n// Get Backup Progress\r\nexport async function getRestoreProgress({ id, sourceId, sourceType, planId }: { id: string; sourceId: string; sourceType: string; planId: string }) {\r\n const url = new URL(`${API_URL}/restores/${id}/progress?sourceId=${sourceId}&sourceType=${sourceType}&planId=${planId}`);\r\n\r\n const res = await fetch(url.toString(), {\r\n method: 'GET',\r\n credentials: 'include',\r\n });\r\n const data = await res.json();\r\n return data;\r\n}\r\n\r\nexport function useGetRestoreProgress(payload: { id: string; sourceId: string; sourceType: string; planId: string }) {\r\n const queryClient = useQueryClient();\r\n return useQuery({\r\n queryKey: ['progress-restore', payload.id],\r\n queryFn: () => getRestoreProgress(payload),\r\n refetchOnMount: true,\r\n retry: false,\r\n refetchInterval(query) {\r\n const progressData = query.state?.data;\r\n\r\n // Check if backup is finished by looking for a \"finished\" phase event\r\n const isFinished = progressData?.events?.some((event: any) => event.phase === 'finished' && event.completed === true);\r\n\r\n if (isFinished) {\r\n const planId = progressData?.planId || payload.planId;\r\n if (planId) {\r\n console.log('Invalidate Plan and Reload It :', planId);\r\n queryClient.invalidateQueries({ queryKey: ['plan', planId] });\r\n }\r\n toast.success('Restoration Complete!');\r\n return false;\r\n }\r\n\r\n return 1000;\r\n },\r\n });\r\n}\r\nexport function useGetRestoreProgressOnce(payload: { id: string; sourceId: string; sourceType: string; planId: string }) {\r\n return useQuery({\r\n queryKey: ['progress-restore', payload.id],\r\n queryFn: () => getRestoreProgress(payload),\r\n refetchOnMount: true,\r\n retry: false,\r\n });\r\n}\r\n"],"names":["getAllRestores","url","API_URL","data","useGetRestores","useQuery","getSingleRestore","id","useGetRestore","deleteRestore","header","useDeleteRestore","useMutation","res","restoreBackup","backupId","planId","target","overwrite","includes","excludes","deleteOption","useRestoreBackup","queryClient","useQueryClient","payload","getDryRestoreStats","useGetDryRestoreStats","getRestoreStats","useGetRestoreStats","cancelRestore","restoreId","useCancelRestore","getRestoreProgress","sourceId","sourceType","useGetRestoreProgress","query","progressData","_a","_b","event","toast","useGetRestoreProgressOnce"],"mappings":";;;AAKA,eAAsBA,IAAiB;AACpC,QAAMC,IAAM,IAAI,IAAI,GAAGC,CAAO,WAAW,GAMnCC,IAAO,OAJD,MAAM,MAAMF,EAAI,YAAY;AAAA,IACrC,QAAQ;AAAA,IACR,aAAa;AAAA,EAAA,CACf,GACsB,KAAA;AACvB,MAAI,CAACE,EAAK;AACP,UAAM,IAAI,MAAMA,EAAK,KAAK;AAE7B,SAAOA;AACV;AAEO,SAASC,IAAiB;AAC9B,SAAOC,EAAS;AAAA,IACb,UAAU,CAAC,UAAU;AAAA,IACrB,SAAS,MAAML,EAAA;AAAA,IACf,gBAAgB;AAAA,IAChB,OAAO;AAAA,EAAA,CACT;AACJ;AAGA,eAAsBM,EAAiBC,GAAY;AAChD,MAAI,CAACA;AACF,UAAM,IAAI,MAAM,kBAAkB;AAErC,QAAMN,IAAM,IAAI,IAAI,GAAGC,CAAO,aAAaK,CAAE,EAAE,GAMzCJ,IAAO,OAJD,MAAM,MAAMF,EAAI,YAAY;AAAA,IACrC,QAAQ;AAAA,IACR,aAAa;AAAA,EAAA,CACf,GACsB,KAAA;AACvB,MAAI,CAACE,EAAK;AACP,UAAM,IAAI,MAAMA,EAAK,KAAK;AAE7B,SAAOA;AACV;AAEO,SAASK,EAAcD,GAAY;AACvC,SAAOF,EAAS;AAAA,IACb,UAAU,CAAC,WAAWE,CAAE;AAAA,IACxB,SAAS,MAAMD,EAAiBC,CAAE;AAAA,IAClC,gBAAgB;AAAA,IAChB,OAAO;AAAA,IACP,WAAW;AAAA,EAAA,CACb;AACJ;AAGA,eA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