@plutonhq/core-frontend 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/@types/backups.d.ts +26 -0
- package/dist-lib/@types/backups.d.ts.map +1 -1
- package/dist-lib/@types/devices.d.ts +7 -0
- package/dist-lib/@types/devices.d.ts.map +1 -1
- package/dist-lib/@types/plans.d.ts +21 -1
- package/dist-lib/@types/plans.d.ts.map +1 -1
- package/dist-lib/@types/restores.d.ts +2 -0
- package/dist-lib/@types/restores.d.ts.map +1 -1
- package/dist-lib/components/Device/DeviceBackups/DeviceBackups.d.ts +3 -2
- package/dist-lib/components/Device/DeviceBackups/DeviceBackups.d.ts.map +1 -1
- package/dist-lib/components/Device/DeviceBackups/DeviceBackups.js +73 -85
- package/dist-lib/components/Device/DeviceBackups/DeviceBackups.js.map +1 -1
- package/dist-lib/components/Plan/BackupEvents/BackupEvents.d.ts.map +1 -1
- package/dist-lib/components/Plan/BackupEvents/BackupEvents.js +88 -50
- package/dist-lib/components/Plan/BackupEvents/BackupEvents.js.map +1 -1
- package/dist-lib/components/Plan/BackupEvents/BackupEvents.module.scss.js +70 -38
- package/dist-lib/components/Plan/BackupEvents/BackupEvents.module.scss.js.map +1 -1
- package/dist-lib/components/Plan/BackupProgress/BackupProgress.d.ts.map +1 -1
- package/dist-lib/components/Plan/BackupProgress/BackupProgress.js +166 -123
- package/dist-lib/components/Plan/BackupProgress/BackupProgress.js.map +1 -1
- package/dist-lib/components/Plan/BackupProgress/BackupProgress.module.scss.js +64 -30
- package/dist-lib/components/Plan/BackupProgress/BackupProgress.module.scss.js.map +1 -1
- package/dist-lib/components/Plan/Backups/Backups.d.ts +8 -1
- package/dist-lib/components/Plan/Backups/Backups.d.ts.map +1 -1
- package/dist-lib/components/Plan/Backups/Backups.js +154 -125
- package/dist-lib/components/Plan/Backups/Backups.js.map +1 -1
- package/dist-lib/components/Plan/EditPlan/EditPlan.d.ts.map +1 -1
- package/dist-lib/components/Plan/EditPlan/EditPlan.js +11 -10
- package/dist-lib/components/Plan/EditPlan/EditPlan.js.map +1 -1
- package/dist-lib/components/Plan/Mirrors/MirrorDetails.d.ts +12 -0
- package/dist-lib/components/Plan/Mirrors/MirrorDetails.d.ts.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorDetails.js +68 -0
- package/dist-lib/components/Plan/Mirrors/MirrorDetails.js.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorDetails.module.scss.js +26 -0
- package/dist-lib/components/Plan/Mirrors/MirrorDetails.module.scss.js.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStatusBadge.d.ts +11 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStatusBadge.d.ts.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStatusBadge.js +38 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStatusBadge.js.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStatusBadge.module.scss.js +16 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStatusBadge.module.scss.js.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelector.d.ts +14 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelector.d.ts.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelector.js +54 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelector.js.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelector.module.scss.js +26 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelector.module.scss.js.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelectorModal.d.ts +15 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelectorModal.d.ts.map +1 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelectorModal.js +34 -0
- package/dist-lib/components/Plan/Mirrors/MirrorStorageSelectorModal.js.map +1 -0
- package/dist-lib/components/Plan/PlanBackups/PlanBackups.d.ts.map +1 -1
- package/dist-lib/components/Plan/PlanBackups/PlanBackups.js +20 -17
- package/dist-lib/components/Plan/PlanBackups/PlanBackups.js.map +1 -1
- package/dist-lib/components/Plan/PlanForm/PlanForm.d.ts +2 -1
- package/dist-lib/components/Plan/PlanForm/PlanForm.d.ts.map +1 -1
- package/dist-lib/components/Plan/PlanForm/PlanForm.js +85 -58
- package/dist-lib/components/Plan/PlanForm/PlanForm.js.map +1 -1
- package/dist-lib/components/Plan/PlanItems/PlanItem.d.ts.map +1 -1
- package/dist-lib/components/Plan/PlanItems/PlanItem.js +58 -59
- package/dist-lib/components/Plan/PlanItems/PlanItem.js.map +1 -1
- package/dist-lib/components/Plan/PlanRemoveModal/PlanRemoveModal.js +8 -8
- package/dist-lib/components/Plan/PlanRemoveModal/PlanRemoveModal.js.map +1 -1
- package/dist-lib/components/Plan/PlanSettings/PlanReplicationSettings.d.ts +14 -0
- package/dist-lib/components/Plan/PlanSettings/PlanReplicationSettings.d.ts.map +1 -0
- package/dist-lib/components/Plan/PlanSettings/PlanReplicationSettings.js +290 -0
- package/dist-lib/components/Plan/PlanSettings/PlanReplicationSettings.js.map +1 -0
- package/dist-lib/components/Plan/PlanSettings/PlanReplicationSettings.module.scss.js +26 -0
- package/dist-lib/components/Plan/PlanSettings/PlanReplicationSettings.module.scss.js.map +1 -0
- package/dist-lib/components/Plan/PlanStats/PlanStats.d.ts.map +1 -1
- package/dist-lib/components/Plan/PlanStats/PlanStats.js +41 -42
- package/dist-lib/components/Plan/PlanStats/PlanStats.js.map +1 -1
- package/dist-lib/components/Plan/PlanStats/PlanStats.module.scss.js +5 -5
- package/dist-lib/components/Plan/PlanStorageInfo/PlanStorageInfo.d.ts +15 -0
- package/dist-lib/components/Plan/PlanStorageInfo/PlanStorageInfo.d.ts.map +1 -0
- package/dist-lib/components/Plan/PlanStorageInfo/PlanStorageInfo.js +69 -0
- package/dist-lib/components/Plan/PlanStorageInfo/PlanStorageInfo.js.map +1 -0
- package/dist-lib/components/Plan/PlanStorageInfo/PlanStorageInfo.module.scss.js +16 -0
- package/dist-lib/components/Plan/PlanStorageInfo/PlanStorageInfo.module.scss.js.map +1 -0
- package/dist-lib/components/Restore/RestoreWizard/RestoreConfirmStep.d.ts.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestoreConfirmStep.js +36 -34
- package/dist-lib/components/Restore/RestoreWizard/RestoreConfirmStep.js.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestorePreviewStep.d.ts.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestorePreviewStep.js +7 -5
- package/dist-lib/components/Restore/RestoreWizard/RestorePreviewStep.js.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestoreSettingsStep.d.ts +12 -4
- package/dist-lib/components/Restore/RestoreWizard/RestoreSettingsStep.d.ts.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestoreSettingsStep.js +44 -32
- package/dist-lib/components/Restore/RestoreWizard/RestoreSettingsStep.js.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestoreWizard.d.ts +5 -1
- package/dist-lib/components/Restore/RestoreWizard/RestoreWizard.d.ts.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestoreWizard.js +48 -44
- package/dist-lib/components/Restore/RestoreWizard/RestoreWizard.js.map +1 -1
- package/dist-lib/components/Restore/RestoreWizard/RestoreWizard.module.scss.js +32 -32
- package/dist-lib/components/Settings/GeneralSettings/GeneralSettings.js +14 -14
- package/dist-lib/components/Settings/GeneralSettings/GeneralSettings.js.map +1 -1
- package/dist-lib/components/Settings/IntegrationSettings/IntegrationSettings.d.ts.map +1 -1
- package/dist-lib/components/Settings/IntegrationSettings/IntegrationSettings.js +28 -19
- package/dist-lib/components/Settings/IntegrationSettings/IntegrationSettings.js.map +1 -1
- package/dist-lib/components/common/Icon/Icon.d.ts.map +1 -1
- package/dist-lib/components/common/Icon/Icon.js +11 -0
- package/dist-lib/components/common/Icon/Icon.js.map +1 -1
- package/dist-lib/components/common/PageHeader/PageHeader.module.scss.js +6 -6
- package/dist-lib/components/index.d.ts +4 -0
- package/dist-lib/components/index.d.ts.map +1 -1
- package/dist-lib/components.js +86 -78
- package/dist-lib/components.js.map +1 -1
- package/dist-lib/hooks/usePwaAutoUpdate.d.ts +11 -2
- package/dist-lib/hooks/usePwaAutoUpdate.d.ts.map +1 -1
- package/dist-lib/hooks/usePwaAutoUpdate.js +32 -10
- package/dist-lib/hooks/usePwaAutoUpdate.js.map +1 -1
- package/dist-lib/router.d.ts.map +1 -1
- package/dist-lib/router.js +46 -35
- package/dist-lib/router.js.map +1 -1
- package/dist-lib/routes/DeviceSingle/DeviceSingle.d.ts.map +1 -1
- package/dist-lib/routes/DeviceSingle/DeviceSingle.js +40 -40
- package/dist-lib/routes/DeviceSingle/DeviceSingle.js.map +1 -1
- package/dist-lib/services/backups.d.ts +15 -2
- package/dist-lib/services/backups.d.ts.map +1 -1
- package/dist-lib/services/backups.js +119 -100
- package/dist-lib/services/backups.js.map +1 -1
- package/dist-lib/services/plans.d.ts +14 -0
- package/dist-lib/services/plans.d.ts.map +1 -1
- package/dist-lib/services/plans.js +160 -129
- package/dist-lib/services/plans.js.map +1 -1
- package/dist-lib/services/restores.d.ts +10 -2
- package/dist-lib/services/restores.d.ts.map +1 -1
- package/dist-lib/services/restores.js +61 -57
- package/dist-lib/services/restores.js.map +1 -1
- package/dist-lib/services/users.d.ts.map +1 -1
- package/dist-lib/services/users.js +32 -32
- package/dist-lib/services/users.js.map +1 -1
- package/dist-lib/services.js +107 -103
- package/dist-lib/styles/core-frontend.css +1 -1
- package/dist-lib/utils/progressHelpers.d.ts +12 -1
- package/dist-lib/utils/progressHelpers.d.ts.map +1 -1
- package/dist-lib/utils/progressHelpers.js +121 -63
- package/dist-lib/utils/progressHelpers.js.map +1 -1
- package/dist-lib/utils.js +29 -28
- package/package.json +1 -1
- package/src/@types/backups.ts +28 -0
- package/src/@types/devices.ts +8 -0
- package/src/@types/plans.ts +23 -1
- package/src/@types/restores.ts +2 -0
- package/src/components/Device/DeviceBackups/DeviceBackups.tsx +11 -36
- package/src/components/Plan/BackupEvents/BackupEvents.module.scss +65 -0
- package/src/components/Plan/BackupEvents/BackupEvents.tsx +65 -4
- package/src/components/Plan/BackupProgress/BackupProgress.module.scss +121 -3
- package/src/components/Plan/BackupProgress/BackupProgress.tsx +149 -71
- package/src/components/Plan/Backups/Backups.tsx +52 -4
- package/src/components/Plan/EditPlan/EditPlan.tsx +1 -0
- package/src/components/Plan/Mirrors/MirrorDetails.module.scss +76 -0
- package/src/components/Plan/Mirrors/MirrorDetails.tsx +100 -0
- package/src/components/Plan/Mirrors/MirrorStatusBadge.module.scss +25 -0
- package/src/components/Plan/Mirrors/MirrorStatusBadge.tsx +65 -0
- package/src/components/Plan/Mirrors/MirrorStorageSelector.module.scss +97 -0
- package/src/components/Plan/Mirrors/MirrorStorageSelector.tsx +70 -0
- package/src/components/Plan/Mirrors/MirrorStorageSelectorModal.tsx +40 -0
- package/src/components/Plan/PlanBackups/PlanBackups.tsx +4 -1
- package/src/components/Plan/PlanForm/PlanForm.tsx +30 -3
- package/src/components/Plan/PlanItems/PlanItem.tsx +3 -3
- package/src/components/Plan/PlanRemoveModal/PlanRemoveModal.tsx +1 -1
- package/src/components/Plan/PlanSettings/PlanReplicationSettings.module.scss +105 -0
- package/src/components/Plan/PlanSettings/PlanReplicationSettings.tsx +334 -0
- package/src/components/Plan/PlanStats/PlanStats.module.scss +1 -1
- package/src/components/Plan/PlanStats/PlanStats.tsx +8 -8
- package/src/components/Plan/PlanStorageInfo/PlanStorageInfo.module.scss +43 -0
- package/src/components/Plan/PlanStorageInfo/PlanStorageInfo.tsx +83 -0
- package/src/components/Restore/RestoreWizard/RestoreConfirmStep.tsx +2 -0
- package/src/components/Restore/RestoreWizard/RestorePreviewStep.tsx +2 -0
- package/src/components/Restore/RestoreWizard/RestoreSettingsStep.tsx +36 -13
- package/src/components/Restore/RestoreWizard/RestoreWizard.module.scss +4 -0
- package/src/components/Restore/RestoreWizard/RestoreWizard.tsx +9 -1
- package/src/components/Settings/GeneralSettings/GeneralSettings.tsx +1 -1
- package/src/components/Settings/IntegrationSettings/IntegrationSettings.tsx +9 -2
- package/src/components/common/Icon/Icon.tsx +10 -1
- package/src/components/common/PageHeader/PageHeader.module.scss +3 -0
- package/src/components/index.ts +6 -0
- package/src/hooks/usePwaAutoUpdate.ts +51 -11
- package/src/router.tsx +26 -17
- package/src/routes/DeviceSingle/DeviceSingle.tsx +3 -3
- package/src/services/backups.ts +32 -9
- package/src/services/plans.ts +45 -0
- package/src/services/restores.ts +10 -2
- package/src/services/users.ts +14 -5
- package/src/utils/progressHelpers.ts +85 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
2
|
-
header:
|
|
3
|
-
headerTitle:
|
|
1
|
+
const e = "_header_SxiJX", t = "_headerTitle_DQ1gh", o = "_rightSection_e3u8x", n = "_button_JCJF6", h = {
|
|
2
|
+
header: e,
|
|
3
|
+
headerTitle: t,
|
|
4
4
|
rightSection: o,
|
|
5
5
|
button: n
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
n as button,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
h as default,
|
|
10
|
+
e as header,
|
|
11
|
+
t as headerTitle,
|
|
12
12
|
o as rightSection
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=PageHeader.module.scss.js.map
|
|
@@ -78,6 +78,10 @@ export { default as PlanStrategySettings } from './Plan/PlanSettings/PlanStrateg
|
|
|
78
78
|
export { default as PlanTypeSettings } from './Plan/PlanSettings/PlanTypeSettings';
|
|
79
79
|
export { default as PlanStats } from './Plan/PlanStats/PlanStats';
|
|
80
80
|
export { default as PlanUnlockModal } from './Plan/PlanUnlockModal/PlanUnlockModal';
|
|
81
|
+
export { default as MirrorStatusBadge } from './Plan/Mirrors/MirrorStatusBadge';
|
|
82
|
+
export { default as MirrorStorageSelector } from './Plan/Mirrors/MirrorStorageSelector';
|
|
83
|
+
export { default as MirrorStorageSelectorModal } from './Plan/Mirrors/MirrorStorageSelectorModal';
|
|
84
|
+
export { default as PlanReplicationSettings } from './Plan/PlanSettings/PlanReplicationSettings';
|
|
81
85
|
export { default as PlanRestores } from './Plan/Restores/Restores';
|
|
82
86
|
export { default as RestoreChangeViewer } from './Restore/RestoreChangeViewer/RestoreChangeViewer';
|
|
83
87
|
export { default as RestoredFileBrowser } from './Restore/RestoredFileBrowser/RestoredFileBrowser';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kCAAkC,C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AAO,IAAI,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAGjF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAGtF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC"}
|
package/dist-lib/components.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { default as a } from "./components/App/App/App.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
2
|
+
import { default as o } from "./components/App/AppContent/AppContent.js";
|
|
3
|
+
import { default as l } from "./components/App/Footer/Footer.js";
|
|
4
4
|
import { default as d } from "./components/App/PageTitle/PageTitle.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as u } from "./components/App/SideNav/SideNav.js";
|
|
6
6
|
import { default as x } from "./components/common/ActionModal/ActionModal.js";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
7
|
+
import { default as n } from "./components/common/AnimatedWrapper/AnimatedWrapper.js";
|
|
8
|
+
import { default as g } from "./components/common/Button/Button.js";
|
|
9
9
|
import { default as c } from "./components/common/FileIcon/FileIcon.js";
|
|
10
10
|
import { FileManager as I } from "./components/common/FileManager/FileManager.js";
|
|
11
11
|
import { default as F } from "./components/common/FolderPicker/FolderPicker.js";
|
|
12
12
|
import { default as R } from "./components/common/Icon/Icon.js";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as T } from "./components/common/ItemsLayout/ItemsLayout.js";
|
|
14
14
|
import { default as B } from "./components/common/Logo/Logo.js";
|
|
15
15
|
import { default as b } from "./components/common/LogViewer/LogViewer.js";
|
|
16
16
|
import { default as y } from "./components/common/Modal/Modal.js";
|
|
@@ -24,19 +24,19 @@ import { default as K } from "./components/common/StatusLabel/StatusLabel.js";
|
|
|
24
24
|
import { Tab as Q, TabList as X, TabPanel as Y, default as Z } from "./components/common/Tabs/Tabs.js";
|
|
25
25
|
import { default as $ } from "./components/common/TagsFilter/TagsFilter.js";
|
|
26
26
|
import { default as te } from "./components/common/form/FormField/FormField.js";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as re } from "./components/common/form/Input/Input.js";
|
|
28
28
|
import { default as fe } from "./components/common/form/IntervalField/IntervalField.js";
|
|
29
|
-
import { default as
|
|
29
|
+
import { default as se } from "./components/common/form/MultiSelect/MultiSelect.js";
|
|
30
30
|
import { default as pe } from "./components/common/form/NumberInput/NumberInput.js";
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
31
|
+
import { default as me } from "./components/common/form/PasswordField/PasswordField.js";
|
|
32
|
+
import { default as ie } from "./components/common/form/RadioIconSelect/RadioIconSelect.js";
|
|
33
33
|
import { default as Se } from "./components/common/form/Select/Select.js";
|
|
34
|
-
import { default as
|
|
34
|
+
import { default as Pe } from "./components/common/form/SizePicker/SizePicker.js";
|
|
35
35
|
import { default as ve } from "./components/common/form/StoragePicker/StoragePicker.js";
|
|
36
36
|
import { default as ke } from "./components/common/form/TagsInput/TagsInput.js";
|
|
37
37
|
import { default as De } from "./components/common/form/TimePicker/TimePicker.js";
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
38
|
+
import { default as Me } from "./components/common/form/Toggle/Toggle.js";
|
|
39
|
+
import { default as Ae } from "./components/common/form/Tristate/Tristate.js";
|
|
40
40
|
import { default as Le } from "./components/Device/DeviceBackups/DeviceBackups.js";
|
|
41
41
|
import { default as we } from "./components/Device/DeviceCPU/DeviceCPU.js";
|
|
42
42
|
import { default as Ne } from "./components/Device/DeviceInfo/DeviceInfo.js";
|
|
@@ -51,19 +51,19 @@ import { default as Xe } from "./components/Device/DeviceSystem/DeviceSystem.js"
|
|
|
51
51
|
import { default as Ze } from "./components/Device/EditDevice/EditDevice.js";
|
|
52
52
|
import { default as $e } from "./components/Plan/AddPlan/AddPlan.js";
|
|
53
53
|
import { default as tt } from "./components/Plan/BackupEvents/BackupEvents.js";
|
|
54
|
-
import { default as
|
|
54
|
+
import { default as rt } from "./components/Plan/BackupProgress/BackupProgress.js";
|
|
55
55
|
import { default as ft } from "./components/Plan/Backups/Backups.js";
|
|
56
|
-
import { default as
|
|
56
|
+
import { default as st } from "./components/Plan/EditPlan/EditPlan.js";
|
|
57
57
|
import { default as pt } from "./components/Plan/PlanBackups/PlanBackups.js";
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
58
|
+
import { default as mt } from "./components/Plan/PlanForm/PlanForm.js";
|
|
59
|
+
import { default as it } from "./components/Plan/PlanForm/PlanFormNav.js";
|
|
60
60
|
import { default as St } from "./components/Plan/PlanHistory/PlanHistory.js";
|
|
61
|
-
import { default as
|
|
61
|
+
import { default as Pt } from "./components/Plan/PlanItems/PlanItem.js";
|
|
62
62
|
import { default as vt } from "./components/Plan/PlanLogs/PlanLogs.js";
|
|
63
63
|
import { default as kt } from "./components/Plan/PlanPendingBackup/PlanPendingBackup.js";
|
|
64
64
|
import { default as Dt } from "./components/Plan/PlanProgress/PlanProgress.js";
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
65
|
+
import { default as Mt } from "./components/Plan/PlanPruneModal/PlanPruneModal.js";
|
|
66
|
+
import { default as At } from "./components/Plan/PlanRemoveModal/PlanRemoveModal.js";
|
|
67
67
|
import { default as Lt } from "./components/Plan/PlanSettings/PlanAdvancedSettings.js";
|
|
68
68
|
import { default as wt } from "./components/Plan/PlanSettings/PlanGeneralSettings.js";
|
|
69
69
|
import { default as Nt } from "./components/Plan/PlanSettings/PlanNotificationSettings.js";
|
|
@@ -75,37 +75,41 @@ import { default as jt } from "./components/Plan/PlanSettings/PlanStrategySettin
|
|
|
75
75
|
import { default as Jt } from "./components/Plan/PlanSettings/PlanTypeSettings.js";
|
|
76
76
|
import { default as Ot } from "./components/Plan/PlanStats/PlanStats.js";
|
|
77
77
|
import { default as Xt } from "./components/Plan/PlanUnlockModal/PlanUnlockModal.js";
|
|
78
|
-
import { default as Zt } from "./components/Plan/
|
|
79
|
-
import { default as $t } from "./components/
|
|
80
|
-
import { default as ta } from "./components/
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as fa } from "./components/
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as pa } from "./components/Restore/
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as Sa } from "./components/
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as va } from "./components/
|
|
90
|
-
import { default as ka } from "./components/
|
|
91
|
-
import { default as Da } from "./components/
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as La } from "./components/
|
|
95
|
-
import { default as wa } from "./components/
|
|
96
|
-
import { default as Na } from "./components/Storage/
|
|
78
|
+
import { default as Zt } from "./components/Plan/Mirrors/MirrorStatusBadge.js";
|
|
79
|
+
import { default as $t } from "./components/Plan/Mirrors/MirrorStorageSelector.js";
|
|
80
|
+
import { default as ta } from "./components/Plan/Mirrors/MirrorStorageSelectorModal.js";
|
|
81
|
+
import { default as ra } from "./components/Plan/PlanSettings/PlanReplicationSettings.js";
|
|
82
|
+
import { default as fa } from "./components/Plan/Restores/Restores.js";
|
|
83
|
+
import { default as sa } from "./components/Restore/RestoreChangeViewer/RestoreChangeViewer.js";
|
|
84
|
+
import { default as pa } from "./components/Restore/RestoredFileBrowser/RestoredFileBrowser.js";
|
|
85
|
+
import { default as ma } from "./components/Restore/RestoreFileSelector/RestoreFileSelector.js";
|
|
86
|
+
import { default as ia } from "./components/Restore/RestoreWizard/RestoreConfirmStep.js";
|
|
87
|
+
import { default as Sa } from "./components/Restore/RestoreWizard/RestoreFileSelectorStep.js";
|
|
88
|
+
import { default as Pa } from "./components/Restore/RestoreWizard/RestorePreviewStep.js";
|
|
89
|
+
import { default as va } from "./components/Restore/RestoreWizard/RestoreSettingsStep.js";
|
|
90
|
+
import { default as ka } from "./components/Restore/RestoreWizard/RestoreWizard.js";
|
|
91
|
+
import { default as Da } from "./components/Settings/AppLogs/AppLogs.js";
|
|
92
|
+
import { default as Ma } from "./components/Settings/GeneralSettings/GeneralSettings.js";
|
|
93
|
+
import { default as Aa } from "./components/Settings/IntegrationSettings/IntegrationSettings.js";
|
|
94
|
+
import { default as La } from "./components/Settings/IntegrationSettings/SMTPSettings.js";
|
|
95
|
+
import { default as wa } from "./components/Skeleton/SkeletonItems.js";
|
|
96
|
+
import { default as Na } from "./components/Storage/AddStorage/AddStorage.js";
|
|
97
|
+
import { default as Ca } from "./components/Storage/EditStorage/EditStorage.js";
|
|
98
|
+
import { default as za } from "./components/Storage/StorageAuthSettings/StorageAuthSettings.js";
|
|
99
|
+
import { default as Ha } from "./components/Storage/StorageItem/StorageItem.js";
|
|
100
|
+
import { default as Va } from "./components/Storage/StorageSettings/StorageSettings.js";
|
|
97
101
|
export {
|
|
98
102
|
x as ActionModal,
|
|
99
103
|
$e as AddPlan,
|
|
100
|
-
|
|
101
|
-
|
|
104
|
+
Na as AddStorage,
|
|
105
|
+
n as AnimatedWrapper,
|
|
102
106
|
a as App,
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
o as AppContent,
|
|
108
|
+
Da as AppLogs,
|
|
105
109
|
tt as BackupEvents,
|
|
106
|
-
|
|
110
|
+
rt as BackupProgress,
|
|
107
111
|
ft as Backups,
|
|
108
|
-
|
|
112
|
+
g as Button,
|
|
109
113
|
Le as DeviceBackups,
|
|
110
114
|
we as DeviceCPU,
|
|
111
115
|
Ne as DeviceInfo,
|
|
@@ -118,73 +122,77 @@ export {
|
|
|
118
122
|
Oe as DeviceStorageDrives,
|
|
119
123
|
Xe as DeviceSystem,
|
|
120
124
|
Ze as EditDevice,
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
st as EditPlan,
|
|
126
|
+
Ca as EditStorage,
|
|
123
127
|
c as FileIcon,
|
|
124
128
|
I as FileManager,
|
|
125
129
|
F as FolderPicker,
|
|
126
|
-
|
|
130
|
+
l as Footer,
|
|
127
131
|
te as FormField,
|
|
128
|
-
|
|
132
|
+
Ma as GeneralSettings,
|
|
129
133
|
R as Icon,
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
re as Input,
|
|
135
|
+
Aa as IntegrationSettings,
|
|
132
136
|
fe as IntervalField,
|
|
133
|
-
|
|
137
|
+
T as ItemsLayout,
|
|
134
138
|
b as LogViewer,
|
|
135
139
|
B as Logo,
|
|
140
|
+
Zt as MirrorStatusBadge,
|
|
141
|
+
$t as MirrorStorageSelector,
|
|
142
|
+
ta as MirrorStorageSelectorModal,
|
|
136
143
|
y as Modal,
|
|
137
|
-
|
|
144
|
+
se as MultiSelect,
|
|
138
145
|
h as NotFound,
|
|
139
146
|
pe as NumberInput,
|
|
140
147
|
E as PageHeader,
|
|
141
148
|
d as PageTitle,
|
|
142
|
-
|
|
149
|
+
me as PasswordField,
|
|
143
150
|
G as PathPicker,
|
|
144
151
|
Lt as PlanAdvancedSettings,
|
|
145
152
|
pt as PlanBackups,
|
|
146
|
-
|
|
147
|
-
|
|
153
|
+
mt as PlanForm,
|
|
154
|
+
it as PlanFormNav,
|
|
148
155
|
wt as PlanGeneralSettings,
|
|
149
156
|
St as PlanHistory,
|
|
150
|
-
|
|
157
|
+
Pt as PlanItem,
|
|
151
158
|
vt as PlanLogs,
|
|
152
159
|
Nt as PlanNotificationSettings,
|
|
153
160
|
kt as PlanPendingBackup,
|
|
154
161
|
Ct as PlanPerformanceSettings,
|
|
155
162
|
Dt as PlanProgress,
|
|
156
|
-
|
|
163
|
+
Mt as PlanPruneModal,
|
|
157
164
|
zt as PlanPruneSettings,
|
|
158
|
-
|
|
159
|
-
|
|
165
|
+
At as PlanRemoveModal,
|
|
166
|
+
ra as PlanReplicationSettings,
|
|
167
|
+
fa as PlanRestores,
|
|
160
168
|
Ht as PlanScriptsSettings,
|
|
161
169
|
Vt as PlanSourceSettings,
|
|
162
170
|
Ot as PlanStats,
|
|
163
171
|
jt as PlanStrategySettings,
|
|
164
172
|
Jt as PlanTypeSettings,
|
|
165
173
|
Xt as PlanUnlockModal,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
ie as RadioIconSelect,
|
|
175
|
+
sa as RestoreChangeViewer,
|
|
176
|
+
ia as RestoreConfirmStep,
|
|
177
|
+
ma as RestoreFileSelector,
|
|
178
|
+
Sa as RestoreFileSelectorStep,
|
|
179
|
+
Pa as RestorePreviewStep,
|
|
180
|
+
va as RestoreSettingsStep,
|
|
181
|
+
ka as RestoreWizard,
|
|
182
|
+
pa as RestoredFileBrowser,
|
|
183
|
+
La as SMTPSettings,
|
|
176
184
|
U as SearchItems,
|
|
177
185
|
Se as Select,
|
|
178
|
-
|
|
186
|
+
u as SideNav,
|
|
179
187
|
W as SidePanel,
|
|
180
|
-
|
|
181
|
-
|
|
188
|
+
Pe as SizePicker,
|
|
189
|
+
wa as SkeletonItems,
|
|
182
190
|
q as SortItems,
|
|
183
191
|
K as StatusLabel,
|
|
184
|
-
|
|
185
|
-
|
|
192
|
+
za as StorageAuthSettings,
|
|
193
|
+
Ha as StorageItem,
|
|
186
194
|
ve as StoragePicker,
|
|
187
|
-
|
|
195
|
+
Va as StorageSettings,
|
|
188
196
|
Q as Tab,
|
|
189
197
|
X as TabList,
|
|
190
198
|
Y as TabPanel,
|
|
@@ -192,7 +200,7 @@ export {
|
|
|
192
200
|
$ as TagsFilter,
|
|
193
201
|
ke as TagsInput,
|
|
194
202
|
De as TimePicker,
|
|
195
|
-
|
|
196
|
-
|
|
203
|
+
Me as Toggle,
|
|
204
|
+
Ae as Tristate
|
|
197
205
|
};
|
|
198
206
|
//# sourceMappingURL=components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Handles two PWA update scenarios:
|
|
3
|
+
*
|
|
4
|
+
* 1. **Workbox precache update** — When a new frontend build is deployed, Workbox detects
|
|
5
|
+
* that the precache manifest changed and sets `needRefresh`. We immediately activate
|
|
6
|
+
* the new service worker so the page reloads with fresh assets.
|
|
7
|
+
*
|
|
8
|
+
* 2. **Backend version mismatch** — Compares the server's `X-App-Version` header
|
|
9
|
+
* (stored on `window.plutonVersion` by `validateAuth`) against the last known version
|
|
10
|
+
* in localStorage. On mismatch (e.g. docker/binary upgrade), unregisters all service
|
|
11
|
+
* workers, clears all caches, and hard-reloads. This catches cases where the SW update
|
|
12
|
+
* check hasn't fired yet (long-lived tabs, cached sw.js, etc.).
|
|
4
13
|
*/
|
|
5
14
|
export declare function usePwaAutoUpdate(): void;
|
|
6
15
|
//# sourceMappingURL=usePwaAutoUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePwaAutoUpdate.d.ts","sourceRoot":"","sources":["../../src/hooks/usePwaAutoUpdate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePwaAutoUpdate.d.ts","sourceRoot":"","sources":["../../src/hooks/usePwaAutoUpdate.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,SAoC/B"}
|
|
@@ -1,16 +1,38 @@
|
|
|
1
|
-
import { useEffect as
|
|
2
|
-
import { useRegisterSW as
|
|
3
|
-
|
|
1
|
+
import { useRef as f, useEffect as c } from "react";
|
|
2
|
+
import { useRegisterSW as l } from "virtual:pwa-register/react";
|
|
3
|
+
const s = "pluton_app_version";
|
|
4
|
+
function m() {
|
|
4
5
|
const {
|
|
5
|
-
offlineReady: [
|
|
6
|
+
offlineReady: [t, e],
|
|
6
7
|
needRefresh: [o],
|
|
7
|
-
updateServiceWorker:
|
|
8
|
-
} =
|
|
9
|
-
|
|
10
|
-
o &&
|
|
11
|
-
}, [o,
|
|
8
|
+
updateServiceWorker: i
|
|
9
|
+
} = l(), n = f(!1);
|
|
10
|
+
c(() => {
|
|
11
|
+
o && i(!0), t && (console.log("PWA is ready for offline use."), e(!1));
|
|
12
|
+
}, [o, t, e, i]), c(() => {
|
|
13
|
+
if (n.current) return;
|
|
14
|
+
const r = window.plutonVersion;
|
|
15
|
+
if (!r || r === "unknown") return;
|
|
16
|
+
const a = localStorage.getItem(s);
|
|
17
|
+
a && a !== r ? (n.current = !0, u(r)) : a || localStorage.setItem(s, r);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
async function u(t) {
|
|
21
|
+
try {
|
|
22
|
+
if ("serviceWorker" in navigator) {
|
|
23
|
+
const e = await navigator.serviceWorker.getRegistrations();
|
|
24
|
+
await Promise.all(e.map((o) => o.unregister()));
|
|
25
|
+
}
|
|
26
|
+
if ("caches" in window) {
|
|
27
|
+
const e = await caches.keys();
|
|
28
|
+
await Promise.all(e.map((o) => caches.delete(o)));
|
|
29
|
+
}
|
|
30
|
+
} catch (e) {
|
|
31
|
+
console.error("Failed to clear caches:", e);
|
|
32
|
+
}
|
|
33
|
+
localStorage.setItem(s, t), window.location.reload();
|
|
12
34
|
}
|
|
13
35
|
export {
|
|
14
|
-
|
|
36
|
+
m as usePwaAutoUpdate
|
|
15
37
|
};
|
|
16
38
|
//# sourceMappingURL=usePwaAutoUpdate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePwaAutoUpdate.js","sources":["../../src/hooks/usePwaAutoUpdate.ts"],"sourcesContent":["import { useEffect } from 'react';\r\nimport { useRegisterSW } from 'virtual:pwa-register/react';\r\n\r\n/**\r\n *
|
|
1
|
+
{"version":3,"file":"usePwaAutoUpdate.js","sources":["../../src/hooks/usePwaAutoUpdate.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\r\nimport { useRegisterSW } from 'virtual:pwa-register/react';\r\n\r\nconst VERSION_STORAGE_KEY = 'pluton_app_version';\r\n\r\n/**\r\n * Handles two PWA update scenarios:\r\n *\r\n * 1. **Workbox precache update** — When a new frontend build is deployed, Workbox detects\r\n * that the precache manifest changed and sets `needRefresh`. We immediately activate\r\n * the new service worker so the page reloads with fresh assets.\r\n *\r\n * 2. **Backend version mismatch** — Compares the server's `X-App-Version` header\r\n * (stored on `window.plutonVersion` by `validateAuth`) against the last known version\r\n * in localStorage. On mismatch (e.g. docker/binary upgrade), unregisters all service\r\n * workers, clears all caches, and hard-reloads. This catches cases where the SW update\r\n * check hasn't fired yet (long-lived tabs, cached sw.js, etc.).\r\n */\r\nexport function usePwaAutoUpdate() {\r\n const {\r\n offlineReady: [offlineReady, setOfflineReady],\r\n needRefresh: [needRefresh],\r\n updateServiceWorker,\r\n } = useRegisterSW();\r\n\r\n const versionCheckedRef = useRef(false);\r\n\r\n // Workbox detected a new service worker with updated assets\r\n useEffect(() => {\r\n if (needRefresh) {\r\n updateServiceWorker(true);\r\n }\r\n if (offlineReady) {\r\n console.log('PWA is ready for offline use.');\r\n setOfflineReady(false);\r\n }\r\n }, [needRefresh, offlineReady, setOfflineReady, updateServiceWorker]);\r\n\r\n // Backend version mismatch check\r\n useEffect(() => {\r\n if (versionCheckedRef.current) return;\r\n\r\n const serverVersion = (window as any).plutonVersion;\r\n if (!serverVersion || serverVersion === 'unknown') return;\r\n\r\n const storedVersion = localStorage.getItem(VERSION_STORAGE_KEY);\r\n\r\n if (storedVersion && storedVersion !== serverVersion) {\r\n versionCheckedRef.current = true;\r\n clearCachesAndReload(serverVersion);\r\n } else if (!storedVersion) {\r\n localStorage.setItem(VERSION_STORAGE_KEY, serverVersion);\r\n }\r\n });\r\n}\r\n\r\nasync function clearCachesAndReload(newVersion: string) {\r\n try {\r\n if ('serviceWorker' in navigator) {\r\n const registrations = await navigator.serviceWorker.getRegistrations();\r\n await Promise.all(registrations.map((r) => r.unregister()));\r\n }\r\n if ('caches' in window) {\r\n const cacheNames = await caches.keys();\r\n await Promise.all(cacheNames.map((name) => caches.delete(name)));\r\n }\r\n } catch (e) {\r\n console.error('Failed to clear caches:', e);\r\n }\r\n\r\n localStorage.setItem(VERSION_STORAGE_KEY, newVersion);\r\n window.location.reload();\r\n}\r\n"],"names":["VERSION_STORAGE_KEY","usePwaAutoUpdate","offlineReady","setOfflineReady","needRefresh","updateServiceWorker","useRegisterSW","versionCheckedRef","useRef","useEffect","serverVersion","storedVersion","clearCachesAndReload","newVersion","registrations","r","cacheNames","name"],"mappings":";;AAGA,MAAMA,IAAsB;AAerB,SAASC,IAAmB;AAChC,QAAM;AAAA,IACH,cAAc,CAACC,GAAcC,CAAe;AAAA,IAC5C,aAAa,CAACC,CAAW;AAAA,IACzB,qBAAAC;AAAA,EAAA,IACCC,EAAA,GAEEC,IAAoBC,EAAO,EAAK;AAGtC,EAAAC,EAAU,MAAM;AACb,IAAIL,KACDC,EAAoB,EAAI,GAEvBH,MACD,QAAQ,IAAI,+BAA+B,GAC3CC,EAAgB,EAAK;AAAA,EAE3B,GAAG,CAACC,GAAaF,GAAcC,GAAiBE,CAAmB,CAAC,GAGpEI,EAAU,MAAM;AACb,QAAIF,EAAkB,QAAS;AAE/B,UAAMG,IAAiB,OAAe;AACtC,QAAI,CAACA,KAAiBA,MAAkB,UAAW;AAEnD,UAAMC,IAAgB,aAAa,QAAQX,CAAmB;AAE9D,IAAIW,KAAiBA,MAAkBD,KACpCH,EAAkB,UAAU,IAC5BK,EAAqBF,CAAa,KACzBC,KACT,aAAa,QAAQX,GAAqBU,CAAa;AAAA,EAE7D,CAAC;AACJ;AAEA,eAAeE,EAAqBC,GAAoB;AACrD,MAAI;AACD,QAAI,mBAAmB,WAAW;AAC/B,YAAMC,IAAgB,MAAM,UAAU,cAAc,iBAAA;AACpD,YAAM,QAAQ,IAAIA,EAAc,IAAI,CAACC,MAAMA,EAAE,WAAA,CAAY,CAAC;AAAA,IAC7D;AACA,QAAI,YAAY,QAAQ;AACrB,YAAMC,IAAa,MAAM,OAAO,KAAA;AAChC,YAAM,QAAQ,IAAIA,EAAW,IAAI,CAACC,MAAS,OAAO,OAAOA,CAAI,CAAC,CAAC;AAAA,IAClE;AAAA,EACH,SAAS,GAAG;AACT,YAAQ,MAAM,2BAA2B,CAAC;AAAA,EAC7C;AAEA,eAAa,QAAQjB,GAAqBa,CAAU,GACpD,OAAO,SAAS,OAAA;AACnB;"}
|
package/dist-lib/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.tsx"],"names":[],"mappings":"AAkEA,wBAAgB,SAAS,4CAuBxB"}
|
package/dist-lib/router.js
CHANGED
|
@@ -1,43 +1,54 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e, Fragment as
|
|
2
|
-
import { Routes as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useAuth as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import y from "./routes/
|
|
11
|
-
import
|
|
12
|
-
import P from "./routes/
|
|
13
|
-
import R from "./
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { jsxs as i, jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { Routes as d, Route as t, Navigate as a } from "react-router";
|
|
3
|
+
import c from "./routes/Plans/Plans.js";
|
|
4
|
+
import f from "./routes/Login/Login.js";
|
|
5
|
+
import g from "./routes/Setup/Setup.js";
|
|
6
|
+
import { useAuth as m } from "./services/users.js";
|
|
7
|
+
import h from "./components/App/App/App.js";
|
|
8
|
+
import S from "./routes/Settings/Settings.js";
|
|
9
|
+
import v from "./routes/Storages/Storages.js";
|
|
10
|
+
import y from "./routes/Sources/Sources.js";
|
|
11
|
+
import L from "./routes/PlanSingle/PlanSingle.js";
|
|
12
|
+
import P from "./routes/DeviceSingle/DeviceSingle.js";
|
|
13
|
+
import R from "./components/App/Footer/Footer.js";
|
|
14
|
+
import w from "./routes/NotFoundRoute/NotFoundRoute.js";
|
|
15
|
+
import l from "./components/common/Icon/Icon.js";
|
|
16
|
+
function x({ children: o }) {
|
|
17
|
+
const { data: r, isLoading: n } = m();
|
|
18
|
+
return n ? /* @__PURE__ */ e("div", { className: "loadingScreen", children: /* @__PURE__ */ e(l, { size: 60, type: "loading" }) }) : r ? /* @__PURE__ */ e(a, { to: "/", replace: !0 }) : /* @__PURE__ */ e(p, { children: o });
|
|
19
|
+
}
|
|
20
|
+
function N() {
|
|
21
|
+
const { data: o, isError: r, isLoading: n } = m();
|
|
22
|
+
if (n)
|
|
23
|
+
return /* @__PURE__ */ e("div", { className: "loadingScreen", children: /* @__PURE__ */ e(l, { size: 60, type: "loading" }) });
|
|
24
|
+
const s = window.plutonInstallType, u = window.plutonSetupPending;
|
|
25
|
+
return s === "binary" && u ? /* @__PURE__ */ e(a, { to: "/setup", replace: !0 }) : r ? /* @__PURE__ */ e(a, { to: "/login", replace: !0 }) : (console.log("User data :", o), /* @__PURE__ */ i(p, { children: [
|
|
26
|
+
/* @__PURE__ */ e(h, {}),
|
|
27
|
+
/* @__PURE__ */ e(R, { version: (o == null ? void 0 : o.appVersion) || "" })
|
|
23
28
|
] }));
|
|
24
29
|
}
|
|
25
|
-
function
|
|
26
|
-
return /* @__PURE__ */ i(
|
|
27
|
-
/* @__PURE__ */ i(t, { path: "/", element: /* @__PURE__ */ e(
|
|
28
|
-
/* @__PURE__ */ e(t, { index: !0, element: /* @__PURE__ */ e(
|
|
29
|
-
/* @__PURE__ */ e(t, { path: "settings", element: /* @__PURE__ */ e(
|
|
30
|
-
/* @__PURE__ */ e(t, { path: "storages", element: /* @__PURE__ */ e(
|
|
31
|
-
/* @__PURE__ */ e(t, { path: "sources", element: /* @__PURE__ */ e(
|
|
32
|
-
/* @__PURE__ */ e(t, { path: "device/:id", element: /* @__PURE__ */ e(
|
|
33
|
-
/* @__PURE__ */ e(t, { path: "plan/:id", element: /* @__PURE__ */ e(
|
|
34
|
-
/* @__PURE__ */ e(t, { path: "*", element: /* @__PURE__ */ e(
|
|
30
|
+
function G() {
|
|
31
|
+
return /* @__PURE__ */ i(d, { children: [
|
|
32
|
+
/* @__PURE__ */ i(t, { path: "/", element: /* @__PURE__ */ e(N, {}), children: [
|
|
33
|
+
/* @__PURE__ */ e(t, { index: !0, element: /* @__PURE__ */ e(c, {}) }),
|
|
34
|
+
/* @__PURE__ */ e(t, { path: "settings", element: /* @__PURE__ */ e(S, {}) }),
|
|
35
|
+
/* @__PURE__ */ e(t, { path: "storages", element: /* @__PURE__ */ e(v, {}) }),
|
|
36
|
+
/* @__PURE__ */ e(t, { path: "sources", element: /* @__PURE__ */ e(y, {}) }),
|
|
37
|
+
/* @__PURE__ */ e(t, { path: "device/:id", element: /* @__PURE__ */ e(P, {}) }),
|
|
38
|
+
/* @__PURE__ */ e(t, { path: "plan/:id", element: /* @__PURE__ */ e(L, {}) }),
|
|
39
|
+
/* @__PURE__ */ e(t, { path: "*", element: /* @__PURE__ */ e(w, {}) })
|
|
35
40
|
] }),
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
|
|
41
|
+
/* @__PURE__ */ e(
|
|
42
|
+
t,
|
|
43
|
+
{
|
|
44
|
+
path: "login",
|
|
45
|
+
element: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(f, {}) })
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ e(t, { path: "setup", element: /* @__PURE__ */ e(g, {}) })
|
|
38
49
|
] });
|
|
39
50
|
}
|
|
40
51
|
export {
|
|
41
|
-
|
|
52
|
+
G as AppRoutes
|
|
42
53
|
};
|
|
43
54
|
//# sourceMappingURL=router.js.map
|
package/dist-lib/router.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.js","sources":["../src/router.tsx"],"sourcesContent":["import { Routes, Route, Navigate } from 'react-router';\r\nimport Plans from './routes/Plans/Plans';\r\nimport Login from './routes/Login/Login';\r\nimport Setup from './routes/Setup/Setup';\r\nimport { useAuth } from './services/users';\r\nimport
|
|
1
|
+
{"version":3,"file":"router.js","sources":["../src/router.tsx"],"sourcesContent":["import { Routes, Route, Navigate } from 'react-router';\r\nimport Plans from './routes/Plans/Plans';\r\nimport Login from './routes/Login/Login';\r\nimport Setup from './routes/Setup/Setup';\r\nimport { useAuth } from './services/users';\r\nimport App from './components/App/App/App';\r\nimport Settings from './routes/Settings/Settings';\r\nimport Storages from './routes/Storages/Storages';\r\nimport Sources from './routes/Sources/Sources';\r\nimport PlanSingle from './routes/PlanSingle/PlanSingle';\r\nimport DeviceSingle from './routes/DeviceSingle/DeviceSingle';\r\nimport Footer from './components/App/Footer/Footer';\r\nimport NotFoundRoute from './routes/NotFoundRoute/NotFoundRoute';\r\nimport Icon from './components/common/Icon/Icon';\r\n\r\nfunction PublicRoute({ children }: { children: React.ReactNode }) {\r\n const { data: authData, isLoading: authLoading } = useAuth();\r\n\r\n if (authLoading) {\r\n return (\r\n <div className=\"loadingScreen\">\r\n <Icon size={60} type=\"loading\" />\r\n </div>\r\n );\r\n }\r\n\r\n if (authData) {\r\n return <Navigate to=\"/\" replace />;\r\n }\r\n\r\n return <>{children}</>;\r\n}\r\n\r\nfunction ProtectedLayout() {\r\n const { data: authData, isError: authError, isLoading: authLoading } = useAuth();\r\n\r\n if (authLoading) {\r\n return (\r\n <div className=\"loadingScreen\">\r\n <Icon size={60} type=\"loading\" />\r\n </div>\r\n );\r\n }\r\n\r\n // Check setup-pending from auth response headers (set by versionMiddleware on all responses)\r\n const installType = (window as any).plutonInstallType;\r\n const setupPending = (window as any).plutonSetupPending;\r\n if (installType === 'binary' && setupPending) {\r\n return <Navigate to=\"/setup\" replace />;\r\n }\r\n\r\n // If auth failed, redirect to login\r\n if (authError) {\r\n return <Navigate to=\"/login\" replace />;\r\n }\r\n\r\n console.log('User data :', authData);\r\n\r\n return (\r\n <>\r\n <App />\r\n <Footer version={authData?.appVersion || ''} />\r\n </>\r\n );\r\n}\r\n\r\nexport function AppRoutes() {\r\n return (\r\n <Routes>\r\n <Route path=\"/\" element={<ProtectedLayout />}>\r\n <Route index element={<Plans />} />\r\n <Route path=\"settings\" element={<Settings />} />\r\n <Route path=\"storages\" element={<Storages />} />\r\n <Route path=\"sources\" element={<Sources />} />\r\n <Route path={'device/:id'} element={<DeviceSingle />} />\r\n <Route path={'plan/:id'} element={<PlanSingle />} />\r\n <Route path=\"*\" element={<NotFoundRoute />} />\r\n </Route>\r\n <Route\r\n path=\"login\"\r\n element={\r\n <PublicRoute>\r\n <Login />\r\n </PublicRoute>\r\n }\r\n />\r\n <Route path=\"setup\" element={<Setup />} />\r\n </Routes>\r\n );\r\n}\r\n"],"names":["PublicRoute","children","authData","authLoading","useAuth","jsx","Icon","Navigate","ProtectedLayout","authError","installType","setupPending","jsxs","Fragment","App","Footer","AppRoutes","Routes","Route","Plans","Settings","Storages","Sources","DeviceSingle","PlanSingle","NotFoundRoute","Login","Setup"],"mappings":";;;;;;;;;;;;;;;AAeA,SAASA,EAAY,EAAE,UAAAC,KAA2C;AAC/D,QAAM,EAAE,MAAMC,GAAU,WAAWC,EAAA,IAAgBC,EAAA;AAEnD,SAAID,IAEE,gBAAAE,EAAC,OAAA,EAAI,WAAU,iBACZ,UAAA,gBAAAA,EAACC,KAAK,MAAM,IAAI,MAAK,UAAA,CAAU,EAAA,CAClC,IAIFJ,IACM,gBAAAG,EAACE,GAAA,EAAS,IAAG,KAAI,SAAO,IAAC,2BAGzB,UAAAN,GAAS;AACtB;AAEA,SAASO,IAAkB;AACxB,QAAM,EAAE,MAAMN,GAAU,SAASO,GAAW,WAAWN,EAAA,IAAgBC,EAAA;AAEvE,MAAID;AACD,WACG,gBAAAE,EAAC,OAAA,EAAI,WAAU,iBACZ,UAAA,gBAAAA,EAACC,KAAK,MAAM,IAAI,MAAK,UAAA,CAAU,EAAA,CAClC;AAKN,QAAMI,IAAe,OAAe,mBAC9BC,IAAgB,OAAe;AACrC,SAAID,MAAgB,YAAYC,IACtB,gBAAAN,EAACE,GAAA,EAAS,IAAG,UAAS,SAAO,IAAC,IAIpCE,IACM,gBAAAJ,EAACE,GAAA,EAAS,IAAG,UAAS,SAAO,IAAC,KAGxC,QAAQ,IAAI,eAAeL,CAAQ,GAGhC,gBAAAU,EAAAC,GAAA,EACG,UAAA;AAAA,IAAA,gBAAAR,EAACS,GAAA,EAAI;AAAA,IACL,gBAAAT,EAACU,GAAA,EAAO,UAASb,KAAA,gBAAAA,EAAU,eAAc,GAAA,CAAI;AAAA,EAAA,GAChD;AAEN;AAEO,SAASc,IAAY;AACzB,2BACIC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAL,EAACM,KAAM,MAAK,KAAI,SAAS,gBAAAb,EAACG,KAAgB,GACvC,UAAA;AAAA,MAAA,gBAAAH,EAACa,KAAM,OAAK,IAAC,SAAS,gBAAAb,EAACc,KAAM,GAAI;AAAA,wBAChCD,GAAA,EAAM,MAAK,YAAW,SAAS,gBAAAb,EAACe,KAAS,GAAI;AAAA,wBAC7CF,GAAA,EAAM,MAAK,YAAW,SAAS,gBAAAb,EAACgB,KAAS,GAAI;AAAA,wBAC7CH,GAAA,EAAM,MAAK,WAAU,SAAS,gBAAAb,EAACiB,KAAQ,GAAI;AAAA,wBAC3CJ,GAAA,EAAM,MAAM,cAAc,SAAS,gBAAAb,EAACkB,KAAa,GAAI;AAAA,wBACrDL,GAAA,EAAM,MAAM,YAAY,SAAS,gBAAAb,EAACmB,KAAW,GAAI;AAAA,wBACjDN,GAAA,EAAM,MAAK,KAAI,SAAS,gBAAAb,EAACoB,KAAc,EAAA,CAAI;AAAA,IAAA,GAC/C;AAAA,IACA,gBAAApB;AAAA,MAACa;AAAA,MAAA;AAAA,QACE,MAAK;AAAA,QACL,SACG,gBAAAb,EAACL,GAAA,EACE,UAAA,gBAAAK,EAACqB,KAAM,EAAA,CACV;AAAA,MAAA;AAAA,IAAA;AAAA,sBAGLR,GAAA,EAAM,MAAK,SAAQ,SAAS,gBAAAb,EAACsB,KAAM,EAAA,CAAI;AAAA,EAAA,GAC3C;AAEN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceSingle.d.ts","sourceRoot":"","sources":["../../../src/routes/DeviceSingle/DeviceSingle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeviceSingle.d.ts","sourceRoot":"","sources":["../../../src/routes/DeviceSingle/DeviceSingle.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,YAAY,+CAuEjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|