bfg-common 1.5.332 → 1.5.333
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/localization/local_be.json +5 -2
- package/assets/localization/local_en.json +3269 -3266
- package/assets/localization/local_hy.json +5 -2
- package/assets/localization/local_kk.json +5 -2
- package/assets/localization/local_ru.json +8 -5
- package/assets/localization/local_zh.json +3266 -3263
- package/components/common/pages/home/widgets/WidgetsNew.vue +21 -19
- package/components/common/pages/home/widgets/WidgetsOld.vue +9 -7
- package/components/common/select/radio/RadioGroup.vue +11 -4
- package/components/common/select/radio/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/New.vue +6 -1
- package/components/common/vm/actions/add/Old.vue +4 -1
- package/components/common/vm/actions/add/lib/config/steps.ts +22 -10
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +3 -0
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +36 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +3 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +12 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +4 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +8 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +8 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsOld.vue +2 -1
- package/components/common/vm/actions/common/select/name/New.vue +13 -11
- package/components/common/vm/actions/common/select/options/Options.vue +6 -1
- package/components/common/vm/actions/editSettings/EditSettings.vue +3 -0
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +2 -0
- package/components/common/vm/actions/editSettings/new/New.vue +2 -0
- package/components/common/vmt/actions/add/Add.vue +542 -542
- package/components/common/vmt/actions/add/New.vue +345 -346
- package/components/common/vmt/actions/add/Old.vue +301 -301
- package/components/common/vmt/actions/add/lib/config/steps.ts +107 -107
- package/components/common/wizards/vm/migrate/select/type/lib/config/typeOptions.ts +16 -14
- package/package.json +1 -1
@@ -1,107 +1,107 @@
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
-
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
3
|
-
import type { I_DynamicSteps } from '~/components/common/vmt/actions/add/lib/models/interfaces'
|
4
|
-
import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
|
5
|
-
|
6
|
-
export const dynamicSteps: I_DynamicSteps = {
|
7
|
-
selectName: 0,
|
8
|
-
selectStorage: 1,
|
9
|
-
selectGuestOSMachineType: 2,
|
10
|
-
customizeHardware: 3,
|
11
|
-
readyComplete: 4,
|
12
|
-
}
|
13
|
-
|
14
|
-
export const stepsFunc = (
|
15
|
-
localization: UI_I_Localization
|
16
|
-
// isScheduledTasks: boolean
|
17
|
-
): UI_I_WizardStep[] => {
|
18
|
-
let result: UI_I_WizardStep[] = [
|
19
|
-
{
|
20
|
-
id: dynamicSteps.selectName,
|
21
|
-
stepName: '',
|
22
|
-
title: localization.common.selectName,
|
23
|
-
subTitle: localization.common.specifyUniqueName,
|
24
|
-
status: UI_E_WIZARD_STATUS.SELECTED,
|
25
|
-
isValid: true,
|
26
|
-
testId: 'vmt-add-wizard-select-name',
|
27
|
-
fields: {
|
28
|
-
name: {
|
29
|
-
field: '',
|
30
|
-
alert: '',
|
31
|
-
},
|
32
|
-
},
|
33
|
-
},
|
34
|
-
{
|
35
|
-
id: dynamicSteps.selectStorage,
|
36
|
-
stepName: '',
|
37
|
-
title: localization.common.selectStorage,
|
38
|
-
subTitle: localization.common.selectStorageConfigurationDiskFiles,
|
39
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
40
|
-
isValid: true,
|
41
|
-
testId: 'vmt-add-wizard-select-storage',
|
42
|
-
fields: {
|
43
|
-
storage: {
|
44
|
-
field: '',
|
45
|
-
alert: '',
|
46
|
-
},
|
47
|
-
},
|
48
|
-
},
|
49
|
-
{
|
50
|
-
id: dynamicSteps.selectGuestOSMachineType,
|
51
|
-
stepName: '',
|
52
|
-
title: localization.common.selectGuestOSMachineType,
|
53
|
-
subTitle:
|
54
|
-
localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
|
55
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
56
|
-
isValid: true,
|
57
|
-
testId: 'vmt-add-select-guest-os-machine-type',
|
58
|
-
fields: {},
|
59
|
-
},
|
60
|
-
{
|
61
|
-
id: dynamicSteps.customizeHardware,
|
62
|
-
stepName: '',
|
63
|
-
title: localization.common.customizeHardware,
|
64
|
-
subTitle: localization.common.configureVirtualMachineHardware,
|
65
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
66
|
-
isValid: true,
|
67
|
-
testId: 'vmt-add-wizard-customize-hardware',
|
68
|
-
fields: {
|
69
|
-
customizeHardware: {
|
70
|
-
field: '',
|
71
|
-
alert: '',
|
72
|
-
},
|
73
|
-
},
|
74
|
-
},
|
75
|
-
{
|
76
|
-
id: dynamicSteps.readyComplete,
|
77
|
-
stepName: '',
|
78
|
-
title: localization.common.readyComplete,
|
79
|
-
subTitle: localization.common.clickFinishStartCreation,
|
80
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
81
|
-
isValid: true,
|
82
|
-
testId: 'vmt-add-wizard-ready-complete',
|
83
|
-
fields: {},
|
84
|
-
},
|
85
|
-
]
|
86
|
-
|
87
|
-
// if (!isScheduledTasks) {
|
88
|
-
// result.shift()
|
89
|
-
// result[0].status = UI_E_WIZARD_STATUS.SELECTED
|
90
|
-
// result = result.map((item) => {
|
91
|
-
// item.id--
|
92
|
-
// return item
|
93
|
-
// })
|
94
|
-
// }
|
95
|
-
|
96
|
-
return result
|
97
|
-
}
|
98
|
-
|
99
|
-
export const stepsSchemeInitial = [
|
100
|
-
[
|
101
|
-
dynamicSteps.selectName,
|
102
|
-
dynamicSteps.selectStorage,
|
103
|
-
dynamicSteps.selectGuestOSMachineType,
|
104
|
-
dynamicSteps.customizeHardware,
|
105
|
-
dynamicSteps.readyComplete,
|
106
|
-
],
|
107
|
-
]
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
+
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
3
|
+
import type { I_DynamicSteps } from '~/components/common/vmt/actions/add/lib/models/interfaces'
|
4
|
+
import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
|
5
|
+
|
6
|
+
export const dynamicSteps: I_DynamicSteps = {
|
7
|
+
selectName: 0,
|
8
|
+
selectStorage: 1,
|
9
|
+
selectGuestOSMachineType: 2,
|
10
|
+
customizeHardware: 3,
|
11
|
+
readyComplete: 4,
|
12
|
+
}
|
13
|
+
|
14
|
+
export const stepsFunc = (
|
15
|
+
localization: UI_I_Localization
|
16
|
+
// isScheduledTasks: boolean
|
17
|
+
): UI_I_WizardStep[] => {
|
18
|
+
let result: UI_I_WizardStep[] = [
|
19
|
+
{
|
20
|
+
id: dynamicSteps.selectName,
|
21
|
+
stepName: '',
|
22
|
+
title: localization.common.selectName,
|
23
|
+
subTitle: localization.common.specifyUniqueName,
|
24
|
+
status: UI_E_WIZARD_STATUS.SELECTED,
|
25
|
+
isValid: true,
|
26
|
+
testId: 'vmt-add-wizard-select-name',
|
27
|
+
fields: {
|
28
|
+
name: {
|
29
|
+
field: '',
|
30
|
+
alert: '',
|
31
|
+
},
|
32
|
+
},
|
33
|
+
},
|
34
|
+
{
|
35
|
+
id: dynamicSteps.selectStorage,
|
36
|
+
stepName: '',
|
37
|
+
title: localization.common.selectStorage,
|
38
|
+
subTitle: localization.common.selectStorageConfigurationDiskFiles,
|
39
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
40
|
+
isValid: true,
|
41
|
+
testId: 'vmt-add-wizard-select-storage',
|
42
|
+
fields: {
|
43
|
+
storage: {
|
44
|
+
field: '',
|
45
|
+
alert: '',
|
46
|
+
},
|
47
|
+
},
|
48
|
+
},
|
49
|
+
{
|
50
|
+
id: dynamicSteps.selectGuestOSMachineType,
|
51
|
+
stepName: '',
|
52
|
+
title: localization.common.selectGuestOSMachineType,
|
53
|
+
subTitle:
|
54
|
+
localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
|
55
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
56
|
+
isValid: true,
|
57
|
+
testId: 'vmt-add-select-guest-os-machine-type',
|
58
|
+
fields: {},
|
59
|
+
},
|
60
|
+
{
|
61
|
+
id: dynamicSteps.customizeHardware,
|
62
|
+
stepName: '',
|
63
|
+
title: localization.common.customizeHardware,
|
64
|
+
subTitle: localization.common.configureVirtualMachineHardware,
|
65
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
66
|
+
isValid: true,
|
67
|
+
testId: 'vmt-add-wizard-customize-hardware',
|
68
|
+
fields: {
|
69
|
+
customizeHardware: {
|
70
|
+
field: '',
|
71
|
+
alert: '',
|
72
|
+
},
|
73
|
+
},
|
74
|
+
},
|
75
|
+
{
|
76
|
+
id: dynamicSteps.readyComplete,
|
77
|
+
stepName: '',
|
78
|
+
title: localization.common.readyComplete,
|
79
|
+
subTitle: localization.common.clickFinishStartCreation,
|
80
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
81
|
+
isValid: true,
|
82
|
+
testId: 'vmt-add-wizard-ready-complete',
|
83
|
+
fields: {},
|
84
|
+
},
|
85
|
+
]
|
86
|
+
|
87
|
+
// if (!isScheduledTasks) {
|
88
|
+
// result.shift()
|
89
|
+
// result[0].status = UI_E_WIZARD_STATUS.SELECTED
|
90
|
+
// result = result.map((item) => {
|
91
|
+
// item.id--
|
92
|
+
// return item
|
93
|
+
// })
|
94
|
+
// }
|
95
|
+
|
96
|
+
return result
|
97
|
+
}
|
98
|
+
|
99
|
+
export const stepsSchemeInitial = [
|
100
|
+
[
|
101
|
+
dynamicSteps.selectName,
|
102
|
+
dynamicSteps.selectStorage,
|
103
|
+
dynamicSteps.selectGuestOSMachineType,
|
104
|
+
dynamicSteps.customizeHardware,
|
105
|
+
dynamicSteps.readyComplete,
|
106
|
+
],
|
107
|
+
]
|
@@ -23,20 +23,22 @@ export const vmMigrateTypesFunc = (
|
|
23
23
|
permissions: ['sphere', 'procurator'],
|
24
24
|
permission: 'VirtualMachines.MigrateDatastore',
|
25
25
|
},
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
26
|
+
// TODO 700
|
27
|
+
// {
|
28
|
+
// label: localization.common.changeBothComputeResourceStorage,
|
29
|
+
// value: 'resource-storage',
|
30
|
+
// disabled: true,
|
31
|
+
// description: localization.common.changeBothComputeResourceStorageDesc,
|
32
|
+
// permissions: ['sphere'],
|
33
|
+
// },
|
34
|
+
// TODO 700
|
35
|
+
// {
|
36
|
+
// label: localization.common.crossVCenterServerExport,
|
37
|
+
// value: 'server',
|
38
|
+
// disabled: true,
|
39
|
+
// description: localization.common.crossVCenterServerExportDesc,
|
40
|
+
// permissions: ['sphere'],
|
41
|
+
// },
|
40
42
|
]
|
41
43
|
|
42
44
|
return options.filter((option) => option.permissions.includes(project))
|