@postgres.ai/shared 4.0.4 → 4.1.0
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/.gitlab-ci.yml +77 -0
- package/components/AlertSnackbar/index.tsx +23 -0
- package/components/AlertSnackbar/useAlertSnackbar.tsx +65 -0
- package/components/Button/index.tsx +79 -0
- package/components/Button2/index.tsx +43 -0
- package/components/DestroyCloneModal/index.tsx +52 -0
- package/components/DestroyCloneRestrictionModal/index.tsx +50 -0
- package/components/ErrorStub/index.tsx +83 -0
- package/components/FormattedText/index.tsx +44 -0
- package/components/GatewayLink/index.tsx +33 -0
- package/components/HorizontalScrollContainer/index.tsx +131 -0
- package/components/HorizontalScrollContainer/types.ts +12 -0
- package/components/HorizontalScrollContainer/utils.ts +16 -0
- package/components/ImportantText/index.tsx +29 -0
- package/components/Link2/index.tsx +31 -0
- package/components/MenuButton/index.tsx +88 -0
- package/components/Modal/index.tsx +93 -0
- package/components/PageSpinner/index.tsx +18 -0
- package/components/ResetCloneModal/index.tsx +149 -0
- package/components/SectionTitle/index.tsx +74 -0
- package/components/Select/index.tsx +43 -0
- package/components/SimpleModalControls/index.tsx +56 -0
- package/components/Spinner/icon.tsx +29 -0
- package/components/Spinner/index.tsx +16 -0
- package/components/Status/index.tsx +61 -0
- package/components/StubContainer/index.tsx +41 -0
- package/components/StubSpinner/index.tsx +49 -0
- package/components/StubSpinnerFlex/index.tsx +20 -0
- package/components/SyntaxHighlight/index.tsx +107 -0
- package/components/Table/RowMenu/index.tsx +111 -0
- package/components/Table/index.tsx +140 -0
- package/components/Text/index.tsx +28 -0
- package/components/TextField/index.tsx +119 -0
- package/components/Tooltip/index.tsx +52 -0
- package/config/index.ts +32 -0
- package/config/links.ts +6 -0
- package/dist/components/Button2/styles.module.scss +82 -0
- package/dist/components/FormattedText/styles.module.scss +34 -0
- package/dist/components/Link2/styles.module.scss +12 -0
- package/dist/components/MenuButton/styles.module.scss +42 -0
- package/dist/components/PageSpinner/styles.module.scss +13 -0
- package/{components → dist/components}/Select/index.d.ts +1 -0
- package/dist/components/Spinner/styles.module.scss +33 -0
- package/dist/components/Status/styles.module.scss +45 -0
- package/dist/components/StubSpinnerFlex/styles.module.scss +20 -0
- package/{components → dist/components}/TextField/index.d.ts +2 -1
- package/{components → dist/components}/TextField/index.js +1 -1
- package/dist/meta.json +1 -0
- package/dist/package.json +54 -0
- package/{pages → dist/pages}/Clone/index.js +49 -6
- package/{pages → dist/pages}/Clone/stores/Main.d.ts +1 -1
- package/{pages → dist/pages}/Clone/stores/Main.js +8 -2
- package/{pages → dist/pages}/CreateBranch/useForm.d.ts +1 -1
- package/{pages → dist/pages}/CreateClone/index.js +33 -8
- package/dist/pages/CreateClone/styles.module.scss +128 -0
- package/{pages → dist/pages}/CreateClone/useForm.d.ts +2 -2
- package/{pages → dist/pages}/CreateClone/useForm.js +2 -2
- package/{pages → dist/pages}/CreateClone/utils/index.js +4 -3
- package/{pages → dist/pages}/CreateSnapshot/useForm.d.ts +1 -1
- package/dist/pages/Instance/Clones/ClonesList/styles.module.scss +42 -0
- package/dist/pages/Instance/Clones/Header/Item/styles.module.scss +17 -0
- package/dist/pages/Instance/Clones/Header/styles.module.scss +14 -0
- package/dist/pages/Instance/Configuration/styles.module.scss +122 -0
- package/{pages → dist/pages}/Instance/Configuration/useForm.d.ts +1 -1
- package/{pages → dist/pages}/Instance/Info/Disks/Disk/ProgressBar/index.d.ts +2 -1
- package/{pages → dist/pages}/Instance/Info/Disks/Disk/ProgressBar/index.js +1 -1
- package/{pages/Instance/Info/Disks/Disk → dist/pages/Instance/Info/Disks/PoolSection/DatasetRow}/index.d.ts +6 -8
- package/dist/pages/Instance/Info/Disks/PoolSection/DatasetRow/index.js +52 -0
- package/dist/pages/Instance/Info/Disks/PoolSection/index.d.ts +10 -0
- package/dist/pages/Instance/Info/Disks/PoolSection/index.js +64 -0
- package/dist/pages/Instance/Info/Disks/index.js +68 -0
- package/dist/pages/Instance/Info/Retrieval/RefreshFailedAlert/styles.module.scss +33 -0
- package/dist/pages/Instance/Info/Retrieval/RetrievalModal/styles.module.scss +6 -0
- package/dist/pages/Instance/Info/Retrieval/RetrievalTable/styles.module.scss +29 -0
- package/dist/pages/Instance/Info/Status/InstanceResponseModal/styles.module.scss +3 -0
- package/dist/pages/Instance/Info/Status/styles.module.scss +12 -0
- package/dist/pages/Instance/Info/components/Property/styles.module.scss +21 -0
- package/dist/pages/Instance/styles.scss +37 -0
- package/dist/react-app-env.d.ts +64 -0
- package/dist/styles/global.scss +29 -0
- package/dist/styles/mixins.scss +30 -0
- package/dist/styles/vars.scss +43 -0
- package/dist/tsconfig.build.json +36 -0
- package/dist/tsconfig.json +30 -0
- package/{types → dist/types}/api/endpoints/createClone.d.ts +1 -1
- package/{types → dist/types}/api/endpoints/updateClone.d.ts +1 -0
- package/{types → dist/types}/api/entities/clone.d.ts +7 -0
- package/{types → dist/types}/api/entities/clone.js +1 -0
- package/{types → dist/types}/api/entities/config.js +8 -8
- package/{types → dist/types}/api/entities/instance.d.ts +6 -0
- package/{types → dist/types}/api/entities/instanceState.d.ts +8 -0
- package/{types → dist/types}/api/entities/instanceState.js +4 -2
- package/helpers/getEntropy.ts +278 -0
- package/helpers/localStorage.ts +15 -0
- package/helpers/request.ts +47 -0
- package/hooks/useWindowDimensions.ts +16 -0
- package/icons/ArrowDropDown/index.tsx +31 -0
- package/icons/Circle/index.tsx +27 -0
- package/icons/External/index.tsx +14 -0
- package/icons/Info/index.tsx +12 -0
- package/icons/PostgresSQL/index.tsx +18 -0
- package/icons/Renewable/index.tsx +65 -0
- package/icons/Shield/index.tsx +33 -0
- package/icons/Warning/index.tsx +29 -0
- package/package.json +25 -18
- package/pages/Branches/Branch/context.ts +25 -0
- package/pages/Branches/Branch/index.tsx +434 -0
- package/pages/Branches/Branch/stores/Main.ts +138 -0
- package/pages/Branches/Branch/useCreatedStores.ts +10 -0
- package/pages/Branches/components/BranchesTable/index.tsx +194 -0
- package/pages/Branches/components/Modals/DeleteBranchModal/index.tsx +84 -0
- package/pages/Branches/components/Modals/types.ts +4 -0
- package/pages/Branches/index.tsx +128 -0
- package/pages/Clone/Status/index.tsx +73 -0
- package/pages/Clone/context.ts +24 -0
- package/pages/Clone/index.tsx +756 -0
- package/pages/Clone/stores/Main.ts +215 -0
- package/pages/Clone/useCreatedStores.ts +11 -0
- package/pages/Clone/utils/index.ts +15 -0
- package/pages/CreateBranch/index.tsx +322 -0
- package/pages/CreateBranch/stores/Main.ts +99 -0
- package/pages/CreateBranch/useCreatedStores.ts +11 -0
- package/pages/CreateBranch/useForm.ts +60 -0
- package/pages/CreateBranch/utils/index.ts +18 -0
- package/pages/CreateClone/index.tsx +520 -0
- package/pages/CreateClone/stores/Main.ts +139 -0
- package/pages/CreateClone/useCreatedStores.ts +11 -0
- package/pages/CreateClone/useForm.ts +51 -0
- package/pages/CreateClone/utils/index.ts +38 -0
- package/pages/CreateSnapshot/index.tsx +253 -0
- package/pages/CreateSnapshot/stores/Main.ts +70 -0
- package/pages/CreateSnapshot/useCreatedStores.ts +11 -0
- package/pages/CreateSnapshot/useForm.ts +34 -0
- package/pages/CreateSnapshot/utils/index.ts +8 -0
- package/pages/Instance/Clones/ClonesList/ConnectionModal/index.tsx +196 -0
- package/pages/Instance/Clones/ClonesList/MenuCell/index.tsx +98 -0
- package/pages/Instance/Clones/ClonesList/MenuCell/utils.ts +21 -0
- package/pages/Instance/Clones/ClonesList/index.tsx +246 -0
- package/pages/Instance/Clones/ClonesModal/index.tsx +71 -0
- package/pages/Instance/Clones/ClonesModal/utils.ts +21 -0
- package/pages/Instance/Clones/Header/Item/index.tsx +15 -0
- package/pages/Instance/Clones/Header/index.tsx +74 -0
- package/pages/Instance/Clones/index.tsx +141 -0
- package/pages/Instance/Configuration/Header/index.tsx +84 -0
- package/pages/Instance/Configuration/InputWithTooltip/index.tsx +240 -0
- package/pages/Instance/Configuration/ResponseMessage/index.tsx +71 -0
- package/pages/Instance/Configuration/configOptions.ts +60 -0
- package/pages/Instance/Configuration/index.tsx +1233 -0
- package/pages/Instance/Configuration/tooltipText.tsx +170 -0
- package/pages/Instance/Configuration/useForm.ts +108 -0
- package/pages/Instance/Configuration/utils/index.ts +236 -0
- package/pages/Instance/InactiveInstance/index.tsx +157 -0
- package/pages/Instance/InactiveInstance/utils.ts +9 -0
- package/pages/Instance/Info/Connection/ConnectModal/Content/index.tsx +176 -0
- package/pages/Instance/Info/Connection/ConnectModal/Content/utils.ts +24 -0
- package/pages/Instance/Info/Connection/ConnectModal/index.tsx +36 -0
- package/pages/Instance/Info/Connection/index.tsx +81 -0
- package/pages/Instance/Info/Details/index.tsx +20 -0
- package/pages/Instance/Info/Disks/Disk/ActionsMenu/index.tsx +100 -0
- package/pages/Instance/Info/Disks/Disk/ProgressBar/PointerIcon.tsx +20 -0
- package/pages/Instance/Info/Disks/Disk/ProgressBar/index.tsx +76 -0
- package/pages/Instance/Info/Disks/Disk/Status/index.tsx +75 -0
- package/pages/Instance/Info/Disks/PoolSection/DatasetRow/index.tsx +117 -0
- package/pages/Instance/Info/Disks/PoolSection/index.tsx +112 -0
- package/pages/Instance/Info/Disks/index.tsx +114 -0
- package/pages/Instance/Info/Icons/index.tsx +39 -0
- package/pages/Instance/Info/Retrieval/ConfirmFullRefreshModal/index.tsx +109 -0
- package/pages/Instance/Info/Retrieval/RefreshFailedAlert/index.tsx +32 -0
- package/pages/Instance/Info/Retrieval/RetrievalModal/index.tsx +43 -0
- package/pages/Instance/Info/Retrieval/RetrievalTable/index.tsx +53 -0
- package/pages/Instance/Info/Retrieval/index.tsx +113 -0
- package/pages/Instance/Info/Retrieval/utils.ts +10 -0
- package/pages/Instance/Info/Snapshots/Calendar/Day/index.tsx +125 -0
- package/pages/Instance/Info/Snapshots/Calendar/index.tsx +133 -0
- package/pages/Instance/Info/Snapshots/Calendar/utils.ts +74 -0
- package/pages/Instance/Info/Snapshots/TimeLine/Day/index.tsx +79 -0
- package/pages/Instance/Info/Snapshots/TimeLine/index.tsx +57 -0
- package/pages/Instance/Info/Snapshots/index.tsx +102 -0
- package/pages/Instance/Info/Snapshots/utils.ts +31 -0
- package/pages/Instance/Info/Status/InstanceResponseModal/index.tsx +32 -0
- package/pages/Instance/Info/Status/index.tsx +89 -0
- package/pages/Instance/Info/Status/utils.ts +24 -0
- package/pages/Instance/Info/components/Property/index.tsx +32 -0
- package/pages/Instance/Info/components/Section/index.tsx +50 -0
- package/pages/Instance/Info/components/ValueStatus/index.tsx +51 -0
- package/pages/Instance/Info/index.tsx +137 -0
- package/pages/Instance/Snapshots/components/SnapshotHeader/index.tsx +77 -0
- package/pages/Instance/Snapshots/components/SnapshotsList/index.tsx +285 -0
- package/pages/Instance/Snapshots/components/SnapshotsModal/utils.ts +17 -0
- package/pages/Instance/Snapshots/components/SnapshotsTable/index.tsx +231 -0
- package/pages/Instance/Snapshots/index.tsx +171 -0
- package/pages/Instance/Snapshots/utils/index.ts +39 -0
- package/pages/Instance/SnapshotsModal/index.tsx +159 -0
- package/pages/Instance/Tabs/PlatformTabs.tsx +83 -0
- package/pages/Instance/Tabs/index.tsx +140 -0
- package/pages/Instance/Tabs/styles.ts +68 -0
- package/pages/Instance/components/ErrorStub/index.tsx +77 -0
- package/pages/Instance/components/ModalReloadButton/index.tsx +42 -0
- package/pages/Instance/components/Tags/Tag/index.tsx +60 -0
- package/pages/Instance/components/Tags/index.tsx +42 -0
- package/pages/Instance/context.ts +46 -0
- package/pages/Instance/index.tsx +257 -0
- package/pages/Instance/stores/ClonesModal.ts +35 -0
- package/pages/Instance/stores/Main.ts +484 -0
- package/pages/Instance/stores/SnapshotsModal.ts +35 -0
- package/pages/Instance/useCreatedStores.ts +14 -0
- package/pages/Logs/Icons/PlusIcon.tsx +9 -0
- package/pages/Logs/constants/index.ts +7 -0
- package/pages/Logs/hooks/useWsScroll.tsx +47 -0
- package/pages/Logs/index.tsx +287 -0
- package/pages/Logs/utils/index.ts +20 -0
- package/pages/Logs/wsLogs.ts +126 -0
- package/pages/Logs/wsSnackbar.ts +26 -0
- package/pages/Snapshots/Snapshot/DestorySnapshotModal/index.tsx +144 -0
- package/pages/Snapshots/Snapshot/context.ts +26 -0
- package/pages/Snapshots/Snapshot/index.tsx +485 -0
- package/pages/Snapshots/Snapshot/stores/Main.ts +120 -0
- package/pages/Snapshots/Snapshot/useCreatedStores.ts +10 -0
- package/postgres.ai-shared-4.1.0.tgz +0 -0
- package/react-app-env.d.ts +0 -7
- package/scripts/copy-assets.js +30 -0
- package/scripts/pack.js +70 -0
- package/stores/Snapshots.ts +97 -0
- package/styles/colors.ts +67 -0
- package/styles/icons.tsx +1917 -0
- package/styles/styles.ts +87 -0
- package/styles/theme.ts +53 -0
- package/styles/vars.ts +40 -0
- package/tsconfig.build.json +0 -1
- package/types/api/endpoints/createBranch.ts +14 -0
- package/types/api/endpoints/createClone.ts +11 -0
- package/types/api/endpoints/createSnapshot.ts +10 -0
- package/types/api/endpoints/deleteBranch.ts +4 -0
- package/types/api/endpoints/destroyClone.ts +7 -0
- package/types/api/endpoints/destroySnapshot.ts +8 -0
- package/types/api/endpoints/fullRefresh.ts +6 -0
- package/types/api/endpoints/getBranchSnapshot.ts +6 -0
- package/types/api/endpoints/getBranches.ts +22 -0
- package/types/api/endpoints/getClone.ts +6 -0
- package/types/api/endpoints/getConfig.ts +6 -0
- package/types/api/endpoints/getEngine.ts +13 -0
- package/types/api/endpoints/getFullConfig.ts +4 -0
- package/types/api/endpoints/getInstance.ts +6 -0
- package/types/api/endpoints/getInstanceRetrieval.ts +6 -0
- package/types/api/endpoints/getSeImages.ts +22 -0
- package/types/api/endpoints/getSnapshotList.ts +14 -0
- package/types/api/endpoints/getSnapshots.ts +6 -0
- package/types/api/endpoints/getWSToken.ts +6 -0
- package/types/api/endpoints/initWS.ts +1 -0
- package/types/api/endpoints/refreshInstance.ts +4 -0
- package/types/api/endpoints/resetClone.ts +8 -0
- package/types/api/endpoints/testDbSource.ts +48 -0
- package/types/api/endpoints/updateClone.ts +11 -0
- package/types/api/endpoints/updateConfig.ts +9 -0
- package/types/api/entities/branchSnapshot.ts +8 -0
- package/types/api/entities/branchSnapshots.ts +10 -0
- package/types/api/entities/clone.ts +47 -0
- package/types/api/entities/config.ts +117 -0
- package/types/api/entities/createBranch.ts +7 -0
- package/types/api/entities/createSnapshot.ts +7 -0
- package/types/api/entities/dbSource.ts +14 -0
- package/types/api/entities/instance.ts +67 -0
- package/types/api/entities/instanceRetrieval.ts +46 -0
- package/types/api/entities/instanceState.ts +106 -0
- package/types/api/entities/pool.ts +27 -0
- package/types/api/entities/snapshot.ts +22 -0
- package/types/api/entities/wsToken.ts +7 -0
- package/types/byte-size/index.d.ts +22 -0
- package/utils/api.ts +30 -0
- package/utils/clone.ts +31 -0
- package/utils/connection.ts +38 -0
- package/utils/date.ts +136 -0
- package/utils/instance.ts +10 -0
- package/utils/numbers.ts +11 -0
- package/utils/react.ts +10 -0
- package/utils/snapshot.ts +8 -0
- package/utils/strings.ts +11 -0
- package/utils/units.ts +23 -0
- package/pages/Instance/Info/Disks/Disk/Marker/index.d.ts +0 -6
- package/pages/Instance/Info/Disks/Disk/Marker/index.js +0 -15
- package/pages/Instance/Info/Disks/Disk/index.js +0 -71
- package/pages/Instance/Info/Disks/index.js +0 -24
- /package/{components → dist/components}/AlertSnackbar/index.d.ts +0 -0
- /package/{components → dist/components}/AlertSnackbar/index.js +0 -0
- /package/{components → dist/components}/AlertSnackbar/useAlertSnackbar.d.ts +0 -0
- /package/{components → dist/components}/AlertSnackbar/useAlertSnackbar.js +0 -0
- /package/{components → dist/components}/Button/index.d.ts +0 -0
- /package/{components → dist/components}/Button/index.js +0 -0
- /package/{components → dist/components}/Button2/index.d.ts +0 -0
- /package/{components → dist/components}/Button2/index.js +0 -0
- /package/{components → dist/components}/DestroyCloneModal/index.d.ts +0 -0
- /package/{components → dist/components}/DestroyCloneModal/index.js +0 -0
- /package/{components → dist/components}/DestroyCloneRestrictionModal/index.d.ts +0 -0
- /package/{components → dist/components}/DestroyCloneRestrictionModal/index.js +0 -0
- /package/{components → dist/components}/ErrorStub/index.d.ts +0 -0
- /package/{components → dist/components}/ErrorStub/index.js +0 -0
- /package/{components → dist/components}/FormattedText/index.d.ts +0 -0
- /package/{components → dist/components}/FormattedText/index.js +0 -0
- /package/{components → dist/components}/GatewayLink/index.d.ts +0 -0
- /package/{components → dist/components}/GatewayLink/index.js +0 -0
- /package/{components → dist/components}/HorizontalScrollContainer/index.d.ts +0 -0
- /package/{components → dist/components}/HorizontalScrollContainer/index.js +0 -0
- /package/{components → dist/components}/HorizontalScrollContainer/types.d.ts +0 -0
- /package/{components → dist/components}/HorizontalScrollContainer/types.js +0 -0
- /package/{components → dist/components}/HorizontalScrollContainer/utils.d.ts +0 -0
- /package/{components → dist/components}/HorizontalScrollContainer/utils.js +0 -0
- /package/{components → dist/components}/ImportantText/index.d.ts +0 -0
- /package/{components → dist/components}/ImportantText/index.js +0 -0
- /package/{components → dist/components}/Link2/index.d.ts +0 -0
- /package/{components → dist/components}/Link2/index.js +0 -0
- /package/{components → dist/components}/MenuButton/index.d.ts +0 -0
- /package/{components → dist/components}/MenuButton/index.js +0 -0
- /package/{components → dist/components}/Modal/index.d.ts +0 -0
- /package/{components → dist/components}/Modal/index.js +0 -0
- /package/{components → dist/components}/PageSpinner/index.d.ts +0 -0
- /package/{components → dist/components}/PageSpinner/index.js +0 -0
- /package/{components → dist/components}/ResetCloneModal/index.d.ts +0 -0
- /package/{components → dist/components}/ResetCloneModal/index.js +0 -0
- /package/{components → dist/components}/SectionTitle/index.d.ts +0 -0
- /package/{components → dist/components}/SectionTitle/index.js +0 -0
- /package/{components → dist/components}/Select/index.js +0 -0
- /package/{components → dist/components}/SimpleModalControls/index.d.ts +0 -0
- /package/{components → dist/components}/SimpleModalControls/index.js +0 -0
- /package/{components → dist/components}/Spinner/icon.d.ts +0 -0
- /package/{components → dist/components}/Spinner/icon.js +0 -0
- /package/{components → dist/components}/Spinner/index.d.ts +0 -0
- /package/{components → dist/components}/Spinner/index.js +0 -0
- /package/{components → dist/components}/Status/index.d.ts +0 -0
- /package/{components → dist/components}/Status/index.js +0 -0
- /package/{components → dist/components}/StubContainer/index.d.ts +0 -0
- /package/{components → dist/components}/StubContainer/index.js +0 -0
- /package/{components → dist/components}/StubSpinner/index.d.ts +0 -0
- /package/{components → dist/components}/StubSpinner/index.js +0 -0
- /package/{components → dist/components}/StubSpinnerFlex/index.d.ts +0 -0
- /package/{components → dist/components}/StubSpinnerFlex/index.js +0 -0
- /package/{components → dist/components}/SyntaxHighlight/index.d.ts +0 -0
- /package/{components → dist/components}/SyntaxHighlight/index.js +0 -0
- /package/{components → dist/components}/Table/RowMenu/index.d.ts +0 -0
- /package/{components → dist/components}/Table/RowMenu/index.js +0 -0
- /package/{components → dist/components}/Table/index.d.ts +0 -0
- /package/{components → dist/components}/Table/index.js +0 -0
- /package/{components → dist/components}/Text/index.d.ts +0 -0
- /package/{components → dist/components}/Text/index.js +0 -0
- /package/{components → dist/components}/Tooltip/index.d.ts +0 -0
- /package/{components → dist/components}/Tooltip/index.js +0 -0
- /package/{config → dist/config}/index.d.ts +0 -0
- /package/{config → dist/config}/index.js +0 -0
- /package/{config → dist/config}/links.d.ts +0 -0
- /package/{config → dist/config}/links.js +0 -0
- /package/{helpers → dist/helpers}/getEntropy.d.ts +0 -0
- /package/{helpers → dist/helpers}/getEntropy.js +0 -0
- /package/{helpers → dist/helpers}/localStorage.d.ts +0 -0
- /package/{helpers → dist/helpers}/localStorage.js +0 -0
- /package/{helpers → dist/helpers}/request.d.ts +0 -0
- /package/{helpers → dist/helpers}/request.js +0 -0
- /package/{hooks → dist/hooks}/useWindowDimensions.d.ts +0 -0
- /package/{hooks → dist/hooks}/useWindowDimensions.js +0 -0
- /package/{icons → dist/icons}/ArrowDropDown/index.d.ts +0 -0
- /package/{icons → dist/icons}/ArrowDropDown/index.js +0 -0
- /package/{icons → dist/icons}/Circle/index.d.ts +0 -0
- /package/{icons → dist/icons}/Circle/index.js +0 -0
- /package/{icons → dist/icons}/External/index.d.ts +0 -0
- /package/{icons → dist/icons}/External/index.js +0 -0
- /package/{icons → dist/icons}/Info/index.d.ts +0 -0
- /package/{icons → dist/icons}/Info/index.js +0 -0
- /package/{icons → dist/icons}/PostgresSQL/index.d.ts +0 -0
- /package/{icons → dist/icons}/PostgresSQL/index.js +0 -0
- /package/{icons → dist/icons}/Renewable/index.d.ts +0 -0
- /package/{icons → dist/icons}/Renewable/index.js +0 -0
- /package/{icons → dist/icons}/Shield/index.d.ts +0 -0
- /package/{icons → dist/icons}/Shield/index.js +0 -0
- /package/{icons → dist/icons}/Warning/index.d.ts +0 -0
- /package/{icons → dist/icons}/Warning/index.js +0 -0
- /package/{pages → dist/pages}/Branches/Branch/context.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/Branch/context.js +0 -0
- /package/{pages → dist/pages}/Branches/Branch/index.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/Branch/index.js +0 -0
- /package/{pages → dist/pages}/Branches/Branch/stores/Main.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/Branch/stores/Main.js +0 -0
- /package/{pages → dist/pages}/Branches/Branch/useCreatedStores.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/Branch/useCreatedStores.js +0 -0
- /package/{pages → dist/pages}/Branches/components/BranchesTable/index.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/components/BranchesTable/index.js +0 -0
- /package/{pages → dist/pages}/Branches/components/Modals/DeleteBranchModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/components/Modals/DeleteBranchModal/index.js +0 -0
- /package/{pages → dist/pages}/Branches/components/Modals/types.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/components/Modals/types.js +0 -0
- /package/{pages → dist/pages}/Branches/index.d.ts +0 -0
- /package/{pages → dist/pages}/Branches/index.js +0 -0
- /package/{pages → dist/pages}/Clone/Status/index.d.ts +0 -0
- /package/{pages → dist/pages}/Clone/Status/index.js +0 -0
- /package/{pages → dist/pages}/Clone/context.d.ts +0 -0
- /package/{pages → dist/pages}/Clone/context.js +0 -0
- /package/{pages → dist/pages}/Clone/index.d.ts +0 -0
- /package/{pages → dist/pages}/Clone/useCreatedStores.d.ts +0 -0
- /package/{pages → dist/pages}/Clone/useCreatedStores.js +0 -0
- /package/{pages → dist/pages}/Clone/utils/index.d.ts +0 -0
- /package/{pages → dist/pages}/Clone/utils/index.js +0 -0
- /package/{pages → dist/pages}/CreateBranch/index.d.ts +0 -0
- /package/{pages → dist/pages}/CreateBranch/index.js +0 -0
- /package/{pages → dist/pages}/CreateBranch/stores/Main.d.ts +0 -0
- /package/{pages → dist/pages}/CreateBranch/stores/Main.js +0 -0
- /package/{pages → dist/pages}/CreateBranch/useCreatedStores.d.ts +0 -0
- /package/{pages → dist/pages}/CreateBranch/useCreatedStores.js +0 -0
- /package/{pages → dist/pages}/CreateBranch/useForm.js +0 -0
- /package/{pages → dist/pages}/CreateBranch/utils/index.d.ts +0 -0
- /package/{pages → dist/pages}/CreateBranch/utils/index.js +0 -0
- /package/{pages → dist/pages}/CreateClone/index.d.ts +0 -0
- /package/{pages → dist/pages}/CreateClone/stores/Main.d.ts +0 -0
- /package/{pages → dist/pages}/CreateClone/stores/Main.js +0 -0
- /package/{pages → dist/pages}/CreateClone/useCreatedStores.d.ts +0 -0
- /package/{pages → dist/pages}/CreateClone/useCreatedStores.js +0 -0
- /package/{pages → dist/pages}/CreateClone/utils/index.d.ts +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/index.d.ts +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/index.js +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/stores/Main.d.ts +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/stores/Main.js +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/useCreatedStores.d.ts +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/useCreatedStores.js +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/useForm.js +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/utils/index.d.ts +0 -0
- /package/{pages → dist/pages}/CreateSnapshot/utils/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/ConnectionModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/ConnectionModal/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/MenuCell/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/MenuCell/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/MenuCell/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/MenuCell/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesList/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesModal/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesModal/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/ClonesModal/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/Header/Item/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/Header/Item/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/Header/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/Header/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Clones/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Clones/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/Header/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/Header/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/InputWithTooltip/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/InputWithTooltip/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/ResponseMessage/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/ResponseMessage/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/configOptions.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/configOptions.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/tooltipText.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/tooltipText.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/useForm.js +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/utils/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Configuration/utils/index.js +0 -0
- /package/{pages → dist/pages}/Instance/InactiveInstance/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/InactiveInstance/index.js +0 -0
- /package/{pages → dist/pages}/Instance/InactiveInstance/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/InactiveInstance/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/ConnectModal/Content/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/ConnectModal/Content/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/ConnectModal/Content/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/ConnectModal/Content/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/ConnectModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/ConnectModal/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Connection/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Details/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Details/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Disks/Disk/ActionsMenu/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Disks/Disk/ActionsMenu/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Disks/Disk/ProgressBar/PointerIcon.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Disks/Disk/ProgressBar/PointerIcon.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Disks/Disk/Status/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Disks/Disk/Status/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Disks/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Icons/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Icons/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/ConfirmFullRefreshModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/ConfirmFullRefreshModal/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/RefreshFailedAlert/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/RefreshFailedAlert/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/RetrievalModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/RetrievalModal/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/RetrievalTable/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/RetrievalTable/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Retrieval/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/Calendar/Day/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/Calendar/Day/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/Calendar/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/Calendar/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/Calendar/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/Calendar/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/TimeLine/Day/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/TimeLine/Day/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/TimeLine/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/TimeLine/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Snapshots/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Status/InstanceResponseModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Status/InstanceResponseModal/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Status/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Status/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/Status/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/Status/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/components/Property/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/components/Property/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/components/Section/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/components/Section/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/components/ValueStatus/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/components/ValueStatus/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Info/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Info/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotHeader/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotHeader/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotsList/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotsList/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotsModal/utils.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotsModal/utils.js +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotsTable/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/components/SnapshotsTable/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/utils/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Snapshots/utils/index.js +0 -0
- /package/{pages → dist/pages}/Instance/SnapshotsModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/SnapshotsModal/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Tabs/PlatformTabs.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Tabs/PlatformTabs.js +0 -0
- /package/{pages → dist/pages}/Instance/Tabs/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Tabs/index.js +0 -0
- /package/{pages → dist/pages}/Instance/Tabs/styles.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/Tabs/styles.js +0 -0
- /package/{pages → dist/pages}/Instance/components/ErrorStub/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/components/ErrorStub/index.js +0 -0
- /package/{pages → dist/pages}/Instance/components/ModalReloadButton/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/components/ModalReloadButton/index.js +0 -0
- /package/{pages → dist/pages}/Instance/components/Tags/Tag/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/components/Tags/Tag/index.js +0 -0
- /package/{pages → dist/pages}/Instance/components/Tags/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/components/Tags/index.js +0 -0
- /package/{pages → dist/pages}/Instance/context.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/context.js +0 -0
- /package/{pages → dist/pages}/Instance/index.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/index.js +0 -0
- /package/{pages → dist/pages}/Instance/stores/ClonesModal.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/stores/ClonesModal.js +0 -0
- /package/{pages → dist/pages}/Instance/stores/Main.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/stores/Main.js +0 -0
- /package/{pages → dist/pages}/Instance/stores/SnapshotsModal.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/stores/SnapshotsModal.js +0 -0
- /package/{pages → dist/pages}/Instance/useCreatedStores.d.ts +0 -0
- /package/{pages → dist/pages}/Instance/useCreatedStores.js +0 -0
- /package/{pages → dist/pages}/Logs/Icons/PlusIcon.d.ts +0 -0
- /package/{pages → dist/pages}/Logs/Icons/PlusIcon.js +0 -0
- /package/{pages → dist/pages}/Logs/constants/index.d.ts +0 -0
- /package/{pages → dist/pages}/Logs/constants/index.js +0 -0
- /package/{pages → dist/pages}/Logs/hooks/useWsScroll.d.ts +0 -0
- /package/{pages → dist/pages}/Logs/hooks/useWsScroll.js +0 -0
- /package/{pages → dist/pages}/Logs/index.d.ts +0 -0
- /package/{pages → dist/pages}/Logs/index.js +0 -0
- /package/{pages → dist/pages}/Logs/utils/index.d.ts +0 -0
- /package/{pages → dist/pages}/Logs/utils/index.js +0 -0
- /package/{pages → dist/pages}/Logs/wsLogs.d.ts +0 -0
- /package/{pages → dist/pages}/Logs/wsLogs.js +0 -0
- /package/{pages → dist/pages}/Logs/wsSnackbar.d.ts +0 -0
- /package/{pages → dist/pages}/Logs/wsSnackbar.js +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/DestorySnapshotModal/index.d.ts +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/DestorySnapshotModal/index.js +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/context.d.ts +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/context.js +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/index.d.ts +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/index.js +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/stores/Main.d.ts +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/stores/Main.js +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/useCreatedStores.d.ts +0 -0
- /package/{pages → dist/pages}/Snapshots/Snapshot/useCreatedStores.js +0 -0
- /package/{stores → dist/stores}/Snapshots.d.ts +0 -0
- /package/{stores → dist/stores}/Snapshots.js +0 -0
- /package/{styles → dist/styles}/colors.d.ts +0 -0
- /package/{styles → dist/styles}/colors.js +0 -0
- /package/{styles → dist/styles}/icons.d.ts +0 -0
- /package/{styles → dist/styles}/icons.js +0 -0
- /package/{styles → dist/styles}/styles.d.ts +0 -0
- /package/{styles → dist/styles}/styles.js +0 -0
- /package/{styles → dist/styles}/theme.d.ts +0 -0
- /package/{styles → dist/styles}/theme.js +0 -0
- /package/{styles → dist/styles}/vars.d.ts +0 -0
- /package/{styles → dist/styles}/vars.js +0 -0
- /package/{types → dist/types}/api/endpoints/createBranch.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/createBranch.js +0 -0
- /package/{types → dist/types}/api/endpoints/createClone.js +0 -0
- /package/{types → dist/types}/api/endpoints/createSnapshot.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/createSnapshot.js +0 -0
- /package/{types → dist/types}/api/endpoints/deleteBranch.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/deleteBranch.js +0 -0
- /package/{types → dist/types}/api/endpoints/destroyClone.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/destroyClone.js +0 -0
- /package/{types → dist/types}/api/endpoints/destroySnapshot.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/destroySnapshot.js +0 -0
- /package/{types → dist/types}/api/endpoints/fullRefresh.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/fullRefresh.js +0 -0
- /package/{types → dist/types}/api/endpoints/getBranchSnapshot.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getBranchSnapshot.js +0 -0
- /package/{types → dist/types}/api/endpoints/getBranches.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getBranches.js +0 -0
- /package/{types → dist/types}/api/endpoints/getClone.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getClone.js +0 -0
- /package/{types → dist/types}/api/endpoints/getConfig.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getConfig.js +0 -0
- /package/{types → dist/types}/api/endpoints/getEngine.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getEngine.js +0 -0
- /package/{types → dist/types}/api/endpoints/getFullConfig.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getFullConfig.js +0 -0
- /package/{types → dist/types}/api/endpoints/getInstance.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getInstance.js +0 -0
- /package/{types → dist/types}/api/endpoints/getInstanceRetrieval.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getInstanceRetrieval.js +0 -0
- /package/{types → dist/types}/api/endpoints/getSeImages.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getSeImages.js +0 -0
- /package/{types → dist/types}/api/endpoints/getSnapshotList.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getSnapshotList.js +0 -0
- /package/{types → dist/types}/api/endpoints/getSnapshots.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getSnapshots.js +0 -0
- /package/{types → dist/types}/api/endpoints/getWSToken.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/getWSToken.js +0 -0
- /package/{types → dist/types}/api/endpoints/initWS.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/initWS.js +0 -0
- /package/{types → dist/types}/api/endpoints/refreshInstance.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/refreshInstance.js +0 -0
- /package/{types → dist/types}/api/endpoints/resetClone.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/resetClone.js +0 -0
- /package/{types → dist/types}/api/endpoints/testDbSource.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/testDbSource.js +0 -0
- /package/{types → dist/types}/api/endpoints/updateClone.js +0 -0
- /package/{types → dist/types}/api/endpoints/updateConfig.d.ts +0 -0
- /package/{types → dist/types}/api/endpoints/updateConfig.js +0 -0
- /package/{types → dist/types}/api/entities/branchSnapshot.d.ts +0 -0
- /package/{types → dist/types}/api/entities/branchSnapshot.js +0 -0
- /package/{types → dist/types}/api/entities/branchSnapshots.d.ts +0 -0
- /package/{types → dist/types}/api/entities/branchSnapshots.js +0 -0
- /package/{types → dist/types}/api/entities/config.d.ts +0 -0
- /package/{types → dist/types}/api/entities/createBranch.d.ts +0 -0
- /package/{types → dist/types}/api/entities/createBranch.js +0 -0
- /package/{types → dist/types}/api/entities/createSnapshot.d.ts +0 -0
- /package/{types → dist/types}/api/entities/createSnapshot.js +0 -0
- /package/{types → dist/types}/api/entities/dbSource.d.ts +0 -0
- /package/{types → dist/types}/api/entities/dbSource.js +0 -0
- /package/{types → dist/types}/api/entities/instance.js +0 -0
- /package/{types → dist/types}/api/entities/instanceRetrieval.d.ts +0 -0
- /package/{types → dist/types}/api/entities/instanceRetrieval.js +0 -0
- /package/{types → dist/types}/api/entities/pool.d.ts +0 -0
- /package/{types → dist/types}/api/entities/pool.js +0 -0
- /package/{types → dist/types}/api/entities/snapshot.d.ts +0 -0
- /package/{types → dist/types}/api/entities/snapshot.js +0 -0
- /package/{types → dist/types}/api/entities/wsToken.d.ts +0 -0
- /package/{types → dist/types}/api/entities/wsToken.js +0 -0
- /package/{utils → dist/utils}/api.d.ts +0 -0
- /package/{utils → dist/utils}/api.js +0 -0
- /package/{utils → dist/utils}/clone.d.ts +0 -0
- /package/{utils → dist/utils}/clone.js +0 -0
- /package/{utils → dist/utils}/connection.d.ts +0 -0
- /package/{utils → dist/utils}/connection.js +0 -0
- /package/{utils → dist/utils}/date.d.ts +0 -0
- /package/{utils → dist/utils}/date.js +0 -0
- /package/{utils → dist/utils}/instance.d.ts +0 -0
- /package/{utils → dist/utils}/instance.js +0 -0
- /package/{utils → dist/utils}/numbers.d.ts +0 -0
- /package/{utils → dist/utils}/numbers.js +0 -0
- /package/{utils → dist/utils}/react.d.ts +0 -0
- /package/{utils → dist/utils}/react.js +0 -0
- /package/{utils → dist/utils}/snapshot.d.ts +0 -0
- /package/{utils → dist/utils}/snapshot.js +0 -0
- /package/{utils → dist/utils}/strings.d.ts +0 -0
- /package/{utils → dist/utils}/strings.js +0 -0
- /package/{utils → dist/utils}/units.d.ts +0 -0
- /package/{utils → dist/utils}/units.js +0 -0
|
@@ -0,0 +1,1233 @@
|
|
|
1
|
+
/*--------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) 2019-2021, Postgres.ai, Nikolay Samokhvalov nik@postgres.ai
|
|
3
|
+
* All Rights Reserved. Proprietary and confidential.
|
|
4
|
+
* Unauthorized copying of this file, via any small is strictly prohibited
|
|
5
|
+
*--------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { useState, useEffect, useMemo } from 'react'
|
|
9
|
+
import { observer } from 'mobx-react-lite'
|
|
10
|
+
import Editor from '@monaco-editor/react'
|
|
11
|
+
import {
|
|
12
|
+
Checkbox,
|
|
13
|
+
FormControlLabel,
|
|
14
|
+
Typography,
|
|
15
|
+
Snackbar,
|
|
16
|
+
makeStyles,
|
|
17
|
+
Button,
|
|
18
|
+
} from '@material-ui/core'
|
|
19
|
+
import Box from '@mui/material/Box'
|
|
20
|
+
|
|
21
|
+
import { Modal } from '@postgres.ai/shared/components/Modal'
|
|
22
|
+
import { StubSpinner } from '@postgres.ai/shared/components/StubSpinner'
|
|
23
|
+
import { ExternalIcon } from '@postgres.ai/shared/icons/External'
|
|
24
|
+
import { Spinner } from '@postgres.ai/shared/components/Spinner'
|
|
25
|
+
import { useStores } from '@postgres.ai/shared/pages/Instance/context'
|
|
26
|
+
import { MainStore } from '@postgres.ai/shared/pages/Instance/stores/Main'
|
|
27
|
+
|
|
28
|
+
import { tooltipText } from './tooltipText'
|
|
29
|
+
import { FormValues, useForm } from './useForm'
|
|
30
|
+
import { ResponseMessage } from './ResponseMessage'
|
|
31
|
+
import { ConfigSectionTitle, Header, ModalTitle } from './Header'
|
|
32
|
+
import { dockerImageOptions, imagePgOptions } from './configOptions'
|
|
33
|
+
import {
|
|
34
|
+
FormValuesKey,
|
|
35
|
+
uniqueChipValue,
|
|
36
|
+
customOrGenericImage,
|
|
37
|
+
genericDockerImages,
|
|
38
|
+
getImageMajorVersion,
|
|
39
|
+
createFallbackDockerImage,
|
|
40
|
+
createEnhancedDockerImages,
|
|
41
|
+
} from './utils'
|
|
42
|
+
import {
|
|
43
|
+
SelectWithTooltip,
|
|
44
|
+
InputWithChip,
|
|
45
|
+
InputWithTooltip,
|
|
46
|
+
} from './InputWithTooltip'
|
|
47
|
+
|
|
48
|
+
import styles from './styles.module.scss'
|
|
49
|
+
import { SeImages } from '@postgres.ai/shared/types/api/endpoints/getSeImages'
|
|
50
|
+
import {
|
|
51
|
+
formatTuningParams,
|
|
52
|
+
formatTuningParamsToObj,
|
|
53
|
+
} from '@postgres.ai/shared/types/api/endpoints/testDbSource'
|
|
54
|
+
|
|
55
|
+
type PgOptionsType = {
|
|
56
|
+
optionType: string
|
|
57
|
+
pgDumpOptions: string[]
|
|
58
|
+
pgRestoreOptions: string[]
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const NON_LOGICAL_RETRIEVAL_MESSAGE =
|
|
62
|
+
'Configuration editing is only available in logical mode'
|
|
63
|
+
const PREVENT_MODIFYING_MESSAGE = 'Editing is disabled by admin'
|
|
64
|
+
|
|
65
|
+
const useStyles = makeStyles(
|
|
66
|
+
{
|
|
67
|
+
checkboxRoot: {
|
|
68
|
+
padding: '9px 10px',
|
|
69
|
+
},
|
|
70
|
+
grayText: {
|
|
71
|
+
color: '#8a8a8a',
|
|
72
|
+
fontSize: '12px',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{ index: 1 },
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
export const Configuration = observer(
|
|
79
|
+
({
|
|
80
|
+
instanceId,
|
|
81
|
+
switchActiveTab,
|
|
82
|
+
reload,
|
|
83
|
+
isConfigurationActive,
|
|
84
|
+
disableConfigModification,
|
|
85
|
+
}: {
|
|
86
|
+
instanceId: string
|
|
87
|
+
switchActiveTab: (_: null, activeTab: number) => void
|
|
88
|
+
reload: () => void
|
|
89
|
+
isConfigurationActive: boolean
|
|
90
|
+
disableConfigModification?: boolean
|
|
91
|
+
}) => {
|
|
92
|
+
const classes = useStyles()
|
|
93
|
+
const stores = useStores()
|
|
94
|
+
const {
|
|
95
|
+
config,
|
|
96
|
+
isConfigurationLoading,
|
|
97
|
+
updateConfig,
|
|
98
|
+
getSeImages,
|
|
99
|
+
fullConfig,
|
|
100
|
+
testDbSource,
|
|
101
|
+
configError,
|
|
102
|
+
getFullConfig,
|
|
103
|
+
getFullConfigError,
|
|
104
|
+
getEngine,
|
|
105
|
+
} = stores.main
|
|
106
|
+
|
|
107
|
+
const configData: MainStore['config'] =
|
|
108
|
+
config && JSON.parse(JSON.stringify(config))
|
|
109
|
+
const isConfigurationDisabled =
|
|
110
|
+
!isConfigurationActive || disableConfigModification
|
|
111
|
+
|
|
112
|
+
const [dleEdition, setDledition] = useState('')
|
|
113
|
+
const isCeEdition = dleEdition === 'community'
|
|
114
|
+
const filteredDockerImageOptions = isCeEdition
|
|
115
|
+
? dockerImageOptions.filter(
|
|
116
|
+
(option) =>
|
|
117
|
+
option.type === 'custom' || option.type === 'Generic Postgres',
|
|
118
|
+
)
|
|
119
|
+
: dockerImageOptions
|
|
120
|
+
|
|
121
|
+
const [isModalOpen, setIsModalOpen] = useState(false)
|
|
122
|
+
const [submitState, setSubmitState] = useState({
|
|
123
|
+
status: '',
|
|
124
|
+
response: '' as string | React.ReactNode,
|
|
125
|
+
})
|
|
126
|
+
const [dockerState, setDockerState] = useState({
|
|
127
|
+
loading: false,
|
|
128
|
+
error: '',
|
|
129
|
+
tags: [] as string[],
|
|
130
|
+
locations: [] as string[],
|
|
131
|
+
images: [] as string[],
|
|
132
|
+
preloadLibraries: '' as string | undefined,
|
|
133
|
+
data: [] as SeImages[],
|
|
134
|
+
})
|
|
135
|
+
const [testConnectionState, setTestConnectionState] = useState({
|
|
136
|
+
default: {
|
|
137
|
+
loading: false,
|
|
138
|
+
error: '',
|
|
139
|
+
message: {
|
|
140
|
+
status: '',
|
|
141
|
+
message: '',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
dockerImage: {
|
|
145
|
+
loading: false,
|
|
146
|
+
error: '',
|
|
147
|
+
message: {
|
|
148
|
+
status: '',
|
|
149
|
+
message: '',
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
fetchTuning: {
|
|
153
|
+
loading: false,
|
|
154
|
+
error: '',
|
|
155
|
+
message: {
|
|
156
|
+
status: '',
|
|
157
|
+
message: '',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
const switchTab = async () => {
|
|
163
|
+
reload()
|
|
164
|
+
switchActiveTab(null, 0)
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const onSubmit = async (values: FormValues) => {
|
|
168
|
+
setSubmitState({
|
|
169
|
+
...submitState,
|
|
170
|
+
response: '',
|
|
171
|
+
})
|
|
172
|
+
await updateConfig(
|
|
173
|
+
{
|
|
174
|
+
...values,
|
|
175
|
+
tuningParams: formatTuningParamsToObj(
|
|
176
|
+
values.tuningParams,
|
|
177
|
+
) as unknown as string,
|
|
178
|
+
},
|
|
179
|
+
instanceId,
|
|
180
|
+
).then((response) => {
|
|
181
|
+
if (response?.ok) {
|
|
182
|
+
setSubmitState({
|
|
183
|
+
status: 'success',
|
|
184
|
+
response: (
|
|
185
|
+
<p>
|
|
186
|
+
Changes applied.{' '}
|
|
187
|
+
<span className={styles.underline} onClick={switchTab}>
|
|
188
|
+
Switch to Overview
|
|
189
|
+
</span>{' '}
|
|
190
|
+
to see details and to work with clones
|
|
191
|
+
</p>
|
|
192
|
+
),
|
|
193
|
+
})
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
const [{ formik, connectionData, isConnectionDataValid }] =
|
|
198
|
+
useForm(onSubmit)
|
|
199
|
+
|
|
200
|
+
// Memoized enhanced Docker images to avoid recreation on every render
|
|
201
|
+
// This combines predefined images with any custom image from configuration
|
|
202
|
+
const enhancedDockerImages = useMemo(() => {
|
|
203
|
+
return createEnhancedDockerImages(
|
|
204
|
+
configData?.dockerImageType === 'Generic Postgres' ? configData?.dockerPath : undefined,
|
|
205
|
+
configData?.dockerImageType === 'Generic Postgres' ? configData?.dockerTag : undefined
|
|
206
|
+
)
|
|
207
|
+
}, [configData?.dockerPath, configData?.dockerTag, configData?.dockerImageType])
|
|
208
|
+
|
|
209
|
+
// Memoized computed values from enhanced images
|
|
210
|
+
const dockerImageVersions = useMemo(() => {
|
|
211
|
+
return enhancedDockerImages
|
|
212
|
+
.map((image) => image.pg_major_version)
|
|
213
|
+
.filter((value, index, self) => self.indexOf(value) === index)
|
|
214
|
+
.sort((a, b) => Number(a) - Number(b))
|
|
215
|
+
}, [enhancedDockerImages])
|
|
216
|
+
|
|
217
|
+
// Memoized tags and locations for performance
|
|
218
|
+
const dockerTags = useMemo(() => {
|
|
219
|
+
return enhancedDockerImages.map((image) => image.tag)
|
|
220
|
+
}, [enhancedDockerImages])
|
|
221
|
+
|
|
222
|
+
const dockerLocations = useMemo(() => {
|
|
223
|
+
return enhancedDockerImages.map((image) => image.location)
|
|
224
|
+
}, [enhancedDockerImages])
|
|
225
|
+
|
|
226
|
+
const scrollToField = () => {
|
|
227
|
+
const errorElement = document.querySelector('.Mui-error')
|
|
228
|
+
if (errorElement) {
|
|
229
|
+
errorElement.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
|
230
|
+
const inputElement = errorElement.querySelector('input')
|
|
231
|
+
if (inputElement) {
|
|
232
|
+
setTimeout(() => {
|
|
233
|
+
inputElement.focus()
|
|
234
|
+
}, 1000)
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const onTestConnectionClick = async ({
|
|
240
|
+
type,
|
|
241
|
+
}: {
|
|
242
|
+
type: 'default' | 'dockerImage' | 'fetchTuning'
|
|
243
|
+
}) => {
|
|
244
|
+
Object.keys(connectionData).map(function (key: string) {
|
|
245
|
+
if (key !== 'password' && key !== 'db_list') {
|
|
246
|
+
formik.validateField(key).then(() => {
|
|
247
|
+
scrollToField()
|
|
248
|
+
})
|
|
249
|
+
}
|
|
250
|
+
})
|
|
251
|
+
if (isConnectionDataValid) {
|
|
252
|
+
setTestConnectionState({
|
|
253
|
+
...testConnectionState,
|
|
254
|
+
[type]: {
|
|
255
|
+
...testConnectionState[type as keyof typeof testConnectionState],
|
|
256
|
+
loading: true,
|
|
257
|
+
error: '',
|
|
258
|
+
message: {
|
|
259
|
+
status: '',
|
|
260
|
+
message: '',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
})
|
|
264
|
+
testDbSource({
|
|
265
|
+
...connectionData,
|
|
266
|
+
instanceId,
|
|
267
|
+
})
|
|
268
|
+
.then((res) => {
|
|
269
|
+
if (res?.response) {
|
|
270
|
+
setTestConnectionState({
|
|
271
|
+
...testConnectionState,
|
|
272
|
+
[type]: {
|
|
273
|
+
...testConnectionState[
|
|
274
|
+
type as keyof typeof testConnectionState
|
|
275
|
+
],
|
|
276
|
+
message: {
|
|
277
|
+
status: res.response.status,
|
|
278
|
+
message: res.response.message,
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
})
|
|
282
|
+
|
|
283
|
+
if (type === 'fetchTuning') {
|
|
284
|
+
formik.setFieldValue(
|
|
285
|
+
'tuningParams',
|
|
286
|
+
formatTuningParams(res.response.tuningParams),
|
|
287
|
+
)
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
if (type === 'dockerImage' && res.response?.dbVersion) {
|
|
291
|
+
const currentDockerImage = dockerState.data.find(
|
|
292
|
+
(image) =>
|
|
293
|
+
Number(image.pg_major_version) === res.response?.dbVersion,
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
if (currentDockerImage) {
|
|
297
|
+
formik.setValues({
|
|
298
|
+
...formik.values,
|
|
299
|
+
dockerImage: currentDockerImage.pg_major_version,
|
|
300
|
+
dockerPath: currentDockerImage.location,
|
|
301
|
+
dockerTag: currentDockerImage.tag,
|
|
302
|
+
})
|
|
303
|
+
|
|
304
|
+
setDockerState({
|
|
305
|
+
...dockerState,
|
|
306
|
+
tags: dockerState.data
|
|
307
|
+
.map((image) => image.tag)
|
|
308
|
+
.filter((tag) =>
|
|
309
|
+
tag.startsWith(currentDockerImage.pg_major_version),
|
|
310
|
+
),
|
|
311
|
+
})
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
} else if (res?.error) {
|
|
315
|
+
setTestConnectionState({
|
|
316
|
+
...testConnectionState,
|
|
317
|
+
[type]: {
|
|
318
|
+
...testConnectionState[
|
|
319
|
+
type as keyof typeof testConnectionState
|
|
320
|
+
],
|
|
321
|
+
message: {
|
|
322
|
+
status: 'error',
|
|
323
|
+
message: res.error.message,
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
})
|
|
327
|
+
}
|
|
328
|
+
})
|
|
329
|
+
.catch((err) => {
|
|
330
|
+
setTestConnectionState({
|
|
331
|
+
...testConnectionState,
|
|
332
|
+
[type]: {
|
|
333
|
+
...testConnectionState[
|
|
334
|
+
type as keyof typeof testConnectionState
|
|
335
|
+
],
|
|
336
|
+
error: err.message,
|
|
337
|
+
loading: false,
|
|
338
|
+
},
|
|
339
|
+
})
|
|
340
|
+
})
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
const handleModalClick = async () => {
|
|
345
|
+
await getFullConfig(instanceId)
|
|
346
|
+
setIsModalOpen(true)
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
const handleDeleteChip = (
|
|
350
|
+
_: React.FormEvent<HTMLInputElement>,
|
|
351
|
+
uniqueValue: string,
|
|
352
|
+
id: string,
|
|
353
|
+
) => {
|
|
354
|
+
if (formik.values[id as FormValuesKey]) {
|
|
355
|
+
let newValues = ''
|
|
356
|
+
const currentValues = uniqueChipValue(
|
|
357
|
+
String(formik.values[id as FormValuesKey]),
|
|
358
|
+
)
|
|
359
|
+
const splitValues = currentValues.split(' ')
|
|
360
|
+
const curDividers = String(formik.values[id as FormValuesKey]).match(
|
|
361
|
+
/[,(\s)(\n)(\r)(\t)(\r\n)]/gm,
|
|
362
|
+
)
|
|
363
|
+
for (let i in splitValues) {
|
|
364
|
+
if (curDividers && splitValues[i] !== uniqueValue) {
|
|
365
|
+
newValues =
|
|
366
|
+
newValues +
|
|
367
|
+
splitValues[i] +
|
|
368
|
+
(curDividers[i] ? curDividers[i] : '')
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
formik.setFieldValue(id, newValues)
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const handleSelectPgOptions = (
|
|
376
|
+
e: React.ChangeEvent<HTMLInputElement>,
|
|
377
|
+
formikName: string,
|
|
378
|
+
) => {
|
|
379
|
+
let pgValue = formik.values[formikName as FormValuesKey]
|
|
380
|
+
formik.setFieldValue(
|
|
381
|
+
formikName,
|
|
382
|
+
configData && configData[formikName as FormValuesKey],
|
|
383
|
+
)
|
|
384
|
+
const selectedPgOptions = imagePgOptions.filter(
|
|
385
|
+
(pg) => e.target.value === pg.optionType,
|
|
386
|
+
)
|
|
387
|
+
|
|
388
|
+
const setFormikPgValue = (name: string) => {
|
|
389
|
+
if (selectedPgOptions.length === 0) {
|
|
390
|
+
formik.setFieldValue(formikName, '')
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
selectedPgOptions.forEach((pg: PgOptionsType) => {
|
|
394
|
+
return (pg[name as keyof PgOptionsType] as string[]).forEach(
|
|
395
|
+
(addOption) => {
|
|
396
|
+
if (!String(pgValue)?.includes(addOption)) {
|
|
397
|
+
const addOptionWithSpace = addOption + ' '
|
|
398
|
+
formik.setFieldValue(
|
|
399
|
+
formikName,
|
|
400
|
+
(pgValue += addOptionWithSpace),
|
|
401
|
+
)
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
)
|
|
405
|
+
})
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (formikName === 'pgRestoreCustomOptions') {
|
|
409
|
+
setFormikPgValue('pgRestoreOptions')
|
|
410
|
+
} else {
|
|
411
|
+
setFormikPgValue('pgDumpOptions')
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
const fetchSeImages = async ({
|
|
416
|
+
dockerTag,
|
|
417
|
+
packageGroup,
|
|
418
|
+
initialRender,
|
|
419
|
+
}: {
|
|
420
|
+
dockerTag?: string
|
|
421
|
+
packageGroup: string
|
|
422
|
+
initialRender?: boolean
|
|
423
|
+
}) => {
|
|
424
|
+
setDockerState({
|
|
425
|
+
...dockerState,
|
|
426
|
+
loading: true,
|
|
427
|
+
})
|
|
428
|
+
await getSeImages({
|
|
429
|
+
packageGroup,
|
|
430
|
+
}).then((data) => {
|
|
431
|
+
if (data) {
|
|
432
|
+
const seImagesMajorVersions = data
|
|
433
|
+
.map((image) => image.pg_major_version)
|
|
434
|
+
.filter((value, index, self) => self.indexOf(value) === index)
|
|
435
|
+
.sort((a, b) => Number(a) - Number(b))
|
|
436
|
+
const currentDockerImage = initialRender
|
|
437
|
+
? formik.values.dockerImage
|
|
438
|
+
: seImagesMajorVersions.slice(-1)[0]
|
|
439
|
+
|
|
440
|
+
const currentPreloadLibraries =
|
|
441
|
+
data.find((image) => image.tag === dockerTag)?.pg_config_presets
|
|
442
|
+
?.shared_preload_libraries ||
|
|
443
|
+
data[0]?.pg_config_presets?.shared_preload_libraries
|
|
444
|
+
|
|
445
|
+
setDockerState({
|
|
446
|
+
...(initialRender
|
|
447
|
+
? { images: seImagesMajorVersions }
|
|
448
|
+
: {
|
|
449
|
+
...dockerState,
|
|
450
|
+
}),
|
|
451
|
+
error: '',
|
|
452
|
+
tags: data
|
|
453
|
+
.map((image) => image.tag)
|
|
454
|
+
.filter((tag) => tag.startsWith(currentDockerImage)),
|
|
455
|
+
locations: data
|
|
456
|
+
.map((image) => image.location)
|
|
457
|
+
.filter((location) => location?.includes(currentDockerImage)),
|
|
458
|
+
loading: false,
|
|
459
|
+
preloadLibraries: currentPreloadLibraries,
|
|
460
|
+
images: seImagesMajorVersions,
|
|
461
|
+
data,
|
|
462
|
+
})
|
|
463
|
+
|
|
464
|
+
formik.setValues({
|
|
465
|
+
...formik.values,
|
|
466
|
+
dockerImage: currentDockerImage,
|
|
467
|
+
dockerImageType: packageGroup,
|
|
468
|
+
dockerTag: dockerTag
|
|
469
|
+
? dockerTag
|
|
470
|
+
: data.map((image) => image.tag)[0],
|
|
471
|
+
dockerPath: initialRender
|
|
472
|
+
? formik.values.dockerPath
|
|
473
|
+
: data.map((image) => image.location)[0],
|
|
474
|
+
sharedPreloadLibraries: initialRender
|
|
475
|
+
? formik.values.sharedPreloadLibraries
|
|
476
|
+
: currentPreloadLibraries || '',
|
|
477
|
+
})
|
|
478
|
+
} else {
|
|
479
|
+
setDockerState({
|
|
480
|
+
...dockerState,
|
|
481
|
+
loading: false,
|
|
482
|
+
})
|
|
483
|
+
}
|
|
484
|
+
})
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
const handleDockerImageSelect = (
|
|
488
|
+
e: React.ChangeEvent<HTMLInputElement>,
|
|
489
|
+
) => {
|
|
490
|
+
if (e.target.value === 'Generic Postgres') {
|
|
491
|
+
// Use memoized enhanced list for better performance
|
|
492
|
+
const currentDockerImage = dockerImageVersions.slice(-1)[0]
|
|
493
|
+
|
|
494
|
+
setDockerState({
|
|
495
|
+
...dockerState,
|
|
496
|
+
tags: dockerTags.filter((tag) => tag.startsWith(currentDockerImage)),
|
|
497
|
+
locations: dockerLocations.filter((location) => location?.includes(currentDockerImage)),
|
|
498
|
+
images: dockerImageVersions,
|
|
499
|
+
data: enhancedDockerImages,
|
|
500
|
+
})
|
|
501
|
+
|
|
502
|
+
formik.setValues({
|
|
503
|
+
...formik.values,
|
|
504
|
+
dockerImage: currentDockerImage,
|
|
505
|
+
dockerImageType: e.target.value,
|
|
506
|
+
dockerTag: dockerTags[0],
|
|
507
|
+
dockerPath: dockerLocations[0],
|
|
508
|
+
sharedPreloadLibraries:
|
|
509
|
+
'pg_stat_statements,pg_stat_kcache,pg_cron,pgaudit,anon',
|
|
510
|
+
})
|
|
511
|
+
} else if (e.target.value === 'custom') {
|
|
512
|
+
formik.setValues({
|
|
513
|
+
...formik.values,
|
|
514
|
+
dockerImage: '',
|
|
515
|
+
dockerPath: '',
|
|
516
|
+
dockerTag: '',
|
|
517
|
+
sharedPreloadLibraries: '',
|
|
518
|
+
dockerImageType: e.target.value,
|
|
519
|
+
})
|
|
520
|
+
} else {
|
|
521
|
+
formik.setValues({
|
|
522
|
+
...formik.values,
|
|
523
|
+
dockerImageType: e.target.value,
|
|
524
|
+
})
|
|
525
|
+
fetchSeImages({
|
|
526
|
+
packageGroup: e.target.value,
|
|
527
|
+
})
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
handleSelectPgOptions(e, 'pgDumpCustomOptions')
|
|
531
|
+
handleSelectPgOptions(e, 'pgRestoreCustomOptions')
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
const handleDockerVersionSelect = (
|
|
535
|
+
e: React.ChangeEvent<HTMLInputElement>,
|
|
536
|
+
) => {
|
|
537
|
+
if (formik.values.dockerImageType !== 'custom') {
|
|
538
|
+
const updatedDockerTags = dockerState.data
|
|
539
|
+
.map((image) => image.tag)
|
|
540
|
+
.filter((tag) => tag.startsWith(e.target.value))
|
|
541
|
+
|
|
542
|
+
setDockerState({
|
|
543
|
+
...dockerState,
|
|
544
|
+
tags: updatedDockerTags,
|
|
545
|
+
})
|
|
546
|
+
|
|
547
|
+
// Add safety check for empty array
|
|
548
|
+
const firstTag = updatedDockerTags[0]
|
|
549
|
+
if (firstTag) {
|
|
550
|
+
const currentLocation = dockerState.data.find(
|
|
551
|
+
(image) => image.tag === firstTag,
|
|
552
|
+
)?.location
|
|
553
|
+
|
|
554
|
+
formik.setValues({
|
|
555
|
+
...formik.values,
|
|
556
|
+
dockerTag: firstTag,
|
|
557
|
+
dockerImage: e.target.value,
|
|
558
|
+
dockerPath: currentLocation || '',
|
|
559
|
+
})
|
|
560
|
+
} else {
|
|
561
|
+
// Fallback when no matching tags found
|
|
562
|
+
formik.setValues({
|
|
563
|
+
...formik.values,
|
|
564
|
+
dockerImage: e.target.value,
|
|
565
|
+
dockerTag: '',
|
|
566
|
+
dockerPath: '',
|
|
567
|
+
})
|
|
568
|
+
}
|
|
569
|
+
} else {
|
|
570
|
+
formik.setValues({
|
|
571
|
+
...formik.values,
|
|
572
|
+
dockerImage: e.target.value,
|
|
573
|
+
dockerPath: e.target.value,
|
|
574
|
+
})
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
// Set initial data, empty string for password
|
|
579
|
+
useEffect(() => {
|
|
580
|
+
if (configData) {
|
|
581
|
+
for (const [key, value] of Object.entries(configData)) {
|
|
582
|
+
if (key !== 'password') {
|
|
583
|
+
formik.setFieldValue(key, value)
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (key === 'tuningParams') {
|
|
587
|
+
formik.setFieldValue(key, value)
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
if (customOrGenericImage(configData?.dockerImageType)) {
|
|
591
|
+
if (configData?.dockerImageType === 'Generic Postgres') {
|
|
592
|
+
// Use memoized enhanced list for better performance
|
|
593
|
+
const currentDockerImage = enhancedDockerImages.find(
|
|
594
|
+
(image) => image.location === configData?.dockerPath || image.tag === configData?.dockerTag
|
|
595
|
+
)
|
|
596
|
+
|
|
597
|
+
if (currentDockerImage) {
|
|
598
|
+
setDockerState({
|
|
599
|
+
...dockerState,
|
|
600
|
+
tags: dockerTags.filter((tag) =>
|
|
601
|
+
tag.startsWith(currentDockerImage.pg_major_version),
|
|
602
|
+
),
|
|
603
|
+
images: dockerImageVersions,
|
|
604
|
+
data: enhancedDockerImages,
|
|
605
|
+
})
|
|
606
|
+
|
|
607
|
+
formik.setFieldValue('dockerTag', currentDockerImage.tag)
|
|
608
|
+
formik.setFieldValue('dockerImage', currentDockerImage.pg_major_version)
|
|
609
|
+
formik.setFieldValue('dockerPath', currentDockerImage.location)
|
|
610
|
+
} else {
|
|
611
|
+
// Fallback: shouldn't happen with enhancedDockerImages, but keep for safety
|
|
612
|
+
const fallbackVersion = dockerImageVersions.slice(-1)[0]
|
|
613
|
+
|
|
614
|
+
setDockerState({
|
|
615
|
+
...dockerState,
|
|
616
|
+
tags: dockerTags.filter((tag) => tag.startsWith(fallbackVersion)),
|
|
617
|
+
images: dockerImageVersions,
|
|
618
|
+
data: enhancedDockerImages,
|
|
619
|
+
})
|
|
620
|
+
|
|
621
|
+
formik.setFieldValue('dockerTag', configData?.dockerTag || '')
|
|
622
|
+
formik.setFieldValue('dockerImage', fallbackVersion)
|
|
623
|
+
formik.setFieldValue('dockerPath', configData?.dockerPath || '')
|
|
624
|
+
}
|
|
625
|
+
} else {
|
|
626
|
+
formik.setFieldValue('dockerImage', configData?.dockerPath)
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}, [config, configData?.dockerPath, configData?.dockerTag, configData?.dockerImageType])
|
|
632
|
+
|
|
633
|
+
useEffect(() => {
|
|
634
|
+
getEngine(instanceId).then((res) => {
|
|
635
|
+
setDledition(String(res?.edition))
|
|
636
|
+
})
|
|
637
|
+
}, [])
|
|
638
|
+
|
|
639
|
+
useEffect(() => {
|
|
640
|
+
const initialFetch = async () => {
|
|
641
|
+
if (
|
|
642
|
+
formik.dirty &&
|
|
643
|
+
!isCeEdition &&
|
|
644
|
+
!customOrGenericImage(configData?.dockerImageType)
|
|
645
|
+
) {
|
|
646
|
+
await getFullConfig(instanceId).then(async (data) => {
|
|
647
|
+
if (data) {
|
|
648
|
+
await fetchSeImages({
|
|
649
|
+
packageGroup: configData?.dockerImageType as string,
|
|
650
|
+
dockerTag: configData?.dockerTag,
|
|
651
|
+
initialRender: true,
|
|
652
|
+
})
|
|
653
|
+
}
|
|
654
|
+
})
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
initialFetch()
|
|
658
|
+
}, [
|
|
659
|
+
formik.dirty,
|
|
660
|
+
configData?.dockerImageType,
|
|
661
|
+
configData?.dockerTag,
|
|
662
|
+
isCeEdition,
|
|
663
|
+
])
|
|
664
|
+
|
|
665
|
+
return (
|
|
666
|
+
<div className={styles.root}>
|
|
667
|
+
<Snackbar
|
|
668
|
+
onClick={() => {
|
|
669
|
+
Boolean(dockerState.error)
|
|
670
|
+
? setDockerState({
|
|
671
|
+
...dockerState,
|
|
672
|
+
error: '',
|
|
673
|
+
})
|
|
674
|
+
: undefined
|
|
675
|
+
}}
|
|
676
|
+
anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}
|
|
677
|
+
open={
|
|
678
|
+
(isConfigurationDisabled || Boolean(dockerState.error)) &&
|
|
679
|
+
!isModalOpen
|
|
680
|
+
}
|
|
681
|
+
message={
|
|
682
|
+
Boolean(dockerState.error)
|
|
683
|
+
? dockerState.error
|
|
684
|
+
: disableConfigModification
|
|
685
|
+
? PREVENT_MODIFYING_MESSAGE
|
|
686
|
+
: NON_LOGICAL_RETRIEVAL_MESSAGE
|
|
687
|
+
}
|
|
688
|
+
className={styles.snackbar}
|
|
689
|
+
/>
|
|
690
|
+
{!config && isConfigurationLoading ? (
|
|
691
|
+
<div className={styles.spinnerContainer}>
|
|
692
|
+
<Spinner size="lg" className={styles.spinner} />
|
|
693
|
+
</div>
|
|
694
|
+
) : (
|
|
695
|
+
<Box>
|
|
696
|
+
<Header retrievalMode="logical" setOpen={handleModalClick} />
|
|
697
|
+
<Box>
|
|
698
|
+
<Box>
|
|
699
|
+
<FormControlLabel
|
|
700
|
+
control={
|
|
701
|
+
<Checkbox
|
|
702
|
+
name="debug"
|
|
703
|
+
checked={formik.values.debug}
|
|
704
|
+
disabled={isConfigurationDisabled}
|
|
705
|
+
onChange={(e) =>
|
|
706
|
+
formik.setFieldValue('debug', e.target.checked)
|
|
707
|
+
}
|
|
708
|
+
classes={{
|
|
709
|
+
root: classes.checkboxRoot,
|
|
710
|
+
}}
|
|
711
|
+
/>
|
|
712
|
+
}
|
|
713
|
+
label={'Debug mode'}
|
|
714
|
+
/>
|
|
715
|
+
</Box>
|
|
716
|
+
<Box mb={1} mt={1}>
|
|
717
|
+
<ConfigSectionTitle tag="retrieval" />
|
|
718
|
+
<Box mt={1}>
|
|
719
|
+
<Typography className={styles.subsection}>
|
|
720
|
+
Subsection "retrieval.spec.logicalDump"
|
|
721
|
+
</Typography>
|
|
722
|
+
<span className={classes.grayText}>
|
|
723
|
+
Source database credentials and dumping options.
|
|
724
|
+
</span>
|
|
725
|
+
<InputWithTooltip
|
|
726
|
+
label="source.connection.host *"
|
|
727
|
+
value={formik.values.host}
|
|
728
|
+
error={formik.errors.host}
|
|
729
|
+
tooltipText={tooltipText.host}
|
|
730
|
+
disabled={isConfigurationDisabled}
|
|
731
|
+
onChange={(e) =>
|
|
732
|
+
formik.setFieldValue('host', e.target.value)
|
|
733
|
+
}
|
|
734
|
+
/>
|
|
735
|
+
<InputWithTooltip
|
|
736
|
+
label="source.connection.port *"
|
|
737
|
+
value={formik.values.port}
|
|
738
|
+
error={formik.errors.port}
|
|
739
|
+
tooltipText={tooltipText.port}
|
|
740
|
+
disabled={isConfigurationDisabled}
|
|
741
|
+
onChange={(e) =>
|
|
742
|
+
formik.setFieldValue('port', e.target.value)
|
|
743
|
+
}
|
|
744
|
+
/>
|
|
745
|
+
<InputWithTooltip
|
|
746
|
+
label="source.connection.username *"
|
|
747
|
+
value={formik.values.username}
|
|
748
|
+
error={formik.errors.username}
|
|
749
|
+
tooltipText={tooltipText.username}
|
|
750
|
+
disabled={isConfigurationDisabled}
|
|
751
|
+
onChange={(e) =>
|
|
752
|
+
formik.setFieldValue('username', e.target.value)
|
|
753
|
+
}
|
|
754
|
+
/>
|
|
755
|
+
<InputWithTooltip
|
|
756
|
+
type="password"
|
|
757
|
+
value={formik.values.password}
|
|
758
|
+
label="source.connection.password"
|
|
759
|
+
tooltipText={tooltipText.password}
|
|
760
|
+
disabled={isConfigurationDisabled}
|
|
761
|
+
onChange={(e) =>
|
|
762
|
+
formik.setFieldValue('password', e.target.value)
|
|
763
|
+
}
|
|
764
|
+
/>
|
|
765
|
+
<InputWithTooltip
|
|
766
|
+
label="source.connection.dbname *"
|
|
767
|
+
value={formik.values.dbname}
|
|
768
|
+
error={formik.errors.dbname}
|
|
769
|
+
tooltipText={tooltipText.dbname}
|
|
770
|
+
disabled={isConfigurationDisabled}
|
|
771
|
+
onChange={(e) =>
|
|
772
|
+
formik.setFieldValue('dbname', e.target.value)
|
|
773
|
+
}
|
|
774
|
+
/>
|
|
775
|
+
<InputWithChip
|
|
776
|
+
id="databases"
|
|
777
|
+
value={formik.values.databases}
|
|
778
|
+
label="Databases to copy"
|
|
779
|
+
tooltipText={tooltipText.databases}
|
|
780
|
+
handleDeleteChip={handleDeleteChip}
|
|
781
|
+
disabled={isConfigurationDisabled}
|
|
782
|
+
onChange={(e) =>
|
|
783
|
+
formik.setFieldValue('databases', e.target.value)
|
|
784
|
+
}
|
|
785
|
+
/>
|
|
786
|
+
<Box mt={3} mb={3}>
|
|
787
|
+
<Button
|
|
788
|
+
variant="outlined"
|
|
789
|
+
color="secondary"
|
|
790
|
+
onClick={() => {
|
|
791
|
+
onTestConnectionClick({
|
|
792
|
+
type: 'default',
|
|
793
|
+
})
|
|
794
|
+
}}
|
|
795
|
+
disabled={
|
|
796
|
+
testConnectionState.default.loading ||
|
|
797
|
+
isConfigurationDisabled
|
|
798
|
+
}
|
|
799
|
+
>
|
|
800
|
+
Test connection
|
|
801
|
+
{testConnectionState.default.loading && (
|
|
802
|
+
<Spinner size="sm" className={styles.spinner} />
|
|
803
|
+
)}
|
|
804
|
+
</Button>
|
|
805
|
+
{testConnectionState.default.message.status ||
|
|
806
|
+
testConnectionState.default.error ? (
|
|
807
|
+
<ResponseMessage
|
|
808
|
+
type={
|
|
809
|
+
testConnectionState.default.error
|
|
810
|
+
? 'error'
|
|
811
|
+
: testConnectionState.default.message.status
|
|
812
|
+
? testConnectionState.default.message.status
|
|
813
|
+
: ''
|
|
814
|
+
}
|
|
815
|
+
message={
|
|
816
|
+
testConnectionState.default.error ||
|
|
817
|
+
testConnectionState.default.message.message
|
|
818
|
+
}
|
|
819
|
+
/>
|
|
820
|
+
) : null}
|
|
821
|
+
</Box>
|
|
822
|
+
<InputWithTooltip
|
|
823
|
+
label="pg_dump jobs"
|
|
824
|
+
value={formik.values.dumpParallelJobs}
|
|
825
|
+
tooltipText={tooltipText.dumpParallelJobs}
|
|
826
|
+
disabled={isConfigurationDisabled}
|
|
827
|
+
onChange={(e) =>
|
|
828
|
+
formik.setFieldValue('dumpParallelJobs', e.target.value)
|
|
829
|
+
}
|
|
830
|
+
/>
|
|
831
|
+
<InputWithChip
|
|
832
|
+
value={formik.values.pgDumpCustomOptions}
|
|
833
|
+
label="pg_dump customOptions"
|
|
834
|
+
id="pgDumpCustomOptions"
|
|
835
|
+
tooltipText={tooltipText.pgDumpCustomOptions}
|
|
836
|
+
handleDeleteChip={handleDeleteChip}
|
|
837
|
+
disabled={isConfigurationDisabled}
|
|
838
|
+
onChange={(e) =>
|
|
839
|
+
formik.setFieldValue(
|
|
840
|
+
'pgDumpCustomOptions',
|
|
841
|
+
e.target.value,
|
|
842
|
+
)
|
|
843
|
+
}
|
|
844
|
+
/>
|
|
845
|
+
<FormControlLabel
|
|
846
|
+
style={{ maxWidth: 'max-content' }}
|
|
847
|
+
control={
|
|
848
|
+
<Checkbox
|
|
849
|
+
name="dumpIgnoreErrors"
|
|
850
|
+
checked={formik.values.dumpIgnoreErrors}
|
|
851
|
+
disabled={isConfigurationDisabled}
|
|
852
|
+
onChange={(e) =>
|
|
853
|
+
formik.setFieldValue(
|
|
854
|
+
'dumpIgnoreErrors',
|
|
855
|
+
e.target.checked,
|
|
856
|
+
)
|
|
857
|
+
}
|
|
858
|
+
classes={{
|
|
859
|
+
root: classes.checkboxRoot,
|
|
860
|
+
}}
|
|
861
|
+
/>
|
|
862
|
+
}
|
|
863
|
+
label={'Ignore errors during logical data dump'}
|
|
864
|
+
/>
|
|
865
|
+
</Box>
|
|
866
|
+
</Box>
|
|
867
|
+
<Box mb={2} mt={1}>
|
|
868
|
+
<ConfigSectionTitle tag="databaseContainer" />
|
|
869
|
+
<span
|
|
870
|
+
className={classes.grayText}
|
|
871
|
+
style={{ margin: '0.5rem 0 1rem 0', display: 'block' }}
|
|
872
|
+
>
|
|
873
|
+
DBLab manages various database containers, such as clones.
|
|
874
|
+
This section defines default container settings.
|
|
875
|
+
</span>
|
|
876
|
+
<div>
|
|
877
|
+
<SelectWithTooltip
|
|
878
|
+
label="dockerImage - choose from the list *"
|
|
879
|
+
value={formik.values.dockerImageType}
|
|
880
|
+
error={Boolean(formik.errors.dockerImageType)}
|
|
881
|
+
tooltipText={tooltipText.dockerImageType}
|
|
882
|
+
disabled={isConfigurationDisabled || dockerState.loading}
|
|
883
|
+
items={filteredDockerImageOptions.map((image) => {
|
|
884
|
+
return {
|
|
885
|
+
value: image.type,
|
|
886
|
+
children: image.name,
|
|
887
|
+
}
|
|
888
|
+
})}
|
|
889
|
+
onChange={handleDockerImageSelect}
|
|
890
|
+
/>
|
|
891
|
+
{formik.values.dockerImageType === 'custom' ? (
|
|
892
|
+
<InputWithTooltip
|
|
893
|
+
label="dockerImage *"
|
|
894
|
+
value={formik.values.dockerImage}
|
|
895
|
+
error={formik.errors.dockerImage}
|
|
896
|
+
tooltipText={tooltipText.dockerImage}
|
|
897
|
+
disabled={isConfigurationDisabled}
|
|
898
|
+
onChange={(e) => {
|
|
899
|
+
formik.setValues({
|
|
900
|
+
...formik.values,
|
|
901
|
+
dockerImage: e.target.value,
|
|
902
|
+
dockerPath: e.target.value,
|
|
903
|
+
})
|
|
904
|
+
}}
|
|
905
|
+
/>
|
|
906
|
+
) : (
|
|
907
|
+
<>
|
|
908
|
+
<SelectWithTooltip
|
|
909
|
+
label="dockerImage - Postgres major version *"
|
|
910
|
+
value={formik.values.dockerImage}
|
|
911
|
+
error={Boolean(formik.errors.dockerImage)}
|
|
912
|
+
tooltipText={tooltipText.dockerImage}
|
|
913
|
+
disabled={
|
|
914
|
+
isConfigurationDisabled ||
|
|
915
|
+
dockerState.loading ||
|
|
916
|
+
!dockerState.images.length
|
|
917
|
+
}
|
|
918
|
+
loading={dockerState.loading}
|
|
919
|
+
items={dockerState.images
|
|
920
|
+
.slice()
|
|
921
|
+
.reverse()
|
|
922
|
+
.map((image) => {
|
|
923
|
+
return {
|
|
924
|
+
value: image,
|
|
925
|
+
children: image,
|
|
926
|
+
}
|
|
927
|
+
})}
|
|
928
|
+
onChange={handleDockerVersionSelect}
|
|
929
|
+
/>
|
|
930
|
+
<Box mt={0.5} mb={2}>
|
|
931
|
+
<Button
|
|
932
|
+
variant="outlined"
|
|
933
|
+
color="secondary"
|
|
934
|
+
onClick={() => {
|
|
935
|
+
onTestConnectionClick({
|
|
936
|
+
type: 'dockerImage',
|
|
937
|
+
})
|
|
938
|
+
}}
|
|
939
|
+
disabled={
|
|
940
|
+
testConnectionState.dockerImage.loading ||
|
|
941
|
+
isConfigurationDisabled
|
|
942
|
+
}
|
|
943
|
+
>
|
|
944
|
+
Get version from source
|
|
945
|
+
{testConnectionState.dockerImage.loading && (
|
|
946
|
+
<Spinner size="sm" className={styles.spinner} />
|
|
947
|
+
)}
|
|
948
|
+
</Button>
|
|
949
|
+
{testConnectionState.dockerImage.message.status ===
|
|
950
|
+
'error' || testConnectionState.dockerImage.error ? (
|
|
951
|
+
<ResponseMessage
|
|
952
|
+
type={
|
|
953
|
+
testConnectionState.dockerImage.error ||
|
|
954
|
+
testConnectionState.dockerImage.message
|
|
955
|
+
? 'error'
|
|
956
|
+
: ''
|
|
957
|
+
}
|
|
958
|
+
message={
|
|
959
|
+
testConnectionState.dockerImage.error ||
|
|
960
|
+
testConnectionState.dockerImage.message.message
|
|
961
|
+
}
|
|
962
|
+
/>
|
|
963
|
+
) : null}
|
|
964
|
+
</Box>
|
|
965
|
+
<SelectWithTooltip
|
|
966
|
+
label="dockerImage - tag *"
|
|
967
|
+
value={formik.values.dockerTag}
|
|
968
|
+
error={Boolean(formik.errors.dockerTag)}
|
|
969
|
+
tooltipText={tooltipText.dockerTag}
|
|
970
|
+
disabled={
|
|
971
|
+
isConfigurationDisabled ||
|
|
972
|
+
dockerState.loading ||
|
|
973
|
+
!dockerState.tags.length
|
|
974
|
+
}
|
|
975
|
+
loading={dockerState.loading}
|
|
976
|
+
onChange={(e) => {
|
|
977
|
+
const currentLocation = dockerState.data.find(
|
|
978
|
+
(image) => image.tag === e.target.value,
|
|
979
|
+
)?.location as string
|
|
980
|
+
|
|
981
|
+
formik.setValues({
|
|
982
|
+
...formik.values,
|
|
983
|
+
dockerTag: e.target.value,
|
|
984
|
+
dockerPath: currentLocation,
|
|
985
|
+
})
|
|
986
|
+
}}
|
|
987
|
+
items={dockerState.tags.map((image) => {
|
|
988
|
+
return {
|
|
989
|
+
value: image,
|
|
990
|
+
children: image,
|
|
991
|
+
}
|
|
992
|
+
})}
|
|
993
|
+
/>
|
|
994
|
+
</>
|
|
995
|
+
)}
|
|
996
|
+
<Typography paragraph>
|
|
997
|
+
Cannot find your image? Reach out to support:{' '}
|
|
998
|
+
<a
|
|
999
|
+
href={'https://postgres.ai/contact'}
|
|
1000
|
+
target="_blank"
|
|
1001
|
+
className={styles.externalLink}
|
|
1002
|
+
>
|
|
1003
|
+
https://postgres.ai/contact
|
|
1004
|
+
<ExternalIcon className={styles.externalIcon} />
|
|
1005
|
+
</a>
|
|
1006
|
+
</Typography>
|
|
1007
|
+
</div>
|
|
1008
|
+
</Box>
|
|
1009
|
+
<Box mb={3}>
|
|
1010
|
+
<ConfigSectionTitle tag="databaseConfigs" />
|
|
1011
|
+
<span
|
|
1012
|
+
className={classes.grayText}
|
|
1013
|
+
style={{ marginTop: '0.5rem', display: 'block' }}
|
|
1014
|
+
>
|
|
1015
|
+
Default PostgreSQL configuration used for all PostgreSQL instances
|
|
1016
|
+
running in containers managed by DBLab.
|
|
1017
|
+
</span>
|
|
1018
|
+
<InputWithTooltip
|
|
1019
|
+
type="textarea"
|
|
1020
|
+
label="shared_buffers parameter"
|
|
1021
|
+
value={formik.values.sharedBuffers}
|
|
1022
|
+
tooltipText={tooltipText.sharedBuffers}
|
|
1023
|
+
disabled={isConfigurationDisabled}
|
|
1024
|
+
onChange={(e) =>
|
|
1025
|
+
formik.setFieldValue('sharedBuffers', e.target.value)
|
|
1026
|
+
}
|
|
1027
|
+
/>
|
|
1028
|
+
<InputWithTooltip
|
|
1029
|
+
type="textarea"
|
|
1030
|
+
label="shared_preload_libraries"
|
|
1031
|
+
value={formik.values.sharedPreloadLibraries}
|
|
1032
|
+
tooltipText={tooltipText.sharedPreloadLibraries}
|
|
1033
|
+
disabled={isConfigurationDisabled}
|
|
1034
|
+
onChange={(e) =>
|
|
1035
|
+
formik.setFieldValue(
|
|
1036
|
+
'sharedPreloadLibraries',
|
|
1037
|
+
e.target.value,
|
|
1038
|
+
)
|
|
1039
|
+
}
|
|
1040
|
+
/>
|
|
1041
|
+
<InputWithTooltip
|
|
1042
|
+
type="textarea"
|
|
1043
|
+
label="Query tuning parameters"
|
|
1044
|
+
value={
|
|
1045
|
+
typeof formik.values.tuningParams === 'object'
|
|
1046
|
+
? Object.entries(
|
|
1047
|
+
formik.values.tuningParams as Record<string, string>,
|
|
1048
|
+
)
|
|
1049
|
+
.map(([key, value]) => `${key}=${value}`)
|
|
1050
|
+
.join('\n')
|
|
1051
|
+
: formik.values.tuningParams
|
|
1052
|
+
}
|
|
1053
|
+
tooltipText={tooltipText.tuningParams}
|
|
1054
|
+
disabled={isConfigurationDisabled}
|
|
1055
|
+
onChange={(e) =>
|
|
1056
|
+
formik.setFieldValue('tuningParams', e.target.value)
|
|
1057
|
+
}
|
|
1058
|
+
/>
|
|
1059
|
+
<Button
|
|
1060
|
+
variant="outlined"
|
|
1061
|
+
color="secondary"
|
|
1062
|
+
onClick={() => {
|
|
1063
|
+
onTestConnectionClick({
|
|
1064
|
+
type: 'fetchTuning',
|
|
1065
|
+
})
|
|
1066
|
+
}}
|
|
1067
|
+
disabled={
|
|
1068
|
+
testConnectionState.fetchTuning.loading ||
|
|
1069
|
+
isConfigurationDisabled
|
|
1070
|
+
}
|
|
1071
|
+
>
|
|
1072
|
+
Get from source database
|
|
1073
|
+
{testConnectionState.fetchTuning.loading && (
|
|
1074
|
+
<Spinner size="sm" className={styles.spinner} />
|
|
1075
|
+
)}
|
|
1076
|
+
</Button>
|
|
1077
|
+
{testConnectionState.fetchTuning.message.status === 'error' ||
|
|
1078
|
+
testConnectionState.fetchTuning.error ? (
|
|
1079
|
+
<ResponseMessage
|
|
1080
|
+
type={
|
|
1081
|
+
testConnectionState.fetchTuning.error ||
|
|
1082
|
+
testConnectionState.fetchTuning.message
|
|
1083
|
+
? 'error'
|
|
1084
|
+
: ''
|
|
1085
|
+
}
|
|
1086
|
+
message={
|
|
1087
|
+
testConnectionState.fetchTuning.error ||
|
|
1088
|
+
testConnectionState.fetchTuning.message.message
|
|
1089
|
+
}
|
|
1090
|
+
/>
|
|
1091
|
+
) : null}
|
|
1092
|
+
</Box>
|
|
1093
|
+
<Box>
|
|
1094
|
+
<Box>
|
|
1095
|
+
<Typography className={styles.subsection}>
|
|
1096
|
+
Subsection "retrieval.spec.logicalRestore"
|
|
1097
|
+
</Typography>
|
|
1098
|
+
<span className={classes.grayText}>Restoring options.</span>
|
|
1099
|
+
</Box>
|
|
1100
|
+
<InputWithTooltip
|
|
1101
|
+
label="pg_restore jobs"
|
|
1102
|
+
value={formik.values.restoreParallelJobs}
|
|
1103
|
+
tooltipText={tooltipText.restoreParallelJobs}
|
|
1104
|
+
disabled={isConfigurationDisabled}
|
|
1105
|
+
onChange={(e) =>
|
|
1106
|
+
formik.setFieldValue('restoreParallelJobs', e.target.value)
|
|
1107
|
+
}
|
|
1108
|
+
/>
|
|
1109
|
+
<InputWithChip
|
|
1110
|
+
value={formik.values.pgRestoreCustomOptions}
|
|
1111
|
+
label="pg_restore customOptions"
|
|
1112
|
+
id="pgRestoreCustomOptions"
|
|
1113
|
+
tooltipText={tooltipText.pgRestoreCustomOptions}
|
|
1114
|
+
handleDeleteChip={handleDeleteChip}
|
|
1115
|
+
disabled={isConfigurationDisabled}
|
|
1116
|
+
onChange={(e) =>
|
|
1117
|
+
formik.setFieldValue(
|
|
1118
|
+
'pgRestoreCustomOptions',
|
|
1119
|
+
e.target.value,
|
|
1120
|
+
)
|
|
1121
|
+
}
|
|
1122
|
+
/>
|
|
1123
|
+
<FormControlLabel
|
|
1124
|
+
style={{ maxWidth: 'max-content' }}
|
|
1125
|
+
control={
|
|
1126
|
+
<Checkbox
|
|
1127
|
+
name="restoreIgnoreErrors"
|
|
1128
|
+
checked={formik.values.restoreIgnoreErrors}
|
|
1129
|
+
disabled={isConfigurationDisabled}
|
|
1130
|
+
onChange={(e) =>
|
|
1131
|
+
formik.setFieldValue(
|
|
1132
|
+
'restoreIgnoreErrors',
|
|
1133
|
+
e.target.checked,
|
|
1134
|
+
)
|
|
1135
|
+
}
|
|
1136
|
+
classes={{
|
|
1137
|
+
root: classes.checkboxRoot,
|
|
1138
|
+
}}
|
|
1139
|
+
/>
|
|
1140
|
+
}
|
|
1141
|
+
label={'Ignore errors during logical data restore'}
|
|
1142
|
+
/>
|
|
1143
|
+
</Box>
|
|
1144
|
+
<Box mt={1}>
|
|
1145
|
+
<Typography className={styles.subsection}>
|
|
1146
|
+
Subsection "retrieval.refresh"
|
|
1147
|
+
</Typography>
|
|
1148
|
+
</Box>
|
|
1149
|
+
<span className={classes.grayText}>
|
|
1150
|
+
Define full data refresh on schedule. The process requires at
|
|
1151
|
+
least one additional filesystem mount point. The schedule is to
|
|
1152
|
+
be specified using{' '}
|
|
1153
|
+
<a
|
|
1154
|
+
href="https://en.wikipedia.org/wiki/Cron#Overview"
|
|
1155
|
+
target="_blank"
|
|
1156
|
+
className={styles.externalLink}
|
|
1157
|
+
>
|
|
1158
|
+
crontab format
|
|
1159
|
+
<ExternalIcon className={styles.externalIcon} />
|
|
1160
|
+
</a>
|
|
1161
|
+
.
|
|
1162
|
+
</span>
|
|
1163
|
+
<InputWithTooltip
|
|
1164
|
+
label="timetable"
|
|
1165
|
+
value={formik.values.timetable}
|
|
1166
|
+
tooltipText={tooltipText.timetable}
|
|
1167
|
+
disabled={isConfigurationDisabled}
|
|
1168
|
+
onChange={(e) =>
|
|
1169
|
+
formik.setFieldValue('timetable', e.target.value)
|
|
1170
|
+
}
|
|
1171
|
+
/>
|
|
1172
|
+
</Box>
|
|
1173
|
+
<Box
|
|
1174
|
+
mt={2}
|
|
1175
|
+
mb={2}
|
|
1176
|
+
sx={{
|
|
1177
|
+
display: 'flex',
|
|
1178
|
+
alignItems: 'center',
|
|
1179
|
+
}}
|
|
1180
|
+
>
|
|
1181
|
+
<Button
|
|
1182
|
+
variant="contained"
|
|
1183
|
+
color="secondary"
|
|
1184
|
+
onClick={() => {
|
|
1185
|
+
formik.submitForm().then(() => {
|
|
1186
|
+
scrollToField()
|
|
1187
|
+
})
|
|
1188
|
+
}}
|
|
1189
|
+
disabled={formik.isSubmitting || isConfigurationDisabled}
|
|
1190
|
+
>
|
|
1191
|
+
Apply changes
|
|
1192
|
+
{formik.isSubmitting && (
|
|
1193
|
+
<Spinner size="sm" className={styles.spinner} />
|
|
1194
|
+
)}
|
|
1195
|
+
</Button>
|
|
1196
|
+
<Box sx={{ px: 2 }}>
|
|
1197
|
+
<Button
|
|
1198
|
+
variant="outlined"
|
|
1199
|
+
color="secondary"
|
|
1200
|
+
onClick={switchTab}
|
|
1201
|
+
>
|
|
1202
|
+
Cancel
|
|
1203
|
+
</Button>
|
|
1204
|
+
</Box>
|
|
1205
|
+
</Box>
|
|
1206
|
+
{(submitState.status && submitState.response) || configError ? (
|
|
1207
|
+
<ResponseMessage
|
|
1208
|
+
type={configError ? 'error' : submitState.status}
|
|
1209
|
+
message={configError || submitState.response}
|
|
1210
|
+
/>
|
|
1211
|
+
) : null}
|
|
1212
|
+
</Box>
|
|
1213
|
+
)}
|
|
1214
|
+
<Modal
|
|
1215
|
+
title={<ModalTitle />}
|
|
1216
|
+
onClose={() => setIsModalOpen(false)}
|
|
1217
|
+
isOpen={isModalOpen}
|
|
1218
|
+
size="xl"
|
|
1219
|
+
>
|
|
1220
|
+
<Editor
|
|
1221
|
+
height="70vh"
|
|
1222
|
+
width="100%"
|
|
1223
|
+
defaultLanguage="yaml"
|
|
1224
|
+
value={getFullConfigError ? getFullConfigError : fullConfig}
|
|
1225
|
+
loading={<StubSpinner />}
|
|
1226
|
+
theme="vs-light"
|
|
1227
|
+
options={{ domReadOnly: true, readOnly: true }}
|
|
1228
|
+
/>
|
|
1229
|
+
</Modal>
|
|
1230
|
+
</div>
|
|
1231
|
+
)
|
|
1232
|
+
},
|
|
1233
|
+
)
|