@postgres.ai/shared 3.5.1-pr-1027.0 → 4.0.0-pr-1028
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/components/AlertSnackbar/index.d.ts +2 -0
- package/components/AlertSnackbar/index.js +8 -0
- package/components/AlertSnackbar/useAlertSnackbar.d.ts +16 -0
- package/components/AlertSnackbar/useAlertSnackbar.js +37 -0
- package/components/Button/index.d.ts +7 -0
- package/components/Button/index.js +40 -0
- package/components/Button2/index.d.ts +13 -0
- package/components/Button2/index.js +10 -0
- package/components/DestroyCloneModal/index.d.ts +9 -0
- package/components/DestroyCloneModal/index.js +23 -0
- package/components/DestroyCloneRestrictionModal/index.d.ts +11 -0
- package/components/DestroyCloneRestrictionModal/index.js +16 -0
- package/components/ErrorStub/index.d.ts +11 -0
- package/components/ErrorStub/index.js +42 -0
- package/components/FormattedText/index.d.ts +7 -0
- package/components/FormattedText/index.js +23 -0
- package/components/GatewayLink/index.d.ts +4 -0
- package/components/GatewayLink/index.js +13 -0
- package/components/HorizontalScrollContainer/index.d.ts +13 -0
- package/components/HorizontalScrollContainer/index.js +72 -0
- package/components/HorizontalScrollContainer/types.d.ts +5 -0
- package/components/HorizontalScrollContainer/{types.ts → types.js} +1 -6
- package/components/HorizontalScrollContainer/utils.d.ts +3 -0
- package/components/HorizontalScrollContainer/utils.js +12 -0
- package/components/ImportantText/index.d.ts +6 -0
- package/components/ImportantText/index.js +12 -0
- package/components/Link2/index.d.ts +7 -0
- package/components/Link2/index.js +17 -0
- package/components/MenuButton/index.d.ts +26 -0
- package/components/MenuButton/index.js +16 -0
- package/components/Modal/index.d.ts +15 -0
- package/components/Modal/index.js +35 -0
- package/components/PageSpinner/index.d.ts +2 -0
- package/components/PageSpinner/{index.tsx → index.js} +5 -11
- package/components/ResetCloneModal/index.d.ts +13 -0
- package/components/ResetCloneModal/index.js +89 -0
- package/components/SectionTitle/index.d.ts +12 -0
- package/components/SectionTitle/index.js +31 -0
- package/components/Select/index.d.ts +18 -0
- package/components/Select/index.js +9 -0
- package/components/SimpleModalControls/index.d.ts +11 -0
- package/components/SimpleModalControls/index.js +19 -0
- package/components/Spinner/icon.d.ts +4 -0
- package/components/Spinner/icon.js +2 -0
- package/components/Spinner/index.d.ts +7 -0
- package/components/Spinner/index.js +8 -0
- package/components/Status/index.d.ts +12 -0
- package/components/Status/index.js +23 -0
- package/components/StubContainer/index.d.ts +7 -0
- package/components/StubContainer/index.js +14 -0
- package/components/StubSpinner/index.d.ts +8 -0
- package/components/StubSpinner/index.js +29 -0
- package/components/StubSpinnerFlex/index.d.ts +9 -0
- package/components/StubSpinnerFlex/index.js +8 -0
- package/components/SyntaxHighlight/index.d.ts +7 -0
- package/components/SyntaxHighlight/index.js +65 -0
- package/components/Table/RowMenu/index.d.ts +14 -0
- package/components/Table/RowMenu/index.js +50 -0
- package/components/Table/index.d.ts +12 -0
- package/components/Table/index.js +58 -0
- package/components/Text/index.d.ts +6 -0
- package/components/Text/index.js +11 -0
- package/components/TextField/index.d.ts +27 -0
- package/components/TextField/index.js +43 -0
- package/components/Tooltip/index.d.ts +12 -0
- package/components/Tooltip/index.js +19 -0
- package/config/index.d.ts +8 -0
- package/config/index.js +23 -0
- package/config/links.d.ts +6 -0
- package/config/links.js +6 -0
- package/helpers/getEntropy.d.ts +3 -0
- package/helpers/getEntropy.js +212 -0
- package/helpers/localStorage.d.ts +6 -0
- package/helpers/localStorage.js +13 -0
- package/helpers/request.d.ts +7 -0
- package/helpers/request.js +35 -0
- package/hooks/useWindowDimensions.d.ts +1 -0
- package/hooks/useWindowDimensions.js +12 -0
- package/icons/ArrowDropDown/index.d.ts +7 -0
- package/icons/ArrowDropDown/index.js +6 -0
- package/icons/Circle/index.d.ts +6 -0
- package/icons/Circle/index.js +5 -0
- package/icons/External/index.d.ts +4 -0
- package/icons/External/index.js +2 -0
- package/icons/Info/index.d.ts +4 -0
- package/icons/Info/index.js +2 -0
- package/icons/PostgresSQL/index.d.ts +2 -0
- package/icons/PostgresSQL/index.js +40 -0
- package/icons/Renewable/index.d.ts +6 -0
- package/icons/Renewable/index.js +12 -0
- package/icons/Shield/index.d.ts +6 -0
- package/icons/Shield/index.js +12 -0
- package/icons/Warning/index.d.ts +6 -0
- package/icons/Warning/index.js +6 -0
- package/package.json +5 -13
- package/pages/Branches/Branch/context.d.ts +22 -0
- package/pages/Branches/Branch/context.js +3 -0
- package/pages/Branches/Branch/index.d.ts +9 -0
- package/pages/Branches/Branch/index.js +172 -0
- package/pages/Branches/Branch/stores/Main.d.ts +37 -0
- package/pages/Branches/Branch/stores/Main.js +90 -0
- package/pages/Branches/Branch/useCreatedStores.d.ts +6 -0
- package/pages/Branches/Branch/useCreatedStores.js +5 -0
- package/pages/Branches/components/BranchesTable/index.d.ts +10 -0
- package/pages/Branches/components/BranchesTable/index.js +107 -0
- package/pages/Branches/components/Modals/DeleteBranchModal/index.d.ts +11 -0
- package/pages/Branches/components/Modals/DeleteBranchModal/index.js +49 -0
- package/pages/Branches/components/Modals/types.d.ts +4 -0
- package/pages/Branches/components/Modals/types.js +1 -0
- package/pages/Branches/index.d.ts +6 -0
- package/pages/Branches/index.js +60 -0
- package/pages/Clone/Status/index.d.ts +8 -0
- package/pages/Clone/Status/index.js +38 -0
- package/pages/Clone/context.d.ts +21 -0
- package/pages/Clone/context.js +3 -0
- package/pages/Clone/index.d.ts +9 -0
- package/pages/Clone/index.js +252 -0
- package/pages/Clone/stores/Main.d.ts +47 -0
- package/pages/Clone/stores/Main.js +141 -0
- package/pages/Clone/useCreatedStores.d.ts +6 -0
- package/pages/Clone/useCreatedStores.js +5 -0
- package/pages/Clone/utils/index.d.ts +4 -0
- package/pages/Clone/utils/index.js +12 -0
- package/pages/CreateBranch/index.d.ts +17 -0
- package/pages/CreateBranch/index.js +135 -0
- package/pages/CreateBranch/stores/Main.d.ts +43 -0
- package/pages/CreateBranch/stores/Main.js +59 -0
- package/pages/CreateBranch/useCreatedStores.d.ts +6 -0
- package/pages/CreateBranch/useCreatedStores.js +5 -0
- package/pages/CreateBranch/useForm.d.ts +51 -0
- package/pages/CreateBranch/useForm.js +30 -0
- package/pages/CreateBranch/utils/index.d.ts +2 -0
- package/pages/CreateBranch/utils/index.js +10 -0
- package/pages/CreateClone/index.d.ts +19 -0
- package/pages/CreateClone/index.js +142 -0
- package/pages/CreateClone/stores/Main.d.ts +49 -0
- package/pages/CreateClone/stores/Main.js +85 -0
- package/pages/CreateClone/styles.module.scss +47 -4
- package/pages/CreateClone/useCreatedStores.d.ts +6 -0
- package/pages/CreateClone/useCreatedStores.js +5 -0
- package/pages/CreateClone/useForm.d.ts +55 -0
- package/pages/CreateClone/useForm.js +26 -0
- package/pages/CreateClone/utils/index.d.ts +3 -0
- package/pages/CreateClone/utils/index.js +17 -0
- package/pages/CreateSnapshot/index.d.ts +17 -0
- package/pages/CreateSnapshot/index.js +117 -0
- package/pages/CreateSnapshot/stores/Main.d.ts +21 -0
- package/pages/CreateSnapshot/stores/Main.js +31 -0
- package/pages/CreateSnapshot/useCreatedStores.d.ts +6 -0
- package/pages/CreateSnapshot/useCreatedStores.js +5 -0
- package/pages/CreateSnapshot/useForm.d.ts +53 -0
- package/pages/CreateSnapshot/useForm.js +25 -0
- package/pages/CreateSnapshot/utils/index.d.ts +1 -0
- package/pages/CreateSnapshot/utils/index.js +3 -0
- package/pages/Instance/Clones/ClonesList/ConnectionModal/index.d.ts +10 -0
- package/pages/Instance/Clones/ClonesList/ConnectionModal/index.js +74 -0
- package/pages/Instance/Clones/ClonesList/MenuCell/index.d.ts +11 -0
- package/pages/Instance/Clones/ClonesList/MenuCell/index.js +49 -0
- package/pages/Instance/Clones/ClonesList/MenuCell/utils.d.ts +3 -0
- package/pages/Instance/Clones/ClonesList/MenuCell/utils.js +18 -0
- package/pages/Instance/Clones/ClonesList/index.d.ts +9 -0
- package/pages/Instance/Clones/ClonesList/index.js +96 -0
- package/pages/Instance/{components → Clones}/ClonesList/styles.module.scss +10 -0
- package/pages/Instance/Clones/ClonesModal/index.d.ts +4 -0
- package/pages/Instance/Clones/ClonesModal/index.js +38 -0
- package/pages/Instance/Clones/ClonesModal/utils.d.ts +7 -0
- package/pages/Instance/Clones/ClonesModal/utils.js +14 -0
- package/pages/Instance/Clones/Header/Item/index.d.ts +7 -0
- package/pages/Instance/Clones/Header/Item/index.js +5 -0
- package/pages/Instance/Clones/Header/index.d.ts +9 -0
- package/pages/Instance/Clones/Header/index.js +16 -0
- package/pages/Instance/Clones/Header/styles.module.scss +4 -1
- package/pages/Instance/Clones/index.d.ts +8 -0
- package/pages/Instance/Clones/index.js +64 -0
- package/pages/Instance/Configuration/Header/index.d.ts +11 -0
- package/pages/Instance/Configuration/Header/index.js +17 -0
- package/pages/Instance/Configuration/InputWithTooltip/index.d.ts +32 -0
- package/pages/Instance/Configuration/InputWithTooltip/index.js +64 -0
- package/pages/Instance/Configuration/ResponseMessage/index.d.ts +5 -0
- package/pages/Instance/Configuration/ResponseMessage/index.js +43 -0
- package/pages/Instance/Configuration/configOptions.d.ts +9 -0
- package/pages/Instance/Configuration/configOptions.js +59 -0
- package/pages/Instance/Configuration/index.d.ts +10 -0
- package/pages/Instance/Configuration/index.js +547 -0
- package/pages/Instance/Configuration/tooltipText.d.ts +20 -0
- package/pages/Instance/Configuration/tooltipText.js +21 -0
- package/pages/Instance/Configuration/useForm.d.ts +82 -0
- package/pages/Instance/Configuration/useForm.js +74 -0
- package/pages/Instance/Configuration/utils/index.d.ts +22 -0
- package/pages/Instance/Configuration/utils/index.js +105 -0
- package/pages/Instance/InactiveInstance/index.d.ts +6 -0
- package/pages/Instance/InactiveInstance/index.js +65 -0
- package/pages/Instance/InactiveInstance/utils.d.ts +2 -0
- package/pages/Instance/InactiveInstance/utils.js +7 -0
- package/pages/Instance/Info/Connection/ConnectModal/Content/index.d.ts +4 -0
- package/pages/Instance/Info/Connection/ConnectModal/Content/index.js +73 -0
- package/pages/Instance/Info/Connection/ConnectModal/Content/utils.d.ts +3 -0
- package/pages/Instance/Info/Connection/ConnectModal/Content/utils.js +20 -0
- package/pages/Instance/Info/Connection/ConnectModal/index.d.ts +6 -0
- package/pages/Instance/Info/Connection/ConnectModal/index.js +17 -0
- package/pages/Instance/Info/Connection/index.d.ts +4 -0
- package/pages/Instance/Info/Connection/index.js +44 -0
- package/pages/Instance/Info/Details/index.d.ts +2 -0
- package/pages/Instance/Info/Details/index.js +6 -0
- package/pages/Instance/Info/Disks/Disk/ActionsMenu/index.d.ts +8 -0
- package/pages/Instance/Info/Disks/Disk/ActionsMenu/index.js +47 -0
- package/pages/Instance/Info/Disks/Disk/Marker/index.d.ts +6 -0
- package/pages/Instance/Info/Disks/Disk/Marker/index.js +15 -0
- package/pages/Instance/Info/Disks/Disk/ProgressBar/PointerIcon.d.ts +5 -0
- package/pages/Instance/Info/Disks/Disk/ProgressBar/PointerIcon.js +2 -0
- package/pages/Instance/Info/Disks/Disk/ProgressBar/index.d.ts +8 -0
- package/pages/Instance/Info/Disks/Disk/ProgressBar/index.js +45 -0
- package/pages/Instance/Info/Disks/Disk/Status/index.d.ts +6 -0
- package/pages/Instance/Info/Disks/Disk/Status/index.js +52 -0
- package/pages/Instance/Info/Disks/Disk/index.d.ts +15 -0
- package/pages/Instance/Info/Disks/Disk/index.js +71 -0
- package/pages/Instance/Info/Disks/index.d.ts +4 -0
- package/pages/Instance/Info/Disks/index.js +24 -0
- package/pages/Instance/Info/Icons/index.d.ts +7 -0
- package/pages/Instance/Info/Icons/index.js +3 -0
- package/pages/Instance/Info/Retrieval/RefreshFailedAlert/index.d.ts +4 -0
- package/pages/Instance/Info/Retrieval/RefreshFailedAlert/index.js +15 -0
- package/pages/Instance/Info/Retrieval/RetrievalModal/index.d.ts +10 -0
- package/pages/Instance/Info/Retrieval/RetrievalModal/index.js +11 -0
- package/pages/Instance/Info/Retrieval/RetrievalTable/index.d.ts +6 -0
- package/pages/Instance/Info/Retrieval/RetrievalTable/index.js +6 -0
- package/pages/Instance/Info/Retrieval/index.d.ts +4 -0
- package/pages/Instance/Info/Retrieval/index.js +47 -0
- package/pages/Instance/Info/Retrieval/utils.d.ts +2 -0
- package/pages/Instance/Info/Retrieval/utils.js +12 -0
- package/pages/Instance/Info/Snapshots/Calendar/Day/index.d.ts +11 -0
- package/pages/Instance/Info/Snapshots/Calendar/Day/index.js +71 -0
- package/pages/Instance/Info/Snapshots/Calendar/index.d.ts +8 -0
- package/pages/Instance/Info/Snapshots/Calendar/index.js +67 -0
- package/pages/Instance/Info/Snapshots/Calendar/utils.d.ts +27 -0
- package/pages/Instance/Info/Snapshots/Calendar/utils.js +41 -0
- package/pages/Instance/Info/Snapshots/TimeLine/Day/index.d.ts +6 -0
- package/pages/Instance/Info/Snapshots/TimeLine/Day/index.js +58 -0
- package/pages/Instance/Info/Snapshots/TimeLine/index.d.ts +2 -0
- package/pages/Instance/Info/Snapshots/TimeLine/index.js +32 -0
- package/pages/Instance/Info/Snapshots/index.d.ts +4 -0
- package/pages/Instance/Info/Snapshots/index.js +40 -0
- package/pages/Instance/Info/Snapshots/utils.d.ts +34 -0
- package/pages/Instance/Info/Snapshots/utils.js +26 -0
- package/pages/Instance/Info/Status/InstanceResponseModal/index.d.ts +9 -0
- package/pages/Instance/Info/Status/InstanceResponseModal/index.js +12 -0
- package/pages/Instance/Info/Status/index.d.ts +4 -0
- package/pages/Instance/Info/Status/index.js +31 -0
- package/pages/Instance/Info/Status/utils.d.ts +8 -0
- package/pages/Instance/Info/Status/utils.js +23 -0
- package/pages/Instance/Info/components/Property/index.d.ts +11 -0
- package/pages/Instance/Info/components/Property/index.js +14 -0
- package/pages/Instance/Info/components/Section/index.d.ts +8 -0
- package/pages/Instance/Info/components/Section/index.js +18 -0
- package/pages/Instance/Info/components/ValueStatus/index.d.ts +9 -0
- package/pages/Instance/Info/components/ValueStatus/index.js +18 -0
- package/pages/Instance/Info/index.d.ts +2 -0
- package/pages/Instance/Info/index.js +76 -0
- package/pages/Instance/Snapshots/components/SnapshotHeader/index.d.ts +11 -0
- package/pages/Instance/Snapshots/components/SnapshotHeader/index.js +36 -0
- package/pages/Instance/Snapshots/components/SnapshotsList/index.d.ts +11 -0
- package/pages/Instance/Snapshots/components/SnapshotsList/index.js +157 -0
- package/pages/Instance/Snapshots/components/SnapshotsModal/utils.d.ts +7 -0
- package/{components/HorizontalScrollContainer/utils.ts → pages/Instance/Snapshots/components/SnapshotsModal/utils.js} +8 -9
- package/pages/Instance/Snapshots/components/SnapshotsTable/index.d.ts +6 -0
- package/pages/Instance/Snapshots/components/SnapshotsTable/index.js +125 -0
- package/pages/Instance/Snapshots/index.d.ts +6 -0
- package/pages/Instance/Snapshots/index.js +92 -0
- package/pages/Instance/Snapshots/utils/index.d.ts +16 -0
- package/pages/Instance/Snapshots/utils/index.js +30 -0
- package/pages/Instance/SnapshotsModal/index.d.ts +4 -0
- package/pages/Instance/SnapshotsModal/index.js +81 -0
- package/pages/Instance/Tabs/PlatformTabs.d.ts +10 -0
- package/pages/Instance/Tabs/PlatformTabs.js +51 -0
- package/pages/Instance/Tabs/index.d.ts +26 -0
- package/pages/Instance/Tabs/index.js +75 -0
- package/pages/Instance/Tabs/styles.d.ts +1 -0
- package/pages/Instance/Tabs/styles.js +62 -0
- package/pages/Instance/components/ErrorStub/index.d.ts +9 -0
- package/pages/Instance/components/ErrorStub/index.js +42 -0
- package/pages/Instance/components/ModalReloadButton/index.d.ts +7 -0
- package/pages/Instance/components/ModalReloadButton/index.js +22 -0
- package/pages/Instance/components/Tags/Tag/index.d.ts +7 -0
- package/pages/Instance/components/Tags/Tag/index.js +35 -0
- package/pages/Instance/components/Tags/index.d.ts +8 -0
- package/pages/Instance/components/Tags/index.js +16 -0
- package/pages/Instance/context.d.ts +38 -0
- package/pages/Instance/{ClonesModal/utils.ts → context.js} +5 -15
- package/pages/Instance/index.d.ts +8 -0
- package/pages/Instance/index.js +94 -0
- package/pages/Instance/stores/ClonesModal.d.ts +13 -0
- package/pages/Instance/stores/ClonesModal.js +24 -0
- package/pages/Instance/stores/Main.d.ts +141 -0
- package/pages/Instance/stores/Main.js +302 -0
- package/pages/Instance/stores/SnapshotsModal.d.ts +13 -0
- package/pages/Instance/stores/SnapshotsModal.js +24 -0
- package/pages/Instance/styles.scss +1 -4
- package/pages/Instance/useCreatedStores.d.ts +10 -0
- package/pages/Instance/useCreatedStores.js +9 -0
- package/pages/Logs/Icons/PlusIcon.d.ts +2 -0
- package/pages/Logs/Icons/PlusIcon.js +2 -0
- package/pages/Logs/constants/index.d.ts +5 -0
- package/pages/Logs/constants/index.js +5 -0
- package/pages/Logs/hooks/useWsScroll.d.ts +1 -0
- package/pages/Logs/hooks/useWsScroll.js +37 -0
- package/pages/Logs/index.d.ts +6 -0
- package/pages/Logs/index.js +200 -0
- package/pages/Logs/utils/index.d.ts +2 -0
- package/pages/Logs/utils/index.js +15 -0
- package/pages/Logs/wsLogs.d.ts +3 -0
- package/pages/Logs/wsLogs.js +92 -0
- package/pages/Logs/wsSnackbar.d.ts +1 -0
- package/pages/Logs/wsSnackbar.js +25 -0
- package/pages/Snapshots/Snapshot/DestorySnapshotModal/index.d.ts +12 -0
- package/pages/Snapshots/Snapshot/DestorySnapshotModal/index.js +69 -0
- package/pages/Snapshots/Snapshot/context.d.ts +23 -0
- package/pages/Snapshots/Snapshot/context.js +3 -0
- package/pages/Snapshots/Snapshot/index.d.ts +9 -0
- package/pages/Snapshots/Snapshot/index.js +171 -0
- package/pages/Snapshots/Snapshot/stores/Main.d.ts +33 -0
- package/pages/Snapshots/Snapshot/stores/Main.js +71 -0
- package/pages/Snapshots/Snapshot/useCreatedStores.d.ts +6 -0
- package/pages/Snapshots/Snapshot/useCreatedStores.js +5 -0
- package/stores/Snapshots.d.ts +24 -0
- package/stores/Snapshots.js +59 -0
- package/styles/colors.d.ts +60 -0
- package/styles/colors.js +66 -0
- package/styles/icons.d.ts +63 -0
- package/styles/icons.js +69 -0
- package/styles/styles.d.ts +1 -0
- package/styles/styles.js +83 -0
- package/styles/theme.d.ts +1 -0
- package/styles/theme.js +50 -0
- package/styles/vars.d.ts +25 -0
- package/styles/{vars.ts → vars.js} +20 -28
- package/types/api/endpoints/createBranch.d.ts +12 -0
- package/types/api/endpoints/createBranch.js +1 -0
- package/types/api/endpoints/createClone.d.ts +13 -0
- package/types/api/endpoints/createClone.js +1 -0
- package/types/api/endpoints/createSnapshot.d.ts +5 -0
- package/types/api/endpoints/createSnapshot.js +1 -0
- package/types/api/endpoints/deleteBranch.d.ts +4 -0
- package/types/api/endpoints/deleteBranch.js +1 -0
- package/types/api/endpoints/destroyClone.d.ts +7 -0
- package/types/api/endpoints/destroyClone.js +1 -0
- package/types/api/endpoints/destroySnapshot.d.ts +4 -0
- package/types/api/endpoints/destroySnapshot.js +1 -0
- package/types/api/endpoints/getBranchSnapshot.d.ts +5 -0
- package/types/api/endpoints/getBranchSnapshot.js +1 -0
- package/types/api/endpoints/getBranches.d.ts +18 -0
- package/types/api/endpoints/getBranches.js +5 -0
- package/types/api/endpoints/getClone.d.ts +8 -0
- package/types/api/endpoints/getClone.js +1 -0
- package/types/api/endpoints/getConfig.d.ts +5 -0
- package/types/api/endpoints/getConfig.js +1 -0
- package/types/api/endpoints/getEngine.d.ts +10 -0
- package/types/api/endpoints/getEngine.js +1 -0
- package/types/api/endpoints/getFullConfig.d.ts +4 -0
- package/types/api/endpoints/getFullConfig.js +1 -0
- package/types/api/endpoints/getInstance.d.ts +7 -0
- package/types/api/endpoints/getInstance.js +1 -0
- package/types/api/endpoints/getInstanceRetrieval.d.ts +7 -0
- package/types/api/endpoints/getInstanceRetrieval.js +1 -0
- package/types/api/endpoints/getSeImages.d.ts +19 -0
- package/types/api/endpoints/getSeImages.js +1 -0
- package/types/api/endpoints/getSnapshotList.d.ts +10 -0
- package/types/api/endpoints/getSnapshotList.js +1 -0
- package/types/api/endpoints/getSnapshots.d.ts +8 -0
- package/types/api/endpoints/getSnapshots.js +1 -0
- package/types/api/endpoints/getWSToken.d.ts +7 -0
- package/types/api/endpoints/getWSToken.js +1 -0
- package/types/api/endpoints/initWS.d.ts +1 -0
- package/types/api/endpoints/initWS.js +1 -0
- package/types/api/endpoints/refreshInstance.d.ts +6 -0
- package/types/api/endpoints/refreshInstance.js +1 -0
- package/types/api/endpoints/resetClone.d.ts +8 -0
- package/types/api/endpoints/resetClone.js +1 -0
- package/types/api/endpoints/testDbSource.d.ts +22 -0
- package/types/api/endpoints/testDbSource.js +23 -0
- package/types/api/endpoints/updateClone.d.ts +10 -0
- package/types/api/endpoints/updateClone.js +1 -0
- package/types/api/endpoints/updateConfig.d.ts +5 -0
- package/types/api/endpoints/updateConfig.js +1 -0
- package/types/api/entities/branchSnapshot.d.ts +6 -0
- package/types/api/entities/branchSnapshot.js +1 -0
- package/types/api/entities/branchSnapshots.d.ts +15 -0
- package/types/api/entities/branchSnapshots.js +7 -0
- package/types/api/entities/clone.d.ts +56 -0
- package/{components/Text/index.tsx → types/api/entities/clone.js} +8 -22
- package/types/api/entities/config.d.ts +72 -0
- package/types/api/entities/config.js +35 -0
- package/types/api/entities/createBranch.d.ts +5 -0
- package/types/api/entities/createBranch.js +1 -0
- package/types/api/entities/createSnapshot.d.ts +5 -0
- package/types/api/entities/createSnapshot.js +1 -0
- package/types/api/entities/dbSource.d.ts +13 -0
- package/types/api/entities/dbSource.js +1 -0
- package/types/api/entities/instance.d.ts +114 -0
- package/types/api/entities/instance.js +31 -0
- package/types/api/entities/instanceRetrieval.d.ts +42 -0
- package/types/api/entities/instanceRetrieval.js +19 -0
- package/types/api/entities/instanceState.d.ts +114 -0
- package/types/api/entities/instanceState.js +42 -0
- package/types/api/entities/pool.d.ts +18 -0
- package/{utils/numbers.ts → types/api/entities/pool.js} +1 -5
- package/types/api/entities/snapshot.d.ts +27 -0
- package/types/api/entities/snapshot.js +6 -0
- package/types/api/entities/wsToken.d.ts +5 -0
- package/types/api/entities/wsToken.js +1 -0
- package/utils/api.d.ts +1 -0
- package/utils/api.js +28 -0
- package/utils/clone.d.ts +13 -0
- package/utils/clone.js +21 -0
- package/utils/connection.d.ts +5 -0
- package/utils/connection.js +28 -0
- package/utils/date.d.ts +18 -0
- package/utils/date.js +40 -0
- package/utils/instance.d.ts +5 -0
- package/utils/instance.js +11 -0
- package/utils/numbers.d.ts +1 -0
- package/utils/{strings.ts → numbers.js} +4 -5
- package/utils/react.d.ts +5 -0
- package/utils/react.js +8 -0
- package/utils/snapshot.d.ts +5 -0
- package/utils/snapshot.js +6 -0
- package/utils/strings.d.ts +1 -0
- package/utils/strings.js +10 -0
- package/utils/units.d.ts +5 -0
- package/utils/units.js +15 -0
- package/.gitlab-ci.yml +0 -60
- package/components/AlertSnackbar/index.tsx +0 -23
- package/components/AlertSnackbar/useAlertSnackbar.tsx +0 -65
- package/components/Button/index.tsx +0 -79
- package/components/Button2/index.tsx +0 -43
- package/components/DestroyCloneModal/index.tsx +0 -56
- package/components/DestroyCloneRestrictionModal/index.tsx +0 -50
- package/components/ErrorStub/index.tsx +0 -83
- package/components/FormattedText/index.tsx +0 -44
- package/components/GatewayLink/index.tsx +0 -33
- package/components/HorizontalScrollContainer/index.tsx +0 -131
- package/components/ImportantText/index.tsx +0 -29
- package/components/Link2/index.tsx +0 -31
- package/components/MenuButton/index.tsx +0 -80
- package/components/Modal/index.tsx +0 -93
- package/components/ResetCloneModal/index.tsx +0 -154
- package/components/SectionTitle/index.tsx +0 -74
- package/components/Select/index.tsx +0 -42
- package/components/SimpleModalControls/index.tsx +0 -56
- package/components/Spinner/icon.tsx +0 -29
- package/components/Spinner/index.tsx +0 -16
- package/components/Status/index.tsx +0 -61
- package/components/StubContainer/index.tsx +0 -41
- package/components/StubSpinner/index.tsx +0 -49
- package/components/StubSpinnerFlex/index.tsx +0 -20
- package/components/SyntaxHighlight/index.tsx +0 -107
- package/components/Table/RowMenu/index.tsx +0 -111
- package/components/Table/index.tsx +0 -140
- package/components/TextField/index.tsx +0 -117
- package/components/Tooltip/index.tsx +0 -52
- package/config/index.ts +0 -32
- package/config/links.ts +0 -6
- package/craco.config.js +0 -80
- package/helpers/getEntropy.ts +0 -232
- package/helpers/localStorage.ts +0 -15
- package/helpers/request.ts +0 -47
- package/hooks/useWindowDimensions.ts +0 -16
- package/icons/ArrowDropDown/index.tsx +0 -29
- package/icons/Circle/index.tsx +0 -27
- package/icons/External/index.tsx +0 -14
- package/icons/Info/index.tsx +0 -12
- package/icons/Renewable/index.tsx +0 -65
- package/icons/Shield/index.tsx +0 -33
- package/icons/Warning/index.tsx +0 -29
- package/pages/Clone/Status/index.tsx +0 -73
- package/pages/Clone/context.ts +0 -22
- package/pages/Clone/index.tsx +0 -634
- package/pages/Clone/stores/Main.ts +0 -206
- package/pages/Clone/useCreatedStores.ts +0 -11
- package/pages/Configuration/Header/index.tsx +0 -84
- package/pages/Configuration/InputWithTooltip/index.tsx +0 -240
- package/pages/Configuration/ResponseMessage/index.tsx +0 -71
- package/pages/Configuration/configOptions.ts +0 -60
- package/pages/Configuration/index.tsx +0 -1184
- package/pages/Configuration/tooltipText.tsx +0 -157
- package/pages/Configuration/useForm.ts +0 -108
- package/pages/Configuration/utils/index.ts +0 -153
- package/pages/CreateClone/index.tsx +0 -311
- package/pages/CreateClone/stores/Main.ts +0 -107
- package/pages/CreateClone/useCreatedStores.ts +0 -11
- package/pages/CreateClone/useForm.ts +0 -36
- package/pages/Instance/Clones/Header/Item/index.tsx +0 -15
- package/pages/Instance/Clones/Header/index.tsx +0 -74
- package/pages/Instance/Clones/index.tsx +0 -135
- package/pages/Instance/ClonesModal/index.tsx +0 -71
- package/pages/Instance/InactiveInstance/index.tsx +0 -165
- package/pages/Instance/InactiveInstance/utils.ts +0 -9
- package/pages/Instance/Info/Connection/ConnectModal/Content/index.tsx +0 -176
- package/pages/Instance/Info/Connection/ConnectModal/Content/utils.ts +0 -24
- package/pages/Instance/Info/Connection/ConnectModal/index.tsx +0 -36
- package/pages/Instance/Info/Connection/index.tsx +0 -81
- package/pages/Instance/Info/Details/index.tsx +0 -20
- package/pages/Instance/Info/Disks/Disk/ActionsMenu/index.tsx +0 -100
- package/pages/Instance/Info/Disks/Disk/Marker/index.tsx +0 -26
- package/pages/Instance/Info/Disks/Disk/ProgressBar/PointerIcon.tsx +0 -20
- package/pages/Instance/Info/Disks/Disk/ProgressBar/index.tsx +0 -73
- package/pages/Instance/Info/Disks/Disk/Status/index.tsx +0 -75
- package/pages/Instance/Info/Disks/Disk/index.tsx +0 -168
- package/pages/Instance/Info/Disks/index.tsx +0 -65
- package/pages/Instance/Info/Icons/index.tsx +0 -39
- package/pages/Instance/Info/Retrieval/RefreshFailedAlert/index.tsx +0 -32
- package/pages/Instance/Info/Retrieval/RetrievalModal/index.tsx +0 -49
- package/pages/Instance/Info/Retrieval/RetrievalTable/index.tsx +0 -53
- package/pages/Instance/Info/Retrieval/index.tsx +0 -95
- package/pages/Instance/Info/Retrieval/utils.ts +0 -10
- package/pages/Instance/Info/Snapshots/Calendar/Day/index.tsx +0 -125
- package/pages/Instance/Info/Snapshots/Calendar/index.tsx +0 -133
- package/pages/Instance/Info/Snapshots/Calendar/utils.ts +0 -74
- package/pages/Instance/Info/Snapshots/TimeLine/Day/index.tsx +0 -79
- package/pages/Instance/Info/Snapshots/TimeLine/index.tsx +0 -57
- package/pages/Instance/Info/Snapshots/index.tsx +0 -97
- package/pages/Instance/Info/Snapshots/utils.ts +0 -18
- package/pages/Instance/Info/Status/InstanceResponseModal/index.tsx +0 -32
- package/pages/Instance/Info/Status/index.tsx +0 -85
- package/pages/Instance/Info/Status/utils.ts +0 -24
- package/pages/Instance/Info/components/Property/index.tsx +0 -32
- package/pages/Instance/Info/components/Section/index.tsx +0 -50
- package/pages/Instance/Info/components/ValueStatus/index.tsx +0 -51
- package/pages/Instance/Info/index.tsx +0 -129
- package/pages/Instance/SnapshotsModal/index.tsx +0 -169
- package/pages/Instance/SnapshotsModal/utils.ts +0 -17
- package/pages/Instance/Tabs/index.tsx +0 -98
- package/pages/Instance/components/ClonesList/ConnectionModal/index.tsx +0 -196
- package/pages/Instance/components/ClonesList/MenuCell/index.tsx +0 -98
- package/pages/Instance/components/ClonesList/MenuCell/utils.ts +0 -21
- package/pages/Instance/components/ClonesList/index.tsx +0 -189
- package/pages/Instance/components/ErrorStub/index.tsx +0 -77
- package/pages/Instance/components/ModalReloadButton/index.tsx +0 -43
- package/pages/Instance/components/Tags/Tag/index.tsx +0 -60
- package/pages/Instance/components/Tags/index.tsx +0 -42
- package/pages/Instance/context.ts +0 -39
- package/pages/Instance/index.tsx +0 -235
- package/pages/Instance/stores/ClonesModal.ts +0 -35
- package/pages/Instance/stores/Main.ts +0 -335
- package/pages/Instance/stores/SnapshotsModal.ts +0 -35
- package/pages/Instance/useCreatedStores.ts +0 -14
- package/pages/Logs/Icons/PlusIcon.tsx +0 -8
- package/pages/Logs/constants/index.ts +0 -7
- package/pages/Logs/hooks/useWsScroll.tsx +0 -44
- package/pages/Logs/index.tsx +0 -267
- package/pages/Logs/utils/index.ts +0 -20
- package/pages/Logs/wsLogs.ts +0 -110
- package/pages/Logs/wsSnackbar.ts +0 -27
- package/postgres.ai-shared-3.5.0.tgz +0 -0
- package/scripts/copy-assets.js +0 -30
- package/scripts/pack.js +0 -70
- package/stores/Snapshots.ts +0 -54
- package/styles/colors.ts +0 -67
- package/styles/icons.tsx +0 -1917
- package/styles/styles.ts +0 -87
- package/styles/theme.ts +0 -53
- package/types/api/endpoints/createClone.ts +0 -10
- package/types/api/endpoints/destroyClone.ts +0 -7
- package/types/api/endpoints/getClone.ts +0 -6
- package/types/api/endpoints/getConfig.ts +0 -6
- package/types/api/endpoints/getEngine.ts +0 -13
- package/types/api/endpoints/getFullConfig.ts +0 -4
- package/types/api/endpoints/getInstance.ts +0 -6
- package/types/api/endpoints/getInstanceRetrieval.ts +0 -6
- package/types/api/endpoints/getSeImages.ts +0 -22
- package/types/api/endpoints/getSnapshots.ts +0 -6
- package/types/api/endpoints/getWSToken.ts +0 -6
- package/types/api/endpoints/initWS.ts +0 -1
- package/types/api/endpoints/refreshInstance.ts +0 -4
- package/types/api/endpoints/resetClone.ts +0 -8
- package/types/api/endpoints/testDbSource.ts +0 -48
- package/types/api/endpoints/updateClone.ts +0 -10
- package/types/api/endpoints/updateConfig.ts +0 -6
- package/types/api/entities/clone.ts +0 -42
- package/types/api/entities/config.ts +0 -114
- package/types/api/entities/dbSource.ts +0 -13
- package/types/api/entities/instance.ts +0 -67
- package/types/api/entities/instanceRetrieval.ts +0 -46
- package/types/api/entities/instanceState.ts +0 -102
- package/types/api/entities/pool.ts +0 -27
- package/types/api/entities/snapshot.ts +0 -18
- package/types/api/entities/wsToken.ts +0 -7
- package/types/byte-size/index.d.ts +0 -22
- package/utils/api.ts +0 -30
- package/utils/clone.ts +0 -31
- package/utils/connection.ts +0 -38
- package/utils/date.ts +0 -87
- package/utils/instance.ts +0 -10
- package/utils/react.ts +0 -10
- package/utils/snapshot.ts +0 -4
- package/utils/units.ts +0 -23
- /package/pages/{Configuration → Instance/Configuration}/styles.module.scss +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { makeStyles } from '@material-ui/core'
|
|
3
|
-
import clsx from 'clsx'
|
|
4
|
-
|
|
5
|
-
import { CircleIcon } from '@postgres.ai/shared/icons/Circle'
|
|
6
|
-
|
|
7
|
-
type Props = {
|
|
8
|
-
className: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const useStyles = makeStyles(
|
|
12
|
-
{
|
|
13
|
-
root: {
|
|
14
|
-
display: 'inline',
|
|
15
|
-
verticalAlign: 'middle',
|
|
16
|
-
width: '10px',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
{ index: 1 },
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
export const Marker = (props: Props) => {
|
|
23
|
-
const classes = useStyles()
|
|
24
|
-
|
|
25
|
-
return <CircleIcon className={clsx(classes.root, props.className)} />
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const PoinerIcon = ({
|
|
2
|
-
className,
|
|
3
|
-
style,
|
|
4
|
-
}: {
|
|
5
|
-
className?: string
|
|
6
|
-
|
|
7
|
-
style?: React.CSSProperties
|
|
8
|
-
}) => (
|
|
9
|
-
<svg
|
|
10
|
-
width="5"
|
|
11
|
-
height="14"
|
|
12
|
-
viewBox="0 0 5 14"
|
|
13
|
-
fill="none"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
style={style}
|
|
16
|
-
className={className}
|
|
17
|
-
>
|
|
18
|
-
<path d="M2.5 14L-2.06593e-07 -4.37114e-07L5 0L2.5 14Z" fill="#EE0202" />
|
|
19
|
-
</svg>
|
|
20
|
-
)
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@material-ui/core'
|
|
2
|
-
|
|
3
|
-
import { colors } from '@postgres.ai/shared/styles/colors'
|
|
4
|
-
import { Tooltip } from '@postgres.ai/shared/components/Tooltip'
|
|
5
|
-
|
|
6
|
-
import { PoinerIcon } from './PointerIcon'
|
|
7
|
-
|
|
8
|
-
type Props = {
|
|
9
|
-
value: number
|
|
10
|
-
total: number
|
|
11
|
-
thresholdPercent: number
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const useStyles = makeStyles(
|
|
15
|
-
(theme) => ({
|
|
16
|
-
'@keyframes grow': {
|
|
17
|
-
'0%': {
|
|
18
|
-
transform: 'scaleX(0)',
|
|
19
|
-
},
|
|
20
|
-
'100%': {
|
|
21
|
-
transform: 'scaleX(1)',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
root: {
|
|
25
|
-
height: '12px',
|
|
26
|
-
position: 'relative',
|
|
27
|
-
borderRadius: '4px',
|
|
28
|
-
background: colors.gray,
|
|
29
|
-
overflow: 'hidden',
|
|
30
|
-
marginTop: '8px',
|
|
31
|
-
},
|
|
32
|
-
indicator: {
|
|
33
|
-
position: 'absolute',
|
|
34
|
-
top: 0,
|
|
35
|
-
left: 0,
|
|
36
|
-
height: '100%',
|
|
37
|
-
width: '30%',
|
|
38
|
-
background: colors.primary.light,
|
|
39
|
-
animation: `$grow 500ms ${theme.transitions.easing.easeOut}`,
|
|
40
|
-
transformOrigin: 0,
|
|
41
|
-
},
|
|
42
|
-
pointer: {
|
|
43
|
-
position: 'absolute',
|
|
44
|
-
height: '100%',
|
|
45
|
-
top: 0,
|
|
46
|
-
transform: 'translateX(-50%)',
|
|
47
|
-
},
|
|
48
|
-
}),
|
|
49
|
-
{ index: 1 },
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
export const ProgressBar = (props: Props) => {
|
|
53
|
-
const classes = useStyles()
|
|
54
|
-
|
|
55
|
-
return (
|
|
56
|
-
<div className={classes.root}>
|
|
57
|
-
<div
|
|
58
|
-
className={classes.indicator}
|
|
59
|
-
style={{ width: `${(props.value / props.total) * 100}%` }}
|
|
60
|
-
/>
|
|
61
|
-
<Tooltip
|
|
62
|
-
content={`+${props.thresholdPercent}% disk usage may result in performance degradation`}
|
|
63
|
-
>
|
|
64
|
-
<PoinerIcon
|
|
65
|
-
className={classes.pointer}
|
|
66
|
-
style={{
|
|
67
|
-
left: `${props.thresholdPercent}%`,
|
|
68
|
-
}}
|
|
69
|
-
/>
|
|
70
|
-
</Tooltip>
|
|
71
|
-
</div>
|
|
72
|
-
)
|
|
73
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@material-ui/core'
|
|
2
|
-
|
|
3
|
-
import { WarningIcon } from '@postgres.ai/shared/icons/Warning'
|
|
4
|
-
import { Tooltip } from '@postgres.ai/shared/components/Tooltip'
|
|
5
|
-
import { colors } from '@postgres.ai/shared/styles/colors'
|
|
6
|
-
|
|
7
|
-
export type Props = {
|
|
8
|
-
value: 'refreshing' | 'active' | 'empty'
|
|
9
|
-
hasWarning: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const VALUE_TO_NAME: Record<Props['value'], string> = {
|
|
13
|
-
refreshing: 'Data refreshing',
|
|
14
|
-
active: 'Active',
|
|
15
|
-
empty: 'Empty',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const VALUE_TO_DESC: Record<Props['value'], string> = {
|
|
19
|
-
refreshing: 'Data retrieval is in progress',
|
|
20
|
-
active: 'Disk is ready to provision clones',
|
|
21
|
-
empty: 'Disk is emptied and ready for a data retrieval',
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const useStyles = makeStyles(
|
|
25
|
-
{
|
|
26
|
-
root: {
|
|
27
|
-
display: 'flex',
|
|
28
|
-
color: colors.white,
|
|
29
|
-
},
|
|
30
|
-
warning: {
|
|
31
|
-
display: 'flex',
|
|
32
|
-
flex: '0 0 16px',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
justifyContent: 'center',
|
|
35
|
-
marginRight: '4px',
|
|
36
|
-
height: '16px',
|
|
37
|
-
background: colors.state.warning,
|
|
38
|
-
borderRadius: '3px',
|
|
39
|
-
},
|
|
40
|
-
icon: {
|
|
41
|
-
height: '10px',
|
|
42
|
-
},
|
|
43
|
-
label: {
|
|
44
|
-
fontSize: '12px',
|
|
45
|
-
padding: '1px 6px',
|
|
46
|
-
borderRadius: '3px',
|
|
47
|
-
flex: '0 0 auto',
|
|
48
|
-
background: (props: Props) => {
|
|
49
|
-
if (props.value === 'refreshing') return colors.state.notice
|
|
50
|
-
if (props.value === 'active') return colors.state.ok
|
|
51
|
-
return colors.state.unknown
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
{ index: 1 },
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
export const Status = (props: Props) => {
|
|
59
|
-
const { value, hasWarning } = props
|
|
60
|
-
|
|
61
|
-
const classes = useStyles(props)
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<div className={classes.root}>
|
|
65
|
-
{hasWarning && (
|
|
66
|
-
<div className={classes.warning}>
|
|
67
|
-
<WarningIcon className={classes.icon} />
|
|
68
|
-
</div>
|
|
69
|
-
)}
|
|
70
|
-
<Tooltip content={VALUE_TO_DESC[value]}>
|
|
71
|
-
<div className={classes.label}>{VALUE_TO_NAME[value]}</div>
|
|
72
|
-
</Tooltip>
|
|
73
|
-
</div>
|
|
74
|
-
)
|
|
75
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@material-ui/core'
|
|
2
|
-
import { formatDistanceToNowStrict } from 'date-fns'
|
|
3
|
-
|
|
4
|
-
import { colors } from '@postgres.ai/shared/styles/colors'
|
|
5
|
-
import { formatBytesIEC } from '@postgres.ai/shared/utils/units'
|
|
6
|
-
import { Status as PerformanceStatus } from '@postgres.ai/shared/components/Status'
|
|
7
|
-
import { formatUTC } from '@postgres.ai/shared/utils/date'
|
|
8
|
-
|
|
9
|
-
import { Property } from '../../components/Property'
|
|
10
|
-
import { ActionsMenu } from './ActionsMenu'
|
|
11
|
-
import { Status } from './Status'
|
|
12
|
-
import { Marker } from './Marker'
|
|
13
|
-
import { ProgressBar } from './ProgressBar'
|
|
14
|
-
|
|
15
|
-
const WARNING_THRESHOLD_PERCENT = 80
|
|
16
|
-
|
|
17
|
-
type Props = {
|
|
18
|
-
id: string | null
|
|
19
|
-
name: string
|
|
20
|
-
totalDataSize: number
|
|
21
|
-
mode: string
|
|
22
|
-
refreshingStartDate: Date | null
|
|
23
|
-
clonesCount: number
|
|
24
|
-
snapshotsCount: number
|
|
25
|
-
usedDataSize: number
|
|
26
|
-
freeDataSize: number
|
|
27
|
-
status: 'refreshing' | 'active' | 'empty'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const useStyles = makeStyles(
|
|
31
|
-
{
|
|
32
|
-
root: {
|
|
33
|
-
border: `1px solid ${colors.consoleStroke}`,
|
|
34
|
-
padding: '6px 8px 8px',
|
|
35
|
-
borderRadius: '4px',
|
|
36
|
-
|
|
37
|
-
'& + $root': {
|
|
38
|
-
marginTop: '8px',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
header: {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
justifyContent: 'space-between',
|
|
44
|
-
alignItems: 'center',
|
|
45
|
-
},
|
|
46
|
-
titleWrapper: {
|
|
47
|
-
display: 'flex',
|
|
48
|
-
flex: '1 1 auto',
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
marginRight: '16px',
|
|
51
|
-
minWidth: 0,
|
|
52
|
-
},
|
|
53
|
-
title: {
|
|
54
|
-
fontWeight: 700,
|
|
55
|
-
fontSize: '14px',
|
|
56
|
-
margin: '0 4px 0 0',
|
|
57
|
-
whiteSpace: 'nowrap',
|
|
58
|
-
textOverflow: 'ellipsis',
|
|
59
|
-
overflow: 'hidden',
|
|
60
|
-
},
|
|
61
|
-
content: {
|
|
62
|
-
marginTop: '8px',
|
|
63
|
-
},
|
|
64
|
-
markerUsed: {
|
|
65
|
-
color: colors.primary.light,
|
|
66
|
-
},
|
|
67
|
-
markerFree: {
|
|
68
|
-
color: colors.gray,
|
|
69
|
-
},
|
|
70
|
-
warningMessage: {
|
|
71
|
-
fontSize: '10px',
|
|
72
|
-
marginTop: '6px',
|
|
73
|
-
},
|
|
74
|
-
uppercaseContent: {
|
|
75
|
-
textTransform: 'uppercase',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
{ index: 1 },
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
const getPercent = (value: number, total: number) =>
|
|
82
|
-
Math.round((value / total) * 100)
|
|
83
|
-
|
|
84
|
-
export const Disk = (props: Props) => {
|
|
85
|
-
const classes = useStyles()
|
|
86
|
-
|
|
87
|
-
const shouldShowWarning =
|
|
88
|
-
props.status === 'active' &&
|
|
89
|
-
getPercent(props.usedDataSize, props.totalDataSize) >
|
|
90
|
-
WARNING_THRESHOLD_PERCENT
|
|
91
|
-
|
|
92
|
-
return (
|
|
93
|
-
<div className={classes.root}>
|
|
94
|
-
<div className={classes.header}>
|
|
95
|
-
<div className={classes.titleWrapper}>
|
|
96
|
-
<h6 title={props.name} className={classes.title}>
|
|
97
|
-
{props.name}
|
|
98
|
-
</h6>
|
|
99
|
-
<ActionsMenu
|
|
100
|
-
poolId={props.id}
|
|
101
|
-
poolName={props.name}
|
|
102
|
-
isActive={props.status === 'active'}
|
|
103
|
-
/>
|
|
104
|
-
</div>
|
|
105
|
-
|
|
106
|
-
<Status value={props.status} hasWarning={shouldShowWarning} />
|
|
107
|
-
</div>
|
|
108
|
-
<Property name="Mode" classes={{ content: classes.uppercaseContent }}>
|
|
109
|
-
{props.mode}
|
|
110
|
-
</Property>
|
|
111
|
-
|
|
112
|
-
{props.status === 'refreshing' && props.refreshingStartDate && (
|
|
113
|
-
<div className={classes.content}>
|
|
114
|
-
<Property name="Refreshing started at">
|
|
115
|
-
{formatUTC(props.refreshingStartDate, 'yyyy-MM-dd HH:mm:ss')} UTC (
|
|
116
|
-
{formatDistanceToNowStrict(props.refreshingStartDate, {
|
|
117
|
-
addSuffix: true,
|
|
118
|
-
})}
|
|
119
|
-
)
|
|
120
|
-
</Property>
|
|
121
|
-
</div>
|
|
122
|
-
)}
|
|
123
|
-
<div className={classes.content}>
|
|
124
|
-
<Property name="Clones">{props.clonesCount}</Property>
|
|
125
|
-
<Property name="Snapshots">{props.snapshotsCount}</Property>
|
|
126
|
-
</div>
|
|
127
|
-
|
|
128
|
-
<div className={classes.content}>
|
|
129
|
-
<Property name="Size">{formatBytesIEC(props.totalDataSize)}</Property>
|
|
130
|
-
<Property
|
|
131
|
-
name={
|
|
132
|
-
<>
|
|
133
|
-
Used
|
|
134
|
-
<Marker className={classes.markerUsed} />
|
|
135
|
-
</>
|
|
136
|
-
}
|
|
137
|
-
>
|
|
138
|
-
{formatBytesIEC(props.usedDataSize)} /{' '}
|
|
139
|
-
{getPercent(props.usedDataSize, props.totalDataSize)} %
|
|
140
|
-
</Property>
|
|
141
|
-
<Property
|
|
142
|
-
name={
|
|
143
|
-
<>
|
|
144
|
-
Free
|
|
145
|
-
<Marker className={classes.markerFree} />
|
|
146
|
-
</>
|
|
147
|
-
}
|
|
148
|
-
>
|
|
149
|
-
{formatBytesIEC(props.freeDataSize)} /{' '}
|
|
150
|
-
{getPercent(props.freeDataSize, props.totalDataSize)} %
|
|
151
|
-
</Property>
|
|
152
|
-
</div>
|
|
153
|
-
|
|
154
|
-
<ProgressBar
|
|
155
|
-
value={props.usedDataSize}
|
|
156
|
-
total={props.totalDataSize}
|
|
157
|
-
thresholdPercent={WARNING_THRESHOLD_PERCENT}
|
|
158
|
-
/>
|
|
159
|
-
|
|
160
|
-
{shouldShowWarning && (
|
|
161
|
-
<PerformanceStatus type="warning" className={classes.warningMessage}>
|
|
162
|
-
+{WARNING_THRESHOLD_PERCENT}% disk usage may result in performance
|
|
163
|
-
degradation
|
|
164
|
-
</PerformanceStatus>
|
|
165
|
-
)}
|
|
166
|
-
</div>
|
|
167
|
-
)
|
|
168
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
|
|
10
|
-
import { useStores } from '@postgres.ai/shared/pages/Instance/context'
|
|
11
|
-
|
|
12
|
-
import { Section } from '../components/Section'
|
|
13
|
-
|
|
14
|
-
import { Disk } from './Disk'
|
|
15
|
-
|
|
16
|
-
export const Disks = observer(() => {
|
|
17
|
-
const stores = useStores()
|
|
18
|
-
|
|
19
|
-
const { instance, snapshots } = stores.main
|
|
20
|
-
if (!instance) return null
|
|
21
|
-
if (!snapshots) return null
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<Section title="Disks">
|
|
25
|
-
{instance.state?.pools?.map((pool) => {
|
|
26
|
-
return (
|
|
27
|
-
<Disk
|
|
28
|
-
key={pool.name}
|
|
29
|
-
status={pool.status}
|
|
30
|
-
name={pool.name}
|
|
31
|
-
id={pool.name}
|
|
32
|
-
mode={pool.mode}
|
|
33
|
-
clonesCount={pool.cloneList.length}
|
|
34
|
-
snapshotsCount={
|
|
35
|
-
snapshots.data?.filter((snapshot) => snapshot.pool === pool.name)
|
|
36
|
-
.length ?? 0
|
|
37
|
-
}
|
|
38
|
-
totalDataSize={pool.fileSystem.size}
|
|
39
|
-
usedDataSize={pool.fileSystem.used}
|
|
40
|
-
freeDataSize={pool.fileSystem.free}
|
|
41
|
-
refreshingStartDate={instance.state?.retrieving?.lastRefresh ?? null}
|
|
42
|
-
/>
|
|
43
|
-
)
|
|
44
|
-
}) ??
|
|
45
|
-
(instance.state?.fileSystem && (
|
|
46
|
-
<Disk
|
|
47
|
-
status={'active'}
|
|
48
|
-
name={'Main'}
|
|
49
|
-
id={null}
|
|
50
|
-
mode="ZFS"
|
|
51
|
-
clonesCount={instance.state?.clones?.length ?? instance.state.cloning.clones.length}
|
|
52
|
-
snapshotsCount={snapshots.data?.length ?? 0}
|
|
53
|
-
totalDataSize={instance.state.fileSystem.size}
|
|
54
|
-
usedDataSize={instance.state.fileSystem.used}
|
|
55
|
-
freeDataSize={instance.state.fileSystem.free}
|
|
56
|
-
refreshingStartDate={null}
|
|
57
|
-
/>
|
|
58
|
-
)) ?? (
|
|
59
|
-
<>
|
|
60
|
-
Disk information is <strong>unavailable</strong>.
|
|
61
|
-
</>
|
|
62
|
-
)}
|
|
63
|
-
</Section>
|
|
64
|
-
)
|
|
65
|
-
})
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export const ArrowLeft = ({ className }: { className?: string }) => (
|
|
2
|
-
<svg
|
|
3
|
-
width="20"
|
|
4
|
-
height="21"
|
|
5
|
-
viewBox="0 0 20 21"
|
|
6
|
-
fill="none"
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
className={className}
|
|
9
|
-
>
|
|
10
|
-
<path
|
|
11
|
-
d="M0.307554 9.50891L9.50896 0.307513C9.91902 -0.102504 10.583 -0.102504 10.9931 0.307513C11.4031 0.7172 11.4031 1.38195 10.9931 1.79163L2.53369 10.251L10.993 18.7103C11.403 19.12 11.403 19.7847 10.993 20.1944C10.788 20.3995 10.5196 20.502 10.251 20.502C9.98229 20.502 9.71356 20.3995 9.50891 20.1944L0.307507 10.993C-0.102512 10.5833 -0.10251 9.9186 0.307554 9.50891Z"
|
|
12
|
-
fill="white"
|
|
13
|
-
/>
|
|
14
|
-
<path
|
|
15
|
-
d="M9.00696 9.50891L18.2084 0.307513C18.6181 -0.102504 19.2828 -0.102504 19.6925 0.307513C20.1025 0.7172 20.1025 1.38195 19.6925 1.79163L11.2335 10.251L19.6924 18.7103C20.1025 19.12 20.1025 19.7847 19.6924 20.1944C19.4878 20.3995 19.2191 20.502 18.9504 20.502C18.6817 20.502 18.413 20.3995 18.2083 20.1944L9.00692 10.993C8.59695 10.5833 8.59695 9.9186 9.00696 9.50891Z"
|
|
16
|
-
fill="white"
|
|
17
|
-
/>
|
|
18
|
-
</svg>
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
export const ArrowRight = ({ className }: { className?: string }) => (
|
|
22
|
-
<svg
|
|
23
|
-
width="21"
|
|
24
|
-
height="21"
|
|
25
|
-
viewBox="0 0 21 21"
|
|
26
|
-
fill="none"
|
|
27
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
-
className={className}
|
|
29
|
-
>
|
|
30
|
-
<path
|
|
31
|
-
d="M20.211 9.5089L10.8896 0.307513C10.4742 -0.102504 9.80151 -0.102504 9.38609 0.307513C8.97073 0.717199 8.97073 1.38195 9.38609 1.79163L17.9558 10.251L9.38614 18.7103C8.97078 19.12 8.97078 19.7847 9.38614 20.1944C9.59385 20.3994 9.8657 20.502 10.1379 20.502C10.4101 20.502 10.6823 20.3994 10.8896 20.1944L20.211 10.993C20.6264 10.5833 20.6264 9.91859 20.211 9.5089Z"
|
|
32
|
-
fill="white"
|
|
33
|
-
/>
|
|
34
|
-
<path
|
|
35
|
-
d="M11.3981 9.5089L2.07672 0.307513C1.66169 -0.102504 0.988271 -0.102504 0.573242 0.307513C0.157878 0.717199 0.157878 1.38195 0.573242 1.79163L9.14256 10.251L0.57329 18.7103C0.157926 19.12 0.157926 19.7847 0.57329 20.1944C0.780613 20.3994 1.05284 20.502 1.32503 20.502C1.59721 20.502 1.86944 20.3994 2.07677 20.1944L11.3982 10.993C11.8135 10.5833 11.8135 9.91859 11.3981 9.5089Z"
|
|
36
|
-
fill="white"
|
|
37
|
-
/>
|
|
38
|
-
</svg>
|
|
39
|
-
)
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { observer } from 'mobx-react-lite'
|
|
2
|
-
|
|
3
|
-
import { useStores } from '@postgres.ai/shared/pages/Instance/context'
|
|
4
|
-
import { WarningIcon } from '@postgres.ai/shared/icons/Warning'
|
|
5
|
-
import { formatDateStd } from '@postgres.ai/shared/utils/date'
|
|
6
|
-
|
|
7
|
-
import { Property } from '../../components/Property'
|
|
8
|
-
|
|
9
|
-
import styles from './styles.module.scss'
|
|
10
|
-
|
|
11
|
-
export const RefreshFailedAlert = observer(() => {
|
|
12
|
-
const stores = useStores()
|
|
13
|
-
|
|
14
|
-
const refreshFailed =
|
|
15
|
-
stores.main.instance?.state?.retrieving?.alerts?.refreshFailed
|
|
16
|
-
if (!refreshFailed) return null
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<div className={styles.root}>
|
|
20
|
-
<div className={styles.header}>
|
|
21
|
-
<h6 className={styles.title}>{refreshFailed.message}</h6>
|
|
22
|
-
<WarningIcon className={styles.icon} />
|
|
23
|
-
</div>
|
|
24
|
-
<Property classes={{ name: styles.propertyName }} name="Last seen">
|
|
25
|
-
{formatDateStd(refreshFailed.lastSeen, { withDistance: true })}
|
|
26
|
-
</Property>
|
|
27
|
-
<Property classes={{ name: styles.propertyName }} name="Count">
|
|
28
|
-
{refreshFailed.count}
|
|
29
|
-
</Property>
|
|
30
|
-
</div>
|
|
31
|
-
)
|
|
32
|
-
})
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { useEffect } from 'react'
|
|
2
|
-
|
|
3
|
-
import { Modal } from '@postgres.ai/shared/components/Modal'
|
|
4
|
-
import { useStores } from '@postgres.ai/shared/pages/Instance/context'
|
|
5
|
-
import { ModalReloadButton } from '@postgres.ai/shared/pages/Instance/components/ModalReloadButton'
|
|
6
|
-
import { ActivityType } from '@postgres.ai/shared/types/api/entities/instanceRetrieval'
|
|
7
|
-
import { RetrievalTable } from '../RetrievalTable'
|
|
8
|
-
|
|
9
|
-
import styles from './styles.module.scss'
|
|
10
|
-
|
|
11
|
-
export const RetrievalModal = ({
|
|
12
|
-
isOpen,
|
|
13
|
-
onClose,
|
|
14
|
-
data,
|
|
15
|
-
}: {
|
|
16
|
-
isOpen: boolean
|
|
17
|
-
onClose: () => void
|
|
18
|
-
data: {
|
|
19
|
-
source: ActivityType[]
|
|
20
|
-
target: ActivityType[]
|
|
21
|
-
}
|
|
22
|
-
}) => {
|
|
23
|
-
const stores = useStores()
|
|
24
|
-
const { isReloadingInstanceRetrieval, reloadInstanceRetrieval } = stores.main
|
|
25
|
-
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
reloadInstanceRetrieval()
|
|
28
|
-
},[])
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<Modal
|
|
32
|
-
title="Retrieval activity details"
|
|
33
|
-
isOpen={isOpen}
|
|
34
|
-
onClose={onClose}
|
|
35
|
-
size="md"
|
|
36
|
-
titleRightContent={
|
|
37
|
-
<ModalReloadButton
|
|
38
|
-
isReloading={isReloadingInstanceRetrieval}
|
|
39
|
-
onReload={reloadInstanceRetrieval}
|
|
40
|
-
/>
|
|
41
|
-
}
|
|
42
|
-
>
|
|
43
|
-
<div className={styles.tableContainer}>
|
|
44
|
-
<RetrievalTable data={data?.source} activity="source" />
|
|
45
|
-
<RetrievalTable data={data?.target} activity="target" />
|
|
46
|
-
</div>
|
|
47
|
-
</Modal>
|
|
48
|
-
)
|
|
49
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Table,
|
|
3
|
-
TableHead,
|
|
4
|
-
TableRow,
|
|
5
|
-
TableCell,
|
|
6
|
-
TableBody,
|
|
7
|
-
} from '@material-ui/core'
|
|
8
|
-
import { ActivityType } from '@postgres.ai/shared/types/api/entities/instanceRetrieval'
|
|
9
|
-
|
|
10
|
-
import styles from './styles.module.scss'
|
|
11
|
-
|
|
12
|
-
export const RetrievalTable = ({
|
|
13
|
-
data,
|
|
14
|
-
activity,
|
|
15
|
-
}: {
|
|
16
|
-
data: ActivityType[]
|
|
17
|
-
activity: string
|
|
18
|
-
}) => {
|
|
19
|
-
return (
|
|
20
|
-
<Table>
|
|
21
|
-
<TableHead>
|
|
22
|
-
<TableRow>
|
|
23
|
-
<TableCell className={styles.tableSubtitle}>
|
|
24
|
-
Activity on the {activity}
|
|
25
|
-
</TableCell>
|
|
26
|
-
</TableRow>
|
|
27
|
-
</TableHead>
|
|
28
|
-
<TableBody className={styles.tableBody}>
|
|
29
|
-
{data && data.length > 0 ? (
|
|
30
|
-
data.map((item, index) => (
|
|
31
|
-
<div key={index}>
|
|
32
|
-
{Object.entries(item).map((val, index) => (
|
|
33
|
-
<TableRow key={index} hover className={styles.tableRow}>
|
|
34
|
-
<TableCell>
|
|
35
|
-
{val[0]}: {val[1]}
|
|
36
|
-
</TableCell>
|
|
37
|
-
</TableRow>
|
|
38
|
-
))}
|
|
39
|
-
</div>
|
|
40
|
-
))
|
|
41
|
-
) : (
|
|
42
|
-
<TableBody className={styles.tableBody}>
|
|
43
|
-
<div>
|
|
44
|
-
<TableRow className={styles.tableRow}>
|
|
45
|
-
<TableCell>No activity on the {activity}</TableCell>
|
|
46
|
-
</TableRow>
|
|
47
|
-
</div>
|
|
48
|
-
</TableBody>
|
|
49
|
-
)}
|
|
50
|
-
</TableBody>
|
|
51
|
-
</Table>
|
|
52
|
-
)
|
|
53
|
-
}
|