bfg-common 1.5.554 → 1.5.555
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 +4 -20
- package/assets/localization/local_en.json +4 -20
- package/assets/localization/local_hy.json +4 -20
- package/assets/localization/local_kk.json +4 -20
- package/assets/localization/local_ru.json +4 -20
- package/assets/localization/local_zh.json +5 -21
- package/components/common/modals/confirmByInput/ConfirmByInput.vue +1 -9
- package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +2 -7
- package/components/common/pages/backups/modals/createBackup/New.vue +2 -8
- package/components/common/pages/backups/modals/restore/Restore.vue +5 -9
- package/components/common/pages/backups/modals/restore/RestoreNew.vue +3 -13
- package/components/common/pages/backups/modals/restore/RestoreOld.vue +18 -6
- package/components/common/vm/actions/add/Add.vue +46 -119
- package/components/common/vm/actions/add/New.vue +16 -54
- package/components/common/vm/actions/add/Old.vue +16 -55
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +13 -78
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +7 -52
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +8 -52
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +62 -96
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +13 -24
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +14 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +139 -159
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +8 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +8 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +62 -75
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +6 -17
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerOld.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +17 -39
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/lib/config/options.ts +4 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +6 -93
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +8 -62
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +8 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +5 -69
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +12 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsOld.vue +12 -33
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +114 -132
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +41 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderOld.vue +44 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +8 -23
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +21 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +26 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +28 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +24 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +8 -112
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapNew.vue → New.vue} +6 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapOld.vue → Old.vue} +5 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +6 -7
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +26 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +7 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsOld.vue +60 -86
- package/components/common/vm/actions/common/lib/models/interfaces.ts +57 -25
- package/components/common/vm/actions/editSettings/EditSettings.vue +10 -33
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +2 -30
- package/components/common/vm/actions/editSettings/new/New.vue +2 -30
- package/components/common/vm/actions/lib/models/interfaces.ts +4 -29
- package/components/common/vm/actions/lib/utils.ts +37 -32
- package/package.json +1 -3
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordNew.vue → New.vue} +0 -0
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordOld.vue → Old.vue} +0 -0
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<common-vm-actions-common-customize-hardware-new
|
|
3
3
|
v-if="isNewView"
|
|
4
|
-
v-model
|
|
5
|
-
v-model:guest-machine-type="guestMachineType"
|
|
6
|
-
v-model:guest-os-family="guestOsFamily"
|
|
7
|
-
v-model:guest-os-version="guestOsVersion"
|
|
4
|
+
v-model="model"
|
|
8
5
|
v-model:selected-nav-item="selectedNavItemLocal"
|
|
9
6
|
v-model:virtual-hardware-invalid="virtualHardwareInvalid"
|
|
10
7
|
v-model:vm-options-invalid="vmOptionsInvalid"
|
|
11
8
|
:error-validation-fields="props.errorValidationFields"
|
|
12
9
|
:storage="props.storage"
|
|
13
10
|
:cpu-models="props.cpuModels"
|
|
14
|
-
:hard-disks-for-boot-options="props.hardDisksForBootOptions"
|
|
15
|
-
:cd-dvd-drives-for-boot-options="props.cdDvdDrivesForBootOptions"
|
|
16
|
-
:networks-for-boot-options="props.networksForBootOptions"
|
|
17
|
-
:max-cpus="props.maxCpus"
|
|
18
11
|
:max-memory="props.maxMemory"
|
|
19
12
|
:nodes="props.nodes"
|
|
20
13
|
:files="props.files"
|
|
21
14
|
:networks-table="props.networksTable"
|
|
22
|
-
:cpu="props.cpu"
|
|
23
|
-
:memory="props.memory"
|
|
24
15
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
25
16
|
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
26
17
|
:datastore="props.datastore"
|
|
@@ -30,8 +21,6 @@
|
|
|
30
21
|
:networks="props.networks"
|
|
31
22
|
:video-card="props.videoCard"
|
|
32
23
|
:pci-devices="props.pciDevices"
|
|
33
|
-
:usb-controller="props.usbController"
|
|
34
|
-
:options="props.options"
|
|
35
24
|
:is-edit="props.isEdit"
|
|
36
25
|
:is-clone="props.isClone"
|
|
37
26
|
:state="props.state"
|
|
@@ -43,8 +32,6 @@
|
|
|
43
32
|
:compute-resource="props.computeResource"
|
|
44
33
|
:compatibility-info="props.compatibilityInfo"
|
|
45
34
|
:is-vmt="props.isVmt"
|
|
46
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
47
|
-
@send-data="emits('send-data', $event)"
|
|
48
35
|
@next="emits('next')"
|
|
49
36
|
@get-storage="emits('get-storage', $event)"
|
|
50
37
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
@@ -54,31 +41,20 @@
|
|
|
54
41
|
@get-networks-table="emits('get-networks-table', $event)"
|
|
55
42
|
@get-pci-devices="emits('get-pci-devices')"
|
|
56
43
|
@remove-validation-errors="onRemoveValidationErrors"
|
|
57
|
-
@send-data-virtual-hardware-method="onSendDataVirtualHardwareMethod"
|
|
58
|
-
@send-data-vm-options-method="onSendDataVmOptionsMethod"
|
|
59
44
|
/>
|
|
60
45
|
<common-vm-actions-common-customize-hardware-old
|
|
61
46
|
v-else
|
|
62
|
-
v-model
|
|
63
|
-
v-model:guest-machine-type="guestMachineType"
|
|
64
|
-
v-model:guest-os-family="guestOsFamily"
|
|
65
|
-
v-model:guest-os-version="guestOsVersion"
|
|
47
|
+
v-model="model"
|
|
66
48
|
v-model:selected-nav-item="selectedNavItemLocal"
|
|
67
49
|
v-model:virtual-hardware-invalid="virtualHardwareInvalid"
|
|
68
50
|
v-model:vm-options-invalid="vmOptionsInvalid"
|
|
69
51
|
:error-validation-fields="props.errorValidationFields"
|
|
70
52
|
:storage="props.storage"
|
|
71
53
|
:cpu-models="props.cpuModels"
|
|
72
|
-
:hard-disks-for-boot-options="props.hardDisksForBootOptions"
|
|
73
|
-
:cd-dvd-drives-for-boot-options="props.cdDvdDrivesForBootOptions"
|
|
74
|
-
:networks-for-boot-options="props.networksForBootOptions"
|
|
75
|
-
:max-cpus="props.maxCpus"
|
|
76
54
|
:max-memory="props.maxMemory"
|
|
77
55
|
:nodes="props.nodes"
|
|
78
56
|
:files="props.files"
|
|
79
57
|
:networks-table="props.networksTable"
|
|
80
|
-
:cpu="props.cpu"
|
|
81
|
-
:memory="props.memory"
|
|
82
58
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
83
59
|
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
84
60
|
:datastore="props.datastore"
|
|
@@ -88,8 +64,6 @@
|
|
|
88
64
|
:networks="props.networks"
|
|
89
65
|
:video-card="props.videoCard"
|
|
90
66
|
:pci-devices="props.pciDevices"
|
|
91
|
-
:usb-controller="props.usbController"
|
|
92
|
-
:options="props.options"
|
|
93
67
|
:is-edit="props.isEdit"
|
|
94
68
|
:is-clone="props.isClone"
|
|
95
69
|
:state="props.state"
|
|
@@ -100,8 +74,6 @@
|
|
|
100
74
|
:errors="errors"
|
|
101
75
|
:compute-resource="props.computeResource"
|
|
102
76
|
:is-vmt="props.isVmt"
|
|
103
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
104
|
-
@send-data="emits('send-data', $event)"
|
|
105
77
|
@next="emits('next')"
|
|
106
78
|
@get-storage="emits('get-storage', $event)"
|
|
107
79
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
@@ -111,8 +83,6 @@
|
|
|
111
83
|
@get-networks-table="emits('get-networks-table', $event)"
|
|
112
84
|
@get-pci-devices="emits('get-pci-devices')"
|
|
113
85
|
@remove-validation-errors="onRemoveValidationErrors"
|
|
114
|
-
@send-data-virtual-hardware-method="onSendDataVirtualHardwareMethod"
|
|
115
|
-
@send-data-vm-options-method="onSendDataVmOptionsMethod"
|
|
116
86
|
/>
|
|
117
87
|
</template>
|
|
118
88
|
|
|
@@ -129,42 +99,30 @@ import type {
|
|
|
129
99
|
UI_I_SendDataNewHardDisk,
|
|
130
100
|
UI_I_SendDataNewNetwork,
|
|
131
101
|
UI_I_SendDataVideoCard,
|
|
132
|
-
UI_I_SendDataVirtualHardware,
|
|
133
102
|
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
134
|
-
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
|
135
|
-
import type { UI_I_SendDataVmoptions } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
136
103
|
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
|
137
104
|
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
138
105
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
139
106
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
140
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
|
141
107
|
import type {
|
|
142
|
-
API_UI_I_VmEditCpu,
|
|
143
|
-
API_UI_I_VmEditMemory,
|
|
144
108
|
UI_I_MediatedDevice,
|
|
145
109
|
UI_I_PciDevice,
|
|
146
110
|
} from '~/lib/models/store/vm/interfaces'
|
|
147
111
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
148
112
|
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
113
|
+
import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
149
114
|
import { navItemsFunc } from '~/components/common/vm/actions/common/customizeHardware/lib/config/navItems'
|
|
150
115
|
|
|
151
|
-
const
|
|
152
|
-
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
153
|
-
'guest-machine-type'
|
|
154
|
-
)
|
|
155
|
-
const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily')
|
|
156
|
-
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion')
|
|
157
|
-
|
|
116
|
+
const model = defineModel<UI_I_CreateVmData>({ required: true })
|
|
158
117
|
const props = withDefaults(
|
|
159
118
|
defineProps<{
|
|
160
119
|
errorValidationFields: UI_I_ErrorValidationField[]
|
|
161
120
|
storage: UI_I_DatastoreTableItem | null
|
|
162
121
|
cpuModels: UI_I_OptionItem[]
|
|
163
|
-
hardDisksForBootOptions: UI_I_SendDataNewHardDisk[] | null
|
|
164
|
-
cdDvdDrivesForBootOptions: UI_I_SendDataNewCdDvdDrive[] | null
|
|
165
|
-
networksForBootOptions: UI_I_SendDataNewNetwork[] | null
|
|
122
|
+
// hardDisksForBootOptions: UI_I_SendDataNewHardDisk[] | null // TODO remove everywhere
|
|
123
|
+
// cdDvdDrivesForBootOptions: UI_I_SendDataNewCdDvdDrive[] | null // TODO remove everywhere
|
|
124
|
+
// networksForBootOptions: UI_I_SendDataNewNetwork[] | null // TODO remove everywhere
|
|
166
125
|
customizeHardwareSubmit: null | Function
|
|
167
|
-
maxCpus: number
|
|
168
126
|
maxMemory: number
|
|
169
127
|
selectedNavItem: UI_T_SelectedNavItem
|
|
170
128
|
nodes: UI_I_FileTreeNode[]
|
|
@@ -172,8 +130,8 @@ const props = withDefaults(
|
|
|
172
130
|
networksTable: UI_I_NetworkTableItem[]
|
|
173
131
|
datastore: UI_I_DatastoreTableItem[]
|
|
174
132
|
isDatastoreLoading: boolean
|
|
175
|
-
cpu?: API_UI_I_VmEditCpu
|
|
176
|
-
memory?: API_UI_I_VmEditMemory
|
|
133
|
+
// cpu?: API_UI_I_VmEditCpu // TODO remove everywhere
|
|
134
|
+
// memory?: API_UI_I_VmEditMemory // TODO remove everywhere
|
|
177
135
|
vmCpuHelpTextSecond?: string
|
|
178
136
|
getDatastoreTableFunc?: (payload: UI_I_TablePayload) => Promise<void>
|
|
179
137
|
hardDisks?: UI_I_SendDataNewHardDisk[] | null
|
|
@@ -181,8 +139,8 @@ const props = withDefaults(
|
|
|
181
139
|
networks?: UI_I_SendDataNewNetwork[] | null
|
|
182
140
|
videoCard?: UI_I_SendDataVideoCard
|
|
183
141
|
pciDevices?: UI_I_SendDataNewPciDevice[]
|
|
184
|
-
usbController?: string
|
|
185
|
-
options?: UI_I_SendDataVmoptions
|
|
142
|
+
// usbController?: string // TODO remove everywhere
|
|
143
|
+
// options?: UI_I_SendDataVmoptions // TODO remove everywhere
|
|
186
144
|
isEdit?: boolean
|
|
187
145
|
isClone?: boolean
|
|
188
146
|
state?: string | number
|
|
@@ -194,8 +152,6 @@ const props = withDefaults(
|
|
|
194
152
|
isVmt?: boolean
|
|
195
153
|
}>(),
|
|
196
154
|
{
|
|
197
|
-
cpu: undefined,
|
|
198
|
-
memory: undefined,
|
|
199
155
|
vmCpuHelpTextSecond: undefined,
|
|
200
156
|
getDatastoreTableFunc: undefined,
|
|
201
157
|
hardDisks: undefined,
|
|
@@ -203,8 +159,6 @@ const props = withDefaults(
|
|
|
203
159
|
networks: undefined,
|
|
204
160
|
videoCard: undefined,
|
|
205
161
|
pciDevices: undefined,
|
|
206
|
-
usbController: undefined,
|
|
207
|
-
options: undefined,
|
|
208
162
|
isEdit: false,
|
|
209
163
|
isClone: false,
|
|
210
164
|
state: undefined,
|
|
@@ -217,8 +171,8 @@ const props = withDefaults(
|
|
|
217
171
|
}
|
|
218
172
|
)
|
|
219
173
|
const emits = defineEmits<{
|
|
220
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
|
221
|
-
(event: 'send-data', value: UI_I_SendDataCustomizeHardware): void
|
|
174
|
+
// (event: 'change-boot-order', value: UI_T_ChangeBootOrder): void // TODO remove everywhere
|
|
175
|
+
// (event: 'send-data', value: UI_I_SendDataCustomizeHardware): void // TODO remove everywhere
|
|
222
176
|
(event: 'next'): void
|
|
223
177
|
(event: 'get-storage', value: UI_I_TablePayload): void
|
|
224
178
|
(event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
|
|
@@ -245,25 +199,6 @@ watch(
|
|
|
245
199
|
}
|
|
246
200
|
)
|
|
247
201
|
|
|
248
|
-
const sendDataVirtualHardware = ref<UI_I_SendDataVirtualHardware | null>(null)
|
|
249
|
-
const onSendDataVirtualHardwareMethod = (
|
|
250
|
-
data: UI_I_SendDataVirtualHardware
|
|
251
|
-
): void => {
|
|
252
|
-
sendDataVirtualHardware.value = data
|
|
253
|
-
sendData()
|
|
254
|
-
}
|
|
255
|
-
const sendDataVmOptions = ref<UI_I_SendDataVmoptions | null>(null)
|
|
256
|
-
const onSendDataVmOptionsMethod = (data: UI_I_SendDataVmoptions): void => {
|
|
257
|
-
sendDataVmOptions.value = data
|
|
258
|
-
sendData()
|
|
259
|
-
}
|
|
260
|
-
const sendData = (): void => {
|
|
261
|
-
emits('send-data', {
|
|
262
|
-
virtualHardware: sendDataVirtualHardware.value,
|
|
263
|
-
vmOptions: sendDataVmOptions.value,
|
|
264
|
-
})
|
|
265
|
-
}
|
|
266
|
-
|
|
267
202
|
watch(
|
|
268
203
|
() => props.customizeHardwareSubmit,
|
|
269
204
|
(newValue) => {
|
|
@@ -25,13 +25,10 @@
|
|
|
25
25
|
|
|
26
26
|
<div v-show="selectedNavItem === 0">
|
|
27
27
|
<common-vm-actions-common-customize-hardware-virtual-hardware
|
|
28
|
-
:vm-name="
|
|
28
|
+
:vm-name="model.name"
|
|
29
29
|
:storage="props.storage"
|
|
30
|
-
:max-cpus="props.maxCpus"
|
|
31
30
|
:max-memory="props.maxMemory"
|
|
32
31
|
:cpu-models="props.cpuModels"
|
|
33
|
-
:cpu="props.cpu"
|
|
34
|
-
:memory="props.memory"
|
|
35
32
|
:is-edit="props.isEdit"
|
|
36
33
|
:is-clone="props.isClone"
|
|
37
34
|
:state="props.state"
|
|
@@ -40,7 +37,6 @@
|
|
|
40
37
|
:networks="props.networks"
|
|
41
38
|
:networks-table="props.networksTable"
|
|
42
39
|
:video-card="props.videoCard"
|
|
43
|
-
:usb-controller="props.usbController"
|
|
44
40
|
:pci-devices="props.pciDevices"
|
|
45
41
|
:nodes="props.nodes"
|
|
46
42
|
:files="props.files"
|
|
@@ -52,10 +48,9 @@
|
|
|
52
48
|
:passthrough-devices="props.passthroughDevices"
|
|
53
49
|
:mediated-devices="props.mediatedDevices"
|
|
54
50
|
:project="props.project"
|
|
55
|
-
:guest-machine-type="
|
|
51
|
+
:guest-machine-type="model.machine_type"
|
|
56
52
|
:computeResource="props.computeResource"
|
|
57
53
|
:compatibility-info="props.compatibilityInfo"
|
|
58
|
-
@send-data="emits('send-data-virtual-hardware-method', $event)"
|
|
59
54
|
@get-storage="emits('get-storage', $event)"
|
|
60
55
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
61
56
|
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
@@ -68,22 +63,13 @@
|
|
|
68
63
|
</div>
|
|
69
64
|
<div v-show="selectedNavItem === 1">
|
|
70
65
|
<common-vm-actions-common-customize-hardware-vmoptions
|
|
71
|
-
v-model
|
|
72
|
-
v-model:guest-machine-type="guestMachineType"
|
|
73
|
-
v-model:guest-os-family="guestOsFamily"
|
|
74
|
-
v-model:guest-os-version="guestOsVersion"
|
|
75
|
-
:hard-disks="props.hardDisksForBootOptions"
|
|
76
|
-
:cd-dvd-drives="props.cdDvdDrivesForBootOptions"
|
|
77
|
-
:networks="props.networksForBootOptions"
|
|
78
|
-
:options="props.options"
|
|
66
|
+
v-model="model"
|
|
79
67
|
:is-edit="props.isEdit"
|
|
80
68
|
:is-clone="props.isClone"
|
|
81
69
|
:error-validation-fields="props.errorValidationFields"
|
|
82
70
|
:state="props.state"
|
|
83
71
|
:compatibility-info="props.compatibilityInfo"
|
|
84
72
|
:is-vmt="props.isVmt"
|
|
85
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
86
|
-
@send-data="emits('send-data-vm-options-method', $event)"
|
|
87
73
|
@invalid="vmOptionsInvalid = $event"
|
|
88
74
|
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
89
75
|
/>
|
|
@@ -105,37 +91,24 @@ import type {
|
|
|
105
91
|
UI_I_SendDataNewHardDisk,
|
|
106
92
|
UI_I_SendDataNewNetwork,
|
|
107
93
|
UI_I_SendDataVideoCard,
|
|
108
|
-
UI_I_SendDataVirtualHardware,
|
|
109
94
|
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
110
|
-
import type { UI_I_SendDataVmoptions } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
111
95
|
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
|
112
96
|
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
113
97
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
114
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
|
115
98
|
import type {
|
|
116
|
-
API_UI_I_VmEditCpu,
|
|
117
|
-
API_UI_I_VmEditMemory,
|
|
118
99
|
UI_I_MediatedDevice,
|
|
119
100
|
UI_I_PciDevice,
|
|
120
101
|
} from '~/lib/models/store/vm/interfaces'
|
|
121
102
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
122
103
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
104
|
+
import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
123
105
|
import { navItemsNewViewFunc } from '~/components/common/vm/actions/common/customizeHardware/lib/config/navItems'
|
|
124
106
|
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
required: true,
|
|
128
|
-
})
|
|
129
|
-
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
|
|
130
|
-
required: true,
|
|
131
|
-
})
|
|
107
|
+
const model = defineModel<UI_I_CreateVmData>({ required: true })
|
|
108
|
+
|
|
132
109
|
const selectedNavItem = defineModel<UI_T_SelectedNavItem>('selectedNavItem', {
|
|
133
110
|
required: true,
|
|
134
111
|
})
|
|
135
|
-
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
136
|
-
'guestMachineType',
|
|
137
|
-
{ required: true }
|
|
138
|
-
)
|
|
139
112
|
const vmOptionsInvalid = defineModel<string[]>('vmOptionsInvalid', {
|
|
140
113
|
required: true,
|
|
141
114
|
})
|
|
@@ -149,7 +122,6 @@ const props = withDefaults(
|
|
|
149
122
|
files: UI_I_FileTreeNode[]
|
|
150
123
|
errors: string[]
|
|
151
124
|
storage: UI_I_DatastoreTableItem | null
|
|
152
|
-
maxCpus: number
|
|
153
125
|
navItems: UI_I_TabItem[]
|
|
154
126
|
cpuModels: UI_I_OptionItem[]
|
|
155
127
|
maxMemory: number
|
|
@@ -157,22 +129,15 @@ const props = withDefaults(
|
|
|
157
129
|
isDatastoreLoading: boolean
|
|
158
130
|
networksTable: UI_I_NetworkTableItem[]
|
|
159
131
|
errorValidationFields: UI_I_ErrorValidationField[]
|
|
160
|
-
networksForBootOptions: UI_I_SendDataNewNetwork[] | null
|
|
161
|
-
hardDisksForBootOptions: UI_I_SendDataNewHardDisk[] | null
|
|
162
|
-
cdDvdDrivesForBootOptions: UI_I_SendDataNewCdDvdDrive[] | null
|
|
163
|
-
cpu?: API_UI_I_VmEditCpu
|
|
164
132
|
state?: string | number
|
|
165
133
|
isEdit?: boolean
|
|
166
|
-
memory?: API_UI_I_VmEditMemory
|
|
167
134
|
project?: UI_T_Project
|
|
168
135
|
isClone?: boolean
|
|
169
|
-
options?: UI_I_SendDataVmoptions
|
|
170
136
|
networks?: UI_I_SendDataNewNetwork[] | null
|
|
171
137
|
videoCard?: UI_I_SendDataVideoCard
|
|
172
138
|
hardDisks?: UI_I_SendDataNewHardDisk[] | null
|
|
173
139
|
pciDevices?: UI_I_SendDataNewPciDevice[]
|
|
174
140
|
cdDvdDrives?: UI_I_SendDataNewCdDvdDrive[] | null
|
|
175
|
-
usbController?: string
|
|
176
141
|
passthroughDevices?: UI_I_PciDevice[]
|
|
177
142
|
mediatedDevices?: UI_I_MediatedDevice[]
|
|
178
143
|
vmCpuHelpTextSecond?: string
|
|
@@ -182,26 +147,22 @@ const props = withDefaults(
|
|
|
182
147
|
isVmt?: boolean
|
|
183
148
|
}>(),
|
|
184
149
|
{
|
|
185
|
-
cpu: undefined,
|
|
186
150
|
state: undefined,
|
|
187
151
|
isEdit: undefined,
|
|
188
|
-
memory: undefined,
|
|
189
152
|
project: undefined,
|
|
190
153
|
isClone: undefined,
|
|
191
|
-
options: undefined,
|
|
192
154
|
networks: undefined,
|
|
193
155
|
videoCard: undefined,
|
|
194
156
|
hardDisks: undefined,
|
|
195
157
|
pciDevices: undefined,
|
|
196
158
|
cdDvdDrives: undefined,
|
|
197
|
-
usbController: undefined,
|
|
198
159
|
passthroughDevices: undefined,
|
|
199
160
|
mediatedDevices: undefined,
|
|
200
161
|
vmCpuHelpTextSecond: undefined,
|
|
201
162
|
getDatastoreTableFunc: undefined,
|
|
202
163
|
computeResource: undefined,
|
|
203
164
|
compatibilityInfo: undefined,
|
|
204
|
-
isVmt:
|
|
165
|
+
isVmt: false,
|
|
205
166
|
}
|
|
206
167
|
)
|
|
207
168
|
const emits = defineEmits<{
|
|
@@ -213,12 +174,6 @@ const emits = defineEmits<{
|
|
|
213
174
|
(event: 'remove-error-by-title', value: string): void
|
|
214
175
|
(event: 'get-active-device-child', value: UI_I_FileTreeNode): void
|
|
215
176
|
(event: 'remove-validation-errors'): void
|
|
216
|
-
(event: 'send-data-vm-options-method', value: UI_I_SendDataVmoptions): void
|
|
217
|
-
(
|
|
218
|
-
event: 'send-data-virtual-hardware-method',
|
|
219
|
-
value: UI_I_SendDataVirtualHardware
|
|
220
|
-
): void
|
|
221
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
|
222
177
|
}>()
|
|
223
178
|
|
|
224
179
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -11,13 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
<div v-show="selectedNavItem === 0">
|
|
13
13
|
<common-vm-actions-common-customize-hardware-virtual-hardware
|
|
14
|
-
|
|
14
|
+
v-model="model"
|
|
15
|
+
:vm-name="model.name"
|
|
15
16
|
:storage="props.storage"
|
|
16
|
-
:max-cpus="props.maxCpus"
|
|
17
17
|
:max-memory="props.maxMemory"
|
|
18
18
|
:cpu-models="props.cpuModels"
|
|
19
|
-
:cpu="props.cpu"
|
|
20
|
-
:memory="props.memory"
|
|
21
19
|
:is-edit="props.isEdit"
|
|
22
20
|
:is-clone="props.isClone"
|
|
23
21
|
:state="props.state"
|
|
@@ -26,7 +24,6 @@
|
|
|
26
24
|
:networks="props.networks"
|
|
27
25
|
:networks-table="props.networksTable"
|
|
28
26
|
:video-card="props.videoCard"
|
|
29
|
-
:usb-controller="props.usbController"
|
|
30
27
|
:pci-devices="props.pciDevices"
|
|
31
28
|
:nodes="props.nodes"
|
|
32
29
|
:files="props.files"
|
|
@@ -38,9 +35,8 @@
|
|
|
38
35
|
:passthrough-devices="props.passthroughDevices"
|
|
39
36
|
:mediated-devices="props.mediatedDevices"
|
|
40
37
|
:project="props.project"
|
|
41
|
-
:guest-machine-type="
|
|
38
|
+
:guest-machine-type="model.machine_type"
|
|
42
39
|
:compute-resource="props.computeResource"
|
|
43
|
-
@send-data="emits('send-data-virtual-hardware-method', $event)"
|
|
44
40
|
@get-storage="emits('get-storage', $event)"
|
|
45
41
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
46
42
|
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
@@ -53,21 +49,12 @@
|
|
|
53
49
|
</div>
|
|
54
50
|
<div v-show="selectedNavItem === 1">
|
|
55
51
|
<common-vm-actions-common-customize-hardware-vmoptions
|
|
56
|
-
v-model
|
|
57
|
-
v-model:guest-machine-type="guestMachineType"
|
|
58
|
-
v-model:guest-os-family="guestOsFamily"
|
|
59
|
-
v-model:guest-os-version="guestOsVersion"
|
|
60
|
-
:hard-disks="props.hardDisksForBootOptions"
|
|
61
|
-
:cd-dvd-drives="props.cdDvdDrivesForBootOptions"
|
|
62
|
-
:networks="props.networksForBootOptions"
|
|
63
|
-
:options="props.options"
|
|
52
|
+
v-model="model"
|
|
64
53
|
:is-edit="props.isEdit"
|
|
65
54
|
:is-clone="props.isClone"
|
|
66
55
|
:error-validation-fields="props.errorValidationFields"
|
|
67
56
|
:state="props.state"
|
|
68
57
|
:is-vmt="props.isVmt"
|
|
69
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
70
|
-
@send-data="emits('send-data-vm-options-method', $event)"
|
|
71
58
|
@invalid="vmOptionsInvalid = $event"
|
|
72
59
|
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
73
60
|
/>
|
|
@@ -89,35 +76,22 @@ import type {
|
|
|
89
76
|
UI_I_SendDataNewHardDisk,
|
|
90
77
|
UI_I_SendDataNewNetwork,
|
|
91
78
|
UI_I_SendDataVideoCard,
|
|
92
|
-
UI_I_SendDataVirtualHardware,
|
|
93
79
|
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
94
|
-
import type { UI_I_SendDataVmoptions } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
95
80
|
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
|
96
81
|
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
97
82
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
98
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
|
99
83
|
import type {
|
|
100
|
-
API_UI_I_VmEditCpu,
|
|
101
|
-
API_UI_I_VmEditMemory,
|
|
102
84
|
UI_I_MediatedDevice,
|
|
103
85
|
UI_I_PciDevice,
|
|
104
86
|
} from '~/lib/models/store/vm/interfaces'
|
|
105
87
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
88
|
+
import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
89
|
+
|
|
90
|
+
const model = defineModel<UI_I_CreateVmData>({ required: true })
|
|
106
91
|
|
|
107
|
-
const vmName = defineModel<string>('vmName', { required: true })
|
|
108
|
-
const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
|
|
109
|
-
required: true,
|
|
110
|
-
})
|
|
111
|
-
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
|
|
112
|
-
required: true,
|
|
113
|
-
})
|
|
114
92
|
const selectedNavItem = defineModel<UI_T_SelectedNavItem>('selectedNavItem', {
|
|
115
93
|
required: true,
|
|
116
94
|
})
|
|
117
|
-
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
118
|
-
'guestMachineType',
|
|
119
|
-
{ required: true }
|
|
120
|
-
)
|
|
121
95
|
const vmOptionsInvalid = defineModel<string[]>('vmOptionsInvalid', {
|
|
122
96
|
required: true,
|
|
123
97
|
})
|
|
@@ -131,7 +105,6 @@ const props = withDefaults(
|
|
|
131
105
|
files: UI_I_FileTreeNode[]
|
|
132
106
|
errors: string[]
|
|
133
107
|
storage: UI_I_DatastoreTableItem | null
|
|
134
|
-
maxCpus: number
|
|
135
108
|
navItems: UI_I_TabItem[]
|
|
136
109
|
cpuModels: UI_I_OptionItem[]
|
|
137
110
|
maxMemory: number
|
|
@@ -139,22 +112,15 @@ const props = withDefaults(
|
|
|
139
112
|
isDatastoreLoading: boolean
|
|
140
113
|
networksTable: UI_I_NetworkTableItem[]
|
|
141
114
|
errorValidationFields: UI_I_ErrorValidationField[]
|
|
142
|
-
networksForBootOptions: UI_I_SendDataNewNetwork[] | null
|
|
143
|
-
hardDisksForBootOptions: UI_I_SendDataNewHardDisk[] | null
|
|
144
|
-
cdDvdDrivesForBootOptions: UI_I_SendDataNewCdDvdDrive[] | null
|
|
145
|
-
cpu?: API_UI_I_VmEditCpu
|
|
146
115
|
state?: string | number
|
|
147
116
|
isEdit?: boolean
|
|
148
|
-
memory?: API_UI_I_VmEditMemory
|
|
149
117
|
project?: UI_T_Project
|
|
150
118
|
isClone?: boolean
|
|
151
|
-
options?: UI_I_SendDataVmoptions
|
|
152
119
|
networks?: UI_I_SendDataNewNetwork[] | null
|
|
153
120
|
videoCard?: UI_I_SendDataVideoCard
|
|
154
121
|
hardDisks?: UI_I_SendDataNewHardDisk[] | null
|
|
155
122
|
pciDevices?: UI_I_SendDataNewPciDevice[]
|
|
156
123
|
cdDvdDrives?: UI_I_SendDataNewCdDvdDrive[] | null
|
|
157
|
-
usbController?: string
|
|
158
124
|
passthroughDevices?: UI_I_PciDevice[]
|
|
159
125
|
mediatedDevices?: UI_I_MediatedDevice[]
|
|
160
126
|
vmCpuHelpTextSecond?: string
|
|
@@ -163,25 +129,21 @@ const props = withDefaults(
|
|
|
163
129
|
isVmt?: boolean
|
|
164
130
|
}>(),
|
|
165
131
|
{
|
|
166
|
-
cpu: undefined,
|
|
167
132
|
state: undefined,
|
|
168
133
|
isEdit: undefined,
|
|
169
|
-
memory: undefined,
|
|
170
134
|
project: undefined,
|
|
171
135
|
isClone: undefined,
|
|
172
|
-
options: undefined,
|
|
173
136
|
networks: undefined,
|
|
174
137
|
videoCard: undefined,
|
|
175
138
|
hardDisks: undefined,
|
|
176
139
|
pciDevices: undefined,
|
|
177
140
|
cdDvdDrives: undefined,
|
|
178
|
-
usbController: undefined,
|
|
179
141
|
passthroughDevices: undefined,
|
|
180
142
|
mediatedDevices: undefined,
|
|
181
143
|
vmCpuHelpTextSecond: undefined,
|
|
182
144
|
getDatastoreTableFunc: undefined,
|
|
183
145
|
computeResource: undefined,
|
|
184
|
-
isVmt:
|
|
146
|
+
isVmt: false,
|
|
185
147
|
}
|
|
186
148
|
)
|
|
187
149
|
const emits = defineEmits<{
|
|
@@ -193,12 +155,6 @@ const emits = defineEmits<{
|
|
|
193
155
|
(event: 'remove-error-by-title', value: string): void
|
|
194
156
|
(event: 'get-active-device-child', value: UI_I_FileTreeNode): void
|
|
195
157
|
(event: 'remove-validation-errors'): void
|
|
196
|
-
(event: 'send-data-vm-options-method', value: UI_I_SendDataVmoptions): void
|
|
197
|
-
(
|
|
198
|
-
event: 'send-data-virtual-hardware-method',
|
|
199
|
-
value: UI_I_SendDataVirtualHardware
|
|
200
|
-
): void
|
|
201
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
|
202
158
|
}>()
|
|
203
159
|
</script>
|
|
204
160
|
|