bfg-common 1.6.95 → 1.6.97
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/.idea/inspectionProfiles/Project_Default.xml +3 -1
- package/assets/img/icons/icons-sprite-dark-5.svg +15 -2
- package/assets/img/icons/icons-sprite-light-5.svg +18 -5
- package/assets/localization/local_be.json +667 -51
- package/assets/localization/local_en.json +690 -73
- package/assets/localization/local_hy.json +670 -54
- package/assets/localization/local_kk.json +668 -52
- package/assets/localization/local_ru.json +704 -88
- package/assets/localization/local_zh.json +667 -51
- package/assets/scss/clarity/local_ar.json +12 -12
- package/assets/scss/common/global.scss +11 -0
- package/assets/scss/common/normalize.scss +3 -0
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +10 -8
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +1 -0
- package/components/atoms/list/dragDropList/DragDropList.vue +14 -10
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGrid.vue +4 -0
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +3 -0
- package/components/common/adapterManager/AdapterManagerNew.vue +128 -6
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +64 -31
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +3 -4
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +1 -0
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +10 -4
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +16 -1
- package/components/common/adapterManager/ui/table/TableNew.vue +3 -2
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +70 -36
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +5 -1
- package/components/common/certificate/Certificate.vue +16 -6
- package/components/common/certificate/Info/Info.vue +61 -0
- package/components/common/certificate/{CertificateInfo.vue → Info/Old.vue} +6 -28
- package/components/common/certificate/Info/new/New.vue +285 -0
- package/components/common/certificate/Info/new/lib/config/index.ts +59 -0
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +3 -0
- package/components/common/certificate/Info/new/lib/utils/index.ts +10 -0
- package/components/common/certificate/Old.vue +27 -0
- package/components/common/certificate/new/New.vue +30 -0
- package/components/common/certificate/new/Skeleton.vue +155 -0
- package/components/common/certificate/tools/New.vue +48 -0
- package/components/common/certificate/tools/Old.vue +39 -0
- package/components/common/certificate/{Tools.vue → tools/Tools.vue} +18 -23
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +20 -0
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +190 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +392 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +307 -0
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +106 -0
- package/components/common/configure/physicalAdapters/emptyBlock/EmptyBlock.vue +17 -0
- package/components/common/configure/physicalAdapters/emptyBlock/EmptyBlockNew.vue +37 -0
- package/components/common/configure/physicalAdapters/emptyBlock/EmptyBlockOld.vue +26 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +124 -0
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +232 -0
- package/components/common/configure/physicalAdapters/modals/edit/EditOld.vue +170 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/config/config.ts +59 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +17 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableView.vue +43 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +345 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewOld.vue +334 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfig.ts +177 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +191 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +129 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/tableKeys.ts +14 -0
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +33 -0
- package/components/common/configure/physicalAdapters/tableView/lib/models/types.ts +11 -0
- package/components/common/configure/physicalAdapters/tableView/mappers/mappers.ts +43 -0
- package/components/common/context/recursion/RecursionNew.vue +1 -2
- package/components/common/context/recursion/RecursionOld.vue +2 -2
- package/components/common/diagramMain/Diagram.vue +169 -85
- package/components/common/diagramMain/DiagramMain.vue +40 -10
- package/components/common/diagramMain/header/Header.vue +49 -0
- package/components/common/diagramMain/header/HeaderNew.vue +155 -0
- package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
- package/components/common/diagramMain/modals/Modals.vue +5 -5
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
- package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
- package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -110
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{SwitchProperties.vue → switchProperties/SwitchPropertiesOld.vue} +12 -89
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +9 -9
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
- package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +15 -15
- package/components/common/diagramMain/modals/lib/config/portModal.ts +12 -12
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +2 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdapters.vue +164 -0
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdaptersNew.vue +306 -0
- package/components/common/diagramMain/modals/{ManagePhysicalAdaptersModal.vue → managePhysicalAdapters/ManagePhysicalAdaptersOld.vue} +33 -119
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +3 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +8 -3
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +2 -2
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +67 -16
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +17 -0
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +3 -0
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +66 -20
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +8 -0
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/layout/theHeader/Old.vue +1 -5
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +16 -10
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +7 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +10 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +12 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Security.vue +48 -28
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/New.vue +20 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +11 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +12 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/modals/Rename.vue +3 -1
- package/components/common/modals/newFolder/new/Location.vue +21 -1
- package/components/common/monitor/advanced/Advanced.vue +8 -5
- package/components/common/monitor/advanced/AdvancedNew.vue +4 -2
- package/components/common/monitor/advanced/AdvancedOld.vue +8 -3
- package/components/common/monitor/advanced/table/lib/models/interfaces.ts +1 -0
- package/components/common/monitor/advanced/table/lib/models/types.ts +1 -4
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +1 -0
- package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +8 -38
- package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +5 -7
- package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +27 -31
- package/components/common/monitor/advanced/tools/Tools.vue +17 -13
- package/components/common/monitor/advanced/tools/ToolsNew.vue +4 -2
- package/components/common/monitor/advanced/tools/ToolsOld.vue +4 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +38 -18
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +99 -80
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +9 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +13 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +22 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersOld.vue +9 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +7 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1901 -493
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces.ts +5 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +9 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig.ts +4 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +3 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +14 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +22 -21
- package/components/common/monitor/advanced/tools/chartOptionsModal/lib/config/index.ts +2 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/lib/utils/checkSubmit.ts +11 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/MetricsNew.vue +2 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics.ts +34 -1
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +80 -11
- package/components/common/monitor/lib/utils/local_be.json +714 -0
- package/components/common/monitor/lib/utils/local_en.json +714 -0
- package/components/common/monitor/lib/utils/local_hy.json +714 -0
- package/components/common/monitor/lib/utils/local_kk.json +714 -0
- package/components/common/monitor/lib/utils/local_ru.json +714 -0
- package/components/common/monitor/lib/utils/local_zh.json +714 -0
- package/components/common/monitor/lib/utils/localization.ts +43 -0
- package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +3 -1
- package/components/common/monitor/utilization/Old.vue +120 -0
- package/components/common/monitor/utilization/Utilization.vue +65 -0
- package/components/common/monitor/utilization/infoBlock/InfoBlock.vue +146 -0
- package/components/common/monitor/utilization/infoBlock/New.vue +185 -0
- package/components/common/monitor/utilization/infoBlock/Old.vue +190 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/New.vue +64 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/Old.vue +65 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/ProgressBar.vue +84 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces.ts +10 -0
- package/components/common/monitor/utilization/lib/models/interfaces.ts +27 -0
- package/components/common/monitor/utilization/lib/models/types.ts +1 -0
- package/components/common/monitor/utilization/lib/utils/index.ts +112 -0
- package/components/common/monitor/utilization/new/New.vue +195 -0
- package/components/common/monitor/utilization/new/Portlet.vue +42 -0
- package/components/common/monitor/utilization/new/Skeleton.vue +120 -0
- package/components/common/monitor/utilization/new/lib/utils/newPortlet.ts +7 -0
- package/components/common/noDataProvided/NoDataProvided.vue +17 -0
- package/components/common/noDataProvided/NoDataProvidedNew.vue +66 -0
- package/components/common/noDataProvided/NoDataProvidedOld.vue +18 -0
- package/components/common/pages/auth/TheFooter.vue +9 -0
- package/components/common/pages/backups/lib/models/interfaces.ts +1 -0
- package/components/common/pages/backups/modals/Modals.vue +1 -0
- package/components/common/pages/backups/modals/createBackup/New.vue +4 -0
- package/components/common/pages/backups/modals/createBackup/Old.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/TableView.vue +0 -1
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/lib/config/table.ts +1 -1
- package/components/common/pages/backups/modals/createBackup/general/General.vue +1 -0
- package/components/common/pages/backups/modals/createBackup/general/GeneralNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/general/GeneralOld.vue +59 -9
- package/components/common/pages/backups/modals/lib/config/restore.ts +1 -0
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +1 -0
- package/components/common/pages/backups/modals/restore/New.vue +40 -35
- package/components/common/pages/backups/modals/restore/Restore.vue +4 -5
- package/components/common/pages/backups/modals/restore/disks/tableView/new/Table.vue +6 -1
- package/components/common/pages/backups/modals/restore/disks/tableView/new/lib/config/table.ts +1 -0
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +1 -1
- package/components/common/pages/backups/modals/restore/name/NameNew.vue +3 -0
- package/components/common/pages/backups/modals/restore/networks/table/new/Table.vue +7 -0
- package/components/common/pages/hardwareHealth/HardwareHealth.vue +69 -148
- package/components/common/pages/hardwareHealth/HardwareHealthNew.vue +252 -0
- package/components/common/pages/hardwareHealth/HardwareHealthOld.vue +192 -0
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +204 -251
- package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +211 -0
- package/components/common/pages/hardwareHealth/historyTestimony/GraphOld.vue +212 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +96 -248
- package/components/common/pages/hardwareHealth/historyTestimony/tools/ToolsNew.vue +227 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/ToolsOld.vue +289 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +110 -112
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModalNew.vue +173 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModalOld.vue +168 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/NotificationNew.vue +22 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +34 -55
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +145 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsOld.vue +81 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/{SaveOptionsModal.vue → saveOptionsModal/SaveOptionsModal.vue} +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +70 -49
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/CountersNew.vue +108 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/CountersOld.vue +93 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/Table.vue +25 -78
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/lib/models/interfaces.ts +13 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +58 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/lib/config/options.ts +19 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/lib/config/tableData.ts +73 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/lib/utils/constructTable.ts +31 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableOld/TableOld.vue +103 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/{lib → tableOld/lib}/config/tableConfig.ts +3 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +50 -33
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +177 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +65 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/Metrics.vue +15 -9
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/MetricsNew.vue +121 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/MetricsOld.vue +22 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +68 -5
- package/components/common/pages/hardwareHealth/indicators/Indicators.vue +96 -0
- package/components/common/pages/hardwareHealth/indicators/lib/models/interfaces.ts +5 -0
- package/components/common/pages/hardwareHealth/lib/config/status.ts +14 -0
- package/components/common/pages/hardwareHealth/lib/config/tabsPannel.ts +38 -0
- package/components/common/pages/hardwareHealth/lib/models/enums.ts +1 -1
- package/components/common/pages/hardwareHealth/tableView/new/New.vue +230 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/alertWarningTable.ts +99 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/historyTestimonyTable.ts +126 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/sensorTable.ts +164 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/storageSensorsTable.ts +88 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/systemLogTable.ts +74 -0
- package/components/common/pages/hardwareHealth/tableView/{TableView.vue → old/Old.vue} +16 -7
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/alertWarningTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/historyTestimonyTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/sensorTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/storageSensorTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/systemLogTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/tableKeys.ts +1 -1
- package/components/common/pages/hardwareHealth/tableView/{modal → old/modal}/SensorWarning.vue +3 -0
- package/components/common/pages/hardwareHealth/tooltip/Tooltip.vue +73 -0
- package/components/common/pages/licensing/listView/lib/config/list.ts +1 -1
- package/components/common/pages/scheduledTasks/lib/models/interfaces.ts +6 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/Frequency.vue +51 -42
- package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/AfterStartup.vue +20 -48
- package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/New.vue +73 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/Old.vue +65 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/end/End.vue +18 -69
- package/components/common/pages/scheduledTasks/modals/common/frequency/end/New.vue +104 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/end/Old.vue +112 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/interval/Interval.vue +22 -53
- package/components/common/pages/scheduledTasks/modals/common/frequency/interval/New.vue +79 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/interval/Old.vue +68 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/lib/utils.ts +1 -1
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/New.vue +170 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/Old.vue +234 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/On.vue +30 -168
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/lib/config/options.ts +17 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/New.vue +66 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/Old.vue +44 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/SelectWeek.vue +17 -28
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/lib/config/weekOptions.ts +20 -50
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/New.vue +83 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/Old.vue +77 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/StartOn.vue +20 -51
- package/components/common/pages/scheduledTasks/modals/common/taskForm/New.vue +338 -0
- package/components/common/pages/scheduledTasks/modals/common/{newTaskForm/NewTaskForm.vue → taskForm/Old.vue} +12 -69
- package/components/common/pages/scheduledTasks/modals/common/taskForm/TaskForm.vue +129 -0
- package/components/common/pages/scheduledTasks/table/Table.vue +27 -81
- package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +2 -2
- package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +47 -17
- package/components/common/pages/scheduledTasks/table/expandDetails/Old.vue +4 -9
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/HistoryRun.vue +16 -54
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/new/New.vue +146 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/new/lib/config/historyRunsTable.ts +161 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/old/Old.vue +68 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/{lib → old/lib}/config/historyRunsTable.ts +4 -4
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/{lib → old/lib}/config/tableKeys.ts +1 -1
- package/components/common/pages/scheduledTasks/table/expandDetails/lib/config/expandDetails.ts +7 -5
- package/components/common/pages/scheduledTasks/table/expandDetails/lib/models/interfaces.ts +8 -0
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +13 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +318 -0
- package/components/common/pages/scheduledTasks/table/new/lib/config/scheduledTasksTable.ts +192 -0
- package/components/common/pages/scheduledTasks/table/new/lib/models/enums.ts +14 -0
- package/components/common/pages/scheduledTasks/table/old/Old.vue +93 -0
- package/components/common/pages/scheduledTasks/table/{lib → old/lib}/config/scheduledTasksTable.ts +13 -9
- package/components/common/pages/scheduledTasks/table/{lib → old/lib}/config/tableKeys.ts +1 -1
- package/components/common/pages/shortcuts/Shortcuts.vue +1 -1
- package/components/common/pages/shortcuts/category/CategoryNew.vue +1 -0
- package/components/common/pages/shortcuts/category/CategoryOld.vue +1 -0
- package/components/common/pages/shortcuts/lib/models/interfaces.ts +2 -0
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +25 -23
- package/components/common/readyToComplete/New.vue +1 -0
- package/components/common/spiceConsole/SpiceConsole.vue +38 -0
- package/components/common/spiceConsole/keyboard/Keyboard.vue +5 -2
- package/components/common/split/horizontal/New.vue +6 -3
- package/components/common/split/horizontal/Old.vue +1 -1
- package/components/common/split/vertical/New.vue +42 -8
- package/components/common/split/vertical/Old.vue +31 -2
- package/components/common/split/vertical/Vertical.vue +4 -0
- package/components/common/tools/Actions.vue +8 -3
- package/components/common/tools/lib/models/interfaces.ts +2 -0
- package/components/common/tooltip/Help.vue +28 -28
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/clone/Clone.vue +78 -68
- package/components/common/vm/actions/clone/lib/config/steps.ts +8 -8
- package/components/common/vm/actions/clone/new/New.vue +71 -36
- package/components/common/vm/actions/clone/new/SkeletonName.vue +22 -0
- package/components/common/vm/actions/clone/old/Old.vue +10 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/New.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/Old.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +30 -9
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +7 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Old.vue +6 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocket.vue +29 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +3 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/lib/config/options.ts +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +12 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/New.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Old.vue +6 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +6 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +9 -12
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +11 -3
- package/components/common/vm/actions/common/select/createType/lib/config/items.ts +1 -1
- package/components/common/vm/actions/common/select/options/New.vue +56 -48
- package/components/common/vm/actions/common/select/options/Old.vue +42 -24
- package/components/common/vm/actions/common/select/options/Options.vue +33 -2
- package/components/common/vm/actions/common/select/storage/Old.vue +0 -1
- package/components/common/vm/actions/common/select/storage/Storage.vue +2 -3
- package/components/common/vm/actions/common/select/storage/new/New.vue +13 -10
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
- package/components/common/vm/actions/confirm/Confirm.vue +3 -0
- package/components/common/vm/actions/consolidate/New.vue +1 -1
- package/components/common/vm/actions/consolidate/Old.vue +2 -2
- package/components/common/vm/actions/editSettings/EditSettings.vue +20 -1
- package/components/common/vm/actions/register/New.vue +55 -27
- package/components/common/vm/actions/register/lib/config/steps.ts +1 -1
- package/components/common/vm/actions/rename/New.vue +11 -1
- package/components/common/vm/actions/rename/Old.vue +1 -0
- package/components/common/vm/actions/rename/Rename.vue +6 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/vm/snapshots/lib/models/types.ts +1 -0
- package/components/common/vm/snapshots/modals/confirm/New.vue +3 -2
- package/components/common/vm/snapshots/modals/confirm/Old.vue +3 -3
- package/components/common/vm/snapshots/modals/confirm/lib/models/enums.ts +2 -0
- package/components/common/vm/snapshots/modals/lib/config/modalTexts.ts +1 -0
- package/components/common/wizards/common/steps/name/New.vue +56 -35
- package/components/common/wizards/datastore/add/New.vue +6 -0
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/_vmfsVersion/lib/config/versionOptions.ts +2 -2
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +60 -42
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/AdvancedOptions.vue +7 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +53 -76
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/Old.vue +13 -61
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/lib/config/raidOptions.ts +35 -0
- package/components/common/wizards/network/add/Add.vue +99 -109
- package/components/common/wizards/network/add/AddNew.vue +50 -21
- package/components/common/wizards/network/add/AddOld.vue +2 -2
- package/components/common/wizards/network/add/lib/config/config.ts +1 -1
- package/components/common/wizards/network/add/lib/config/initialData.ts +23 -9
- package/components/common/wizards/network/add/lib/config/selectSwitch.ts +5 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +4 -2
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +8 -3
- package/components/common/wizards/network/add/mappers/mappers.ts +12 -5
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettings.vue +19 -13
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsNew.vue +10 -2
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +11 -4
- package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitch.vue +8 -26
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettings.vue +25 -16
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +84 -17
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +13 -9
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +29 -5
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +8 -3
- package/components/common/wizards/network/add/steps/readyComplete/ReadyComplete.vue +8 -6
- package/components/common/wizards/network/add/steps/readyComplete/ReadyCompleteNew.vue +16 -7
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +7 -8
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeNew.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +11 -12
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +89 -19
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +8 -9
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +8 -9
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +9 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +21 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectStandardSwitch.vue +18 -1
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +18 -1
- package/components/common/wizards/network/add/validations/common.ts +8 -3
- package/components/common/wizards/network/add/validations/connectionSettings.ts +2 -2
- package/components/common/wizards/network/add/validations/networkValidation.ts +2 -2
- package/components/common/wizards/network/add/validations/portProperties.ts +2 -2
- package/components/common/wizards/vm/migrate/New.vue +15 -4
- package/components/common/wizards/vm/migrate/Old.vue +1 -1
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/ComputeResource.vue +30 -9
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/Old.vue +0 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
- package/composables/useLocalStorage.ts +1 -1
- package/lib/models/interfaces.ts +3 -0
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/lib/utils/validation.ts +3 -2
- package/package.json +3 -3
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/WorkerProcess.js +411 -303
- package/public/spice-console/application/agent.js +18 -17
- package/public/spice-console/application/application.js +7 -6
- package/public/spice-console/lib/graphic.js +55 -11
- package/public/spice-console/process/mainprocess.js +10 -2
- package/public/spice-console/run.js +19 -8
- package/public/spice-console-minify/WorkerProcess.min.js +1 -1
- package/public/spice-console-minify/run.min.js +1 -1
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
- package/components/common/certificate/lib/config/tabsPannel.ts +0 -22
- package/components/common/pages/scheduledTasks/table/lib/config/schedulerStatus.ts +0 -4
- package/components/common/pages/scheduledTasks/table/lib/models/interfaces.ts +0 -11
- /package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/{Notification.vue → NotificationOld.vue} +0 -0
- /package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/{lib → tableOld/lib}/models/types.ts +0 -0
- /package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/models/interfaces.ts +0 -0
- /package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/models/types.ts +0 -0
- /package/components/common/pages/scheduledTasks/modals/common/{newTaskForm → taskForm}/lib/models/interfaces.ts +0 -0
- /package/components/common/pages/scheduledTasks/modals/common/{newTaskForm → taskForm}/lib/utils.ts +0 -0
- /package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/{lib → old/lib}/models/types.ts +0 -0
- /package/components/common/pages/scheduledTasks/table/{lib → old/lib}/models/types.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="currentComponent"
|
|
4
|
-
v-model:cd-dvd-media="
|
|
4
|
+
v-model:cd-dvd-media="localCdDvdMedia"
|
|
5
5
|
:index="props.index"
|
|
6
6
|
@browse="emits('browse')"
|
|
7
7
|
/>
|
|
@@ -24,6 +24,19 @@ const currentComponent = computed(() =>
|
|
|
24
24
|
? defineAsyncComponent(() => import('./New.vue'))
|
|
25
25
|
: defineAsyncComponent(() => import('./Old.vue'))
|
|
26
26
|
)
|
|
27
|
+
|
|
28
|
+
const localCdDvdMedia = ref<string>('')
|
|
29
|
+
|
|
30
|
+
watch(cdDvdMedia, (newValue) => {
|
|
31
|
+
localCdDvdMedia.value = newValue.replace(/^([^:]+):\//, '[$1]:/')
|
|
32
|
+
}, { immediate: true })
|
|
33
|
+
|
|
34
|
+
watch(localCdDvdMedia, (newValue) => {
|
|
35
|
+
const cleaned = newValue.replace(/^\[([^\]]+)\]:\//, '$1:/')
|
|
36
|
+
if (cleaned !== cdDvdMedia.value) {
|
|
37
|
+
cdDvdMedia.value = cleaned
|
|
38
|
+
}
|
|
39
|
+
})
|
|
27
40
|
</script>
|
|
28
41
|
|
|
29
42
|
<style scoped></style>
|
|
@@ -56,6 +56,11 @@ const emits = defineEmits<{
|
|
|
56
56
|
}>()
|
|
57
57
|
|
|
58
58
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
59
|
+
|
|
60
|
+
onMounted(() => {
|
|
61
|
+
const cdDvdMediaInputElement = document.getElementById('vm-wizard-dvd-media-input')
|
|
62
|
+
cdDvdMediaInputElement?.classList.remove('text-ellipsis')
|
|
63
|
+
})
|
|
59
64
|
</script>
|
|
60
65
|
|
|
61
66
|
<style>
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<component
|
|
3
3
|
:is="currentComponent"
|
|
4
4
|
v-model="model"
|
|
5
|
+
v-model:vcpus="vcpus"
|
|
5
6
|
v-model:reservation="reservation"
|
|
6
7
|
v-model:reservation-type="reservationType"
|
|
7
8
|
v-model:limit="limit"
|
|
@@ -56,7 +57,7 @@ const props = withDefaults(
|
|
|
56
57
|
}>(),
|
|
57
58
|
{
|
|
58
59
|
state: undefined,
|
|
59
|
-
nums: null
|
|
60
|
+
nums: null,
|
|
60
61
|
}
|
|
61
62
|
)
|
|
62
63
|
const emits = defineEmits<{
|
|
@@ -74,18 +75,26 @@ const currentComponent = computed(() =>
|
|
|
74
75
|
|
|
75
76
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
76
77
|
|
|
78
|
+
const isRunning = computed<boolean>(() => {
|
|
79
|
+
return props.state === 2
|
|
80
|
+
})
|
|
81
|
+
|
|
77
82
|
// props.state === 2 => is run
|
|
78
|
-
if (props.state !== 2) {
|
|
79
|
-
|
|
80
|
-
}
|
|
83
|
+
// if (props.state !== 2) {
|
|
84
|
+
// model.value.cpu.max_vcpus = capabilities.value.maxCpus
|
|
85
|
+
// }
|
|
81
86
|
|
|
82
87
|
const isDisabled = computed<boolean>(() => {
|
|
83
88
|
return props.state === 2
|
|
84
89
|
})
|
|
85
90
|
|
|
86
|
-
const cpuOptions = computed<UI_I_OptionItem[]>(() =>
|
|
87
|
-
|
|
88
|
-
|
|
91
|
+
const cpuOptions = computed<UI_I_OptionItem[]>(() => {
|
|
92
|
+
const minCpu = isRunning.value ? model.value.cpu.vcpus : 1
|
|
93
|
+
const maxCpu = model.value.cpu.hotplug
|
|
94
|
+
? model.value.cpu.max_vcpus
|
|
95
|
+
: capabilities.value.maxCpus
|
|
96
|
+
return cpuOptionsFunc(localization.value, minCpu, maxCpu)
|
|
97
|
+
})
|
|
89
98
|
|
|
90
99
|
// const enableCpuHotAdd = ref<boolean>(false)
|
|
91
100
|
|
|
@@ -99,7 +108,8 @@ watch(
|
|
|
99
108
|
if (newValue) {
|
|
100
109
|
model.value.cpu.max_vcpus = Math.max(
|
|
101
110
|
model.value.cpu.vcpus,
|
|
102
|
-
model.value.cpu.max_vcpus
|
|
111
|
+
// model.value.cpu.max_vcpus
|
|
112
|
+
capabilities.value.maxCpus
|
|
103
113
|
)
|
|
104
114
|
return
|
|
105
115
|
}
|
|
@@ -138,7 +148,8 @@ const maxCpuOptions = computed<UI_I_OptionItem[]>(() =>
|
|
|
138
148
|
cpuOptionsFunc(
|
|
139
149
|
localization.value,
|
|
140
150
|
model.value.cpu.vcpus,
|
|
141
|
-
model.value.cpu.max_vcpus
|
|
151
|
+
// model.value.cpu.max_vcpus
|
|
152
|
+
capabilities.value.maxCpus
|
|
142
153
|
)
|
|
143
154
|
)
|
|
144
155
|
// const selectedMaxCpu = ref<number>(1)
|
|
@@ -218,6 +229,16 @@ watch(
|
|
|
218
229
|
{ immediate: true }
|
|
219
230
|
)
|
|
220
231
|
|
|
232
|
+
const vcpus = computed<number>({
|
|
233
|
+
get() {
|
|
234
|
+
return model.value.cpu.vcpus
|
|
235
|
+
},
|
|
236
|
+
set(newValue) {
|
|
237
|
+
const valueInt = +newValue
|
|
238
|
+
model.value.cpu.vcpus = isNaN(valueInt) ? 0 : valueInt
|
|
239
|
+
},
|
|
240
|
+
})
|
|
241
|
+
|
|
221
242
|
const reservation = ref<string>('1')
|
|
222
243
|
const reservationType = ref<string>('mhz')
|
|
223
244
|
if (model.value.cpu.reservation_mhz !== 1) {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<template #stackBlockContent>
|
|
25
25
|
<div class="flex-align-center flex-space-between">
|
|
26
26
|
<ui-combobox
|
|
27
|
-
v-model.number="
|
|
27
|
+
v-model.number="vcpus"
|
|
28
28
|
:items="props.cpuOptions"
|
|
29
29
|
:disabled="props.isCpuDisabled"
|
|
30
30
|
:error-text="props.vcpusLocalAndApiErrorsTexts"
|
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
v-model:reservation-type="reservationType"
|
|
97
97
|
:error-validation-fields="props.errorValidationFields"
|
|
98
98
|
:disabled="props.isDisabled"
|
|
99
|
+
:max="4_794"
|
|
100
|
+
:min="0"
|
|
99
101
|
type="mhz"
|
|
100
102
|
component-type="cpu"
|
|
101
103
|
@invalid="emits('reservation-invalid', $event)"
|
|
@@ -106,6 +108,7 @@
|
|
|
106
108
|
v-model:limit-type="limitType"
|
|
107
109
|
:error-validation-fields="props.errorValidationFields"
|
|
108
110
|
:disabled="props.isDisabled"
|
|
111
|
+
:min="model.cpu.reservation_mhz"
|
|
109
112
|
type="mhz"
|
|
110
113
|
component-type="cpu"
|
|
111
114
|
@invalid="emits('limit-invalid', $event)"
|
|
@@ -157,6 +160,7 @@ import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/li
|
|
|
157
160
|
|
|
158
161
|
const model = defineModel<UI_I_CreateVmData>({ required: true })
|
|
159
162
|
|
|
163
|
+
const vcpus = defineModel<string>('vcpus', { required: true })
|
|
160
164
|
const reservation = defineModel<string>('reservation', { required: true })
|
|
161
165
|
const reservationType = defineModel<string>('reservationType', {
|
|
162
166
|
required: true,
|
|
@@ -193,7 +197,7 @@ const props = withDefaults(
|
|
|
193
197
|
}>(),
|
|
194
198
|
{
|
|
195
199
|
vmCpuHelpTextSecond: undefined,
|
|
196
|
-
nums: null
|
|
200
|
+
nums: null,
|
|
197
201
|
}
|
|
198
202
|
)
|
|
199
203
|
const emits = defineEmits<{
|
|
@@ -238,6 +242,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
238
242
|
.cpu-info-block {
|
|
239
243
|
:deep(.help-text) {
|
|
240
244
|
margin-bottom: 12px;
|
|
245
|
+
color: var(--stack-block-text-color);
|
|
241
246
|
}
|
|
242
247
|
:deep(.cpu-more-info) {
|
|
243
248
|
font-size: 13px;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<template #elem>
|
|
29
29
|
<atoms-combobox
|
|
30
30
|
id="vm-wizard-vcpus-field"
|
|
31
|
-
v-model.number="
|
|
31
|
+
v-model.number="vcpus"
|
|
32
32
|
:items="props.cpuOptions"
|
|
33
33
|
:disabled="props.isCpuDisabled"
|
|
34
34
|
class="input-text-color"
|
|
@@ -74,6 +74,8 @@
|
|
|
74
74
|
v-model:reservation-type="reservationType"
|
|
75
75
|
:error-validation-fields="props.errorValidationFields"
|
|
76
76
|
:disabled="props.isDisabled"
|
|
77
|
+
:max="4794"
|
|
78
|
+
:min="0"
|
|
77
79
|
type="mhz"
|
|
78
80
|
component-type="cpu"
|
|
79
81
|
@invalid="emits('reservation-invalid', $event)"
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
v-model:limit-type="limitType"
|
|
85
87
|
:error-validation-fields="props.errorValidationFields"
|
|
86
88
|
:disabled="props.isDisabled"
|
|
89
|
+
:min="model.cpu.reservation_mhz"
|
|
87
90
|
type="mhz"
|
|
88
91
|
component-type="cpu"
|
|
89
92
|
@invalid="emits('limit-invalid', $event)"
|
|
@@ -136,6 +139,7 @@ import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/li
|
|
|
136
139
|
|
|
137
140
|
const model = defineModel<UI_I_CreateVmData>({ required: true })
|
|
138
141
|
|
|
142
|
+
const vcpus = defineModel<string>('vcpus', { required: true })
|
|
139
143
|
const reservation = defineModel<string>('reservation', { required: true })
|
|
140
144
|
const reservationType = defineModel<string>('reservationType', {
|
|
141
145
|
required: true,
|
|
@@ -172,7 +176,7 @@ const props = withDefaults(
|
|
|
172
176
|
}>(),
|
|
173
177
|
{
|
|
174
178
|
vmCpuHelpTextSecond: undefined,
|
|
175
|
-
nums: null
|
|
179
|
+
nums: null,
|
|
176
180
|
}
|
|
177
181
|
)
|
|
178
182
|
const emits = defineEmits<{
|
|
@@ -43,14 +43,29 @@ const apiError = computed<string>(() => {
|
|
|
43
43
|
)
|
|
44
44
|
})
|
|
45
45
|
|
|
46
|
+
// const socketOptions = computed<number[]>(() => {
|
|
47
|
+
// const result = []
|
|
48
|
+
// const cpus = props.cpuOptions[1].value
|
|
49
|
+
// for (let i = 1; i <= cpus; i++) {
|
|
50
|
+
// const isCommonDivisor = props.selectedCpus.every(
|
|
51
|
+
// (cpu) => i <= cpu && (cpu % i === 0 || i === 1)
|
|
52
|
+
// )
|
|
53
|
+
// if (isCommonDivisor || props.disabled) {
|
|
54
|
+
// result.push(i)
|
|
55
|
+
// }
|
|
56
|
+
// }
|
|
57
|
+
// return result
|
|
58
|
+
// })
|
|
59
|
+
|
|
60
|
+
// SC-SELF mm Procurator[QA] 07.04.26 https://mm.aobfg.ru/bfg-jsc/pl/b83uo8msa3fdtmb4bhebw8ebpe
|
|
46
61
|
const socketOptions = computed<number[]>(() => {
|
|
47
62
|
const result = []
|
|
48
|
-
const cpus = props.
|
|
63
|
+
const cpus = props.selectedCpus[0]
|
|
49
64
|
for (let i = 1; i <= cpus; i++) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
65
|
+
if (
|
|
66
|
+
i <= props.selectedCpus[0] &&
|
|
67
|
+
(props.selectedCpus[0] % i === 0 || i === 1)
|
|
68
|
+
) {
|
|
54
69
|
result.push(i)
|
|
55
70
|
}
|
|
56
71
|
}
|
|
@@ -60,8 +75,15 @@ watch(
|
|
|
60
75
|
socketOptions,
|
|
61
76
|
() => {
|
|
62
77
|
// !socketOptions.value.includes(selectedCorePerSocketLocal.value) &&
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
|
|
79
|
+
// !props.disabled &&
|
|
80
|
+
// (selectedCorePerSocketLocal.value = socketOptions.value.at(-1) || 1)
|
|
81
|
+
const hasSelected = socketOptions.value.some(
|
|
82
|
+
(value) => value === selectedCorePerSocketLocal.value
|
|
83
|
+
)
|
|
84
|
+
if (!hasSelected) {
|
|
85
|
+
selectedCorePerSocketLocal.value = socketOptions.value.at(-1) || 1
|
|
86
|
+
}
|
|
65
87
|
},
|
|
66
88
|
{ deep: true }
|
|
67
89
|
)
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue
CHANGED
|
@@ -56,7 +56,8 @@ const apiErrorLocal = computed<string>(() => {
|
|
|
56
56
|
)
|
|
57
57
|
})
|
|
58
58
|
|
|
59
|
-
const maxShares = 262_144
|
|
59
|
+
// const maxShares = 262_144
|
|
60
|
+
const maxShares = 10_000 // SC-1268 Так как бэк ругается когда больше 10 000
|
|
60
61
|
const sharesOptions = computed<UI_I_OptionItem[]>(() => {
|
|
61
62
|
return sharesOptionsFunc(localization.value, maxShares)
|
|
62
63
|
})
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue
CHANGED
|
@@ -26,9 +26,10 @@ const props = withDefaults(
|
|
|
26
26
|
defineProps<{
|
|
27
27
|
limit: string
|
|
28
28
|
limitType: string
|
|
29
|
+
min: number
|
|
29
30
|
type: 'mb' | 'mhz'
|
|
30
31
|
componentType: string
|
|
31
|
-
errorValidationFields: UI_I_ErrorValidationField
|
|
32
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
32
33
|
disabled?: boolean
|
|
33
34
|
limitOptions?: UI_I_OptionItem[]
|
|
34
35
|
multiply?: number
|
|
@@ -70,7 +71,7 @@ const binaryKeys: [string, string] =
|
|
|
70
71
|
props.type === 'mb' ? ['mb', 'gb'] : ['mhz', 'ghz']
|
|
71
72
|
|
|
72
73
|
const limitOptionsLocal = computed<UI_I_OptionItem[]>(
|
|
73
|
-
() => props.limitOptions || limitOptionsFunc(localization.value, binaryKeys)
|
|
74
|
+
() => props.limitOptions || limitOptionsFunc(localization.value, binaryKeys, props.min)
|
|
74
75
|
)
|
|
75
76
|
const limitTypeOptions = ref<UI_I_OptionItem[]>(
|
|
76
77
|
limitTypeOptionsFunc(localization.value, binaryKeys)
|
|
@@ -3,12 +3,15 @@ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
|
3
3
|
|
|
4
4
|
export const limitOptionsFunc = (
|
|
5
5
|
localization: UI_I_Localization,
|
|
6
|
-
binaryKeys: [string, string]
|
|
6
|
+
binaryKeys: [string, string],
|
|
7
|
+
min: number
|
|
7
8
|
): UI_I_OptionItem[] => {
|
|
8
|
-
const min = binaryKeys[0] === 'mb' ? 2 : 1
|
|
9
|
+
// const min = binaryKeys[0] === 'mb' ? 2 : 1
|
|
9
10
|
return [
|
|
10
11
|
{
|
|
11
|
-
text: `${localization.common.minimum}: ${min} ${
|
|
12
|
+
text: `${localization.common.minimum}: ${min} ${
|
|
13
|
+
localization.common[binaryKeys[0]]
|
|
14
|
+
}`,
|
|
12
15
|
value: { value: min, type: binaryKeys[0] },
|
|
13
16
|
},
|
|
14
17
|
{
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<div>
|
|
4
4
|
<component
|
|
5
5
|
:is="currentComponent"
|
|
6
|
+
v-model="model"
|
|
6
7
|
v-model:selected-memory="selectedMemory"
|
|
7
8
|
v-model:memory-type="memoryType"
|
|
8
9
|
v-model:reservation="reservation"
|
|
@@ -231,6 +232,17 @@ watch(limit, (newValue) => {
|
|
|
231
232
|
limit.value !== 'Unlimited' &&
|
|
232
233
|
(limit.value = isNaN(valueInt) ? '0' : '' + valueInt)
|
|
233
234
|
})
|
|
235
|
+
|
|
236
|
+
watch(
|
|
237
|
+
() => model.value.memory.hotplug,
|
|
238
|
+
(newValue) => {
|
|
239
|
+
if (newValue && limit.value === 'Unlimited') {
|
|
240
|
+
limit.value = '' + selectedMemory.value
|
|
241
|
+
limitType.value = memoryType.value
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
|
|
234
246
|
const limitType = ref<string>('mb')
|
|
235
247
|
const limitOptions = computed<UI_I_OptionItem[] | undefined>(() => {
|
|
236
248
|
if (model.value.memory.hotplug)
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/New.vue
CHANGED
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
:error-validation-fields="props.errorValidationFields"
|
|
54
54
|
:multiply="2"
|
|
55
55
|
:disabled="props.isDisabled"
|
|
56
|
+
:max="model.memory.size_mb"
|
|
57
|
+
:min="0"
|
|
56
58
|
component-type="memory"
|
|
57
59
|
type="mb"
|
|
58
60
|
class="memory-reservation"
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
:limit-options="props.limitOptions"
|
|
67
69
|
:multiply="2"
|
|
68
70
|
:disabled="isDisabled"
|
|
71
|
+
:min="model.memory.reservation_mb"
|
|
69
72
|
type="mb"
|
|
70
73
|
component-type="memory"
|
|
71
74
|
class="memory-limit"
|
|
@@ -84,7 +87,9 @@
|
|
|
84
87
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
85
88
|
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
86
89
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
90
|
+
import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
87
91
|
|
|
92
|
+
const model = defineModel<UI_I_CreateVmData>({ required: true })
|
|
88
93
|
const selectedMemory = defineModel<number>('selectedMemory', {
|
|
89
94
|
required: true,
|
|
90
95
|
})
|
|
@@ -124,7 +129,7 @@ const props = defineProps<{
|
|
|
124
129
|
isMemoryDisabled: boolean
|
|
125
130
|
memoryTypeOptions: UI_I_OptionItem[]
|
|
126
131
|
isDisabled: boolean
|
|
127
|
-
limitOptions: UI_I_OptionItem[]
|
|
132
|
+
limitOptions: UI_I_OptionItem[] | undefined
|
|
128
133
|
isDisabledMemoryHotPlug: boolean
|
|
129
134
|
}>()
|
|
130
135
|
const emits = defineEmits<{
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Old.vue
CHANGED
|
@@ -67,6 +67,8 @@
|
|
|
67
67
|
:error-validation-fields="props.errorValidationFields"
|
|
68
68
|
:multiply="2"
|
|
69
69
|
:disabled="props.isDisabled"
|
|
70
|
+
:max="model.memory.size_mb"
|
|
71
|
+
:min="0"
|
|
70
72
|
component-type="memory"
|
|
71
73
|
type="mb"
|
|
72
74
|
class="memory-reservation"
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
:limit-options="props.limitOptions"
|
|
81
83
|
:multiply="2"
|
|
82
84
|
:disabled="isDisabled"
|
|
85
|
+
:min="model.memory.reservation_mb"
|
|
83
86
|
type="mb"
|
|
84
87
|
component-type="memory"
|
|
85
88
|
class="memory-limit"
|
|
@@ -99,7 +102,9 @@
|
|
|
99
102
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
100
103
|
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
101
104
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
105
|
+
import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
102
106
|
|
|
107
|
+
const model = defineModel<UI_I_CreateVmData>({ required: true })
|
|
103
108
|
const selectedMemory = defineModel<number>('selectedMemory', {
|
|
104
109
|
required: true,
|
|
105
110
|
})
|
|
@@ -139,7 +144,7 @@ const props = defineProps<{
|
|
|
139
144
|
isMemoryDisabled: boolean
|
|
140
145
|
memoryTypeOptions: UI_I_OptionItem[]
|
|
141
146
|
isDisabled: boolean
|
|
142
|
-
limitOptions: UI_I_OptionItem[]
|
|
147
|
+
limitOptions: UI_I_OptionItem[] | undefined
|
|
143
148
|
isDisabledMemoryHotPlug: boolean
|
|
144
149
|
}>()
|
|
145
150
|
const emits = defineEmits<{
|
|
@@ -149,7 +154,6 @@ const emits = defineEmits<{
|
|
|
149
154
|
}>()
|
|
150
155
|
|
|
151
156
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
152
|
-
|
|
153
157
|
</script>
|
|
154
158
|
|
|
155
159
|
<style scoped lang="scss"></style>
|
|
@@ -306,15 +306,17 @@ const isDisabledProvisioning = computed<boolean>(() => {
|
|
|
306
306
|
const isDisabledSharing = computed<boolean>(() => {
|
|
307
307
|
return isRunning.value && !isNewHardDisk.value
|
|
308
308
|
})
|
|
309
|
-
const isDisabledLimitIops =
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
const isDisabledLimitIops = ref<boolean>(false)
|
|
310
|
+
// const isDisabledLimitIops = computed<boolean>(() => {
|
|
311
|
+
// return isRunning.value && !isNewHardDisk.value
|
|
312
|
+
// })
|
|
312
313
|
const isDisabledMode = computed<boolean>(() => {
|
|
313
314
|
return isRunning.value && !isNewHardDisk.value
|
|
314
315
|
})
|
|
315
316
|
const isDisabledCache = computed<boolean>(() => {
|
|
316
317
|
if (isNewHardDisk.value) return false
|
|
317
|
-
return props.isEdit || isRunning.value
|
|
318
|
+
// return props.isEdit || isRunning.value
|
|
319
|
+
return isRunning.value
|
|
318
320
|
})
|
|
319
321
|
const isDisabledBus = computed<boolean>(() => {
|
|
320
322
|
return !isNewHardDisk.value && isRunning.value
|
|
@@ -30,6 +30,8 @@ const props = withDefaults(
|
|
|
30
30
|
type: 'mb' | 'mhz'
|
|
31
31
|
componentType: string
|
|
32
32
|
errorValidationFields: UI_I_ErrorValidationField[]
|
|
33
|
+
max: number
|
|
34
|
+
min: number
|
|
33
35
|
disabled?: boolean
|
|
34
36
|
reserveGuestMemory?: boolean
|
|
35
37
|
multiply?: number
|
|
@@ -60,21 +62,16 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
60
62
|
const binaryKeys: [string, string] =
|
|
61
63
|
props.type === 'mb' ? ['mb', 'gb'] : ['mhz', 'ghz']
|
|
62
64
|
|
|
63
|
-
const minReservation = props.type === 'mb' ? 2 : 0
|
|
64
|
-
const maxReservation = props.type === 'mb' ? 16384 : 4794
|
|
65
|
+
// const minReservation = props.type === 'mb' ? 2 : 0
|
|
66
|
+
// const maxReservation = props.type === 'mb' ? 16384 : 4794
|
|
65
67
|
const reservationOptions = computed<UI_I_OptionItem[]>(() => {
|
|
66
68
|
const max = $binary.universalFromTo(
|
|
67
|
-
|
|
69
|
+
props.max,
|
|
68
70
|
binaryKeys[0],
|
|
69
71
|
binaryKeys[1],
|
|
70
72
|
5
|
|
71
73
|
)
|
|
72
|
-
return reservationOptionsFunc(
|
|
73
|
-
localization.value,
|
|
74
|
-
minReservation,
|
|
75
|
-
max,
|
|
76
|
-
binaryKeys
|
|
77
|
-
)
|
|
74
|
+
return reservationOptionsFunc(localization.value, props.min, max, binaryKeys)
|
|
78
75
|
})
|
|
79
76
|
const onSelectReservation = ({
|
|
80
77
|
value,
|
|
@@ -127,15 +124,15 @@ const reservationErrorLocalText = computed<string>(() => {
|
|
|
127
124
|
binaryKeys[0],
|
|
128
125
|
12
|
|
129
126
|
)
|
|
130
|
-
if (value <
|
|
127
|
+
if (value < props.min || value > props.max) {
|
|
131
128
|
return localization.value.common.reservationMustBe
|
|
132
129
|
.replace(
|
|
133
130
|
'{0}',
|
|
134
|
-
`${
|
|
131
|
+
`${props.min} ${localization.value.common[binaryKeys[0]]}`
|
|
135
132
|
)
|
|
136
133
|
.replace(
|
|
137
134
|
'{1}',
|
|
138
|
-
`${
|
|
135
|
+
`${props.max} ${localization.value.common[binaryKeys[0]]}`
|
|
139
136
|
)
|
|
140
137
|
}
|
|
141
138
|
|
package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue
CHANGED
|
@@ -135,17 +135,25 @@ const updateModelFromBootList = (bootItems: UI_I_BootItem[]): void => {
|
|
|
135
135
|
if (!bootItem.isChecked) return
|
|
136
136
|
|
|
137
137
|
if (bootItem.type === 'nic') {
|
|
138
|
-
const [networkName, indexStr] = bootItem.name.split('_')
|
|
138
|
+
// const [networkName, indexStr] = bootItem.name.split('_')
|
|
139
|
+
const lastIndex = bootItem.name.lastIndexOf('_')
|
|
140
|
+
const networkName = bootItem.name.slice(0, lastIndex)
|
|
141
|
+
const indexStr = bootItem.name.slice(lastIndex + 1)
|
|
139
142
|
const index = parseInt(indexStr, 10)
|
|
143
|
+
|
|
140
144
|
const network = model.value.network_devices?.[index]
|
|
141
145
|
if (network && network.network === networkName) {
|
|
142
146
|
network.boot_order = currentOrder++
|
|
143
147
|
}
|
|
144
148
|
} else {
|
|
145
|
-
const [source, indexStr] = bootItem.name.split('_')
|
|
149
|
+
// const [source, indexStr] = bootItem.name.split('_')
|
|
150
|
+
const lastIndex = bootItem.name.lastIndexOf('_')
|
|
151
|
+
const source = bootItem.name.slice(0, lastIndex)
|
|
152
|
+
const indexStr = bootItem.name.slice(lastIndex + 1)
|
|
146
153
|
const index = parseInt(indexStr, 10)
|
|
154
|
+
|
|
147
155
|
const disk = model.value.disk_devices?.[index]
|
|
148
|
-
if (disk && disk.source+'' === source) {
|
|
156
|
+
if (disk && disk.source + '' === source) {
|
|
149
157
|
disk.boot_order = currentOrder++
|
|
150
158
|
}
|
|
151
159
|
}
|
|
@@ -19,7 +19,7 @@ export const itemsFunc = (
|
|
|
19
19
|
disabled: false,
|
|
20
20
|
testId: 'deploy-from-template',
|
|
21
21
|
description: localization.vmWizard.deployFromTemplateDescription2,
|
|
22
|
-
permissions: '
|
|
22
|
+
permissions: 'Templates.DeployVmFromTemplate'
|
|
23
23
|
},
|
|
24
24
|
// TODO 700
|
|
25
25
|
// {
|