bfg-common 1.5.420 → 1.5.421
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/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/scss/common/theme.scss +214 -0
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/collapse/CollapseNav.vue +170 -170
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/backup/storage/actions/add/lib/config/steps.ts +168 -168
- package/components/common/backup/storage/actions/add/steps/hostAccessibility/table/old/lib/config/incompatibleTable.ts +3 -3
- package/components/common/backup/storage/actions/add/steps/readyComplete/ReadyComplete.vue +45 -45
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/context/lib/models/interfaces.ts +33 -33
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +398 -398
- package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
- package/components/common/pages/backups/Backups.vue +102 -102
- package/components/common/pages/backups/DetailView.vue +52 -52
- package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
- package/components/common/pages/backups/modals/Modals.vue +226 -226
- package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +353 -353
- package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +26 -26
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +66 -66
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +35 -35
- package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +59 -59
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/TableView.vue +95 -95
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/lib/config/table.ts +119 -119
- package/components/common/pages/backups/modals/createBackup/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/createBackup/general/General.vue +48 -48
- package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +117 -117
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +12 -12
- package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +185 -185
- package/components/common/pages/backups/modals/restore/Restore.vue +417 -417
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +27 -27
- package/components/common/pages/backups/modals/restore/disks/tableView/TableView.vue +102 -102
- package/components/common/pages/backups/modals/restore/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +108 -108
- package/components/common/pages/backups/modals/restore/name/Name.vue +160 -160
- package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
- package/components/common/pages/backups/modals/restore/networks/Networks.vue +67 -67
- package/components/common/pages/backups/modals/restore/networks/table/Table.vue +214 -214
- package/components/common/pages/backups/modals/restore/types/lib/config/typeOptions.ts +25 -25
- package/components/common/pages/backups/tools/Tools.vue +75 -75
- package/components/common/pages/backups/tools/lib/config/tabs.ts +36 -36
- package/components/common/pages/home/headline/HeadlineOld.vue +42 -42
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/home/widgets/warnings/lib/config/config.ts +2 -2
- package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/resource/simple/Simple.vue +10 -3
- package/components/common/select/button/ButtonDropdown.vue +112 -112
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/selectLanguage/SelectLanguage.vue +1 -1
- package/components/common/spiceConsole/Drawer.vue +381 -381
- package/components/common/spiceConsole/SpiceConsole.vue +127 -127
- package/components/common/spiceConsole/keyboard/Keyboard.vue +1 -1
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/split/horizontal/HorizontalNew.vue +5 -22
- package/components/common/split/horizontal/HorizontalOld.vue +3 -10
- package/components/common/split/vertical/VerticalNew.vue +2 -13
- package/components/common/split/vertical/VerticalOld.vue +1 -1
- package/components/common/summary/notification/NotificationNew.vue +4 -20
- package/components/common/titleBar/titleBarNew/notification/Notification.vue +0 -31
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/tooltip/Help.vue +5 -18
- package/components/common/tooltip/lib/models/types.ts +1 -1
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/add/Add.vue +35 -26
- package/components/common/vm/actions/add/New.vue +54 -55
- package/components/common/vm/actions/add/Old.vue +398 -388
- package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
- package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
- package/components/common/vm/actions/add/folderTreeView/Old.vue +50 -50
- package/components/common/vm/actions/clone/Clone.vue +823 -823
- package/components/common/vm/actions/clone/lib/config/steps.ts +291 -291
- package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +32 -36
- package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +116 -116
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +61 -37
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +61 -46
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +59 -36
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +50 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +64 -68
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +339 -321
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +232 -227
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +110 -100
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +16 -10
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusOld.vue +16 -10
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +239 -232
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +24 -18
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +174 -168
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +70 -78
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +16 -11
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +48 -51
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +20 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +4 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/TooltipNew.vue +153 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +221 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +313 -307
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +392 -385
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +34 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +50 -40
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +6 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +0 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/lib/config/options.ts +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationOld.vue +85 -85
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModal/StorageModal.vue +13 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModal/new/New.vue +15 -12
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSize.vue +23 -23
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +2 -10
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeOld.vue +1 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +293 -288
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +20 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +94 -94
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +210 -205
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +5 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +0 -10
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationOld.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +162 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +17 -12
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +17 -12
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/Model.vue +3 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemory.vue +6 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/lib/config/options.ts +3 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +163 -155
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +138 -130
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +120 -113
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +15 -9
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsOld.vue +19 -14
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/Secure.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/DelayNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/DelayOld.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +101 -95
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +158 -155
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +7 -7
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +15 -9
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/SharePolicy.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsOld.vue +17 -12
- package/components/common/vm/actions/common/select/compatibility/New.vue +0 -18
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +143 -143
- package/components/common/vm/actions/common/select/computeResource/New.vue +168 -184
- package/components/common/vm/actions/common/select/computeResource/treeView/Old.vue +1 -1
- package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +131 -131
- package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
- package/components/common/vm/actions/common/select/createType/New.vue +0 -16
- package/components/common/vm/actions/common/select/createType/Old.vue +0 -9
- package/components/common/vm/actions/common/select/createType/lib/config/items.ts +48 -48
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/name/Name.vue +13 -7
- package/components/common/vm/actions/common/select/name/New.vue +15 -30
- package/components/common/vm/actions/common/select/name/Old.vue +11 -8
- package/components/common/vm/actions/common/select/options/New.vue +8 -3
- package/components/common/vm/actions/common/select/options/Old.vue +10 -5
- package/components/common/vm/actions/common/select/options/Options.vue +8 -3
- package/components/common/vm/actions/common/select/os/New.vue +0 -10
- package/components/common/vm/actions/common/select/os/Old.vue +152 -152
- package/components/common/vm/actions/common/select/os/Os.vue +139 -139
- package/components/common/vm/actions/common/select/storage/Old.vue +13 -10
- package/components/common/vm/actions/common/select/storage/Storage.vue +164 -155
- package/components/common/vm/actions/common/select/storage/new/New.vue +278 -300
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/common/select/template/treeView/New.vue +0 -10
- package/components/common/vm/actions/common/select/template/treeView/Old.vue +1 -1
- package/components/common/vm/actions/confirm/Confirm.vue +11 -6
- package/components/common/vm/actions/editSettings/EditSettings.vue +252 -242
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +35 -24
- package/components/common/vm/actions/editSettings/new/New.vue +34 -23
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/vmt/actions/add/Add.vue +25 -19
- package/components/common/vmt/actions/add/New.vue +1 -0
- package/components/common/vmt/actions/add/Old.vue +0 -10
- package/components/common/vmt/actions/add/lib/models/interfaces.ts +23 -23
- package/components/common/wizards/datastore/add/Add.vue +14 -7
- package/components/common/wizards/datastore/add/New.vue +24 -17
- package/components/common/wizards/datastore/add/Old.vue +18 -14
- package/components/common/wizards/datastore/add/lib/config/steps.ts +2 -1
- package/components/common/wizards/datastore/add/lib/models/enums.ts +1 -1
- package/components/common/wizards/datastore/add/steps/hostAccessibility/HostAccessibility.vue +9 -4
- package/components/common/wizards/datastore/add/steps/hostAccessibility/HostAccessibilityNew.vue +10 -5
- package/components/common/wizards/datastore/add/steps/hostAccessibility/HostAccessibilityOld.vue +12 -7
- package/components/common/wizards/datastore/add/steps/hostAccessibility/table/Table.vue +0 -2
- package/components/common/wizards/datastore/add/steps/hostAccessibility/table/new/New.vue +3 -3
- package/components/common/wizards/datastore/add/steps/hostAccessibility/table/old/Old.vue +5 -5
- package/components/common/wizards/datastore/add/steps/hostAccessibility/table/old/lib/config/incompatibleTable.ts +3 -3
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigure.vue +0 -2
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +27 -26
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue +5 -11
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/DeletePopover.vue +0 -9
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/ServersList.vue +9 -4
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDevice.vue +18 -14
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +20 -15
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +26 -17
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/Table.vue +12 -17
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/new/New.vue +2 -13
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/new/lib/config/lunDiskTable.ts +14 -14
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/new/lib/models/enums.ts +3 -3
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/old/Old.vue +18 -13
- package/components/common/wizards/datastore/add/steps/readyComplete/ReadyCompleteNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/components/common/wizards/network/add/Add.vue +2 -2
- package/components/common/wizards/network/add/lib/models/interfaces.ts +2 -2
- package/components/common/wizards/network/add/modals/SelectNetwork.vue +7 -5
- package/components/common/wizards/network/add/modals/SelectStandardSwitch.vue +7 -15
- package/components/common/wizards/network/add/modals/SelectSwitch.vue +7 -15
- package/components/common/wizards/network/add/modals/lib/models/interfaces.ts +21 -0
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +3 -3
- package/components/common/wizards/network/add/steps/CreateStandardSwitch.vue +3 -3
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +6 -6
- package/components/common/wizards/network/add/steps/PhysicalAdapter.vue +2 -2
- package/components/common/wizards/network/add/steps/PortProperties.vue +12 -12
- package/components/common/wizards/network/add/steps/SelectConnectionType.vue +112 -104
- package/components/common/wizards/network/add/steps/SelectedTargetDevice.vue +467 -467
- package/components/common/wizards/vm/common/computeResource/TreeView.vue +1 -1
- package/components/common/wizards/vm/common/validation/compatibility/Compatibility.vue +1 -1
- package/components/common/wizards/vm/migrate/Migrate.vue +353 -349
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +221 -220
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +157 -157
- package/components/common/wizards/vm/migrate/lib/validations.ts +68 -68
- package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +13 -8
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/tableKeys.ts +8 -8
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/models/types.ts +4 -4
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/components/common/wizards/vm/migrate/select/network/table/network/lib/config/advancedTable.ts +91 -91
- package/components/common/wizards/vm/migrate/select/network/table/network/lib/config/basicTable.ts +1 -1
- package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +4 -7
- package/components/common/wizards/vm/migrate/select/type/lib/config/typeOptions.ts +45 -45
- package/composables/productNameLocal.ts +30 -30
- package/composables/useAppVersion.ts +21 -21
- package/lib/models/enums.ts +1 -1
- package/package.json +1 -1
- package/plugins/date.ts +233 -233
- package/plugins/panelStates.ts +70 -70
- package/plugins/text.ts +59 -59
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +390 -390
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/lib/models/enums.ts +4 -4
- package/store/tasks/mappers/recentTasks.ts +79 -79
@@ -1,823 +1,823 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="clone-vm">
|
3
|
-
<atoms-wizard
|
4
|
-
|
5
|
-
:
|
6
|
-
:
|
7
|
-
:
|
8
|
-
|
9
|
-
@change-steps="onChangeSteps"
|
10
|
-
@hide="onHideModal"
|
11
|
-
@submit="onFinish"
|
12
|
-
>
|
13
|
-
<template #modalBody="{ selectedStep }">
|
14
|
-
<atoms-loader v-show="!vmSettings || isLoading" id="loader" />
|
15
|
-
<div v-if="vmSettings" class="vm-context">
|
16
|
-
<common-pages-scheduled-tasks-modals-common-new-task-form
|
17
|
-
v-show="selectedStep.id === dynamicSteps.scheduledTasks"
|
18
|
-
v-model="newTaskForm"
|
19
|
-
:target="selectedVirtualMachine"
|
20
|
-
class="new-task-form"
|
21
|
-
/>
|
22
|
-
<common-vm-actions-common-select-name
|
23
|
-
v-show="
|
24
|
-
selectedStep.id === dynamicSteps.selectName ||
|
25
|
-
selectedStep.id === dynamicSteps.selectNameFolder
|
26
|
-
"
|
27
|
-
:show="
|
28
|
-
selectedStep.id === dynamicSteps.selectName ||
|
29
|
-
selectedStep.id === dynamicSteps.selectNameFolder
|
30
|
-
"
|
31
|
-
:name-form-submit="nameFormSubmit"
|
32
|
-
:project="props.project"
|
33
|
-
:data-center="props.dataCenter"
|
34
|
-
@submit="onChangeName(...$event)"
|
35
|
-
@check-name="emits('check-name', $event)"
|
36
|
-
/>
|
37
|
-
<common-vm-actions-common-select-compute-resource
|
38
|
-
v-if="isSphere"
|
39
|
-
v-show="selectedStep.id === dynamicSteps.selectComputeResource"
|
40
|
-
v-model="computeResource"
|
41
|
-
:compute-resource-submit="computeResourceSubmit"
|
42
|
-
:data-center="vmForm.dataCenter"
|
43
|
-
:compute-resource="props.computeResource"
|
44
|
-
:compute-resource-tree="props.computeResourceTree"
|
45
|
-
@submit="onChangeComputeResource"
|
46
|
-
@select-compute-resource-tree="onSelectComputeResourceTree"
|
47
|
-
@get-compute-resource-tree="
|
48
|
-
emits('get-compute-resource-tree', $event)
|
49
|
-
"
|
50
|
-
@show-compute-resource-tree="
|
51
|
-
emits('show-compute-resource-tree', $event)
|
52
|
-
"
|
53
|
-
@clear-compute-resource-tree="emits('clear-compute-resource-tree')"
|
54
|
-
/>
|
55
|
-
<common-vm-actions-common-select-storage
|
56
|
-
v-show="selectedStep.id === dynamicSteps.selectStorage"
|
57
|
-
:storage-submit="storageSubmit"
|
58
|
-
:datastore="props.datastore"
|
59
|
-
:is-datastore-loading="props.isDatastoreLoading"
|
60
|
-
:storage="vmForm.storage"
|
61
|
-
:get-datastore-table-func="props.getDatastoreTableFunc"
|
62
|
-
@submit="onChangeStorage"
|
63
|
-
/>
|
64
|
-
<common-vm-actions-common-select-options
|
65
|
-
v-show="selectedStep.id === dynamicSteps.selectOptions"
|
66
|
-
:is-create-template="props.isNewVmFromTemplate"
|
67
|
-
@change="onChangeSelectOptions"
|
68
|
-
/>
|
69
|
-
<common-vm-actions-common-select-os
|
70
|
-
v-show="selectedStep.id === dynamicSteps.selectGuestOSMachineType"
|
71
|
-
v-model:machine-type="vmForm.guestMachineType"
|
72
|
-
v-model:guest-os-family="vmForm.guestOsFamily"
|
73
|
-
v-model:guest-os-version="vmForm.guestOsVersion"
|
74
|
-
:families-options="guestOsFamilies"
|
75
|
-
:versions-options="guestOsVersions"
|
76
|
-
:machine-types-options="machineTypes"
|
77
|
-
:error-validation-fields="props.errorValidationFields"
|
78
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
79
|
-
/>
|
80
|
-
<common-vm-actions-common-customize-hardware
|
81
|
-
v-show="selectedStep.id === dynamicSteps.customizeHardware"
|
82
|
-
v-model:vm-name="vmName"
|
83
|
-
v-model:guest-machine-type="vmSettings.guestMachineType"
|
84
|
-
v-model:guest-os-family="vmSettings.guestOsFamily"
|
85
|
-
v-model:guest-os-version="vmSettings.guestOsVersion"
|
86
|
-
:storage="vmForm.storage"
|
87
|
-
:hard-disks-for-boot-options="virtualHardwareHardDisksLocal"
|
88
|
-
:cd-dvd-drives-for-boot-options="virtualHardwareCdDvdDrivesLocal"
|
89
|
-
:networks-for-boot-options="virtualHardwareNetworksLocal"
|
90
|
-
:cd-dvd-drives="vmSettings.cdDvdDrives"
|
91
|
-
:hard-disks="vmSettings.hardDisks"
|
92
|
-
:networks="vmSettings.networks"
|
93
|
-
:customize-hardware-submit="customizeHardwareSubmit"
|
94
|
-
:max-cpus="vmSettings.maxCpus"
|
95
|
-
:max-memory="vmSettings.maxMemory"
|
96
|
-
:cpu-models="vmSettings.cpuModels"
|
97
|
-
:cpu="vmSettings.cpu"
|
98
|
-
:memory="vmSettings.memory"
|
99
|
-
:video-card="vmSettings.videoCard"
|
100
|
-
:usb-controller="vmSettings.usbController"
|
101
|
-
:pci-devices="vmSettings.pciDevices"
|
102
|
-
:selected-nav-item="selectedNavItem"
|
103
|
-
:hard-disks-for-edit="vmSettings.hardDisks"
|
104
|
-
:options="vmSettings.options"
|
105
|
-
:nodes="props.nodes"
|
106
|
-
:files="props.files"
|
107
|
-
:networks-table="props.networksTable"
|
108
|
-
:error-validation-fields="props.errorValidationFields"
|
109
|
-
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
110
|
-
:passthrough-devices="props.passthroughDevices"
|
111
|
-
:mediated-devices="props.mediatedDevices"
|
112
|
-
:get-datastore-table-func="props.getDatastoreTableFunc"
|
113
|
-
:datastore="props.datastore"
|
114
|
-
:is-datastore-loading="props.isDatastoreLoading"
|
115
|
-
:project="props.project"
|
116
|
-
is-clone
|
117
|
-
@change-boot-order="onChangeBootOrder"
|
118
|
-
@send-data="onChangeCustomizeHardware"
|
119
|
-
@get-storage="emits('get-storage', $event)"
|
120
|
-
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
121
|
-
@get-active-device-child="emits('get-active-device-child', $event)"
|
122
|
-
@show-datastore-child="emits('show-datastore-child', $event)"
|
123
|
-
@get-networks-table="emits('get-networks-table', $event)"
|
124
|
-
@get-pci-devices="emits('get-pci-devices')"
|
125
|
-
/>
|
126
|
-
<common-ready-to-complete
|
127
|
-
v-show="selectedStep.id === dynamicSteps.readyComplete"
|
128
|
-
:data="props.readyCompleteTableInfo"
|
129
|
-
/>
|
130
|
-
</div>
|
131
|
-
</template>
|
132
|
-
</atoms-wizard>
|
133
|
-
</div>
|
134
|
-
</template>
|
135
|
-
|
136
|
-
<script setup lang="ts">
|
137
|
-
import type {
|
138
|
-
UI_I_DatastoreTableItem,
|
139
|
-
UI_I_FolderOrFileTreePayload,
|
140
|
-
} from '~/lib/models/store/storage/interfaces'
|
141
|
-
import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
|
142
|
-
import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
|
143
|
-
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
144
|
-
import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
|
145
|
-
import type {
|
146
|
-
UI_I_ArbitraryObject,
|
147
|
-
UI_I_Localization,
|
148
|
-
} from '~/lib/models/interfaces'
|
149
|
-
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
150
|
-
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
151
|
-
import type {
|
152
|
-
UI_I_SendDataCpu,
|
153
|
-
UI_I_SendDataMemory,
|
154
|
-
UI_I_SendDataNewCdDvdDrive,
|
155
|
-
UI_I_SendDataNewHardDisk,
|
156
|
-
UI_I_SendDataNewNetwork,
|
157
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
158
|
-
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
159
|
-
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
160
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
161
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
162
|
-
import type {
|
163
|
-
UI_I_MediatedDevice,
|
164
|
-
UI_I_PciDevice,
|
165
|
-
UI_I_VmSettings,
|
166
|
-
} from '~/lib/models/store/vm/interfaces'
|
167
|
-
import type { UI_I_VmForm } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
168
|
-
import type {
|
169
|
-
UI_I_ValidationReturn,
|
170
|
-
UI_I_WizardStep,
|
171
|
-
} from '~/components/atoms/wizard/lib/models/interfaces'
|
172
|
-
import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
173
|
-
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
174
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
175
|
-
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
176
|
-
import {
|
177
|
-
stepsSchemeInitial,
|
178
|
-
stepsFunc,
|
179
|
-
dynamicSteps,
|
180
|
-
} from '~/components/common/vm/actions/clone/lib/config/steps'
|
181
|
-
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
182
|
-
import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
|
183
|
-
import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask'
|
184
|
-
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
185
|
-
|
186
|
-
const props =
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
(event: '
|
227
|
-
(event: '
|
228
|
-
(event: '
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
()
|
239
|
-
)
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
}
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
)
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
}
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
const
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
wizard.isValidateForStep(
|
344
|
-
dynamicSteps.
|
345
|
-
currentStep.id,
|
346
|
-
nextStep.id
|
347
|
-
)
|
348
|
-
) {
|
349
|
-
const
|
350
|
-
|
351
|
-
value =
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
return
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
}
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
) {
|
421
|
-
|
422
|
-
dynamicSteps.selectComputeResource,
|
423
|
-
'computeResource',
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
})
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
) {
|
487
|
-
|
488
|
-
dynamicSteps.customizeHardware,
|
489
|
-
'customizeHardware',
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
if (
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
let
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
)
|
581
|
-
|
582
|
-
const
|
583
|
-
null
|
584
|
-
)
|
585
|
-
|
586
|
-
const
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
const
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
vmForm.value
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
const
|
677
|
-
|
678
|
-
)
|
679
|
-
const
|
680
|
-
|
681
|
-
const
|
682
|
-
const
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
const
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
}
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
:
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
:
|
778
|
-
|
779
|
-
}
|
780
|
-
:deep(.
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
}
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
}
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
}
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
}
|
823
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="clone-vm">
|
3
|
+
<atoms-wizard
|
4
|
+
:wizard="wizard"
|
5
|
+
:selected-scheme="selectedScheme"
|
6
|
+
:title="title"
|
7
|
+
:localization="localization"
|
8
|
+
show
|
9
|
+
@change-steps="onChangeSteps"
|
10
|
+
@hide="onHideModal"
|
11
|
+
@submit="onFinish"
|
12
|
+
>
|
13
|
+
<template #modalBody="{ selectedStep }">
|
14
|
+
<atoms-loader v-show="!vmSettings || isLoading" id="loader" />
|
15
|
+
<div v-if="vmSettings" class="vm-context">
|
16
|
+
<common-pages-scheduled-tasks-modals-common-new-task-form
|
17
|
+
v-show="selectedStep.id === dynamicSteps.scheduledTasks"
|
18
|
+
v-model="newTaskForm"
|
19
|
+
:target="selectedVirtualMachine"
|
20
|
+
class="new-task-form"
|
21
|
+
/>
|
22
|
+
<common-vm-actions-common-select-name
|
23
|
+
v-show="
|
24
|
+
selectedStep.id === dynamicSteps.selectName ||
|
25
|
+
selectedStep.id === dynamicSteps.selectNameFolder
|
26
|
+
"
|
27
|
+
:show="
|
28
|
+
selectedStep.id === dynamicSteps.selectName ||
|
29
|
+
selectedStep.id === dynamicSteps.selectNameFolder
|
30
|
+
"
|
31
|
+
:name-form-submit="nameFormSubmit"
|
32
|
+
:project="props.project"
|
33
|
+
:data-center="props.dataCenter"
|
34
|
+
@submit="onChangeName(...$event)"
|
35
|
+
@check-name="emits('check-name', $event)"
|
36
|
+
/>
|
37
|
+
<common-vm-actions-common-select-compute-resource
|
38
|
+
v-if="isSphere"
|
39
|
+
v-show="selectedStep.id === dynamicSteps.selectComputeResource"
|
40
|
+
v-model="computeResource"
|
41
|
+
:compute-resource-submit="computeResourceSubmit"
|
42
|
+
:data-center="vmForm.dataCenter"
|
43
|
+
:compute-resource="props.computeResource"
|
44
|
+
:compute-resource-tree="props.computeResourceTree"
|
45
|
+
@submit="onChangeComputeResource"
|
46
|
+
@select-compute-resource-tree="onSelectComputeResourceTree"
|
47
|
+
@get-compute-resource-tree="
|
48
|
+
emits('get-compute-resource-tree', $event)
|
49
|
+
"
|
50
|
+
@show-compute-resource-tree="
|
51
|
+
emits('show-compute-resource-tree', $event)
|
52
|
+
"
|
53
|
+
@clear-compute-resource-tree="emits('clear-compute-resource-tree')"
|
54
|
+
/>
|
55
|
+
<common-vm-actions-common-select-storage
|
56
|
+
v-show="selectedStep.id === dynamicSteps.selectStorage"
|
57
|
+
:storage-submit="storageSubmit"
|
58
|
+
:datastore="props.datastore"
|
59
|
+
:is-datastore-loading="props.isDatastoreLoading"
|
60
|
+
:storage="vmForm.storage"
|
61
|
+
:get-datastore-table-func="props.getDatastoreTableFunc"
|
62
|
+
@submit="onChangeStorage"
|
63
|
+
/>
|
64
|
+
<common-vm-actions-common-select-options
|
65
|
+
v-show="selectedStep.id === dynamicSteps.selectOptions"
|
66
|
+
:is-create-template="props.isNewVmFromTemplate"
|
67
|
+
@change="onChangeSelectOptions"
|
68
|
+
/>
|
69
|
+
<common-vm-actions-common-select-os
|
70
|
+
v-show="selectedStep.id === dynamicSteps.selectGuestOSMachineType"
|
71
|
+
v-model:machine-type="vmForm.guestMachineType"
|
72
|
+
v-model:guest-os-family="vmForm.guestOsFamily"
|
73
|
+
v-model:guest-os-version="vmForm.guestOsVersion"
|
74
|
+
:families-options="guestOsFamilies"
|
75
|
+
:versions-options="guestOsVersions"
|
76
|
+
:machine-types-options="machineTypes"
|
77
|
+
:error-validation-fields="props.errorValidationFields"
|
78
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
79
|
+
/>
|
80
|
+
<common-vm-actions-common-customize-hardware
|
81
|
+
v-show="selectedStep.id === dynamicSteps.customizeHardware"
|
82
|
+
v-model:vm-name="vmName"
|
83
|
+
v-model:guest-machine-type="vmSettings.guestMachineType"
|
84
|
+
v-model:guest-os-family="vmSettings.guestOsFamily"
|
85
|
+
v-model:guest-os-version="vmSettings.guestOsVersion"
|
86
|
+
:storage="vmForm.storage"
|
87
|
+
:hard-disks-for-boot-options="virtualHardwareHardDisksLocal"
|
88
|
+
:cd-dvd-drives-for-boot-options="virtualHardwareCdDvdDrivesLocal"
|
89
|
+
:networks-for-boot-options="virtualHardwareNetworksLocal"
|
90
|
+
:cd-dvd-drives="vmSettings.cdDvdDrives"
|
91
|
+
:hard-disks="vmSettings.hardDisks"
|
92
|
+
:networks="vmSettings.networks"
|
93
|
+
:customize-hardware-submit="customizeHardwareSubmit"
|
94
|
+
:max-cpus="vmSettings.maxCpus"
|
95
|
+
:max-memory="vmSettings.maxMemory"
|
96
|
+
:cpu-models="vmSettings.cpuModels"
|
97
|
+
:cpu="vmSettings.cpu"
|
98
|
+
:memory="vmSettings.memory"
|
99
|
+
:video-card="vmSettings.videoCard"
|
100
|
+
:usb-controller="vmSettings.usbController"
|
101
|
+
:pci-devices="vmSettings.pciDevices"
|
102
|
+
:selected-nav-item="selectedNavItem"
|
103
|
+
:hard-disks-for-edit="vmSettings.hardDisks"
|
104
|
+
:options="vmSettings.options"
|
105
|
+
:nodes="props.nodes"
|
106
|
+
:files="props.files"
|
107
|
+
:networks-table="props.networksTable"
|
108
|
+
:error-validation-fields="props.errorValidationFields"
|
109
|
+
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
110
|
+
:passthrough-devices="props.passthroughDevices"
|
111
|
+
:mediated-devices="props.mediatedDevices"
|
112
|
+
:get-datastore-table-func="props.getDatastoreTableFunc"
|
113
|
+
:datastore="props.datastore"
|
114
|
+
:is-datastore-loading="props.isDatastoreLoading"
|
115
|
+
:project="props.project"
|
116
|
+
is-clone
|
117
|
+
@change-boot-order="onChangeBootOrder"
|
118
|
+
@send-data="onChangeCustomizeHardware"
|
119
|
+
@get-storage="emits('get-storage', $event)"
|
120
|
+
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
121
|
+
@get-active-device-child="emits('get-active-device-child', $event)"
|
122
|
+
@show-datastore-child="emits('show-datastore-child', $event)"
|
123
|
+
@get-networks-table="emits('get-networks-table', $event)"
|
124
|
+
@get-pci-devices="emits('get-pci-devices')"
|
125
|
+
/>
|
126
|
+
<common-ready-to-complete
|
127
|
+
v-show="selectedStep.id === dynamicSteps.readyComplete"
|
128
|
+
:data="props.readyCompleteTableInfo"
|
129
|
+
/>
|
130
|
+
</div>
|
131
|
+
</template>
|
132
|
+
</atoms-wizard>
|
133
|
+
</div>
|
134
|
+
</template>
|
135
|
+
|
136
|
+
<script setup lang="ts">
|
137
|
+
import type {
|
138
|
+
UI_I_DatastoreTableItem,
|
139
|
+
UI_I_FolderOrFileTreePayload,
|
140
|
+
} from '~/lib/models/store/storage/interfaces'
|
141
|
+
import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
|
142
|
+
import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
|
143
|
+
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
144
|
+
import type { UI_I_FileTreeNode } from '~/components/lib/models/interfaces'
|
145
|
+
import type {
|
146
|
+
UI_I_ArbitraryObject,
|
147
|
+
UI_I_Localization,
|
148
|
+
} from '~/lib/models/interfaces'
|
149
|
+
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
150
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
151
|
+
import type {
|
152
|
+
UI_I_SendDataCpu,
|
153
|
+
UI_I_SendDataMemory,
|
154
|
+
UI_I_SendDataNewCdDvdDrive,
|
155
|
+
UI_I_SendDataNewHardDisk,
|
156
|
+
UI_I_SendDataNewNetwork,
|
157
|
+
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
158
|
+
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
159
|
+
import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
|
160
|
+
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
161
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
162
|
+
import type {
|
163
|
+
UI_I_MediatedDevice,
|
164
|
+
UI_I_PciDevice,
|
165
|
+
UI_I_VmSettings,
|
166
|
+
} from '~/lib/models/store/vm/interfaces'
|
167
|
+
import type { UI_I_VmForm } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
168
|
+
import type {
|
169
|
+
UI_I_ValidationReturn,
|
170
|
+
UI_I_WizardStep,
|
171
|
+
} from '~/components/atoms/wizard/lib/models/interfaces'
|
172
|
+
import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
173
|
+
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
174
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
175
|
+
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
176
|
+
import {
|
177
|
+
stepsSchemeInitial,
|
178
|
+
stepsFunc,
|
179
|
+
dynamicSteps,
|
180
|
+
} from '~/components/common/vm/actions/clone/lib/config/steps'
|
181
|
+
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
182
|
+
import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
|
183
|
+
import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask'
|
184
|
+
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
185
|
+
|
186
|
+
const props = withDefaults(
|
187
|
+
defineProps<{
|
188
|
+
project: UI_T_Project
|
189
|
+
vmSettings: UI_I_VmSettings | null
|
190
|
+
nodes: UI_I_FileTreeNode[]
|
191
|
+
files: UI_I_FileTreeNode[]
|
192
|
+
networksTable: UI_I_NetworkTableItem[]
|
193
|
+
datastore: UI_I_DatastoreTableItem[]
|
194
|
+
isDatastoreLoading: boolean
|
195
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
196
|
+
readyCompleteTableInfo: UI_I_TableInfoItem[]
|
197
|
+
vmCpuHelpTextSecond: string
|
198
|
+
finishFunc: any
|
199
|
+
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
200
|
+
validateSendDataFunc: any
|
201
|
+
passthroughDevices: UI_I_PciDevice[]
|
202
|
+
mediatedDevices: UI_I_MediatedDevice[]
|
203
|
+
vmNameInWizard: string
|
204
|
+
capabilities?: UI_I_Capabilities
|
205
|
+
schedulerTask?: any // TODO надо interface переместить глобално
|
206
|
+
selectedVirtualMachine?: UI_I_Capabilities
|
207
|
+
isNewVmFromTemplate?: boolean
|
208
|
+
dataCenter?: UI_I_TreeNode // для сферы
|
209
|
+
computeResource?: UI_I_TreeNode // для сферы
|
210
|
+
computeResourceTree?: UI_I_TreeNode[] // для сферы
|
211
|
+
}>(),
|
212
|
+
{
|
213
|
+
capabilities: undefined,
|
214
|
+
schedulerTask: undefined,
|
215
|
+
selectedVirtualMachine: undefined,
|
216
|
+
isNewVmFromTemplate: undefined,
|
217
|
+
dataCenter: undefined,
|
218
|
+
computeResource: undefined,
|
219
|
+
computeResourceTree: undefined,
|
220
|
+
}
|
221
|
+
)
|
222
|
+
|
223
|
+
const emits = defineEmits<{
|
224
|
+
(event: 'check-name', value: [string, (error: API_UI_I_Error) => void]): void
|
225
|
+
(event: 'get-storage', value: UI_I_TablePayload): void
|
226
|
+
(event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
|
227
|
+
(event: 'get-active-device-child', value: UI_I_FileTreeNode): void
|
228
|
+
(event: 'show-datastore-child', value: UI_I_FileTreeNode): void
|
229
|
+
(event: 'remove-error-by-title', value: string): void
|
230
|
+
(event: 'get-networks-table', value: UI_I_TablePayload): void
|
231
|
+
(event: 'get-pci-devices'): void
|
232
|
+
(event: 'hide'): void
|
233
|
+
(
|
234
|
+
event: 'get-compute-resource-tree',
|
235
|
+
value: { id: string | number; cb: () => void }
|
236
|
+
): void // для сферы
|
237
|
+
(event: 'show-compute-resource-tree', value: UI_I_TreeNode): void // для сферы
|
238
|
+
(event: 'select-compute-resource-tree', value: UI_I_TreeNode): void // для сферы
|
239
|
+
(event: 'clear-compute-resource-tree'): void // для сферы
|
240
|
+
}>()
|
241
|
+
|
242
|
+
const { $recursion } = useNuxtApp()
|
243
|
+
|
244
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
245
|
+
|
246
|
+
const isSphere = computed<boolean>(() => props.project === 'sphere')
|
247
|
+
|
248
|
+
const isScheduledTasks = computed<boolean>(
|
249
|
+
() => props.schedulerTask?.isSchedulerTask
|
250
|
+
)
|
251
|
+
|
252
|
+
const title = computed<string>(() => {
|
253
|
+
const { scheduleNewTasks, scheduleTaskEdit, cloneExistingVirtualMachine } =
|
254
|
+
localization.value.common
|
255
|
+
|
256
|
+
let result = cloneExistingVirtualMachine
|
257
|
+
if (isScheduledTasks.value) {
|
258
|
+
const schedulerMode = props.schedulerTask.editTask
|
259
|
+
? scheduleTaskEdit
|
260
|
+
: scheduleNewTasks
|
261
|
+
|
262
|
+
result = `${schedulerMode} (${cloneExistingVirtualMachine})`
|
263
|
+
}
|
264
|
+
|
265
|
+
if (props.isNewVmFromTemplate) {
|
266
|
+
result = localization.value.vmWizard.deployFromTemplate
|
267
|
+
}
|
268
|
+
|
269
|
+
return result
|
270
|
+
})
|
271
|
+
|
272
|
+
watch(
|
273
|
+
() => props.capabilities,
|
274
|
+
() => {
|
275
|
+
if (props.capabilities) {
|
276
|
+
mapCapabilities(props.capabilities)
|
277
|
+
}
|
278
|
+
},
|
279
|
+
{ deep: true, immediate: true }
|
280
|
+
)
|
281
|
+
|
282
|
+
const wizard: Wizard = new Wizard(
|
283
|
+
stepsFunc(localization.value),
|
284
|
+
stepsSchemeInitial
|
285
|
+
)
|
286
|
+
watch(
|
287
|
+
isScheduledTasks,
|
288
|
+
(newValue) => {
|
289
|
+
if (newValue) {
|
290
|
+
wizard.changeScheme(isSphere.value ? 12 : 4)
|
291
|
+
} else {
|
292
|
+
wizard.changeScheme(isSphere.value ? 8 : 0)
|
293
|
+
wizard.selectStepHard(isSphere.value ? 2 : 1)
|
294
|
+
}
|
295
|
+
},
|
296
|
+
{ immediate: true }
|
297
|
+
)
|
298
|
+
|
299
|
+
// TODO move to common
|
300
|
+
const newTaskForm = ref<UI_I_ScheduleNewTasksForm>(
|
301
|
+
useDeepCopy(scheduledTaskDefaultFormFunc())
|
302
|
+
)
|
303
|
+
watch(
|
304
|
+
newTaskForm,
|
305
|
+
(newValue: UI_I_ScheduleNewTasksForm) => {
|
306
|
+
if (isScheduledTasks.value) wizard.setDisabledNextButton(newValue.isValid)
|
307
|
+
},
|
308
|
+
{ immediate: true, deep: true }
|
309
|
+
)
|
310
|
+
|
311
|
+
const selectedScheme = computed<number[]>(() => wizard.selectedScheme.value)
|
312
|
+
|
313
|
+
const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> => {
|
314
|
+
wizard.changeSteps(value, validationFunc, validateSendData)
|
315
|
+
}
|
316
|
+
|
317
|
+
const validationFunc = async (
|
318
|
+
value: UI_I_WizardStep[],
|
319
|
+
currentStep: UI_I_WizardStep,
|
320
|
+
nextStep: UI_I_WizardStep
|
321
|
+
): Promise<UI_I_ValidationReturn> => {
|
322
|
+
let stepHasError = false
|
323
|
+
let stepShouldStop = {
|
324
|
+
ifOnCurrentStep: false,
|
325
|
+
ifFromAnyStep: false,
|
326
|
+
stoppageStepId: -1,
|
327
|
+
}
|
328
|
+
|
329
|
+
wizard.setLoader(true)
|
330
|
+
if (
|
331
|
+
wizard.isValidateForStep(
|
332
|
+
isSphere.value ? dynamicSteps.selectNameFolder : dynamicSteps.selectName,
|
333
|
+
currentStep.id,
|
334
|
+
nextStep.id
|
335
|
+
)
|
336
|
+
) {
|
337
|
+
const nameValidation = await checkName(value)
|
338
|
+
|
339
|
+
value = nameValidation.newValue
|
340
|
+
stepHasError = stepHasError || nameValidation.stepHasError
|
341
|
+
} else if (
|
342
|
+
isSphere.value &&
|
343
|
+
wizard.isValidateForStep(
|
344
|
+
dynamicSteps.selectComputeResource,
|
345
|
+
currentStep.id,
|
346
|
+
nextStep.id
|
347
|
+
)
|
348
|
+
) {
|
349
|
+
const computeResourceValidation = await checkComputeResource(value)
|
350
|
+
|
351
|
+
value = computeResourceValidation.newValue
|
352
|
+
stepHasError = stepHasError || computeResourceValidation.stepHasError
|
353
|
+
} else if (
|
354
|
+
wizard.isValidateForStep(
|
355
|
+
dynamicSteps.selectStorage,
|
356
|
+
currentStep.id,
|
357
|
+
nextStep.id
|
358
|
+
)
|
359
|
+
) {
|
360
|
+
const storageValidation = await checkStorage(value)
|
361
|
+
|
362
|
+
value = storageValidation.newValue
|
363
|
+
|
364
|
+
stepHasError = stepHasError || storageValidation.stepHasError
|
365
|
+
} else if (
|
366
|
+
wizard.isValidateForStep(
|
367
|
+
dynamicSteps.customizeHardware,
|
368
|
+
currentStep.id,
|
369
|
+
nextStep.id
|
370
|
+
)
|
371
|
+
) {
|
372
|
+
const customizeHardwareValidation = await checkCustomizeHardware(value)
|
373
|
+
|
374
|
+
value = customizeHardwareValidation.newValue
|
375
|
+
|
376
|
+
stepHasError = stepHasError || customizeHardwareValidation.stepHasError
|
377
|
+
}
|
378
|
+
wizard.setLoader(false)
|
379
|
+
|
380
|
+
return {
|
381
|
+
newValue: value,
|
382
|
+
stepHasError,
|
383
|
+
stepShouldStop,
|
384
|
+
}
|
385
|
+
}
|
386
|
+
const checkName = async (
|
387
|
+
value: UI_I_WizardStep[]
|
388
|
+
): Promise<UI_I_ValidationReturn> => {
|
389
|
+
let stepHasError = false
|
390
|
+
|
391
|
+
return new Promise((resolve) => {
|
392
|
+
const step = isSphere.value
|
393
|
+
? dynamicSteps.selectNameFolder
|
394
|
+
: dynamicSteps.selectName
|
395
|
+
nameFormSubmit.value = (isValid: boolean) => {
|
396
|
+
if (!isValid) {
|
397
|
+
stepHasError = wizard.setValidation(step, 'name', {
|
398
|
+
fieldMessage: 'aaa',
|
399
|
+
alertMessage: 'aaa',
|
400
|
+
})
|
401
|
+
} else if (wizard.hasMessage(step, 'name')) {
|
402
|
+
value = wizard.removeValidation(step, 'name', value)
|
403
|
+
}
|
404
|
+
|
405
|
+
resolve({
|
406
|
+
stepHasError,
|
407
|
+
newValue: value,
|
408
|
+
})
|
409
|
+
nameFormSubmit.value = null
|
410
|
+
}
|
411
|
+
})
|
412
|
+
}
|
413
|
+
const checkComputeResource = async (
|
414
|
+
value: UI_I_WizardStep[]
|
415
|
+
): Promise<UI_I_ValidationReturn> => {
|
416
|
+
let stepHasError = false
|
417
|
+
|
418
|
+
return new Promise((resolve) => {
|
419
|
+
computeResourceSubmit.value = (isValid: boolean) => {
|
420
|
+
if (!isValid) {
|
421
|
+
stepHasError = wizard.setValidation(
|
422
|
+
dynamicSteps.selectComputeResource,
|
423
|
+
'computeResource',
|
424
|
+
{
|
425
|
+
fieldMessage: 'aaa',
|
426
|
+
alertMessage: 'aaa',
|
427
|
+
}
|
428
|
+
)
|
429
|
+
} else if (
|
430
|
+
wizard.hasMessage(dynamicSteps.selectComputeResource, 'computeResource')
|
431
|
+
) {
|
432
|
+
value = wizard.removeValidation(
|
433
|
+
dynamicSteps.selectComputeResource,
|
434
|
+
'computeResource',
|
435
|
+
value
|
436
|
+
)
|
437
|
+
}
|
438
|
+
|
439
|
+
resolve({
|
440
|
+
stepHasError,
|
441
|
+
newValue: value,
|
442
|
+
})
|
443
|
+
computeResourceSubmit.value = null
|
444
|
+
}
|
445
|
+
})
|
446
|
+
}
|
447
|
+
const checkStorage = async (
|
448
|
+
value: UI_I_WizardStep[]
|
449
|
+
): Promise<UI_I_ValidationReturn> => {
|
450
|
+
let stepHasError = false
|
451
|
+
|
452
|
+
return new Promise((resolve) => {
|
453
|
+
storageSubmit.value = (isValid: boolean) => {
|
454
|
+
if (!isValid) {
|
455
|
+
stepHasError = wizard.setValidation(
|
456
|
+
dynamicSteps.selectStorage,
|
457
|
+
'storage',
|
458
|
+
{
|
459
|
+
fieldMessage: 'aaa',
|
460
|
+
alertMessage: 'aaa',
|
461
|
+
}
|
462
|
+
)
|
463
|
+
} else if (wizard.hasMessage(dynamicSteps.selectStorage, 'storage')) {
|
464
|
+
value = wizard.removeValidation(
|
465
|
+
dynamicSteps.selectStorage,
|
466
|
+
'storage',
|
467
|
+
value
|
468
|
+
)
|
469
|
+
}
|
470
|
+
|
471
|
+
resolve({
|
472
|
+
stepHasError,
|
473
|
+
newValue: value,
|
474
|
+
})
|
475
|
+
storageSubmit.value = null
|
476
|
+
}
|
477
|
+
})
|
478
|
+
}
|
479
|
+
const checkCustomizeHardware = async (
|
480
|
+
value: UI_I_WizardStep[]
|
481
|
+
): Promise<UI_I_ValidationReturn> => {
|
482
|
+
let stepHasError = false
|
483
|
+
|
484
|
+
return new Promise((resolve) => {
|
485
|
+
customizeHardwareSubmit.value = (isValid: boolean) => {
|
486
|
+
if (!isValid) {
|
487
|
+
stepHasError = wizard.setValidation(
|
488
|
+
dynamicSteps.customizeHardware,
|
489
|
+
'customizeHardware',
|
490
|
+
{
|
491
|
+
fieldMessage: 'aaa',
|
492
|
+
alertMessage: 'aaa',
|
493
|
+
}
|
494
|
+
)
|
495
|
+
} else if (
|
496
|
+
wizard.hasMessage(dynamicSteps.customizeHardware, 'customizeHardware')
|
497
|
+
) {
|
498
|
+
value = wizard.removeValidation(
|
499
|
+
dynamicSteps.customizeHardware,
|
500
|
+
'customizeHardware',
|
501
|
+
value
|
502
|
+
)
|
503
|
+
}
|
504
|
+
|
505
|
+
resolve({
|
506
|
+
stepHasError,
|
507
|
+
newValue: value,
|
508
|
+
})
|
509
|
+
storageSubmit.value = null
|
510
|
+
}
|
511
|
+
})
|
512
|
+
}
|
513
|
+
|
514
|
+
const vmForm = ref<UI_I_VmForm>({
|
515
|
+
name: '',
|
516
|
+
compatibility: '',
|
517
|
+
guestMachineType: null,
|
518
|
+
guestOsFamily: null,
|
519
|
+
guestOsVersion: null,
|
520
|
+
computeResource: null,
|
521
|
+
storage: null,
|
522
|
+
locationPath: '',
|
523
|
+
dataCenter: null,
|
524
|
+
options: [],
|
525
|
+
})
|
526
|
+
const onChangeName = (name: string, node: UI_I_TreeNode): void => {
|
527
|
+
vmForm.value.name = name
|
528
|
+
if (isSphere.value) {
|
529
|
+
vmForm.value.locationPath = node.id
|
530
|
+
vmForm.value.dataCenter = $recursion.findParentByValue(
|
531
|
+
node,
|
532
|
+
'datacenter',
|
533
|
+
'type',
|
534
|
+
'parent'
|
535
|
+
)
|
536
|
+
}
|
537
|
+
}
|
538
|
+
const onChangeStorage = (storage: UI_I_DatastoreTableItem | null): void => {
|
539
|
+
if (!storage) return
|
540
|
+
|
541
|
+
vmForm.value.storage = storage
|
542
|
+
}
|
543
|
+
const onChangeSelectOptions = (options: string[]): void => {
|
544
|
+
vmForm.value.options = options
|
545
|
+
if (
|
546
|
+
options.includes('customize-os') &&
|
547
|
+
options.includes('customize-hardware')
|
548
|
+
) {
|
549
|
+
let procuratorSchame = isScheduledTasks.value ? 7 : 3
|
550
|
+
let sphereSchame = isScheduledTasks.value ? 15 : 11
|
551
|
+
wizard.changeScheme(isSphere.value ? sphereSchame : procuratorSchame)
|
552
|
+
} else if (options.includes('customize-os')) {
|
553
|
+
let procuratorSchame = isScheduledTasks.value ? 5 : 1
|
554
|
+
let sphereSchame = isScheduledTasks.value ? 13 : 9
|
555
|
+
wizard.changeScheme(isSphere.value ? sphereSchame : procuratorSchame)
|
556
|
+
} else if (options.includes('customize-hardware')) {
|
557
|
+
let procuratorSchame = isScheduledTasks.value ? 6 : 2
|
558
|
+
let sphereSchame = isScheduledTasks.value ? 14 : 10
|
559
|
+
wizard.changeScheme(isSphere.value ? sphereSchame : procuratorSchame)
|
560
|
+
} else {
|
561
|
+
let procuratorSchame = isScheduledTasks.value ? 4 : 0
|
562
|
+
let sphereSchame = isScheduledTasks.value ? 12 : 8
|
563
|
+
wizard.changeScheme(isSphere.value ? sphereSchame : procuratorSchame)
|
564
|
+
}
|
565
|
+
|
566
|
+
// Change power on by default
|
567
|
+
isPowerOnByDefault.value = options.includes('power-on')
|
568
|
+
}
|
569
|
+
const customizeHardware = ref<UI_I_SendDataCustomizeHardware | null>(null)
|
570
|
+
const onChangeCustomizeHardware = (
|
571
|
+
data: UI_I_SendDataCustomizeHardware
|
572
|
+
): void => {
|
573
|
+
customizeHardware.value = data
|
574
|
+
}
|
575
|
+
|
576
|
+
const virtualHardwareHardDisksLocal = computed<
|
577
|
+
UI_I_SendDataNewHardDisk[] | null
|
578
|
+
>(() => customizeHardware.value?.virtualHardware?.hardDisks || null)
|
579
|
+
const virtualHardwareNetworksLocal = computed<UI_I_SendDataNewNetwork[] | null>(
|
580
|
+
() => customizeHardware.value?.virtualHardware?.networks || null
|
581
|
+
)
|
582
|
+
const virtualHardwareCdDvdDrivesLocal = computed<
|
583
|
+
UI_I_SendDataNewCdDvdDrive[] | null
|
584
|
+
>(() => customizeHardware.value?.virtualHardware?.cdDvdDrives || null)
|
585
|
+
|
586
|
+
const virtualHardwareCpu = computed<UI_I_SendDataCpu | null>(
|
587
|
+
() => customizeHardware.value?.virtualHardware?.cpu || null
|
588
|
+
)
|
589
|
+
const virtualHardwareMemory = computed<UI_I_SendDataMemory | null>(
|
590
|
+
() => customizeHardware.value?.virtualHardware?.memory || null
|
591
|
+
)
|
592
|
+
const virtualHardwareHardDisks = ref<UI_I_SendDataNewHardDisk[] | null>(null)
|
593
|
+
const virtualHardwareCdDvdDrives = ref<UI_I_SendDataNewCdDvdDrive[] | null>(
|
594
|
+
null
|
595
|
+
)
|
596
|
+
const virtualHardwareNetworks = ref<UI_I_SendDataNewNetwork[] | null>(null)
|
597
|
+
const onChangeBootOrder = (data: UI_T_ChangeBootOrder): void => {
|
598
|
+
virtualHardwareHardDisks.value = data[0]
|
599
|
+
virtualHardwareCdDvdDrives.value = data[1]
|
600
|
+
virtualHardwareNetworks.value = data[2]
|
601
|
+
}
|
602
|
+
|
603
|
+
const isPowerOnByDefault = ref<boolean>(false)
|
604
|
+
|
605
|
+
watch(
|
606
|
+
() => props.vmNameInWizard,
|
607
|
+
(newValue) => {
|
608
|
+
vmForm.value.name = newValue
|
609
|
+
}
|
610
|
+
)
|
611
|
+
|
612
|
+
const validateSendData = async (
|
613
|
+
value: UI_I_WizardStep[]
|
614
|
+
): Promise<UI_I_ValidationReturn> => {
|
615
|
+
wizard.setLoader(true)
|
616
|
+
let stepHasError = false
|
617
|
+
|
618
|
+
const data = await props.validateSendDataFunc(
|
619
|
+
vmForm.value,
|
620
|
+
virtualHardwareCpu.value,
|
621
|
+
virtualHardwareMemory.value,
|
622
|
+
customizeHardware.value,
|
623
|
+
virtualHardwareNetworks.value,
|
624
|
+
virtualHardwareHardDisks.value,
|
625
|
+
virtualHardwareCdDvdDrives.value,
|
626
|
+
isPowerOnByDefault.value,
|
627
|
+
localization.value,
|
628
|
+
vmForm.value.locationPath, // для сферы
|
629
|
+
// computeResourcePath.value // для сферы
|
630
|
+
vmSettings.value.host_id // для сферы // TODO rollback
|
631
|
+
)
|
632
|
+
|
633
|
+
wizard.setLoader(false)
|
634
|
+
if (data) {
|
635
|
+
stepHasError = true
|
636
|
+
selectedNavItem.value = data[0]
|
637
|
+
}
|
638
|
+
|
639
|
+
return {
|
640
|
+
stepHasError,
|
641
|
+
newValue: value,
|
642
|
+
}
|
643
|
+
}
|
644
|
+
|
645
|
+
const isLoading = ref<boolean>(false)
|
646
|
+
const onFinish = (): void => {
|
647
|
+
isLoading.value = true
|
648
|
+
wizard.setLoader(false)
|
649
|
+
props
|
650
|
+
.finishFunc(
|
651
|
+
vmForm.value,
|
652
|
+
virtualHardwareCpu.value,
|
653
|
+
virtualHardwareMemory.value,
|
654
|
+
customizeHardware.value,
|
655
|
+
virtualHardwareNetworks.value,
|
656
|
+
virtualHardwareHardDisks.value,
|
657
|
+
virtualHardwareCdDvdDrives.value,
|
658
|
+
isPowerOnByDefault.value,
|
659
|
+
localization.value,
|
660
|
+
vmForm.value.locationPath, // для сферы
|
661
|
+
// computeResourcePath.value, // для сферы
|
662
|
+
vmSettings.value.host_id, // для сферы // TODO rollback
|
663
|
+
false,
|
664
|
+
newTaskForm.value,
|
665
|
+
props.schedulerTask
|
666
|
+
)
|
667
|
+
.then(() => {
|
668
|
+
isLoading.value = false
|
669
|
+
onHideModal()
|
670
|
+
wizard.setLoader(false)
|
671
|
+
})
|
672
|
+
}
|
673
|
+
|
674
|
+
const selectedNavItem = ref<UI_T_SelectedNavItem>(0)
|
675
|
+
|
676
|
+
const nameFormSubmit = ref<null | Function>(null)
|
677
|
+
const computeResourceSubmit = ref<null | Function>(null)
|
678
|
+
const storageSubmit = ref<null | Function>(null)
|
679
|
+
const customizeHardwareSubmit = ref<null | Function>(null)
|
680
|
+
|
681
|
+
const vmSettings = computed<UI_I_VmSettings | null>(() => props.vmSettings)
|
682
|
+
const vmName = ref<string>(vmSettings.value?.name || '')
|
683
|
+
|
684
|
+
const guestOsFamilies = ref<UI_I_OptionItem[]>(
|
685
|
+
capabilities.value.guestOsFamilies
|
686
|
+
)
|
687
|
+
const guestOsVersions = ref<UI_I_ArbitraryObject<UI_I_OptionItem[]>>(
|
688
|
+
capabilities.value.guestOsVersions
|
689
|
+
)
|
690
|
+
const machineTypes = ref<UI_I_OptionItem[]>(capabilities.value.machineTypes)
|
691
|
+
|
692
|
+
const computeResource = ref<UI_I_TreeNode | null>(null)
|
693
|
+
const onChangeComputeResource = (node: UI_I_TreeNode): void => {
|
694
|
+
computeResource.value = node
|
695
|
+
}
|
696
|
+
// // Для сферы
|
697
|
+
const computeResourcePath = ref<string>('')
|
698
|
+
const onSelectComputeResourceTree = (node: UI_I_TreeNode): void => {
|
699
|
+
emits('select-compute-resource-tree', node)
|
700
|
+
computeResourcePath.value = node.id
|
701
|
+
}
|
702
|
+
|
703
|
+
watch(vmSettings, (newValue) => {
|
704
|
+
vmName.value = newValue?.name || ''
|
705
|
+
|
706
|
+
if (newValue?.guestOsFamily)
|
707
|
+
vmForm.value.guestOsFamily = newValue.guestOsFamily
|
708
|
+
if (newValue?.guestMachineType)
|
709
|
+
vmForm.value.guestMachineType = newValue.guestMachineType
|
710
|
+
if (newValue?.guestOsVersion)
|
711
|
+
vmForm.value.guestOsVersion = newValue.guestOsVersion
|
712
|
+
|
713
|
+
if (newValue?.compatibility)
|
714
|
+
vmForm.value.compatibility = newValue.compatibility
|
715
|
+
|
716
|
+
if (newValue?.storage) {
|
717
|
+
const datastore = props.datastore.find(
|
718
|
+
(item) => item.id === newValue.storage.id
|
719
|
+
)
|
720
|
+
if (datastore) vmForm.value.storage = datastore
|
721
|
+
}
|
722
|
+
})
|
723
|
+
|
724
|
+
const onHideModal = (): void => {
|
725
|
+
emits('hide')
|
726
|
+
}
|
727
|
+
</script>
|
728
|
+
|
729
|
+
<style scoped lang="scss">
|
730
|
+
:deep(.has-solid.close-icon.clr-icon) {
|
731
|
+
width: 20px;
|
732
|
+
top: 0;
|
733
|
+
}
|
734
|
+
.vm-context {
|
735
|
+
padding: 16px 15px 10px 10px;
|
736
|
+
height: 100%;
|
737
|
+
display: flex;
|
738
|
+
flex-direction: column;
|
739
|
+
|
740
|
+
.context-title-wrap {
|
741
|
+
padding-bottom: 3px;
|
742
|
+
border-bottom: 1px solid #a6a6a6;
|
743
|
+
|
744
|
+
h4 {
|
745
|
+
font-weight: 700;
|
746
|
+
font-size: 13px;
|
747
|
+
color: var(--vm-context-title);
|
748
|
+
}
|
749
|
+
p {
|
750
|
+
font-weight: 400;
|
751
|
+
font-size: 13px;
|
752
|
+
color: var(--vm-context-sub-title);
|
753
|
+
}
|
754
|
+
}
|
755
|
+
|
756
|
+
.finish-block {
|
757
|
+
padding: 18px 24px 24px 24px;
|
758
|
+
|
759
|
+
.add-hosts-ready-to-complete-mt-12 {
|
760
|
+
margin-top: 12px;
|
761
|
+
|
762
|
+
.add-hosts-ready-to-complete-bold {
|
763
|
+
line-height: 18px;
|
764
|
+
font-weight: 700;
|
765
|
+
}
|
766
|
+
}
|
767
|
+
}
|
768
|
+
|
769
|
+
.vm-hardware-version {
|
770
|
+
align-self: flex-end;
|
771
|
+
margin-top: auto;
|
772
|
+
}
|
773
|
+
}
|
774
|
+
|
775
|
+
:deep(.modal .modal-dialog .modal-content .modal-footer) {
|
776
|
+
flex: unset;
|
777
|
+
height: unset;
|
778
|
+
min-height: unset;
|
779
|
+
}
|
780
|
+
:deep(.wizard-modal-titlebar h3) {
|
781
|
+
color: #000;
|
782
|
+
font-size: 24px;
|
783
|
+
font-weight: 200;
|
784
|
+
line-height: 27px;
|
785
|
+
margin: 0;
|
786
|
+
padding: 0;
|
787
|
+
}
|
788
|
+
:deep(.clr-wizard-stepnav-item) {
|
789
|
+
padding-left: 0;
|
790
|
+
}
|
791
|
+
:deep(.clr-wizard-stepnav
|
792
|
+
.clr-wizard-stepnav-item
|
793
|
+
button
|
794
|
+
.clr-wizard-stepnav-link-title) {
|
795
|
+
width: 189px;
|
796
|
+
font-weight: 700;
|
797
|
+
font-size: 13px;
|
798
|
+
}
|
799
|
+
|
800
|
+
#vm-wizard-notification {
|
801
|
+
h3 {
|
802
|
+
color: var(--global-font-color7);
|
803
|
+
margin-top: 6px;
|
804
|
+
}
|
805
|
+
p {
|
806
|
+
color: var(--global-font-color6);
|
807
|
+
line-height: 16px;
|
808
|
+
}
|
809
|
+
}
|
810
|
+
|
811
|
+
.power-on-by-default-wrap {
|
812
|
+
display: flex;
|
813
|
+
align-items: center;
|
814
|
+
|
815
|
+
input {
|
816
|
+
margin-right: 6px;
|
817
|
+
}
|
818
|
+
}
|
819
|
+
|
820
|
+
.new-task-form {
|
821
|
+
padding: 0 25px 0 5px;
|
822
|
+
}
|
823
|
+
</style>
|