@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,196 @@
|
|
|
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 medium is strictly prohibited
|
|
5
|
+
*--------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { observer } from 'mobx-react-lite'
|
|
9
|
+
import { makeStyles, IconButton } from '@material-ui/core'
|
|
10
|
+
import copy from 'copy-to-clipboard'
|
|
11
|
+
|
|
12
|
+
import { useStores } from '@postgres.ai/shared/pages/Instance/context'
|
|
13
|
+
import { Tooltip } from '@postgres.ai/shared/components/Tooltip'
|
|
14
|
+
import { Modal } from '@postgres.ai/shared/components/Modal'
|
|
15
|
+
import { TextField } from '@postgres.ai/shared/components/TextField'
|
|
16
|
+
import { icons } from '@postgres.ai/shared/styles/icons'
|
|
17
|
+
import {
|
|
18
|
+
getSshPortForwardingCommand,
|
|
19
|
+
getPsqlConnectionStr,
|
|
20
|
+
getJdbcConnectionStr,
|
|
21
|
+
} from '@postgres.ai/shared/utils/connection'
|
|
22
|
+
|
|
23
|
+
type Props = {
|
|
24
|
+
isOpen: boolean
|
|
25
|
+
onClose: () => void
|
|
26
|
+
cloneId: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const useStyles = makeStyles(
|
|
30
|
+
{
|
|
31
|
+
root: {
|
|
32
|
+
fontSize: '14px',
|
|
33
|
+
},
|
|
34
|
+
item: {
|
|
35
|
+
'& + $item': {
|
|
36
|
+
marginTop: '16px',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
fieldText: {
|
|
40
|
+
margin: 0,
|
|
41
|
+
},
|
|
42
|
+
field: {
|
|
43
|
+
width: 'calc(100% - 24px)',
|
|
44
|
+
margin: '16px 0 0 0',
|
|
45
|
+
},
|
|
46
|
+
fieldWrapper: {
|
|
47
|
+
display: 'flex',
|
|
48
|
+
alignItems: 'flex-end',
|
|
49
|
+
},
|
|
50
|
+
fieldInfo: {
|
|
51
|
+
display: 'flex',
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
height: '32px',
|
|
54
|
+
marginLeft: '12px',
|
|
55
|
+
},
|
|
56
|
+
copyButton: {
|
|
57
|
+
width: '32px',
|
|
58
|
+
height: '32px',
|
|
59
|
+
padding: '8px',
|
|
60
|
+
},
|
|
61
|
+
note: {
|
|
62
|
+
margin: '24px 0 0 0',
|
|
63
|
+
fontSize: '12px',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{ index: 1 },
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
export const ConnectionModal = observer((props: Props) => {
|
|
70
|
+
const { isOpen, onClose, cloneId } = props
|
|
71
|
+
|
|
72
|
+
const classes = useStyles()
|
|
73
|
+
|
|
74
|
+
const stores = useStores()
|
|
75
|
+
|
|
76
|
+
const { instance } = stores.main
|
|
77
|
+
if (!instance) return null
|
|
78
|
+
|
|
79
|
+
const clone = instance.state?.cloning.clones.find(
|
|
80
|
+
(clone) => clone.id === cloneId,
|
|
81
|
+
)
|
|
82
|
+
if (!clone) return null
|
|
83
|
+
|
|
84
|
+
const sshPortForwardingCommand = getSshPortForwardingCommand(instance, clone)
|
|
85
|
+
const psqlConnectionStr = getPsqlConnectionStr(clone)
|
|
86
|
+
const jdbcConnectionStr = getJdbcConnectionStr(clone)
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<Modal title="Clone connection info" isOpen={isOpen} onClose={onClose}>
|
|
90
|
+
<div className={classes.root}>
|
|
91
|
+
{sshPortForwardingCommand && (
|
|
92
|
+
<div className={classes.item}>
|
|
93
|
+
<p className={classes.fieldText}>
|
|
94
|
+
In a separate console, set up SSH port forwarding
|
|
95
|
+
<br />
|
|
96
|
+
(and keep it running):
|
|
97
|
+
</p>
|
|
98
|
+
<TextField
|
|
99
|
+
label="SSH port forwarding"
|
|
100
|
+
value={sshPortForwardingCommand}
|
|
101
|
+
className={classes.field}
|
|
102
|
+
InputProps={{
|
|
103
|
+
endAdornment: (
|
|
104
|
+
<IconButton
|
|
105
|
+
className={classes.copyButton}
|
|
106
|
+
onClick={() => copy(sshPortForwardingCommand)}
|
|
107
|
+
>
|
|
108
|
+
{icons.copyIcon}
|
|
109
|
+
</IconButton>
|
|
110
|
+
),
|
|
111
|
+
}}
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
114
|
+
)}
|
|
115
|
+
|
|
116
|
+
{psqlConnectionStr && (
|
|
117
|
+
<div className={classes.item}>
|
|
118
|
+
<p className={classes.fieldText}>Connect to PostgreSQL using psql:</p>
|
|
119
|
+
<div className={classes.fieldWrapper}>
|
|
120
|
+
<TextField
|
|
121
|
+
label="psql connection string"
|
|
122
|
+
value={psqlConnectionStr}
|
|
123
|
+
className={classes.field}
|
|
124
|
+
InputProps={{
|
|
125
|
+
endAdornment: (
|
|
126
|
+
<IconButton
|
|
127
|
+
className={classes.copyButton}
|
|
128
|
+
onClick={() => copy(psqlConnectionStr)}
|
|
129
|
+
>
|
|
130
|
+
{icons.copyIcon}
|
|
131
|
+
</IconButton>
|
|
132
|
+
),
|
|
133
|
+
}}
|
|
134
|
+
/>
|
|
135
|
+
|
|
136
|
+
<Tooltip
|
|
137
|
+
content={
|
|
138
|
+
<>
|
|
139
|
+
Used to connect to PostgreSQL using psql. Change DBNAME
|
|
140
|
+
to the name of the database you want to connect to. Use
|
|
141
|
+
the PGPASSWORD environment variable to set the database
|
|
142
|
+
password or type it when prompted.
|
|
143
|
+
</>
|
|
144
|
+
}
|
|
145
|
+
>
|
|
146
|
+
<span className={classes.fieldInfo}>{icons.infoIcon}</span>
|
|
147
|
+
</Tooltip>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
)}
|
|
151
|
+
|
|
152
|
+
{jdbcConnectionStr && (
|
|
153
|
+
<div className={classes.item}>
|
|
154
|
+
<p className={classes.fieldText}>Connect to PostgreSQL using JDBC:</p>
|
|
155
|
+
<div className={classes.fieldWrapper}>
|
|
156
|
+
<TextField
|
|
157
|
+
label="JDBC connection string"
|
|
158
|
+
value={jdbcConnectionStr}
|
|
159
|
+
className={classes.field}
|
|
160
|
+
InputProps={{
|
|
161
|
+
endAdornment: (
|
|
162
|
+
<IconButton
|
|
163
|
+
className={classes.copyButton}
|
|
164
|
+
onClick={() => copy(jdbcConnectionStr)}
|
|
165
|
+
>
|
|
166
|
+
{icons.copyIcon}
|
|
167
|
+
</IconButton>
|
|
168
|
+
),
|
|
169
|
+
}}
|
|
170
|
+
/>
|
|
171
|
+
|
|
172
|
+
<Tooltip
|
|
173
|
+
content={
|
|
174
|
+
<>
|
|
175
|
+
Used to connect to PostgreSQL using JDBC. Change DBNAME
|
|
176
|
+
to the name of the database you want to connect to, and
|
|
177
|
+
change DBPASSWORD to the password you used when creating
|
|
178
|
+
the clone.
|
|
179
|
+
</>
|
|
180
|
+
}
|
|
181
|
+
>
|
|
182
|
+
<span className={classes.fieldInfo}>{icons.infoIcon}</span>
|
|
183
|
+
</Tooltip>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
)}
|
|
187
|
+
|
|
188
|
+
<p className={classes.note}>
|
|
189
|
+
Password was set during clone creation. It’s not being stored.
|
|
190
|
+
<br />
|
|
191
|
+
You would need to recreate a clone if the password is lost.
|
|
192
|
+
</p>
|
|
193
|
+
</div>
|
|
194
|
+
</Modal>
|
|
195
|
+
)
|
|
196
|
+
})
|
|
@@ -0,0 +1,98 @@
|
|
|
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 medium is strictly prohibited
|
|
5
|
+
*--------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { useState } from 'react'
|
|
9
|
+
import { observer } from 'mobx-react-lite'
|
|
10
|
+
|
|
11
|
+
import { Clone } from '@postgres.ai/shared/types/api/entities/clone'
|
|
12
|
+
import { useStores } from '@postgres.ai/shared/pages/Instance/context'
|
|
13
|
+
import { TableBodyCellMenu } from '@postgres.ai/shared/components/Table'
|
|
14
|
+
|
|
15
|
+
import { DestroyCloneModal } from '@postgres.ai/shared/components/DestroyCloneModal'
|
|
16
|
+
import { DestroyCloneRestrictionModal } from '@postgres.ai/shared/components/DestroyCloneRestrictionModal'
|
|
17
|
+
import { ResetCloneModal } from '@postgres.ai/shared/components/ResetCloneModal'
|
|
18
|
+
|
|
19
|
+
type Props = {
|
|
20
|
+
clone: Clone
|
|
21
|
+
onConnect: (cloneId: string) => void
|
|
22
|
+
clonePagePath: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const MenuCell = observer((props: Props) => {
|
|
26
|
+
const { clone, onConnect, clonePagePath } = props
|
|
27
|
+
|
|
28
|
+
const stores = useStores()
|
|
29
|
+
|
|
30
|
+
const [
|
|
31
|
+
isOpenCloneDestroyRestrictionModal,
|
|
32
|
+
setIsOpenCloneDestroyRestrictionModal,
|
|
33
|
+
] = useState(false)
|
|
34
|
+
|
|
35
|
+
const [isOpenCloneDestroyModal, setIsOpenCloneDestroyModal] = useState(false)
|
|
36
|
+
|
|
37
|
+
const [isOpenResetCloneModal, setIsOpenResetCloneModal] = useState(false)
|
|
38
|
+
|
|
39
|
+
const handleClickDestroyClone = () => {
|
|
40
|
+
if (clone.protected) return setIsOpenCloneDestroyRestrictionModal(true)
|
|
41
|
+
setIsOpenCloneDestroyModal(true)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const handleClickResetClone = async () => {
|
|
45
|
+
setIsOpenResetCloneModal(true)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const isLoading = stores.main.unstableClones.has(clone.id)
|
|
49
|
+
|
|
50
|
+
if (!stores.main.instance) return null
|
|
51
|
+
|
|
52
|
+
const hasSnapshots = Boolean(stores.main.snapshots.data?.length)
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<TableBodyCellMenu
|
|
56
|
+
isLoading={isLoading}
|
|
57
|
+
isDisabled={stores.main.isDisabledInstance}
|
|
58
|
+
actions={[
|
|
59
|
+
{
|
|
60
|
+
name: 'Connect',
|
|
61
|
+
onClick: () => onConnect(clone.id),
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Delete clone',
|
|
65
|
+
onClick: handleClickDestroyClone,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Reset clone',
|
|
69
|
+
onClick: handleClickResetClone,
|
|
70
|
+
isDisabled: !hasSnapshots,
|
|
71
|
+
},
|
|
72
|
+
]}
|
|
73
|
+
>
|
|
74
|
+
<DestroyCloneRestrictionModal
|
|
75
|
+
cloneId={clone.id}
|
|
76
|
+
isOpen={isOpenCloneDestroyRestrictionModal}
|
|
77
|
+
onClose={() => setIsOpenCloneDestroyRestrictionModal(false)}
|
|
78
|
+
clonePagePath={clonePagePath}
|
|
79
|
+
/>
|
|
80
|
+
<DestroyCloneModal
|
|
81
|
+
cloneId={clone.id}
|
|
82
|
+
isOpen={isOpenCloneDestroyModal}
|
|
83
|
+
onClose={() => setIsOpenCloneDestroyModal(false)}
|
|
84
|
+
onDestroyClone={() => stores.main.destroyClone(clone.id)}
|
|
85
|
+
/>
|
|
86
|
+
<ResetCloneModal
|
|
87
|
+
clone={clone}
|
|
88
|
+
snapshots={stores.main.snapshots.data}
|
|
89
|
+
isOpen={isOpenResetCloneModal}
|
|
90
|
+
onClose={() => setIsOpenResetCloneModal(false)}
|
|
91
|
+
onResetClone={(snapshotId) =>
|
|
92
|
+
stores.main.resetClone(clone.id, snapshotId)
|
|
93
|
+
}
|
|
94
|
+
version={stores.main.instance.state?.engine.version}
|
|
95
|
+
/>
|
|
96
|
+
</TableBodyCellMenu>
|
|
97
|
+
)
|
|
98
|
+
})
|
|
@@ -0,0 +1,21 @@
|
|
|
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 medium is strictly prohibited
|
|
5
|
+
*--------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const destroyRestriction = (cloneId: string) => {
|
|
9
|
+
const message = `The clone "${cloneId}" is marked as protected. To delete it, disable the delete protection first.`
|
|
10
|
+
window.alert(message)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const getResetApprove = (cloneId: string) => {
|
|
14
|
+
const message = `Are you sure you want to reset the Database Lab clone: "${cloneId}"?`
|
|
15
|
+
return window.confirm(message)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const getDestroyApprove = (cloneId: string) => {
|
|
19
|
+
const message = `Are you sure you want to delete the Database Lab clone: "${cloneId}"?`
|
|
20
|
+
return window.confirm(message)
|
|
21
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
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 medium is strictly prohibited
|
|
5
|
+
*--------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { useState } from 'react'
|
|
9
|
+
import cn from 'classnames'
|
|
10
|
+
import { useHistory } from 'react-router-dom'
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
Table,
|
|
14
|
+
TableHead,
|
|
15
|
+
TableRow,
|
|
16
|
+
TableHeaderCell,
|
|
17
|
+
TableBody,
|
|
18
|
+
TableBodyCell,
|
|
19
|
+
} from '@postgres.ai/shared/components/Table'
|
|
20
|
+
import { ArrowDropDownIcon } from '@postgres.ai/shared/icons/ArrowDropDown'
|
|
21
|
+
import { ShieldIcon } from '@postgres.ai/shared/icons/Shield'
|
|
22
|
+
import { RenewableIcon } from '@postgres.ai/shared/icons/Renewable'
|
|
23
|
+
import { InfoIcon } from '@postgres.ai/shared/icons/Info'
|
|
24
|
+
import { HorizontalScrollContainer } from '@postgres.ai/shared/components/HorizontalScrollContainer'
|
|
25
|
+
import { Status } from '@postgres.ai/shared/components/Status'
|
|
26
|
+
import { Tooltip } from '@postgres.ai/shared/components/Tooltip'
|
|
27
|
+
import { Clone } from '@postgres.ai/shared/types/api/entities/clone'
|
|
28
|
+
import { useHost } from '@postgres.ai/shared/pages/Instance/context'
|
|
29
|
+
import {
|
|
30
|
+
getCloneStatusType,
|
|
31
|
+
getCloneStatusText,
|
|
32
|
+
} from '@postgres.ai/shared/utils/clone'
|
|
33
|
+
import { formatBytesIEC } from '@postgres.ai/shared/utils/units'
|
|
34
|
+
import { formatDateWithDistance } from '@postgres.ai/shared/utils/date'
|
|
35
|
+
|
|
36
|
+
import { MenuCell } from './MenuCell'
|
|
37
|
+
import { ConnectionModal } from './ConnectionModal'
|
|
38
|
+
|
|
39
|
+
import styles from './styles.module.scss'
|
|
40
|
+
|
|
41
|
+
type Props = {
|
|
42
|
+
clones?: Clone[]
|
|
43
|
+
isDisabled: boolean
|
|
44
|
+
emptyStubText: string
|
|
45
|
+
hideBranchingFeatures?: boolean
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const ClonesList = (props: Props) => {
|
|
49
|
+
const host = useHost()
|
|
50
|
+
const history = useHistory()
|
|
51
|
+
|
|
52
|
+
const [state, setState] = useState({
|
|
53
|
+
sortByBranch: 'desc',
|
|
54
|
+
sortByCreated: 'desc',
|
|
55
|
+
clones: props.clones ?? [],
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
const [cloneIdForConnect, setCloneIdForConnect] = useState<null | string>(
|
|
59
|
+
null,
|
|
60
|
+
)
|
|
61
|
+
const [isOpenConnectionModal, setIsOpenConnectionModal] = useState(false)
|
|
62
|
+
|
|
63
|
+
const openConnectionModal = (cloneId: string) => {
|
|
64
|
+
setCloneIdForConnect(cloneId)
|
|
65
|
+
setIsOpenConnectionModal(true)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const closeConnectionModal = () => {
|
|
69
|
+
setIsOpenConnectionModal(false)
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const handleSortByBranch = () => {
|
|
73
|
+
const sortByBranch = state.sortByBranch === 'desc' ? 'asc' : 'desc'
|
|
74
|
+
|
|
75
|
+
const sortedClones = [...state.clones].sort((a, b) => {
|
|
76
|
+
if (sortByBranch === 'asc') {
|
|
77
|
+
return a.branch.localeCompare(b.branch)
|
|
78
|
+
} else {
|
|
79
|
+
return b.branch.localeCompare(a.branch)
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
setState({
|
|
84
|
+
...state,
|
|
85
|
+
sortByBranch,
|
|
86
|
+
clones: sortedClones,
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const handleSortByCreated = () => {
|
|
91
|
+
const sortByCreated = state.sortByCreated === 'desc' ? 'asc' : 'desc'
|
|
92
|
+
|
|
93
|
+
const sortedClones = [...state.clones].sort((a, b) => {
|
|
94
|
+
if (sortByCreated === 'asc') {
|
|
95
|
+
return (
|
|
96
|
+
new Date(a.createdAtDate).getTime() -
|
|
97
|
+
new Date(b.createdAtDate).getTime()
|
|
98
|
+
)
|
|
99
|
+
} else {
|
|
100
|
+
return (
|
|
101
|
+
new Date(b.createdAtDate).getTime() -
|
|
102
|
+
new Date(a.createdAtDate).getTime()
|
|
103
|
+
)
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
setState({
|
|
108
|
+
...state,
|
|
109
|
+
sortByCreated,
|
|
110
|
+
clones: sortedClones,
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (!state.clones?.length)
|
|
115
|
+
return <p className={styles.emptyStub}>{props.emptyStubText}</p>
|
|
116
|
+
|
|
117
|
+
return (
|
|
118
|
+
<>
|
|
119
|
+
<HorizontalScrollContainer>
|
|
120
|
+
<Table>
|
|
121
|
+
<TableHead>
|
|
122
|
+
<TableRow>
|
|
123
|
+
<TableHeaderCell />
|
|
124
|
+
<TableHeaderCell>Status</TableHeaderCell>
|
|
125
|
+
<TableHeaderCell>ID</TableHeaderCell>
|
|
126
|
+
{!props.hideBranchingFeatures && <TableHeaderCell>
|
|
127
|
+
<div
|
|
128
|
+
onClick={handleSortByBranch}
|
|
129
|
+
className={cn(styles.interactiveRow, styles.verticalCentered)}
|
|
130
|
+
>
|
|
131
|
+
Branch
|
|
132
|
+
<ArrowDropDownIcon
|
|
133
|
+
className={cn(
|
|
134
|
+
state.sortByCreated === 'asc' && styles.hideSortIcon,
|
|
135
|
+
state.sortByBranch === 'asc' && styles.sortIconUp,
|
|
136
|
+
styles.sortIcon,
|
|
137
|
+
)}
|
|
138
|
+
/>
|
|
139
|
+
</div>
|
|
140
|
+
</TableHeaderCell>}
|
|
141
|
+
<TableHeaderCell>
|
|
142
|
+
<Tooltip content="When enabled, neither manual nor automated deletion of this clone is possible. Note that abandoned protected clones may lead to out-of-disk-space events because they hold old data, blocking cleanup and refresh processes.">
|
|
143
|
+
<div className={styles.verticalCentered}>
|
|
144
|
+
Protected
|
|
145
|
+
<InfoIcon className={styles.infoIcon} />
|
|
146
|
+
</div>
|
|
147
|
+
</Tooltip>
|
|
148
|
+
</TableHeaderCell>
|
|
149
|
+
<TableHeaderCell>
|
|
150
|
+
<div
|
|
151
|
+
onClick={handleSortByCreated}
|
|
152
|
+
className={cn(styles.interactiveRow, styles.verticalCentered)}
|
|
153
|
+
>
|
|
154
|
+
Created
|
|
155
|
+
<ArrowDropDownIcon
|
|
156
|
+
className={cn(
|
|
157
|
+
state.sortByBranch === 'asc' && styles.hideSortIcon,
|
|
158
|
+
state.sortByCreated === 'asc' && styles.sortIconUp,
|
|
159
|
+
styles.sortIcon,
|
|
160
|
+
)}
|
|
161
|
+
/>
|
|
162
|
+
</div>
|
|
163
|
+
</TableHeaderCell>
|
|
164
|
+
<TableHeaderCell>Port</TableHeaderCell>
|
|
165
|
+
<TableHeaderCell>DB user</TableHeaderCell>
|
|
166
|
+
<TableHeaderCell>
|
|
167
|
+
<Tooltip content="Clone's own size – how much data was added or modified.">
|
|
168
|
+
<div className={styles.verticalCentered}>
|
|
169
|
+
Diff size
|
|
170
|
+
<InfoIcon className={styles.infoIcon} />
|
|
171
|
+
</div>
|
|
172
|
+
</Tooltip>
|
|
173
|
+
</TableHeaderCell>
|
|
174
|
+
<TableHeaderCell>Disk</TableHeaderCell>
|
|
175
|
+
<TableHeaderCell>Data state time</TableHeaderCell>
|
|
176
|
+
</TableRow>
|
|
177
|
+
</TableHead>
|
|
178
|
+
<TableBody>
|
|
179
|
+
{state.clones.map((clone) => {
|
|
180
|
+
const clonePagePath = host.routes.clone(clone.id)
|
|
181
|
+
|
|
182
|
+
return (
|
|
183
|
+
<TableRow
|
|
184
|
+
hover={!props.isDisabled}
|
|
185
|
+
key={clone.id}
|
|
186
|
+
onClick={
|
|
187
|
+
props.isDisabled
|
|
188
|
+
? undefined
|
|
189
|
+
: () => history.push(clonePagePath)
|
|
190
|
+
}
|
|
191
|
+
className={cn(!props.isDisabled && styles.interactiveRow)}
|
|
192
|
+
>
|
|
193
|
+
<MenuCell
|
|
194
|
+
clone={clone}
|
|
195
|
+
onConnect={openConnectionModal}
|
|
196
|
+
clonePagePath={clonePagePath}
|
|
197
|
+
/>
|
|
198
|
+
<TableBodyCell>
|
|
199
|
+
<Tooltip content={clone.status.message}>
|
|
200
|
+
<Status type={getCloneStatusType(clone.status.code)}>
|
|
201
|
+
{getCloneStatusText(clone.status.code)}
|
|
202
|
+
</Status>
|
|
203
|
+
</Tooltip>
|
|
204
|
+
</TableBodyCell>
|
|
205
|
+
<TableBodyCell>{clone.id}</TableBodyCell>
|
|
206
|
+
{!props.hideBranchingFeatures && <TableBodyCell>{clone.branch}</TableBodyCell>}
|
|
207
|
+
<TableBodyCell>
|
|
208
|
+
{clone.protected ? (
|
|
209
|
+
<Tooltip content="Clone is protected from manual and automated deletion. Note that abandoned protected clones may lead to out-of-disk-space events because they hold old data, blocking cleanup and refresh processes.">
|
|
210
|
+
<ShieldIcon className={styles.protectionIcon} />
|
|
211
|
+
</Tooltip>
|
|
212
|
+
) : (
|
|
213
|
+
<Tooltip content="Clone is not protected from deletion. To save disk space it will be automatically deleted if there is no activity for a long time.">
|
|
214
|
+
<RenewableIcon className={styles.protectionIcon} />
|
|
215
|
+
</Tooltip>
|
|
216
|
+
)}
|
|
217
|
+
</TableBodyCell>
|
|
218
|
+
<TableBodyCell>
|
|
219
|
+
{formatDateWithDistance(clone.createdAt, clone.createdAtDate)}
|
|
220
|
+
</TableBodyCell>
|
|
221
|
+
<TableBodyCell>{clone.db.port}</TableBodyCell>
|
|
222
|
+
<TableBodyCell>{clone.db.username}</TableBodyCell>
|
|
223
|
+
<TableBodyCell>
|
|
224
|
+
{formatBytesIEC(clone.metadata.cloneDiffSize)}
|
|
225
|
+
</TableBodyCell>
|
|
226
|
+
<TableBodyCell>{clone.snapshot?.pool ?? '-'}</TableBodyCell>
|
|
227
|
+
<TableBodyCell>
|
|
228
|
+
{clone.snapshot ? formatDateWithDistance(clone.snapshot.dataStateAt, clone.snapshot.dataStateAtDate) : '-'}
|
|
229
|
+
</TableBodyCell>
|
|
230
|
+
</TableRow>
|
|
231
|
+
)
|
|
232
|
+
})}
|
|
233
|
+
</TableBody>
|
|
234
|
+
</Table>
|
|
235
|
+
</HorizontalScrollContainer>
|
|
236
|
+
|
|
237
|
+
{cloneIdForConnect && (
|
|
238
|
+
<ConnectionModal
|
|
239
|
+
cloneId={cloneIdForConnect}
|
|
240
|
+
isOpen={isOpenConnectionModal}
|
|
241
|
+
onClose={closeConnectionModal}
|
|
242
|
+
/>
|
|
243
|
+
)}
|
|
244
|
+
</>
|
|
245
|
+
)
|
|
246
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 medium is strictly prohibited
|
|
5
|
+
*--------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { makeStyles } from '@material-ui/core'
|
|
9
|
+
import { observer } from 'mobx-react-lite'
|
|
10
|
+
|
|
11
|
+
import { useStores } from '@postgres.ai/shared/pages/Instance/context'
|
|
12
|
+
import { Modal } from '@postgres.ai/shared/components/Modal'
|
|
13
|
+
import { ClonesList } from '@postgres.ai/shared/pages/Instance/Clones/ClonesList'
|
|
14
|
+
import { Tags } from '@postgres.ai/shared/pages/Instance/components/Tags'
|
|
15
|
+
import { ModalReloadButton } from '@postgres.ai/shared/pages/Instance/components/ModalReloadButton'
|
|
16
|
+
|
|
17
|
+
import { getTags } from './utils'
|
|
18
|
+
|
|
19
|
+
const useStyles = makeStyles(
|
|
20
|
+
{
|
|
21
|
+
root: {
|
|
22
|
+
marginTop: 0,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{ index: 1 },
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
export const ClonesModal = observer(() => {
|
|
29
|
+
const classes = useStyles()
|
|
30
|
+
const stores = useStores()
|
|
31
|
+
|
|
32
|
+
const { instance } = stores.main
|
|
33
|
+
if (!instance) return null
|
|
34
|
+
|
|
35
|
+
const { pool, snapshotId, isOpenModal, closeModal } = stores.clonesModal
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<Modal
|
|
39
|
+
title={`Clones (${instance.state?.cloning.clones?.length})`}
|
|
40
|
+
isOpen={isOpenModal}
|
|
41
|
+
onClose={closeModal}
|
|
42
|
+
size="md"
|
|
43
|
+
titleRightContent={
|
|
44
|
+
<ModalReloadButton
|
|
45
|
+
isReloading={stores.main.isReloadingClones}
|
|
46
|
+
onReload={stores.main.reloadClones}
|
|
47
|
+
/>
|
|
48
|
+
}
|
|
49
|
+
headerContent={
|
|
50
|
+
<Tags
|
|
51
|
+
data={getTags({
|
|
52
|
+
pool,
|
|
53
|
+
snapshotId,
|
|
54
|
+
})}
|
|
55
|
+
/>
|
|
56
|
+
}
|
|
57
|
+
classes={{ content: classes.root }}
|
|
58
|
+
>
|
|
59
|
+
<ClonesList
|
|
60
|
+
isDisabled={false}
|
|
61
|
+
clones={instance.state?.cloning.clones.filter((clone) => {
|
|
62
|
+
const isMatchedByPool = !pool || pool === clone.snapshot?.pool
|
|
63
|
+
const isMatchedBySnapshot =
|
|
64
|
+
!snapshotId || snapshotId === clone.snapshot?.id
|
|
65
|
+
return isMatchedByPool && isMatchedBySnapshot
|
|
66
|
+
})}
|
|
67
|
+
emptyStubText="No clones found."
|
|
68
|
+
/>
|
|
69
|
+
</Modal>
|
|
70
|
+
)
|
|
71
|
+
})
|
|
@@ -0,0 +1,21 @@
|
|
|
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 medium is strictly prohibited
|
|
5
|
+
*--------------------------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const getTags = ({
|
|
9
|
+
pool,
|
|
10
|
+
snapshotId,
|
|
11
|
+
}: {
|
|
12
|
+
pool: string | null
|
|
13
|
+
snapshotId: string | null
|
|
14
|
+
}) => {
|
|
15
|
+
const tags = []
|
|
16
|
+
|
|
17
|
+
if (pool) tags.push({ name: 'Disk', value: pool })
|
|
18
|
+
if (snapshotId) tags.push({ name: 'Snapshot', value: snapshotId })
|
|
19
|
+
|
|
20
|
+
return tags
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styles from './styles.module.scss'
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
value: React.ReactNode
|
|
5
|
+
children: React.ReactNode
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const Item = (props: Props) => {
|
|
9
|
+
return (
|
|
10
|
+
<div className={styles.root}>
|
|
11
|
+
<div className={styles.value}>{props.value}</div>
|
|
12
|
+
<div className={styles.description}>{props.children}</div>
|
|
13
|
+
</div>
|
|
14
|
+
)
|
|
15
|
+
}
|