bfg-common 1.5.442 → 1.5.444
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/localization/local_be.json +9 -2
- package/assets/localization/local_en.json +19 -12
- package/assets/localization/local_hy.json +9 -2
- package/assets/localization/local_kk.json +9 -2
- package/assets/localization/local_ru.json +9 -2
- package/assets/localization/local_zh.json +9 -2
- 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/DataGrid.vue +1694 -1694
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/atoms/wizard/Wizard.vue +2 -2
- package/components/atoms/wizard/step/Step.vue +1 -1
- package/components/common/backup/storage/actions/add/Add.vue +5 -5
- package/components/common/backup/storage/actions/add/Old.vue +1 -1
- package/components/common/backup/storage/actions/add/lib/config/steps.ts +2 -2
- package/components/common/backup/storage/actions/add/lib/validations.ts +4 -4
- package/components/common/backup/storage/actions/add/steps/name/Name.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/name/New.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/name/Old.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
- package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
- package/components/common/browse/blocks/Container.vue +235 -235
- 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/diagramMain/modals/lib/config/portModal.ts +251 -251
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +5 -5
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +5 -5
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +2 -2
- package/components/common/diagramMain/port/Port.vue +580 -580
- 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 +1 -1
- package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +5 -2
- 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/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/createBackup/general/General.vue +135 -135
- package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +2 -2
- 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 +186 -186
- package/components/common/pages/backups/modals/restore/Restore.vue +3 -3
- 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 +2 -2
- 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/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/spiceConsole/Drawer.vue +381 -381
- package/components/common/spiceConsole/SpiceConsole.vue +127 -127
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/add/Add.vue +5 -5
- package/components/common/vm/actions/add/New.vue +2 -2
- package/components/common/vm/actions/add/Old.vue +2 -2
- 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/lib/config/steps.ts +2 -2
- package/components/common/vm/actions/clone/Clone.vue +5 -5
- package/components/common/vm/actions/clone/lib/config/steps.ts +2 -2
- package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +5 -5
- package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +2 -2
- 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 +78 -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 +2 -0
- 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/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/maximumSize/MaximumSize.vue +23 -23
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- 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/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
- 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/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/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 +184 -184
- 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/lib/models/interfaces.ts +5 -5
- 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/new/New.vue +320 -320
- 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/editSettings/new/Skeleton.vue +88 -88
- package/components/common/vmt/actions/add/Add.vue +5 -5
- package/components/common/vmt/actions/add/New.vue +2 -3
- package/components/common/vmt/actions/add/Old.vue +2 -2
- package/components/common/vmt/actions/add/lib/config/steps.ts +2 -2
- package/components/common/wizards/datastore/add/Add.vue +2 -2
- package/components/common/wizards/datastore/add/Old.vue +2 -2
- package/components/common/wizards/datastore/add/lib/config/steps.ts +2 -2
- package/components/common/wizards/datastore/add/lib/utils.ts +1 -1
- package/components/common/wizards/datastore/add/lib/validations.ts +3 -3
- package/components/common/wizards/datastore/add/steps/_local/Local.vue +1 -1
- package/components/common/wizards/datastore/add/steps/_local/createName/CreateName.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigure.vue +2 -1
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDevice.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.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 +109 -333
- package/components/common/wizards/network/add/AddNew.vue +514 -0
- package/components/common/wizards/network/add/AddOld.vue +457 -0
- package/components/common/wizards/network/add/lib/config/config.ts +11 -1
- package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +31 -0
- package/components/common/wizards/network/add/lib/config/selectSwitch.ts +217 -0
- package/components/common/wizards/network/add/lib/config/steps.ts +5 -5
- package/components/common/wizards/network/add/lib/models/interfaces.ts +9 -0
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +2 -2
- package/components/common/wizards/network/add/steps/IpFourSettings.vue +2 -2
- package/components/common/wizards/network/add/steps/PortProperties.vue +2 -2
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +35 -0
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeNew.vue +104 -0
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeOld.vue +80 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +183 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +393 -0
- package/components/common/wizards/network/add/steps/{SelectedTargetDevice.vue → selectTargetDevice/SelectTargetDeviceOld.vue} +42 -139
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/Modals.vue +55 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +64 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +64 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +64 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +163 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectStandardSwitch.vue +163 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +163 -0
- package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectNetwork.vue +53 -56
- package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectStandardSwitch.vue +37 -52
- package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectSwitch.vue +38 -42
- package/components/common/wizards/network/add/validations/connectionSettings.ts +5 -5
- package/components/common/wizards/network/add/validations/createStandardSwitch.ts +4 -4
- package/components/common/wizards/network/add/validations/ipFourSettings.ts +5 -5
- package/components/common/wizards/network/add/validations/networkValidation.ts +4 -4
- package/components/common/wizards/network/add/validations/physicalAdapter.ts +4 -4
- package/components/common/wizards/network/add/validations/portProperties.ts +2 -2
- package/components/common/wizards/network/add/validations/targetDevice.ts +11 -10
- package/components/common/wizards/vm/migrate/Migrate.vue +2 -2
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -2
- package/components/common/wizards/vm/migrate/lib/validations.ts +3 -3
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +1 -1
- package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +1 -1
- 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/package.json +2 -2
- 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/components/atoms/wizard/lib/models/enums.ts +0 -8
- package/components/atoms/wizard/lib/models/interfaces.ts +0 -59
- package/components/atoms/wizard/lib/utils/utils.ts +0 -954
- package/components/common/wizards/network/add/steps/SelectConnectionType.vue +0 -112
@@ -1,43 +1,43 @@
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
3
|
-
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
4
|
-
|
5
|
-
export const datastoreTypesFunc = (
|
6
|
-
localization: UI_I_Localization,
|
7
|
-
_project?: UI_T_Project
|
8
|
-
): UI_I_RadioOption[] => {
|
9
|
-
return [
|
10
|
-
{
|
11
|
-
id: 'datastore-type-shared-storm',
|
12
|
-
label: localization.common.stormSharedStorage,
|
13
|
-
value: 2,
|
14
|
-
disabled: false,
|
15
|
-
description: localization.common.sharedStormDesc,
|
16
|
-
isTooltip: false,
|
17
|
-
tooltipContent: localization.common.stormSharedStorageHelpDesc,
|
18
|
-
testId: 'datastore-type-shared-storm',
|
19
|
-
},
|
20
|
-
{
|
21
|
-
id: 'datastore-type-nfs',
|
22
|
-
label: localization.common.nfs,
|
23
|
-
value: 4,
|
24
|
-
disabled: false,
|
25
|
-
description: localization.common.nfsDesc,
|
26
|
-
isTooltip: false,
|
27
|
-
tooltipContent: localization.common.nfsHelpDesc,
|
28
|
-
testId: 'datastore-type-nfs',
|
29
|
-
},
|
30
|
-
]
|
31
|
-
|
32
|
-
// if (project === 'procurator') {
|
33
|
-
// types.unshift({
|
34
|
-
// label: localization.common.localStorage,
|
35
|
-
// value: 1,
|
36
|
-
// disabled: false,
|
37
|
-
// description: localization.common.localDesc,
|
38
|
-
// isTooltip: false,
|
39
|
-
// tooltipContent: localization.common.localStorageHelpDesc,
|
40
|
-
// testId: 'datastore-type-local',
|
41
|
-
// })
|
42
|
-
// }
|
43
|
-
}
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
3
|
+
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
4
|
+
|
5
|
+
export const datastoreTypesFunc = (
|
6
|
+
localization: UI_I_Localization,
|
7
|
+
_project?: UI_T_Project
|
8
|
+
): UI_I_RadioOption[] => {
|
9
|
+
return [
|
10
|
+
{
|
11
|
+
id: 'datastore-type-shared-storm',
|
12
|
+
label: localization.common.stormSharedStorage,
|
13
|
+
value: 2,
|
14
|
+
disabled: false,
|
15
|
+
description: localization.common.sharedStormDesc,
|
16
|
+
isTooltip: false,
|
17
|
+
tooltipContent: localization.common.stormSharedStorageHelpDesc,
|
18
|
+
testId: 'datastore-type-shared-storm',
|
19
|
+
},
|
20
|
+
{
|
21
|
+
id: 'datastore-type-nfs',
|
22
|
+
label: localization.common.nfs,
|
23
|
+
value: 4,
|
24
|
+
disabled: false,
|
25
|
+
description: localization.common.nfsDesc,
|
26
|
+
isTooltip: false,
|
27
|
+
tooltipContent: localization.common.nfsHelpDesc,
|
28
|
+
testId: 'datastore-type-nfs',
|
29
|
+
},
|
30
|
+
]
|
31
|
+
|
32
|
+
// if (project === 'procurator') {
|
33
|
+
// types.unshift({
|
34
|
+
// label: localization.common.localStorage,
|
35
|
+
// value: 1,
|
36
|
+
// disabled: false,
|
37
|
+
// description: localization.common.localDesc,
|
38
|
+
// isTooltip: false,
|
39
|
+
// tooltipContent: localization.common.localStorageHelpDesc,
|
40
|
+
// testId: 'datastore-type-local',
|
41
|
+
// })
|
42
|
+
// }
|
43
|
+
}
|
@@ -1,109 +1,109 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
v-
|
2
|
+
<common-wizards-network-add-new
|
3
|
+
v-if="isNewView"
|
4
|
+
v-model:connection-type="connectionTypeLocal"
|
5
|
+
:show="props.show"
|
6
|
+
:wizard="wizard"
|
7
|
+
:selected-scheme="selectedScheme"
|
8
|
+
:host-name="hostNameLocal"
|
9
|
+
:project="props.project"
|
10
|
+
:target-device="targetDevice"
|
11
|
+
:standard-switches-initial="props.standardSwitchesInitial"
|
12
|
+
:alert-messages="alertMessages"
|
13
|
+
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
14
|
+
:selected-switch-id="props.selectedSwitchId"
|
15
|
+
:free-adapters="props.freeAdapters"
|
16
|
+
:added-adapters="addedAdapters"
|
17
|
+
:core-adapters="coreAdapters"
|
18
|
+
:adapter-status="adapterStatus"
|
19
|
+
:adapters="props.adapters"
|
20
|
+
:is-show-no-connected-active-adapters-modal="
|
21
|
+
isShowNoConnectedActiveAdaptersModal
|
22
|
+
"
|
23
|
+
:is-show-no-active-adapters-modal="isShowNoActiveAdaptersModal"
|
24
|
+
:is-dark-mode="props.isDarkMode"
|
25
|
+
:port-properties="portProperties"
|
26
|
+
:mtu-from-switch="mtuFromSwitch"
|
27
|
+
:tcp-stacks="props.tcpStacks"
|
28
|
+
:ip-four-settings="ipFourSettings"
|
29
|
+
:gateway-flag="gatewayFlag"
|
30
|
+
:connection-settings="connectionSettings"
|
31
|
+
:ready-complete-fields="readyCompleteFields"
|
32
|
+
@change-connection-settings="onChangeConnectionSettings"
|
33
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
34
|
+
@change-ip-four-settings="onChangeIpFourSettings"
|
35
|
+
@change-port-properties="onChangePortProperties"
|
36
|
+
@get-free-adapters="onGetFreeAdapters"
|
37
|
+
@change-added-adapters="onChangeAddedAdapters"
|
38
|
+
@change-adapter-status="onChangeAdapterStatus"
|
39
|
+
@confirm-no-active-adapters-modal="onConfirmNoActiveAdaptersModal"
|
40
|
+
@hide-no-connected-active-adapters-modal="
|
41
|
+
onHideNoConnectedActiveAdaptersModal
|
42
|
+
"
|
43
|
+
@hide-no-active-adapters-modal="onHideNoActiveAdaptersModal"
|
44
|
+
@hide-alert="onHideAlert"
|
45
|
+
@change-target-device="onChangeTargetDevice"
|
46
|
+
@change-steps="onChangeSteps"
|
47
|
+
@hide="onHideAddNetworkingModal"
|
48
|
+
@submit="onSubmit"
|
49
|
+
/>
|
50
|
+
<common-wizards-network-add-old
|
51
|
+
v-else
|
52
|
+
v-model:connection-type="connectionTypeLocal"
|
53
|
+
:show="props.show"
|
4
54
|
:wizard="wizard"
|
5
55
|
:selected-scheme="selectedScheme"
|
6
56
|
:title="title"
|
7
|
-
:
|
8
|
-
:
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
57
|
+
:project="props.project"
|
58
|
+
:target-device="targetDevice"
|
59
|
+
:standard-switches-initial="props.standardSwitchesInitial"
|
60
|
+
:alert-messages="alertMessages"
|
61
|
+
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
62
|
+
:selected-switch-id="props.selectedSwitchId"
|
63
|
+
:free-adapters="props.freeAdapters"
|
64
|
+
:added-adapters="addedAdapters"
|
65
|
+
:core-adapters="coreAdapters"
|
66
|
+
:adapter-status="adapterStatus"
|
67
|
+
:adapters="props.adapters"
|
68
|
+
:is-show-no-connected-active-adapters-modal="
|
69
|
+
isShowNoConnectedActiveAdaptersModal
|
70
|
+
"
|
71
|
+
:is-show-no-active-adapters-modal="isShowNoActiveAdaptersModal"
|
72
|
+
:is-dark-mode="props.isDarkMode"
|
73
|
+
:port-properties="portProperties"
|
74
|
+
:mtu-from-switch="mtuFromSwitch"
|
75
|
+
:tcp-stacks="props.tcpStacks"
|
76
|
+
:ip-four-settings="ipFourSettings"
|
77
|
+
:gateway-flag="gatewayFlag"
|
78
|
+
:connection-settings="connectionSettings"
|
79
|
+
:ready-complete-fields="readyCompleteFields"
|
80
|
+
@change-connection-settings="onChangeConnectionSettings"
|
81
|
+
@change-gateway-flag="onChangeGatewayFlag"
|
82
|
+
@change-ip-four-settings="onChangeIpFourSettings"
|
83
|
+
@change-port-properties="onChangePortProperties"
|
84
|
+
@get-free-adapters="onGetFreeAdapters"
|
85
|
+
@change-added-adapters="onChangeAddedAdapters"
|
86
|
+
@change-adapter-status="onChangeAdapterStatus"
|
87
|
+
@confirm-no-active-adapters-modal="onConfirmNoActiveAdaptersModal"
|
88
|
+
@hide-no-connected-active-adapters-modal="
|
89
|
+
onHideNoConnectedActiveAdaptersModal
|
90
|
+
"
|
91
|
+
@hide-no-active-adapters-modal="onHideNoActiveAdaptersModal"
|
92
|
+
@hide-alert="onHideAlert"
|
93
|
+
@change-target-device="onChangeTargetDevice"
|
16
94
|
@change-steps="onChangeSteps"
|
17
95
|
@hide="onHideAddNetworkingModal"
|
18
96
|
@submit="onSubmit"
|
19
|
-
|
20
|
-
<template #modalBody="{ selectedStep }">
|
21
|
-
<common-wizards-network-add-steps-select-connection-type
|
22
|
-
v-if="selectedStep.id === 0"
|
23
|
-
v-model="connectionTypeLocal"
|
24
|
-
:project="props.project"
|
25
|
-
/>
|
26
|
-
<common-wizards-network-add-steps-selected-target-device
|
27
|
-
v-if="selectedStep.id === 1"
|
28
|
-
:wizard="wizard"
|
29
|
-
:target-device="targetDevice"
|
30
|
-
:connection-type="connectionTypeLocal"
|
31
|
-
:standard-switches-initial="props.standardSwitchesInitial"
|
32
|
-
:messages-fields="selectedStep.fields"
|
33
|
-
:alert-messages="alertMessages[1]"
|
34
|
-
:selected-standard-switch-id="props.selectedStandardSwitchId"
|
35
|
-
:selected-switch-id="props.selectedSwitchId"
|
36
|
-
@hide-alert="onHideAlert"
|
37
|
-
@change-target-device="onChangeTargetDevice"
|
38
|
-
/>
|
39
|
-
<common-wizards-network-add-steps-create-standard-switch
|
40
|
-
v-if="selectedStep.id === 2 || selectedStep.id === 6"
|
41
|
-
:free-adapters="props.freeAdapters"
|
42
|
-
:added-adapters="addedAdapters"
|
43
|
-
:core-adapters="coreAdapters"
|
44
|
-
:adapter-status="adapterStatus"
|
45
|
-
:adapters="props.adapters"
|
46
|
-
:is-show-no-connected-active-adapters-modal="
|
47
|
-
isShowNoConnectedActiveAdaptersModal
|
48
|
-
"
|
49
|
-
:is-show-no-active-adapters-modal="isShowNoActiveAdaptersModal"
|
50
|
-
:is-dark-mode="props.isDarkMode"
|
51
|
-
@get-free-adapters="onGetFreeAdapters"
|
52
|
-
@change-added-adapters="onChangeAddedAdapters"
|
53
|
-
@change-adapter-status="onChangeAdapterStatus"
|
54
|
-
@confirm-no-active-adapters-modal="onConfirmNoActiveAdaptersModal"
|
55
|
-
@hide-no-connected-active-adapters-modal="
|
56
|
-
onHideNoConnectedActiveAdaptersModal
|
57
|
-
"
|
58
|
-
@hide-no-active-adapters-modal="onHideNoActiveAdaptersModal"
|
59
|
-
/>
|
60
|
-
<common-wizards-network-add-steps-port-properties
|
61
|
-
v-if="selectedStep.id === 3"
|
62
|
-
:wizard="wizard"
|
63
|
-
:port-properties="portProperties"
|
64
|
-
:mtu-from-switch="mtuFromSwitch"
|
65
|
-
:project="props.project"
|
66
|
-
:messages-fields="selectedStep.fields"
|
67
|
-
:alert-messages="alertMessages[3]"
|
68
|
-
:tcp-stacks="props.tcpStacks"
|
69
|
-
@change-gateway-flag="onChangeGatewayFlag"
|
70
|
-
@change-port-properties="onChangePortProperties"
|
71
|
-
@hide-alert="onHideAlert"
|
72
|
-
/>
|
73
|
-
<common-wizards-network-add-steps-ip-four-settings
|
74
|
-
v-if="selectedStep.id === 4"
|
75
|
-
:wizard="wizard"
|
76
|
-
:ip-four-settings="ipFourSettings"
|
77
|
-
:messages-fields="selectedStep.fields"
|
78
|
-
:alert-messages="alertMessages[4]"
|
79
|
-
:tcp-stacks="props.tcpStacks"
|
80
|
-
:tcp="portProperties.tcp"
|
81
|
-
:gateway-flag="gatewayFlag"
|
82
|
-
@change-gateway-flag="onChangeGatewayFlag"
|
83
|
-
@change-ip-four-settings="onChangeIpFourSettings"
|
84
|
-
@hide-alert="onHideAlert"
|
85
|
-
/>
|
86
|
-
<common-wizards-network-add-steps-connection-settings
|
87
|
-
v-if="selectedStep.id === 5"
|
88
|
-
:wizard="wizard"
|
89
|
-
:connection-settings="connectionSettings"
|
90
|
-
:messages-fields="selectedStep.fields"
|
91
|
-
:alert-messages="alertMessages[5]"
|
92
|
-
@change-connection-settings="onChangeConnectionSettings"
|
93
|
-
@hide-alert="onHideAlert"
|
94
|
-
/>
|
95
|
-
<!-- <common-wizards-network-add-steps-physical-adapter-->
|
96
|
-
<!-- v-if="selectedStep.id === 6"-->
|
97
|
-
<!-- />-->
|
98
|
-
<common-wizards-network-add-steps-ready-complete
|
99
|
-
v-if="selectedStep.id === 7"
|
100
|
-
:ready-complete-fields="readyCompleteFields"
|
101
|
-
/>
|
102
|
-
</template>
|
103
|
-
</atoms-wizard>
|
97
|
+
/>
|
104
98
|
</template>
|
105
99
|
|
106
100
|
<script setup lang="ts">
|
101
|
+
import type {
|
102
|
+
UI_I_ValidationReturn,
|
103
|
+
UI_I_WizardStep,
|
104
|
+
UI_I_WizardStepNavigation,
|
105
|
+
} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
106
|
+
import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
107
107
|
import type {
|
108
108
|
UI_I_ArbitraryObject,
|
109
109
|
UI_I_Localization,
|
@@ -131,15 +131,9 @@ import type {
|
|
131
131
|
API_UI_I_SwitchItem,
|
132
132
|
UI_I_AvailableAdapters,
|
133
133
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
134
|
-
import
|
135
|
-
UI_I_ValidationReturn,
|
136
|
-
UI_I_WizardStep,
|
137
|
-
UI_I_WizardStepNavigation,
|
138
|
-
} from '~/components/atoms/wizard/lib/models/interfaces'
|
134
|
+
import { getAvailableAdapters } from '~/components/common/diagramMain/lib/utils/utils'
|
139
135
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
140
|
-
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
141
136
|
import { getVlanId } from '~/components/common/wizards/network/add/lib/utils/utils'
|
142
|
-
import { getAvailableAdapters } from '~/components/common/diagramMain/lib/utils/utils'
|
143
137
|
import {
|
144
138
|
createZeroSchemeReadyCompleteFunc,
|
145
139
|
createFirstSchemeReadyCompleteFunc,
|
@@ -226,11 +220,19 @@ const emits = defineEmits<{
|
|
226
220
|
(event: 'get-tcp-stacks'): void
|
227
221
|
}>()
|
228
222
|
|
223
|
+
const { $store }: any = useNuxtApp()
|
224
|
+
|
225
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
226
|
+
|
229
227
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
230
228
|
|
231
229
|
const localHostName = ref<string>('')
|
230
|
+
const hostNameLocal = computed<string>(
|
231
|
+
() => props.hostName || localHostName.value
|
232
|
+
)
|
233
|
+
|
232
234
|
const title = computed<string>(
|
233
|
-
() => `${
|
235
|
+
() => `${hostNameLocal.value} - ${localization.value.common.addNetworking}`
|
234
236
|
)
|
235
237
|
|
236
238
|
const wizard: Wizard = new Wizard(
|
@@ -647,7 +649,8 @@ const validationFunc = async (
|
|
647
649
|
localization.value,
|
648
650
|
targetDevice.value,
|
649
651
|
wizard,
|
650
|
-
value
|
652
|
+
value,
|
653
|
+
isNewView.value
|
651
654
|
)
|
652
655
|
|
653
656
|
value = targetDeviceValidation.newValue
|
@@ -858,231 +861,4 @@ watch(
|
|
858
861
|
)
|
859
862
|
</script>
|
860
863
|
|
861
|
-
<style scoped lang="scss">
|
862
|
-
:deep(.modal) {
|
863
|
-
& > .modal-dialog > .modal-content > .modal-body {
|
864
|
-
height: calc(100% - 110px);
|
865
|
-
.disabled-on-time {
|
866
|
-
opacity: 0.4;
|
867
|
-
pointer-events: none;
|
868
|
-
}
|
869
|
-
}
|
870
|
-
}
|
871
|
-
:deep(.disabled-on-time) {
|
872
|
-
opacity: 0.4;
|
873
|
-
pointer-events: none;
|
874
|
-
}
|
875
|
-
:deep(.wizard-content-container.add-networking-step) {
|
876
|
-
padding: 0px 15px 10px 10px;
|
877
|
-
|
878
|
-
.danger-not-valid {
|
879
|
-
border: 2px solid red;
|
880
|
-
border-bottom: 1px solid #db2100;
|
881
|
-
}
|
882
|
-
.tooltip-field {
|
883
|
-
margin-right: 12px;
|
884
|
-
}
|
885
|
-
|
886
|
-
.horizontal-flex-container {
|
887
|
-
margin-bottom: 5px;
|
888
|
-
min-height: 36px;
|
889
|
-
display: flex;
|
890
|
-
flex-direction: row;
|
891
|
-
}
|
892
|
-
.property-label-group {
|
893
|
-
width: 140px;
|
894
|
-
}
|
895
|
-
.disabled {
|
896
|
-
opacity: 0.4;
|
897
|
-
pointer-events: none;
|
898
|
-
}
|
899
|
-
.wizard-content-port {
|
900
|
-
.margin-left-property-value-group {
|
901
|
-
margin-left: 10px;
|
902
|
-
}
|
903
|
-
|
904
|
-
.property-value-group {
|
905
|
-
padding-left: 23px;
|
906
|
-
}
|
907
|
-
.horizontal-flex-container {
|
908
|
-
min-height: 24px;
|
909
|
-
margin-bottom: 0;
|
910
|
-
}
|
911
|
-
.radio {
|
912
|
-
min-height: 39px;
|
913
|
-
margin: 10px 0;
|
914
|
-
}
|
915
|
-
.form-block {
|
916
|
-
margin: 12px 0 24px 0;
|
917
|
-
padding-left: 23px;
|
918
|
-
|
919
|
-
&.form-block-ipv {
|
920
|
-
input[type='text'] {
|
921
|
-
width: 143px;
|
922
|
-
}
|
923
|
-
.horizontal-flex-container > label {
|
924
|
-
margin-right: 50px;
|
925
|
-
}
|
926
|
-
}
|
927
|
-
}
|
928
|
-
.edit-vmkernel-adapter-section {
|
929
|
-
padding-top: 12px;
|
930
|
-
|
931
|
-
label {
|
932
|
-
input[type='checkbox'] {
|
933
|
-
margin-right: 4px;
|
934
|
-
transform: translateY(1px);
|
935
|
-
}
|
936
|
-
}
|
937
|
-
.horizontal-flex-container {
|
938
|
-
margin-bottom: 5px;
|
939
|
-
}
|
940
|
-
}
|
941
|
-
.port-properties-network-label {
|
942
|
-
width: 280px;
|
943
|
-
}
|
944
|
-
.port-properties-padding {
|
945
|
-
padding-top: 8px;
|
946
|
-
}
|
947
|
-
.port-properties-mtu-selector {
|
948
|
-
margin-right: 12px;
|
949
|
-
}
|
950
|
-
.port-properties-mtu-container {
|
951
|
-
display: flex;
|
952
|
-
}
|
953
|
-
select {
|
954
|
-
height: 24px;
|
955
|
-
}
|
956
|
-
}
|
957
|
-
.nw-property-value-group {
|
958
|
-
display: inline;
|
959
|
-
}
|
960
|
-
}
|
961
|
-
|
962
|
-
:deep(.modal-body-content.modal-body-content__confirmation) {
|
963
|
-
display: flex;
|
964
|
-
.confirm-icon-container {
|
965
|
-
margin-right: 20px;
|
966
|
-
}
|
967
|
-
.preserve-newlines {
|
968
|
-
white-space: pre-line;
|
969
|
-
font-size: 15px;
|
970
|
-
}
|
971
|
-
}
|
972
|
-
|
973
|
-
.add-networking-wizard.is-dark {
|
974
|
-
:deep(.wizard-content-container.add-networking-step) {
|
975
|
-
.ready-complete-container {
|
976
|
-
background-color: var(--pannel-bg-color);
|
977
|
-
margin-top: 12px;
|
978
|
-
|
979
|
-
span {
|
980
|
-
color: var(--description-color);
|
981
|
-
}
|
982
|
-
}
|
983
|
-
|
984
|
-
.add-networking-radio-button-description {
|
985
|
-
color: var(--description-color);
|
986
|
-
}
|
987
|
-
|
988
|
-
.property-label-group {
|
989
|
-
color: var(--main-color-mode2);
|
990
|
-
}
|
991
|
-
.flex-property-label-group {
|
992
|
-
color: var(--main-color-mode2);
|
993
|
-
}
|
994
|
-
.flex-property-value-group {
|
995
|
-
select {
|
996
|
-
color: #fff;
|
997
|
-
}
|
998
|
-
}
|
999
|
-
.failover-order-master {
|
1000
|
-
.secondary-title label {
|
1001
|
-
color: #fff;
|
1002
|
-
}
|
1003
|
-
}
|
1004
|
-
.k-grid-content {
|
1005
|
-
background-color: var(--modal-bg-color);
|
1006
|
-
}
|
1007
|
-
.vui-action-bar {
|
1008
|
-
background-color: var(--pannel-bg-color);
|
1009
|
-
color: var(--title-color);
|
1010
|
-
padding: 8px 0 3px;
|
1011
|
-
|
1012
|
-
.action-link-container:not(.disabled) {
|
1013
|
-
&:hover {
|
1014
|
-
background-color: #29414e;
|
1015
|
-
border: 1px solid #c7e9ff;
|
1016
|
-
}
|
1017
|
-
}
|
1018
|
-
|
1019
|
-
svg {
|
1020
|
-
fill: #fff;
|
1021
|
-
}
|
1022
|
-
}
|
1023
|
-
|
1024
|
-
.k-grid.k-widget .k-grid-content {
|
1025
|
-
border-left: 1px solid #485764;
|
1026
|
-
border-right: 1px solid #485764;
|
1027
|
-
border-top: 1px solid #ddd;
|
1028
|
-
border-bottom: 1px solid #ddd;
|
1029
|
-
|
1030
|
-
tbody tr {
|
1031
|
-
background-color: var(--modal-bg-color);
|
1032
|
-
|
1033
|
-
td {
|
1034
|
-
border-bottom: 1px solid #666666;
|
1035
|
-
border-color: #666666;
|
1036
|
-
}
|
1037
|
-
|
1038
|
-
&:hover {
|
1039
|
-
background-color: #324f61;
|
1040
|
-
color: var(--title-color);
|
1041
|
-
|
1042
|
-
td {
|
1043
|
-
border-bottom: 1px solid #ffffff;
|
1044
|
-
}
|
1045
|
-
}
|
1046
|
-
|
1047
|
-
&.k-state-selected {
|
1048
|
-
background-color: #d8e3e9;
|
1049
|
-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
1050
|
-
|
1051
|
-
td span {
|
1052
|
-
color: #000;
|
1053
|
-
}
|
1054
|
-
}
|
1055
|
-
}
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
.failover-order-details {
|
1059
|
-
&.relative-container .absolute-container {
|
1060
|
-
background-color: var(--pannel-bg-color);
|
1061
|
-
color: var(--main-color-mode2);
|
1062
|
-
|
1063
|
-
&:has(.no-items-selected-container) {
|
1064
|
-
background-color: transparent;
|
1065
|
-
}
|
1066
|
-
}
|
1067
|
-
|
1068
|
-
td span {
|
1069
|
-
color: var(--main-color-mode2);
|
1070
|
-
}
|
1071
|
-
button span {
|
1072
|
-
color: var(--main-color-mode2);
|
1073
|
-
|
1074
|
-
&:hover:not(.disabled) {
|
1075
|
-
background-color: transparent;
|
1076
|
-
}
|
1077
|
-
}
|
1078
|
-
button.active span {
|
1079
|
-
color: #fff;
|
1080
|
-
}
|
1081
|
-
}
|
1082
|
-
}
|
1083
|
-
|
1084
|
-
.select-adapter-info span {
|
1085
|
-
color: var(--main-color-mode2);
|
1086
|
-
}
|
1087
|
-
}
|
1088
|
-
</style>
|
864
|
+
<style scoped lang="scss"></style>
|