bfg-common 1.5.325 → 1.5.327
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 +2 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2 -1
- package/components/common/pages/home/widgets/WidgetsNew.vue +21 -19
- package/components/common/pages/home/widgets/WidgetsOld.vue +9 -7
- package/components/common/vm/actions/add/New.vue +647 -642
- package/components/common/vm/actions/add/Old.vue +388 -385
- package/components/common/vm/actions/add/lib/config/steps.ts +22 -10
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +155 -153
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +7 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +7 -5
- 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/select/options/Options.vue +6 -1
- package/package.json +1 -1
@@ -10,12 +10,13 @@ export const dynamicSteps = {
|
|
10
10
|
selectComputeResource: 4,
|
11
11
|
selectStorage: 5,
|
12
12
|
selectOptions: 6,
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
selectOptionsForDeployment: 7,
|
14
|
+
compatibility: 8,
|
15
|
+
selectGuestOSMachineType: 9,
|
16
|
+
selectGuestOS: 10,
|
17
|
+
customizeHardware: 11,
|
18
|
+
customizeHardwareTemplate: 12,
|
19
|
+
readyComplete: 13,
|
19
20
|
}
|
20
21
|
|
21
22
|
export const stepsFunc = (
|
@@ -121,6 +122,17 @@ export const stepsFunc = (
|
|
121
122
|
testId: 'vm-wizard-select-clone-options',
|
122
123
|
fields: {},
|
123
124
|
},
|
125
|
+
{
|
126
|
+
id: dynamicSteps.selectOptionsForDeployment,
|
127
|
+
stepName: '',
|
128
|
+
title: localization.common.selectOptionsTargetVm,
|
129
|
+
subTitle:
|
130
|
+
localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
|
131
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
132
|
+
isValid: true,
|
133
|
+
testId: 'vm-wizard-select-clone-options',
|
134
|
+
fields: {},
|
135
|
+
},
|
124
136
|
{
|
125
137
|
id: dynamicSteps.compatibility,
|
126
138
|
stepName: '',
|
@@ -226,7 +238,7 @@ export const stepsSchemeInitial = [
|
|
226
238
|
dynamicSteps.selectTemplate,
|
227
239
|
dynamicSteps.selectName,
|
228
240
|
dynamicSteps.selectStorage,
|
229
|
-
dynamicSteps.
|
241
|
+
dynamicSteps.selectOptionsForDeployment,
|
230
242
|
dynamicSteps.readyComplete,
|
231
243
|
],
|
232
244
|
// Deploy from template with Customize the operating system (Procurator)
|
@@ -235,7 +247,7 @@ export const stepsSchemeInitial = [
|
|
235
247
|
dynamicSteps.selectTemplate,
|
236
248
|
dynamicSteps.selectName,
|
237
249
|
dynamicSteps.selectStorage,
|
238
|
-
dynamicSteps.
|
250
|
+
dynamicSteps.selectOptionsForDeployment,
|
239
251
|
dynamicSteps.selectGuestOSMachineType,
|
240
252
|
dynamicSteps.readyComplete,
|
241
253
|
],
|
@@ -245,7 +257,7 @@ export const stepsSchemeInitial = [
|
|
245
257
|
dynamicSteps.selectTemplate,
|
246
258
|
dynamicSteps.selectName,
|
247
259
|
dynamicSteps.selectStorage,
|
248
|
-
dynamicSteps.
|
260
|
+
dynamicSteps.selectOptionsForDeployment,
|
249
261
|
dynamicSteps.customizeHardwareTemplate,
|
250
262
|
dynamicSteps.readyComplete,
|
251
263
|
],
|
@@ -255,7 +267,7 @@ export const stepsSchemeInitial = [
|
|
255
267
|
dynamicSteps.selectTemplate,
|
256
268
|
dynamicSteps.selectName,
|
257
269
|
dynamicSteps.selectStorage,
|
258
|
-
dynamicSteps.
|
270
|
+
dynamicSteps.selectOptionsForDeployment,
|
259
271
|
dynamicSteps.selectGuestOSMachineType,
|
260
272
|
dynamicSteps.customizeHardwareTemplate,
|
261
273
|
dynamicSteps.readyComplete,
|
@@ -1,153 +1,155 @@
|
|
1
|
-
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
2
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
3
|
-
import type { UI_I_DropdownTreeItem } from '~/components/atoms/dropdown/tree/lib/models/interfaces'
|
4
|
-
import type { UI_I_PciDevice } from '~/lib/models/store/vm/interfaces'
|
5
|
-
|
6
|
-
export const dropdownItemsFunc = (
|
7
|
-
localization: UI_I_Localization,
|
8
|
-
state: string | number | undefined,
|
9
|
-
passthroughDevices?: UI_I_PciDevice[],
|
10
|
-
mediatedDevices?: any[]
|
11
|
-
): UI_I_DropdownTreeItem[] => {
|
12
|
-
const { $text } = useNuxtApp()
|
13
|
-
|
14
|
-
return [
|
15
|
-
{
|
16
|
-
text: localization.common.disksDrivesStorage,
|
17
|
-
children: [
|
18
|
-
{
|
19
|
-
text: $text.toCapitalizeEveryWord(localization.common.hardDisk),
|
20
|
-
value: 1,
|
21
|
-
testId: 'disks-drives-storage',
|
22
|
-
},
|
23
|
-
{
|
24
|
-
text: $text.toCapitalizeEveryWord(
|
25
|
-
localization.common.existingHardDisk
|
26
|
-
),
|
27
|
-
value: 2,
|
28
|
-
testId: 'existing-hard-disk',
|
29
|
-
},
|
30
|
-
// { text: 'RDM Disk', value: 2 },
|
31
|
-
// { text: 'Host USB Device', value: 3 },
|
32
|
-
// { text: 'NVDIMM', value: 4 },
|
33
|
-
{
|
34
|
-
text: localization.common.cdDvdDrive,
|
35
|
-
value: 5,
|
36
|
-
testId: 'cd-dvd-drive',
|
37
|
-
},
|
38
|
-
],
|
39
|
-
},
|
40
|
-
// {
|
41
|
-
// text: 'Controllers',
|
42
|
-
// children: [
|
43
|
-
// { text: 'NVMe Controller', value: 6 },
|
44
|
-
// { text: 'SATA Controller', value: 7 },
|
45
|
-
// { text: 'SCSI Controller', value: 8 },
|
46
|
-
// { text: 'USB Controller', value: 9 },
|
47
|
-
// ],
|
48
|
-
// },
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
// { text: '
|
106
|
-
// { text: '
|
107
|
-
{
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
//
|
116
|
-
//
|
117
|
-
//
|
118
|
-
// { text: '
|
119
|
-
// { text: '
|
120
|
-
// { text: '
|
121
|
-
//
|
122
|
-
//
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
},
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
}
|
1
|
+
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
2
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
3
|
+
import type { UI_I_DropdownTreeItem } from '~/components/atoms/dropdown/tree/lib/models/interfaces'
|
4
|
+
import type { UI_I_PciDevice } from '~/lib/models/store/vm/interfaces'
|
5
|
+
|
6
|
+
export const dropdownItemsFunc = (
|
7
|
+
localization: UI_I_Localization,
|
8
|
+
state: string | number | undefined,
|
9
|
+
passthroughDevices?: UI_I_PciDevice[],
|
10
|
+
mediatedDevices?: any[]
|
11
|
+
): UI_I_DropdownTreeItem[] => {
|
12
|
+
const { $text } = useNuxtApp()
|
13
|
+
|
14
|
+
return [
|
15
|
+
{
|
16
|
+
text: localization.common.disksDrivesStorage,
|
17
|
+
children: [
|
18
|
+
{
|
19
|
+
text: $text.toCapitalizeEveryWord(localization.common.hardDisk),
|
20
|
+
value: 1,
|
21
|
+
testId: 'disks-drives-storage',
|
22
|
+
},
|
23
|
+
{
|
24
|
+
text: $text.toCapitalizeEveryWord(
|
25
|
+
localization.common.existingHardDisk
|
26
|
+
),
|
27
|
+
value: 2,
|
28
|
+
testId: 'existing-hard-disk',
|
29
|
+
},
|
30
|
+
// { text: 'RDM Disk', value: 2 },
|
31
|
+
// { text: 'Host USB Device', value: 3 },
|
32
|
+
// { text: 'NVDIMM', value: 4 },
|
33
|
+
{
|
34
|
+
text: localization.common.cdDvdDrive,
|
35
|
+
value: 5,
|
36
|
+
testId: 'cd-dvd-drive',
|
37
|
+
},
|
38
|
+
],
|
39
|
+
},
|
40
|
+
// {
|
41
|
+
// text: 'Controllers',
|
42
|
+
// children: [
|
43
|
+
// { text: 'NVMe Controller', value: 6 },
|
44
|
+
// { text: 'SATA Controller', value: 7 },
|
45
|
+
// { text: 'SCSI Controller', value: 8 },
|
46
|
+
// { text: 'USB Controller', value: 9 },
|
47
|
+
// ],
|
48
|
+
// },
|
49
|
+
// TODO 700
|
50
|
+
// {
|
51
|
+
// text: localization.common.otherDevices,
|
52
|
+
// children: [
|
53
|
+
// {
|
54
|
+
// text: localization.common.pciDevice,
|
55
|
+
// value: 10,
|
56
|
+
// disabled:
|
57
|
+
// state === 2 ||
|
58
|
+
// (!passthroughDevices?.length && !mediatedDevices?.length),
|
59
|
+
// testId: 'pci-device',
|
60
|
+
// },
|
61
|
+
// // { text: 'Watchdog Timer', value: 11 },
|
62
|
+
// // { text: 'Precision Clock', value: 12 },
|
63
|
+
// // { text: 'Serial Port', value: 13 },
|
64
|
+
// ],
|
65
|
+
// },
|
66
|
+
{
|
67
|
+
text: localization.common.network,
|
68
|
+
children: [
|
69
|
+
{
|
70
|
+
text: $text.toCapitalizeEveryWord(localization.common.networkAdapter),
|
71
|
+
value: 14,
|
72
|
+
testId: 'network-adapter',
|
73
|
+
},
|
74
|
+
],
|
75
|
+
},
|
76
|
+
]
|
77
|
+
}
|
78
|
+
|
79
|
+
export const dropdownItemsNewFunc = (
|
80
|
+
localization: UI_I_Localization,
|
81
|
+
state: string | number | undefined,
|
82
|
+
passthroughDevices?: UI_I_PciDevice[],
|
83
|
+
mediatedDevices?: any
|
84
|
+
): UI_I_Dropdown[] => {
|
85
|
+
const { $text } = useNuxtApp()
|
86
|
+
|
87
|
+
return [
|
88
|
+
{
|
89
|
+
text: localization.common.disksDrivesStorage,
|
90
|
+
value: -1,
|
91
|
+
divider: true,
|
92
|
+
items: [
|
93
|
+
{
|
94
|
+
text: $text.toCapitalizeEveryWord(localization.common.hardDisk),
|
95
|
+
value: 1,
|
96
|
+
testId: 'disks-drives-storage',
|
97
|
+
},
|
98
|
+
{
|
99
|
+
text: $text.toCapitalizeEveryWord(
|
100
|
+
localization.common.existingHardDisk
|
101
|
+
),
|
102
|
+
value: 2,
|
103
|
+
testId: 'existing-hard-disk',
|
104
|
+
},
|
105
|
+
// { text: 'RDM Disk', value: 2 },
|
106
|
+
// { text: 'Host USB Device', value: 3 },
|
107
|
+
// { text: 'NVDIMM', value: 4 },
|
108
|
+
{
|
109
|
+
text: localization.common.cdDvdDrive,
|
110
|
+
value: 5,
|
111
|
+
testId: 'cd-dvd-drive',
|
112
|
+
},
|
113
|
+
],
|
114
|
+
},
|
115
|
+
// {
|
116
|
+
// text: 'Controllers',
|
117
|
+
// children: [
|
118
|
+
// { text: 'NVMe Controller', value: 6 },
|
119
|
+
// { text: 'SATA Controller', value: 7 },
|
120
|
+
// { text: 'SCSI Controller', value: 8 },
|
121
|
+
// { text: 'USB Controller', value: 9 },
|
122
|
+
// ],
|
123
|
+
// },
|
124
|
+
// TODO 700
|
125
|
+
// {
|
126
|
+
// text: localization.common.otherDevices,
|
127
|
+
// value: -1,
|
128
|
+
// divider: true,
|
129
|
+
// items: [
|
130
|
+
// {
|
131
|
+
// text: localization.common.pciDevice,
|
132
|
+
// value: 10,
|
133
|
+
// disabled:
|
134
|
+
// state === 2 ||
|
135
|
+
// (!passthroughDevices?.length && !mediatedDevices?.length),
|
136
|
+
// testId: 'pci-device',
|
137
|
+
// },
|
138
|
+
// // { text: 'Watchdog Timer', value: 11 },
|
139
|
+
// // { text: 'Precision Clock', value: 12 },
|
140
|
+
// // { text: 'Serial Port', value: 13 },
|
141
|
+
// ],
|
142
|
+
// },
|
143
|
+
{
|
144
|
+
text: localization.common.network,
|
145
|
+
value: -1,
|
146
|
+
items: [
|
147
|
+
{
|
148
|
+
text: $text.toCapitalizeEveryWord(localization.common.networkAdapter),
|
149
|
+
value: 14,
|
150
|
+
testId: 'network-adapter',
|
151
|
+
},
|
152
|
+
],
|
153
|
+
},
|
154
|
+
]
|
155
|
+
}
|
@@ -19,10 +19,11 @@
|
|
19
19
|
@invalid="remoteConsoleOptionsInvalid = $event"
|
20
20
|
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
21
21
|
/>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
<!-- TODO 700-->
|
23
|
+
<!-- <common-vm-actions-common-customize-hardware-vmoptions-tools-->
|
24
|
+
<!-- :tools="props.options?.guest_tools?.enabled"-->
|
25
|
+
<!-- @send-data="emits('send-data-tools', $event)"-->
|
26
|
+
<!-- />-->
|
26
27
|
<common-vm-actions-common-customize-hardware-vmoptions-boot-options
|
27
28
|
:error-validation-fields="props.errorValidationFields"
|
28
29
|
:hard-disks="props.hardDisks"
|
@@ -101,7 +102,8 @@ const emits = defineEmits<{
|
|
101
102
|
event: 'send-data-remote-console-options',
|
102
103
|
value: UI_I_SendDataRemoteConsoleOptions
|
103
104
|
): void
|
104
|
-
|
105
|
+
// TODO 700
|
106
|
+
// (event: 'send-data-tools', value: UI_I_SendDataTools): void
|
105
107
|
(event: 'send-data-boot-options', value: UI_I_SendDataBootOptions): void
|
106
108
|
(event: 'remove-error-by-title', value: string): void
|
107
109
|
}>()
|
@@ -21,10 +21,11 @@
|
|
21
21
|
@invalid="remoteConsoleOptionsInvalid = $event"
|
22
22
|
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
23
23
|
/>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
<!-- TODO 700-->
|
25
|
+
<!-- <common-vm-actions-common-customize-hardware-vmoptions-tools-->
|
26
|
+
<!-- :tools="props.options?.guest_tools?.enabled"-->
|
27
|
+
<!-- @send-data="emits('send-data-tools', $event)"-->
|
28
|
+
<!-- />-->
|
28
29
|
<common-vm-actions-common-customize-hardware-vmoptions-boot-options
|
29
30
|
:error-validation-fields="props.errorValidationFields"
|
30
31
|
:hard-disks="props.hardDisks"
|
@@ -97,7 +98,8 @@ const emits = defineEmits<{
|
|
97
98
|
event: 'send-data-remote-console-options',
|
98
99
|
value: UI_I_SendDataRemoteConsoleOptions
|
99
100
|
): void
|
100
|
-
|
101
|
+
// TODO 700
|
102
|
+
// (event: 'send-data-tools', value: UI_I_SendDataTools): void
|
101
103
|
(event: 'send-data-boot-options', value: UI_I_SendDataBootOptions): void
|
102
104
|
(event: 'remove-error-by-title', value: string): void
|
103
105
|
}>()
|
package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue
CHANGED
@@ -102,11 +102,12 @@
|
|
102
102
|
v-model:usb-redirection="usbRedirection"
|
103
103
|
:disabled="props.isDisabled"
|
104
104
|
/>
|
105
|
-
|
106
|
-
|
107
|
-
v-
|
108
|
-
:
|
109
|
-
|
105
|
+
<!-- TODO 700-->
|
106
|
+
<!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing-->
|
107
|
+
<!-- v-if="remoteConsoleType === 'spice'"-->
|
108
|
+
<!-- v-model:folder-sharing="folderSharing"-->
|
109
|
+
<!-- :disabled="props.isDisabled"-->
|
110
|
+
<!-- />-->
|
110
111
|
</template>
|
111
112
|
</ui-stack-block>
|
112
113
|
</template>
|
@@ -127,7 +128,8 @@ const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
|
|
127
128
|
const usbRedirection = defineModel<number>('usbRedirection', {
|
128
129
|
required: true,
|
129
130
|
})
|
130
|
-
|
131
|
+
// TODO 700
|
132
|
+
// const folderSharing = defineModel<boolean>('folderSharing', { required: true })
|
131
133
|
|
132
134
|
const props = defineProps<{
|
133
135
|
// TODO возможно вернем, НЕ УДАЛЯТЬ
|
package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue
CHANGED
@@ -98,11 +98,12 @@
|
|
98
98
|
v-model:usb-redirection="usbRedirection"
|
99
99
|
:disabled="props.isDisabled"
|
100
100
|
/>
|
101
|
-
|
102
|
-
|
103
|
-
v-
|
104
|
-
:
|
105
|
-
|
101
|
+
<!-- TODO 700-->
|
102
|
+
<!-- <common-vm-actions-common-customize-hardware-vmoptions-remote-console-options-folder-sharing-->
|
103
|
+
<!-- v-if="remoteConsoleType === 'spice'"-->
|
104
|
+
<!-- v-model:folder-sharing="folderSharing"-->
|
105
|
+
<!-- :disabled="props.isDisabled"-->
|
106
|
+
<!-- />-->
|
106
107
|
</template>
|
107
108
|
</atoms-stack-block>
|
108
109
|
</div>
|
@@ -124,7 +125,8 @@ const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
|
|
124
125
|
const usbRedirection = defineModel<number>('usbRedirection', {
|
125
126
|
required: true,
|
126
127
|
})
|
127
|
-
|
128
|
+
// TODO 700
|
129
|
+
// const folderSharing = defineModel<boolean>('folderSharing', { required: true })
|
128
130
|
|
129
131
|
const props = defineProps<{
|
130
132
|
// TODO возможно вернем, НЕ УДАЛЯТЬ
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="select-options">
|
2
|
+
<div :class="['select-options', {disabled: props.isCreateTemplate}]">
|
3
3
|
<div class="checkbox">
|
4
4
|
<input
|
5
5
|
id="customize-os"
|
@@ -63,6 +63,11 @@ watch(selectedOptions, (newValue) => {
|
|
63
63
|
.select-options {
|
64
64
|
padding: 12px 0 0;
|
65
65
|
|
66
|
+
&.disabled {
|
67
|
+
input, label {
|
68
|
+
cursor: not-allowed;
|
69
|
+
}
|
70
|
+
}
|
66
71
|
.checkbox {
|
67
72
|
margin: 6px 0;
|
68
73
|
}
|