bfg-common 1.5.774 → 1.5.775
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/assets/img/icons/icons-sprite-dark-1.svg +3 -2
- package/assets/img/icons/icons-sprite-light-1.svg +4 -3
- package/assets/localization/local_be.json +27 -165
- package/assets/localization/local_en.json +27 -165
- package/assets/localization/local_hy.json +26 -164
- package/assets/localization/local_kk.json +26 -164
- package/assets/localization/local_ru.json +33 -171
- package/assets/localization/local_zh.json +26 -164
- package/assets/scss/common/global.scss +5 -5
- package/assets/scss/common/icons/icons-1.scss +1 -1
- package/assets/scss/common/icons/icons-2.scss +0 -18
- package/assets/scss/common/theme.scss +0 -2
- package/assets/scss/components/auth.scss +5 -32
- package/components/atoms/dropdown/tree/Tree.vue +0 -2
- package/components/atoms/nav/NavBar.vue +0 -1
- package/components/atoms/switch/Switch.vue +1 -7
- package/components/atoms/table/dataGrid/DataGrid.vue +20 -36
- package/components/atoms/wizard/Wizard.vue +1 -1
- package/components/common/backup/storage/actions/add/Old.vue +1 -22
- package/components/common/backup/storage/actions/add/lib/config/createDatastore.ts +1 -1
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeModeOld.vue +48 -1
- package/components/common/backup/storage/actions/add/steps/typeMode/lib/config/typeOptions.ts +20 -20
- package/components/common/backup/storage/actions/delete/Delete.vue +15 -37
- package/components/common/diagramMain/Header.vue +0 -4
- package/components/common/diagramMain/lib/models/interfaces.ts +0 -2
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +1 -5
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +0 -16
- package/components/common/graph/graphNew/EmptyBlock.vue +1 -2
- package/components/common/help/navbar/left/lib/utils/constructAccordion.ts +1 -2
- package/components/common/help/navbar/right/Right.vue +23 -86
- package/components/common/layout/theHeader/TheHeader.vue +81 -44
- package/components/common/layout/theHeader/{New.vue → TheHeaderNew.vue} +26 -14
- package/components/common/layout/theHeader/{Old.vue → TheHeaderOld.vue} +21 -13
- package/components/common/layout/theHeader/ThemeSwitch.vue +18 -8
- package/components/common/layout/theHeader/feedback/new/email/Email.vue +2 -2
- package/components/common/layout/theHeader/helpMenu/{about/About.vue → About.vue} +22 -12
- package/components/common/layout/theHeader/helpMenu/HelpMenu.vue +8 -6
- package/components/common/layout/theHeader/helpMenu/{about/New.vue → aboutNew/AboutNew.vue} +4 -5
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -0
- package/components/common/layout/theHeader/helpMenu/{new/New.vue → helpMenuNew/HelpMenuNew.vue} +1 -1
- package/components/common/layout/theHeader/helpMenu/{new → helpMenuNew}/lib/config/dropMenu.ts +1 -1
- package/components/common/layout/theHeader/helpMenu/{old/Old.vue → helpMenuOld/HelpMenuOld.vue} +2 -2
- package/components/common/layout/theHeader/helpMenu/{old → helpMenuOld}/lib/config/dropMenu.ts +1 -1
- package/components/common/layout/theHeader/modals/reconnect/Reconnect.vue +11 -11
- package/components/common/layout/theHeader/modals/reconnect/{New.vue → ReconnectNew.vue} +1 -1
- package/components/common/layout/theHeader/modals/reconnect/{Old.vue → ReconnectOld.vue} +0 -2
- package/components/common/layout/theHeader/userMenu/UserMenu.vue +28 -21
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +21 -12
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +43 -36
- package/components/common/layout/theHeader/userMenu/modals/changePassword/Old.vue +2 -0
- package/components/common/layout/theHeader/userMenu/modals/changePassword/lib/utils.ts +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/Preferences.vue +44 -19
- package/components/common/layout/theHeader/userMenu/modals/preferences/{New.vue → PreferencesNew.vue} +16 -24
- package/components/common/layout/theHeader/userMenu/modals/preferences/{Old.vue → PreferencesOld.vue} +18 -10
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +18 -17
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{New.vue → ChangeLanguageNew.vue} +30 -6
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{Old.vue → ChangeLanguageOld.vue} +30 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +20 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{New.vue → DefaultConsoleNew.vue} +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{Old.vue → DefaultConsoleOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/Inventory.vue +21 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{New.vue → InventoryNew.vue} +2 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{Old.vue → InventoryOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/New.vue +12 -277
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Old.vue +56 -30
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Security.vue +6 -65
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +22 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{New.vue → TimeFormatNew.vue} +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{Old.vue → TimeFormatOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +22 -13
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/{New.vue → ViewNew.vue} +38 -64
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/{Old.vue → ViewOld.vue} +2 -21
- package/components/common/layout/theHeader/userMenu/{new/New.vue → userMenuNew/UserMenuNew.vue} +1 -1
- package/components/common/layout/theHeader/userMenu/{old/Old.vue → userMenuOld/UserMenuOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/{old → userMenuOld}/lib/config/dropMenu.ts +1 -1
- package/components/common/monitor/advanced/graphView/GraphView.vue +0 -8
- package/components/common/monitor/advanced/tools/Tools.vue +1 -5
- package/components/common/monitor/overview/OverviewNew.vue +1 -1
- package/components/common/pages/backups/backupsNew/BackupsNew.vue +19 -107
- package/components/common/pages/backups/backupsNew/contextMenuView/ContextMenuView.vue +10 -16
- package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +10 -6
- package/components/common/pages/backups/modals/createBackup/New.vue +9 -22
- package/components/common/pages/backups/modals/createBackup/Old.vue +10 -8
- package/components/common/pages/backups/modals/createBackup/configuration/ConfigurationNew.vue +3 -17
- package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +0 -6
- package/components/common/pages/backups/modals/createBackup/datastores/DatastoresOld.vue +2 -22
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +8 -8
- package/components/common/pages/backups/modals/createBackup/disks/Disks.vue +0 -6
- package/components/common/pages/backups/modals/createBackup/disks/DisksOld.vue +1 -22
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/TableView.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/lib/config/table.ts +7 -7
- package/components/common/pages/backups/modals/createBackup/general/General.vue +1 -7
- package/components/common/pages/backups/modals/createBackup/general/GeneralNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/general/GeneralOld.vue +0 -17
- package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts +5 -5
- package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +1 -1
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +2 -11
- package/components/common/pages/backups/modals/createBackup/lib/validation/validations.ts +14 -6
- package/components/common/pages/backups/modals/deleteBackup/DeleteBackup.vue +0 -1
- package/components/common/pages/backups/modals/lib/config/restore.ts +115 -116
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -187
- package/components/common/pages/backups/modals/restore/Restore.vue +303 -302
- package/components/common/pages/backups/modals/restore/{Old.vue → RestoreOld.vue} +0 -5
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +32 -50
- package/components/common/pages/backups/modals/restore/disks/DisksNew.vue +2 -2
- package/components/common/pages/backups/modals/restore/disks/DisksOld.vue +2 -2
- package/components/common/pages/backups/modals/restore/lib/config/readyToCompleteOptions.ts +62 -94
- package/components/common/pages/backups/modals/restore/lib/config/restoreCodes.ts +1 -1
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +108 -130
- package/components/common/pages/backups/modals/restore/types/Types.vue +19 -31
- package/components/common/pages/backups/modals/restore/types/{New.vue → TypesNew.vue} +95 -95
- package/components/common/pages/backups/modals/restore/types/{Old.vue → TypesOld.vue} +61 -62
- package/components/common/pages/backups/modals/restore/types/lib/config/descriptions.ts +0 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -7
- package/components/common/pages/hardwareHealth/tableView/TableView.vue +0 -8
- package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +1 -13
- package/components/common/pages/hardwareHealth/toolsPanel/lib/config/actionsPanel.ts +4 -4
- package/components/common/pages/home/widgets/warnings/lib/config/config.ts +2 -2
- package/components/common/pages/home/widgets/warnings/table/lib/config/config.ts +2 -2
- package/components/common/pages/home/widgets/warnings/table/lib/models/enums.ts +12 -0
- package/components/common/pages/scheduledTasks/table/Table.vue +11 -3
- package/components/common/pages/scheduledTasks/table/{expandDetails/Old.vue → detailsList/DetailsList.vue} +4 -7
- package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun/HistoryRun.vue → detailsList/Table.vue} +5 -9
- package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/historyRunsTable.ts +2 -4
- package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/tableKeys.ts +1 -1
- package/components/common/pages/scheduledTasks/table/{expandDetails/lib/config/expandDetails.ts → detailsList/lib/config/tasksRowDetails.ts} +1 -3
- package/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable.ts +0 -3
- package/components/common/pages/tasks/Tasks.vue +122 -125
- package/components/common/pages/tasks/table/Table.vue +370 -373
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +1 -1
- package/components/common/pages/tasks/table/lib/config/config.ts +270 -279
- package/components/common/qrcode/Qrcode.vue +56 -0
- package/components/common/selectLanguage/SelectLanguage.vue +5 -5
- package/components/common/split/horizontal/New.vue +2 -0
- package/components/common/split/vertical/New.vue +1 -2
- package/components/common/vm/actions/add/New.vue +11 -13
- package/components/common/vm/actions/add/Old.vue +1 -1
- package/components/common/vm/actions/clone/old/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/New.vue +36 -12
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/Old.vue +37 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocket.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces.ts +1 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +7 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/New.vue +4 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +45 -52
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/Old.vue +8 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +3 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/New.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/Old.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/New.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/Old.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/New.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/Old.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/New.vue +2 -2
- package/components/common/vm/actions/common/select/compatibility/New.vue +1 -0
- package/components/common/vm/actions/common/select/options/Old.vue +2 -1
- package/components/common/vm/actions/common/select/storage/new/New.vue +1 -1
- package/components/common/wizards/common/compatibility/New.vue +1 -1
- package/components/common/wizards/common/compatibility/Old.vue +1 -1
- package/components/common/wizards/common/steps/computeResource/New.vue +1 -9
- package/components/common/wizards/datastore/add/Add.vue +228 -227
- package/components/common/wizards/datastore/add/Old.vue +0 -16
- package/components/common/wizards/datastore/add/lib/config/createDatastore.ts +0 -1
- package/components/common/wizards/datastore/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +0 -5
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +0 -5
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/old/Old.vue +3 -2
- package/components/common/wizards/datastore/add/steps/readyComplete/lib/config/propertiesDetails.ts +1 -8
- package/components/common/wizards/datastore/add/steps/typeMode/TypeModeOld.vue +48 -1
- package/components/common/wizards/network/add/Add.vue +5 -28
- package/components/common/wizards/network/add/lib/config/config.ts +1 -1
- package/components/common/wizards/network/add/lib/config/initialData.ts +3 -6
- package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +0 -1
- package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +192 -192
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +1 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +6 -18
- package/components/common/wizards/vm/migrate/lib/models/enums.ts +2 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/old/lib/config/hostTable.ts +1 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/SelectStorage.vue +4 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +2 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +13 -29
- package/composables/deepCopy.ts +21 -0
- package/composables/useEnvLanguage.ts +8 -7
- package/composables/useUniqueId.ts +5 -0
- package/lib/config/regExp.ts +1 -1
- package/lib/models/enums.ts +0 -28
- package/lib/models/interfaces.ts +0 -2
- package/lib/models/types.ts +60 -59
- package/lib/utils/localizationMapper.ts +2 -1
- package/package.json +4 -3
- package/plugins/date.ts +37 -14
- package/plugins/validation.ts +6 -6
- package/store/main/getters.ts +2 -2
- package/store/tasks/actions.ts +1 -1
- package/store/tasks/mappers/tasks.ts +1 -8
- package/components/common/backup/storage/actions/add/steps/typeMode/tooltip/Tooltip.vue +0 -33
- package/components/common/certificate/Certificate.vue +0 -27
- package/components/common/certificate/CertificateInfo.vue +0 -139
- package/components/common/certificate/Tools.vue +0 -59
- package/components/common/certificate/lib/config/tabsPannel.ts +0 -22
- package/components/common/certificate/lib/models/interfaces.ts +0 -9
- package/components/common/certificate/lib/models/types.ts +0 -1
- package/components/common/certificate/modals/renew/New.vue +0 -64
- package/components/common/certificate/modals/renew/Old.vue +0 -122
- package/components/common/certificate/modals/renew/Renew.vue +0 -67
- package/components/common/configure/advancedSystemSettings/AdvancedSystemSettings.vue +0 -49
- package/components/common/configure/advancedSystemSettings/modals/edit/Edit.vue +0 -55
- package/components/common/configure/advancedSystemSettings/modals/edit/New.vue +0 -37
- package/components/common/configure/advancedSystemSettings/modals/edit/Old.vue +0 -46
- package/components/common/configure/advancedSystemSettings/tableView/TableView.vue +0 -30
- package/components/common/configure/advancedSystemSettings/tableView/new/New.vue +0 -193
- package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/hostTable.ts +0 -308
- package/components/common/configure/advancedSystemSettings/tableView/old/Old.vue +0 -128
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/table.ts +0 -93
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/tableKeys.ts +0 -9
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/models/types.ts +0 -5
- package/components/common/configure/advancedSystemSettings/tools/New.vue +0 -5
- package/components/common/configure/advancedSystemSettings/tools/Old.vue +0 -28
- package/components/common/configure/advancedSystemSettings/tools/Tools.vue +0 -28
- package/components/common/configure/securityProfile/SecurityProfile.vue +0 -28
- package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +0 -112
- package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +0 -27
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +0 -61
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +0 -109
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +0 -28
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +0 -180
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +0 -64
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +0 -6
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +0 -1
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +0 -19
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +0 -22
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +0 -76
- package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +0 -30
- package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +0 -29
- package/components/common/layout/console/Console.vue +0 -70
- package/components/common/layout/console/lib/models/interfaces.ts +0 -10
- package/components/common/layout/theHeader/helpMenu/about/Old.vue +0 -78
- package/components/common/pages/auth/TheFooter.vue +0 -104
- package/components/common/pages/backups/backupsNew/Skeleton.vue +0 -136
- package/components/common/pages/files/lib/models/enums.ts +0 -36
- package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +0 -30
- package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +0 -61
- package/components/common/pages/tasks/table/lib/models/interfaces.ts +0 -9
- package/components/common/qr/Qr.vue +0 -69
- package/components/common/vm/snapshots/DetailView.vue +0 -90
- package/components/common/vm/snapshots/Old.vue +0 -71
- package/components/common/vm/snapshots/Snapshots.vue +0 -82
- package/components/common/vm/snapshots/lib/models/interfaces.ts +0 -5
- package/components/common/vm/snapshots/lib/models/types.ts +0 -11
- package/components/common/vm/snapshots/modals/confirm/Confirm.vue +0 -48
- package/components/common/vm/snapshots/modals/confirm/New.vue +0 -128
- package/components/common/vm/snapshots/modals/confirm/Old.vue +0 -140
- package/components/common/vm/snapshots/modals/confirm/lib/models/enums.ts +0 -19
- package/components/common/vm/snapshots/modals/lib/config/modalTexts.ts +0 -30
- package/components/common/vm/snapshots/modals/takeOrEdit/Old.vue +0 -220
- package/components/common/vm/snapshots/modals/takeOrEdit/TakeOrEdit.vue +0 -51
- package/components/common/vm/snapshots/modals/takeOrEdit/new/New.vue +0 -184
- package/components/common/vm/snapshots/modals/takeOrEdit/new/lib/utils/getSnapshotsName.ts +0 -15
- package/components/common/vm/snapshots/new/New.vue +0 -471
- package/components/common/vm/snapshots/new/Skeleton.vue +0 -136
- package/components/common/vm/snapshots/new/contextMenuView/ContextMenuView.vue +0 -103
- package/components/common/vm/snapshots/new/contextMenuView/lib/config/contextMenuItems.ts +0 -34
- package/components/common/vm/snapshots/new/lib/models/interfaces.ts +0 -12
- package/components/common/vm/snapshots/new/lib/utils/contextMenu.ts +0 -29
- package/components/common/vm/snapshots/new/lib/utils/details.ts +0 -48
- package/components/common/vm/snapshots/tools/Tools.vue +0 -56
- package/components/common/vm/snapshots/tools/lib/config/tabsPannel.ts +0 -39
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/AdvancedOptions.vue +0 -43
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +0 -114
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/Old.vue +0 -114
- package/components/common/wizards/datastore/add/steps/typeMode/tooltip/Tooltip.vue +0 -33
- package/composables/useBrowse.ts +0 -24
- package/lib/models/composables/useBrowse/interfaces.ts +0 -4
- package/store/inventory/modules/configure/advancedSystemSettings/actions.ts +0 -122
- package/store/inventory/modules/configure/advancedSystemSettings/getters.ts +0 -9
- package/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces.ts +0 -11
- package/store/inventory/modules/configure/advancedSystemSettings/mutations.ts +0 -12
- package/store/inventory/modules/configure/advancedSystemSettings/state.ts +0 -9
- package/store/inventory/modules/configure/advancedSystemSettings/store.ts +0 -12
- package/store/inventory/modules/configure/securityProfile/actions.ts +0 -58
- package/store/inventory/modules/configure/securityProfile/getters.ts +0 -10
- package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +0 -16
- package/store/inventory/modules/configure/securityProfile/mutations.ts +0 -13
- package/store/inventory/modules/configure/securityProfile/state.ts +0 -7
- package/store/inventory/modules/configure/securityProfile/store.ts +0 -12
- package/store/inventory/modules/snapshots/lib/models/interfaces.ts +0 -45
- /package/components/common/layout/theHeader/helpMenu/{old → helpMenuOld}/lib/models/types.ts +0 -0
- /package/components/common/layout/theHeader/userMenu/{new → userMenuNew}/lib/config/dropMenu.ts +0 -0
- /package/components/common/layout/theHeader/userMenu/{old → userMenuOld}/lib/models/types.ts +0 -0
- /package/components/common/pages/backups/modals/restore/{New.vue → RestoreNew.vue} +0 -0
- /package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/models/types.ts +0 -0
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-modal
|
|
3
|
-
:title="title"
|
|
4
|
-
:texts="modalTextsLocal"
|
|
5
|
-
:is-loading="props.isLoading"
|
|
6
|
-
width="560px"
|
|
7
|
-
test-id="vm-take-edit-snapshot-modal"
|
|
8
|
-
show
|
|
9
|
-
@hide="emits('hide')"
|
|
10
|
-
@submit="onSubmit"
|
|
11
|
-
>
|
|
12
|
-
<template #content>
|
|
13
|
-
<div
|
|
14
|
-
v-if="props.type === 'edit' && formLocal.snapshot_id === -1"
|
|
15
|
-
class="pt-3 px-8"
|
|
16
|
-
>
|
|
17
|
-
<ui-skeleton-item
|
|
18
|
-
width="100%"
|
|
19
|
-
height="36"
|
|
20
|
-
border-radius="8"
|
|
21
|
-
class="mb-6"
|
|
22
|
-
/>
|
|
23
|
-
<ui-skeleton-item
|
|
24
|
-
width="100%"
|
|
25
|
-
height="84"
|
|
26
|
-
border-radius="8"
|
|
27
|
-
class="mb-6"
|
|
28
|
-
/>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div v-else class="pt-4 pb-2 px-8">
|
|
32
|
-
<div v-if="alertMessages?.length" class="mb-6">
|
|
33
|
-
<ui-alert
|
|
34
|
-
:messages="alertMessages"
|
|
35
|
-
test-id="vm-take-edit-snapshot-modal-error-alert"
|
|
36
|
-
type="error"
|
|
37
|
-
size="md"
|
|
38
|
-
hide-close-button
|
|
39
|
-
button
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<ui-input
|
|
44
|
-
v-model="formLocal.name"
|
|
45
|
-
:label="localization.common.name"
|
|
46
|
-
:error="nameError"
|
|
47
|
-
test-id="vm-take-edit-snapshot-modal-name-input"
|
|
48
|
-
class="mb-6"
|
|
49
|
-
input-style="rounded"
|
|
50
|
-
size="md"
|
|
51
|
-
@change="onCheckNameValidation"
|
|
52
|
-
/>
|
|
53
|
-
<ui-textarea
|
|
54
|
-
id="vm-take-edite-snapshot-modal-description"
|
|
55
|
-
v-model="formLocal.description"
|
|
56
|
-
:label="`${localization.common.description} (${localization.common.optional})`"
|
|
57
|
-
test-id="vm-take-edit-snapshot-modal-name-input"
|
|
58
|
-
height="84"
|
|
59
|
-
size="sm"
|
|
60
|
-
class="vm-take-edit-textarea"
|
|
61
|
-
/>
|
|
62
|
-
|
|
63
|
-
<div v-if="props.type === 'take'" class="mt-6">
|
|
64
|
-
<ui-checkbox
|
|
65
|
-
v-model="isIncludeVirtualMachinesMemory"
|
|
66
|
-
:label-text="localization.snapshots.saveVirtualMachineMemory"
|
|
67
|
-
:disabled="props.isDisabledSaveVm"
|
|
68
|
-
class="mb-3 flex items-start bottom-checkbox"
|
|
69
|
-
test-id="vm-take-edit-snapshot-modal-save-memory-checkbox"
|
|
70
|
-
size="md"
|
|
71
|
-
/>
|
|
72
|
-
<ui-checkbox
|
|
73
|
-
v-model="isQuiesceGuestFileSystemRequiresVMTools"
|
|
74
|
-
:label-text="
|
|
75
|
-
localization.common.quiesceGuestFileSystemRequiresVMTools
|
|
76
|
-
"
|
|
77
|
-
class="flex items-start bottom-checkbox"
|
|
78
|
-
test-id="vm-take-edit-snapshot-modal-quiesce-guest-file-system-checkbox"
|
|
79
|
-
size="md"
|
|
80
|
-
disabled
|
|
81
|
-
/>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
</template>
|
|
85
|
-
<template #footerLeftContent><span></span></template>
|
|
86
|
-
</ui-modal>
|
|
87
|
-
</template>
|
|
88
|
-
|
|
89
|
-
<script setup lang="ts">
|
|
90
|
-
import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
|
|
91
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
92
|
-
import type { UI_I_TakeEditSnapshot } from '~/components/common/vm/snapshots/lib/models/interfaces'
|
|
93
|
-
import type { UI_T_TakeOrEdit } from '~/components/common/vm/snapshots/lib/models/types'
|
|
94
|
-
import { modalTexts } from '~/components/common/vm/snapshots/modals/lib/config/modalTexts'
|
|
95
|
-
import { getSnapshotsName } from '~/components/common/vm/snapshots/modals/takeOrEdit/new/lib/utils/getSnapshotsName'
|
|
96
|
-
|
|
97
|
-
const formLocal = defineModel<UI_I_TakeEditSnapshot>('formLocal', {
|
|
98
|
-
required: true,
|
|
99
|
-
})
|
|
100
|
-
const isIncludeVirtualMachinesMemory = defineModel<boolean>(
|
|
101
|
-
'isIncludeVmMemory',
|
|
102
|
-
{ required: true }
|
|
103
|
-
)
|
|
104
|
-
const isQuiesceGuestFileSystemRequiresVMTools = defineModel<boolean>(
|
|
105
|
-
'isQuiesceGuestFileSystem',
|
|
106
|
-
{ required: true }
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
const props = defineProps<{
|
|
110
|
-
type: UI_T_TakeOrEdit
|
|
111
|
-
isDisabledSaveVm: boolean
|
|
112
|
-
isLoading: boolean
|
|
113
|
-
}>()
|
|
114
|
-
|
|
115
|
-
const emits = defineEmits<{
|
|
116
|
-
(event: 'hide'): void
|
|
117
|
-
(event: 'submit'): void
|
|
118
|
-
}>()
|
|
119
|
-
|
|
120
|
-
const { $store }: any = useNuxtApp()
|
|
121
|
-
|
|
122
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
123
|
-
|
|
124
|
-
const snapshots = computed<string[]>(() =>
|
|
125
|
-
getSnapshotsName($store.getters['vmSnapshots/getSnapshotsTree'])
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
const alertMessages = ref<string[]>([])
|
|
129
|
-
|
|
130
|
-
const title = computed<string>(() => {
|
|
131
|
-
let titleType =
|
|
132
|
-
props.type === 'take'
|
|
133
|
-
? localization.value.snapshots.newSnapshot
|
|
134
|
-
: localization.value.snapshots.editSnapshot
|
|
135
|
-
|
|
136
|
-
titleType = titleType.replace('snapshot', 'Snapshot')
|
|
137
|
-
|
|
138
|
-
return titleType
|
|
139
|
-
})
|
|
140
|
-
|
|
141
|
-
const onCheckNameValidation = (): void => {
|
|
142
|
-
formLocal.value.name = formLocal.value.name.replace(/^\s+/, '')
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
const nameError = ref<string>('')
|
|
146
|
-
|
|
147
|
-
const modalTextsLocal = computed<UI_I_ModalTexts>(() =>
|
|
148
|
-
modalTexts(localization.value, props.type)
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
const onSubmit = (): void => {
|
|
152
|
-
const name = formLocal.value.name.trim()
|
|
153
|
-
|
|
154
|
-
if (!name) {
|
|
155
|
-
nameError.value = localization.value.common.fieldRequired
|
|
156
|
-
return
|
|
157
|
-
}
|
|
158
|
-
if (snapshots.value.includes(name)) {
|
|
159
|
-
alertMessages.value = [
|
|
160
|
-
localization.value.common.nameAlreadyExists.replace('{0}', name),
|
|
161
|
-
]
|
|
162
|
-
nameError.value = ' '
|
|
163
|
-
return
|
|
164
|
-
}
|
|
165
|
-
emits('submit')
|
|
166
|
-
}
|
|
167
|
-
</script>
|
|
168
|
-
|
|
169
|
-
<style scoped lang="scss">
|
|
170
|
-
.vm-take-edit-textarea {
|
|
171
|
-
:deep(.ui-main .ui-main-textarea) {
|
|
172
|
-
line-height: 18px;
|
|
173
|
-
height: 72px !important;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
.bottom-checkbox {
|
|
177
|
-
height: unset !important;
|
|
178
|
-
|
|
179
|
-
:deep(.ui-checkbox-label-text) {
|
|
180
|
-
line-height: 18px;
|
|
181
|
-
margin-top: 1px;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
</style>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { UI_I_SnapshotsTreeNode } from '~/store/inventory/modules/snapshots/lib/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const getSnapshotsName = (
|
|
4
|
-
snapshots: UI_I_SnapshotsTreeNode[],
|
|
5
|
-
result: string[] = []
|
|
6
|
-
): string[] => {
|
|
7
|
-
for (let i = 0; i < snapshots.length; i++) {
|
|
8
|
-
result.push(snapshots[i].name)
|
|
9
|
-
|
|
10
|
-
if (snapshots[i].nodes.length) {
|
|
11
|
-
getSnapshotsName(snapshots[i].nodes, result)
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
return result
|
|
15
|
-
}
|
|
@@ -1,471 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-vm-snapshots-new-skeleton v-if="props.snapshotsLoading" />
|
|
3
|
-
<div
|
|
4
|
-
v-else
|
|
5
|
-
:class="[
|
|
6
|
-
'snapshots-page grid h-inherit p-4 overflow-hidden ',
|
|
7
|
-
{ 'selected gap-3': props.detailData },
|
|
8
|
-
]"
|
|
9
|
-
>
|
|
10
|
-
<div class="left-content overflow-auto grid p-4">
|
|
11
|
-
<div class="flex justify-between gap-4 flex-wrap">
|
|
12
|
-
<h3 class="title-block font-[500] text-[16px]">
|
|
13
|
-
{{ localization.inventoryTabs.snapshots }} ({{ snapshotsCount }})
|
|
14
|
-
</h3>
|
|
15
|
-
<ui-button
|
|
16
|
-
test-id="take-snapshot-btn"
|
|
17
|
-
size="md"
|
|
18
|
-
class="take-snapshot-button"
|
|
19
|
-
@click="emits('show-modal', 'take')"
|
|
20
|
-
>
|
|
21
|
-
<ui-icon
|
|
22
|
-
name="icon-snapshotTake"
|
|
23
|
-
width="20"
|
|
24
|
-
height="20"
|
|
25
|
-
class="mr-2 icon"
|
|
26
|
-
/>
|
|
27
|
-
{{ localization.snapshots.takeSnapshot }}
|
|
28
|
-
</ui-button>
|
|
29
|
-
</div>
|
|
30
|
-
<div
|
|
31
|
-
v-if="props.snapshotsTree.length"
|
|
32
|
-
class="snapshots-tree-content overflow-y-auto my-4 px-2 pb-2"
|
|
33
|
-
>
|
|
34
|
-
<ui-tree
|
|
35
|
-
:nodes="props.snapshotsTree"
|
|
36
|
-
@select-node="emits('select-node', $event)"
|
|
37
|
-
@toggle-node="emits('show-nodes', $event.id)"
|
|
38
|
-
@show-context-menu="showContextMenu"
|
|
39
|
-
>
|
|
40
|
-
<template #content="{ node }">
|
|
41
|
-
<div class="flex-align-center gap-2">
|
|
42
|
-
<span :class="['node-icon', node.iconClassName]"></span>
|
|
43
|
-
<span class="node-name text-ellipsis text-3">{{
|
|
44
|
-
node.name
|
|
45
|
-
}}</span>
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
</ui-tree>
|
|
49
|
-
</div>
|
|
50
|
-
<div v-else class="empty-block grid justify-items-center content-center">
|
|
51
|
-
<ui-icon
|
|
52
|
-
name="not-found-magnifier"
|
|
53
|
-
width="28"
|
|
54
|
-
height="28"
|
|
55
|
-
color="#9da6ad"
|
|
56
|
-
/>
|
|
57
|
-
<p class="title-block font-[400] text-[16px] mt-2">
|
|
58
|
-
{{ localization.snapshots.noSnapshotsAvailable }}
|
|
59
|
-
</p>
|
|
60
|
-
<p class="description-block mt-[6px] text-[13px] text-center">
|
|
61
|
-
{{ localization.snapshots.noSnapshotsAvailableDesc }}
|
|
62
|
-
</p>
|
|
63
|
-
</div>
|
|
64
|
-
<ui-button
|
|
65
|
-
:disabled="!props.snapshotsTree.length"
|
|
66
|
-
:class="[
|
|
67
|
-
'delete-all w-max ml-auto',
|
|
68
|
-
{ disabled: !props.snapshotsTree.length },
|
|
69
|
-
]"
|
|
70
|
-
test-id="delete-all-snapshots-btn"
|
|
71
|
-
size="md"
|
|
72
|
-
variant="text"
|
|
73
|
-
is-without-sizes
|
|
74
|
-
is-without-height
|
|
75
|
-
@click="emits('show-modal', 'delete_all')"
|
|
76
|
-
>
|
|
77
|
-
<ui-icon name="delete" width="20" height="20" class="mr-2" />
|
|
78
|
-
{{ localization.common.deleteAll }}
|
|
79
|
-
</ui-button>
|
|
80
|
-
</div>
|
|
81
|
-
<div
|
|
82
|
-
v-if="props.detailData"
|
|
83
|
-
class="snapshot-details overflow-hidden flex-direction-column p-4"
|
|
84
|
-
>
|
|
85
|
-
<div class="flex justify-between mb-6 gap-4 pr-4 flex-wrap">
|
|
86
|
-
<h3 class="title-block font-[500] text-[16px]">
|
|
87
|
-
{{ localization.snapshots.snapshotDetails }}
|
|
88
|
-
</h3>
|
|
89
|
-
<div class="details-actions-block flex column-gap-4">
|
|
90
|
-
<ui-tooltip
|
|
91
|
-
id="revert-snapshot-btn"
|
|
92
|
-
test-id="revert-snapshot-btn-tooltip"
|
|
93
|
-
size="md"
|
|
94
|
-
position="bottom"
|
|
95
|
-
position-by-tooltip="center"
|
|
96
|
-
show-type="variant-1"
|
|
97
|
-
>
|
|
98
|
-
<template #target>
|
|
99
|
-
<div id="revert-snapshot-btn" class="popped tooltip">
|
|
100
|
-
<ui-button
|
|
101
|
-
test-id="revert-snapshot-btn"
|
|
102
|
-
size="md"
|
|
103
|
-
variant="text"
|
|
104
|
-
class="revert-snapshot-btn"
|
|
105
|
-
is-without-sizes
|
|
106
|
-
is-without-height
|
|
107
|
-
@click="emits('show-modal', 'revert')"
|
|
108
|
-
>
|
|
109
|
-
<ui-icon name="revert" width="20" height="20" />
|
|
110
|
-
</ui-button>
|
|
111
|
-
</div>
|
|
112
|
-
</template>
|
|
113
|
-
<template #content>
|
|
114
|
-
{{ localization.common.revert }}
|
|
115
|
-
</template>
|
|
116
|
-
</ui-tooltip>
|
|
117
|
-
<div class="border-line"></div>
|
|
118
|
-
<ui-tooltip
|
|
119
|
-
id="edit-snapshot-btn"
|
|
120
|
-
test-id="edit-snapshot-btn-tooltip"
|
|
121
|
-
size="md"
|
|
122
|
-
position="bottom"
|
|
123
|
-
position-by-tooltip="center"
|
|
124
|
-
show-type="variant-1"
|
|
125
|
-
>
|
|
126
|
-
<template #target>
|
|
127
|
-
<div id="edit-snapshot-btn" class="popped tooltip">
|
|
128
|
-
<ui-button
|
|
129
|
-
test-id="edit-snapshot-btn"
|
|
130
|
-
size="md"
|
|
131
|
-
variant="text"
|
|
132
|
-
class="edit-snapshot-btn"
|
|
133
|
-
is-without-sizes
|
|
134
|
-
is-without-height
|
|
135
|
-
@click="emits('show-modal', 'edit')"
|
|
136
|
-
>
|
|
137
|
-
<ui-icon name="edit" width="20" height="20" />
|
|
138
|
-
</ui-button>
|
|
139
|
-
</div>
|
|
140
|
-
</template>
|
|
141
|
-
<template #content>
|
|
142
|
-
{{ localization.common.edit }}
|
|
143
|
-
</template>
|
|
144
|
-
</ui-tooltip>
|
|
145
|
-
<div class="border-line"></div>
|
|
146
|
-
<ui-tooltip
|
|
147
|
-
id="delete-snapshot-btn"
|
|
148
|
-
test-id="delete-snapshot-btn-tooltip"
|
|
149
|
-
size="md"
|
|
150
|
-
position="bottom"
|
|
151
|
-
position-by-tooltip="center"
|
|
152
|
-
show-type="variant-1"
|
|
153
|
-
>
|
|
154
|
-
<template #target>
|
|
155
|
-
<div id="delete-snapshot-btn" class="popped tooltip">
|
|
156
|
-
<ui-button
|
|
157
|
-
test-id="delete-snapshot-btn"
|
|
158
|
-
size="md"
|
|
159
|
-
variant="text"
|
|
160
|
-
class="delete-snapshot-btn"
|
|
161
|
-
is-without-sizes
|
|
162
|
-
is-without-height
|
|
163
|
-
@click="emits('show-modal', 'delete')"
|
|
164
|
-
>
|
|
165
|
-
<ui-icon name="delete" width="20" height="20" />
|
|
166
|
-
</ui-button>
|
|
167
|
-
</div>
|
|
168
|
-
</template>
|
|
169
|
-
<template #content>
|
|
170
|
-
{{ localization.common.delete }}
|
|
171
|
-
</template>
|
|
172
|
-
</ui-tooltip>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
<div
|
|
176
|
-
ref="detailsScrollBlock"
|
|
177
|
-
:class="[
|
|
178
|
-
'grid row-gap-3 pr-4 overflow-y-auto details-scroll-block',
|
|
179
|
-
{ 'has-scroll': hasScroll },
|
|
180
|
-
]"
|
|
181
|
-
>
|
|
182
|
-
<ui-info-block
|
|
183
|
-
v-for="(item, index) in currentDetailsData"
|
|
184
|
-
:key="index"
|
|
185
|
-
:data="item"
|
|
186
|
-
>
|
|
187
|
-
<template v-if="item.labelIcon" #labelBlock>
|
|
188
|
-
<div class="info-block-label-content flex items-start">
|
|
189
|
-
<ui-icon
|
|
190
|
-
v-if="item.labelIcon"
|
|
191
|
-
:name="item.labelIcon"
|
|
192
|
-
:class="[
|
|
193
|
-
'info-label-icon mr-[10px]',
|
|
194
|
-
`icon-name-${item.labelIcon}`,
|
|
195
|
-
]"
|
|
196
|
-
width="20"
|
|
197
|
-
height="20"
|
|
198
|
-
/>
|
|
199
|
-
<span class="info-label">{{ item.label }}</span>
|
|
200
|
-
</div>
|
|
201
|
-
</template>
|
|
202
|
-
<template #valueBlock>
|
|
203
|
-
<span
|
|
204
|
-
v-if="item.value === 'empty-description'"
|
|
205
|
-
class="empty-description"
|
|
206
|
-
>
|
|
207
|
-
{{ localization.snapshots.snapshotHasNoDescriptionYet }}
|
|
208
|
-
</span>
|
|
209
|
-
<ui-status-pill
|
|
210
|
-
v-if="item.labelIcon === 'settings' && item.value"
|
|
211
|
-
:text="localization.common[item.value.toLowerCase()]"
|
|
212
|
-
:type="item.value === 'yes' ? 'success' : 'error'"
|
|
213
|
-
size="md"
|
|
214
|
-
with-icon
|
|
215
|
-
/>
|
|
216
|
-
</template>
|
|
217
|
-
</ui-info-block>
|
|
218
|
-
</div>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
|
|
222
|
-
<common-vm-snapshots-new-context-menu-view
|
|
223
|
-
:show="contextMenuShow"
|
|
224
|
-
:context-data="contextMenu"
|
|
225
|
-
@select-action="onSelectContextMenuItem"
|
|
226
|
-
/>
|
|
227
|
-
</template>
|
|
228
|
-
|
|
229
|
-
<script setup lang="ts">
|
|
230
|
-
import { useTemplateRef } from 'vue'
|
|
231
|
-
import { useElementSize } from '@vueuse/core'
|
|
232
|
-
import type { UI_I_InfoBlock } from '~/node_modules/bfg-uikit/components/ui/infoBlock/models/interfaces'
|
|
233
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
234
|
-
import type { UI_T_SnapshotActionType } from '~/components/common/vm/snapshots/lib/models/types'
|
|
235
|
-
import type {
|
|
236
|
-
UI_I_SnapshotsDetails,
|
|
237
|
-
UI_I_SnapshotsTreeNode,
|
|
238
|
-
} from '~/store/inventory/modules/snapshots/lib/models/interfaces'
|
|
239
|
-
import * as utils from '~/components/common/vm/snapshots/new/lib/utils/contextMenu'
|
|
240
|
-
import { constructDetails } from '~/components/common/vm/snapshots/new/lib/utils/details'
|
|
241
|
-
|
|
242
|
-
const props = defineProps<{
|
|
243
|
-
snapshotsTree: UI_I_SnapshotsTreeNode[]
|
|
244
|
-
snapshotsLoading: boolean
|
|
245
|
-
detailData: UI_I_SnapshotsDetails | null
|
|
246
|
-
}>()
|
|
247
|
-
|
|
248
|
-
const emits = defineEmits<{
|
|
249
|
-
(event: 'show-modal', value: UI_T_SnapshotActionType): void
|
|
250
|
-
(event: 'select-node', value: UI_I_SnapshotsTreeNode): void
|
|
251
|
-
(event: 'show-nodes', value: string): void
|
|
252
|
-
}>()
|
|
253
|
-
|
|
254
|
-
const { $recursion }: any = useNuxtApp()
|
|
255
|
-
|
|
256
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
257
|
-
|
|
258
|
-
const snapshotsCount = computed<string>(() =>
|
|
259
|
-
$recursion.calcCount(props.snapshotsTree, 'nodes', ['snapshot'], ['type'])
|
|
260
|
-
)
|
|
261
|
-
|
|
262
|
-
const currentDetailsData = computed<UI_I_InfoBlock[]>(() =>
|
|
263
|
-
constructDetails(localization.value, props.detailData)
|
|
264
|
-
)
|
|
265
|
-
|
|
266
|
-
const { showContextMenu, contextMenuShow, contextMenu } = utils.getContextMenu()
|
|
267
|
-
|
|
268
|
-
const onSelectContextMenuItem = (actionType: UI_T_SnapshotActionType): void => {
|
|
269
|
-
emits('show-modal', actionType)
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
const detailsElement = useTemplateRef<HTMLDivElement>('detailsScrollBlock')
|
|
273
|
-
const { height } = useElementSize(detailsElement)
|
|
274
|
-
|
|
275
|
-
const hasScroll = computed<boolean>(
|
|
276
|
-
() =>
|
|
277
|
-
height.value &&
|
|
278
|
-
detailsElement.value?.scrollHeight > detailsElement.value?.clientHeight
|
|
279
|
-
)
|
|
280
|
-
</script>
|
|
281
|
-
|
|
282
|
-
<style>
|
|
283
|
-
:root {
|
|
284
|
-
--snapshots-page-inner-block-bg: #ffffff;
|
|
285
|
-
--snapshots-page-title-color: #4d5d69;
|
|
286
|
-
--snapshots-page-tree-border-color: #e9ebed;
|
|
287
|
-
--snapshots-page-tree-block-bg-color: #ffffff;
|
|
288
|
-
--snapshots-page-details-action-color: #4d5d69;
|
|
289
|
-
--snapshots-page-details-action-line-color: #e9ebeda3;
|
|
290
|
-
--snapshots-page-details-action-hover-color: #213444;
|
|
291
|
-
--snapshots-page-info-block-label-color: #4d5d69;
|
|
292
|
-
--snapshots-page-info-block-value-color: #182531;
|
|
293
|
-
}
|
|
294
|
-
:root.dark-theme {
|
|
295
|
-
--snapshots-page-inner-block-bg: #334453;
|
|
296
|
-
--snapshots-page-title-color: #e9eaec;
|
|
297
|
-
--snapshots-page-tree-border-color: #e9ebed1f;
|
|
298
|
-
--snapshots-page-tree-block-bg-color: #1b2a371f;
|
|
299
|
-
--snapshots-page-details-action-color: #e9eaec;
|
|
300
|
-
--snapshots-page-details-action-line-color: #e9ebed1f;
|
|
301
|
-
--snapshots-page-details-action-hover-color: #ffffff;
|
|
302
|
-
--snapshots-page-info-block-label-color: #e9eaec;
|
|
303
|
-
--snapshots-page-info-block-value-color: #e9eaec;
|
|
304
|
-
}
|
|
305
|
-
</style>
|
|
306
|
-
|
|
307
|
-
<style scoped lang="scss">
|
|
308
|
-
.snapshots-page {
|
|
309
|
-
&.selected {
|
|
310
|
-
grid-template-columns: repeat(2, calc(50% - 6px));
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.title-block {
|
|
314
|
-
color: var(--snapshots-page-title-color);
|
|
315
|
-
}
|
|
316
|
-
.take-snapshot-button {
|
|
317
|
-
white-space: nowrap;
|
|
318
|
-
|
|
319
|
-
.icon {
|
|
320
|
-
min-width: 20px;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.left-content {
|
|
325
|
-
background-color: var(--snapshots-page-inner-block-bg);
|
|
326
|
-
box-shadow: 0 1px 4px 0 #00000014;
|
|
327
|
-
border-radius: 8px;
|
|
328
|
-
grid-template-rows: max-content 1fr max-content;
|
|
329
|
-
|
|
330
|
-
.snapshots-tree-content {
|
|
331
|
-
border: 1px solid var(--snapshots-page-tree-border-color);
|
|
332
|
-
border-radius: 8px;
|
|
333
|
-
background-color: var(--snapshots-page-tree-block-bg-color);
|
|
334
|
-
|
|
335
|
-
:deep(.tree-container) {
|
|
336
|
-
width: max-content;
|
|
337
|
-
min-width: 100%;
|
|
338
|
-
|
|
339
|
-
.tree-content {
|
|
340
|
-
//padding-right: 8px;
|
|
341
|
-
|
|
342
|
-
.node-wrapper {
|
|
343
|
-
border-radius: 4px;
|
|
344
|
-
|
|
345
|
-
.node-element {
|
|
346
|
-
line-height: 20px;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.empty-block {
|
|
354
|
-
.description-block {
|
|
355
|
-
color: #9da6ad;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
.delete-all {
|
|
359
|
-
&.disabled {
|
|
360
|
-
color: #bdc3c7;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
&:not(.disabled) {
|
|
364
|
-
color: #ea3223;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
.snapshot-details {
|
|
369
|
-
background-color: var(--snapshots-page-inner-block-bg);
|
|
370
|
-
box-shadow: 0 1px 4px 0 #00000014;
|
|
371
|
-
border-radius: 8px;
|
|
372
|
-
padding-right: 0;
|
|
373
|
-
|
|
374
|
-
.details-actions-block {
|
|
375
|
-
.border-line {
|
|
376
|
-
width: 1px;
|
|
377
|
-
height: 20px;
|
|
378
|
-
background-color: var(--snapshots-page-details-action-line-color);
|
|
379
|
-
}
|
|
380
|
-
.revert-snapshot-btn {
|
|
381
|
-
:deep(path) {
|
|
382
|
-
stroke-width: 1.6;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
.revert-snapshot-btn,
|
|
386
|
-
.edit-snapshot-btn {
|
|
387
|
-
color: var(--snapshots-page-details-action-color);
|
|
388
|
-
|
|
389
|
-
&:hover {
|
|
390
|
-
color: var(--snapshots-page-details-action-hover-color);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
.delete-snapshot-btn {
|
|
394
|
-
color: #ea3223;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
.details-scroll-block {
|
|
398
|
-
padding-right: 0;
|
|
399
|
-
|
|
400
|
-
&:not(.has-scroll) {
|
|
401
|
-
padding-right: 16px;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
.info-block-label-content {
|
|
405
|
-
.info-label-icon {
|
|
406
|
-
color: #9da6ad;
|
|
407
|
-
min-width: 20px;
|
|
408
|
-
|
|
409
|
-
&.icon-name-icon-snapshotTake {
|
|
410
|
-
:deep(path) {
|
|
411
|
-
stroke-width: 1.3;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
&.icon-name-settings {
|
|
415
|
-
:deep(path) {
|
|
416
|
-
stroke-width: 1.7;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
.info-label {
|
|
421
|
-
margin-top: 1px;
|
|
422
|
-
line-height: 18px;
|
|
423
|
-
color: var(--snapshots-page-info-block-label-color);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
.empty-description {
|
|
427
|
-
color: #9da6ad;
|
|
428
|
-
margin-top: 1px;
|
|
429
|
-
line-height: 18px;
|
|
430
|
-
text-align: right;
|
|
431
|
-
}
|
|
432
|
-
:deep(.ui-main-info-block-item) {
|
|
433
|
-
grid-column-gap: 10px;
|
|
434
|
-
}
|
|
435
|
-
:deep(.ui-main-info-block-item-right) {
|
|
436
|
-
white-space: unset !important;
|
|
437
|
-
max-width: 50%;
|
|
438
|
-
}
|
|
439
|
-
:deep(.ui-main-info-block-item-right-value-parent) {
|
|
440
|
-
white-space: unset !important;
|
|
441
|
-
}
|
|
442
|
-
:deep(.ui-main-info-block-item-right-value) {
|
|
443
|
-
color: var(--snapshots-page-info-block-value-color);
|
|
444
|
-
font-size: 13px;
|
|
445
|
-
font-weight: 400;
|
|
446
|
-
line-height: 18px;
|
|
447
|
-
margin-top: 1px;
|
|
448
|
-
}
|
|
449
|
-
:deep(.ui-main-info-block-item-right-open) {
|
|
450
|
-
display: none;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
:root.dark-theme {
|
|
455
|
-
.left-content {
|
|
456
|
-
.delete-all {
|
|
457
|
-
&.disabled {
|
|
458
|
-
opacity: 0.44;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
@media (max-width: 1200px) {
|
|
465
|
-
.snapshots-page {
|
|
466
|
-
&.selected {
|
|
467
|
-
grid-template-columns: 1fr;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
</style>
|