bfg-common 1.5.556 → 1.5.558
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 +14 -81
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +7 -56
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +8 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +73 -142
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +60 -54
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +61 -55
- 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/newNetwork/NewNetwork.vue +58 -74
- 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 +4 -38
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +7 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsOld.vue +24 -50
- package/components/common/vm/actions/common/lib/models/interfaces.ts +57 -25
- package/components/common/vm/actions/editSettings/EditSettings.vue +21 -35
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +14 -41
- package/components/common/vm/actions/editSettings/new/New.vue +14 -41
- 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
|
@@ -102,37 +102,53 @@ export const constructDiskDevicesFunc = (
|
|
|
102
102
|
export const constructSendDataForm = (
|
|
103
103
|
data: UI_I_VmConstructData
|
|
104
104
|
): UI_I_CreateVmData => {
|
|
105
|
+
const { form, uuid = '' } = data
|
|
106
|
+
|
|
105
107
|
const {
|
|
106
|
-
options,
|
|
107
108
|
name,
|
|
108
|
-
|
|
109
|
-
videoCard,
|
|
110
|
-
diskDevices,
|
|
111
|
-
networks,
|
|
109
|
+
options,
|
|
112
110
|
storage,
|
|
111
|
+
compatibility,
|
|
112
|
+
guest_os_family,
|
|
113
|
+
guest_os_version,
|
|
114
|
+
machine_type,
|
|
115
|
+
video_card,
|
|
116
|
+
disk_devices,
|
|
117
|
+
network_devices,
|
|
118
|
+
passthrough_pci_devices,
|
|
113
119
|
cpu,
|
|
114
120
|
memory,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
usb_controllers,
|
|
122
|
+
input_devices,
|
|
123
|
+
} = form
|
|
124
|
+
|
|
125
|
+
const diskDevices: (
|
|
126
|
+
| UI_I_CreateVmDataNewDiskDevice
|
|
127
|
+
| UI_I_CreateVmDataExistDiskDevice
|
|
128
|
+
| UI_I_CreateVmDataCdDvdDevice
|
|
129
|
+
)[] = constructDiskDevicesFunc(
|
|
130
|
+
disk_devices.filter((disk) => disk.device_type !== 'cdrom'),
|
|
131
|
+
disk_devices.filter((disk) => disk.device_type === 'cdrom')
|
|
132
|
+
)
|
|
119
133
|
|
|
120
134
|
return {
|
|
121
|
-
options,
|
|
122
|
-
name,
|
|
123
135
|
uuid,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
136
|
+
name,
|
|
137
|
+
options,
|
|
138
|
+
compatibility,
|
|
139
|
+
usb_controllers,
|
|
140
|
+
input_devices,
|
|
141
|
+
storage: { id: storage?.id || '' },
|
|
142
|
+
guest_os_family: guest_os_family?.value,
|
|
143
|
+
guest_os_version: guest_os_version?.value,
|
|
144
|
+
machine_type: machine_type?.value,
|
|
145
|
+
video_card: video_card,
|
|
129
146
|
disk_devices: diskDevices,
|
|
130
|
-
network_devices:
|
|
131
|
-
passthrough_pci_devices:
|
|
132
|
-
storage,
|
|
147
|
+
network_devices: network_devices,
|
|
148
|
+
passthrough_pci_devices: passthrough_pci_devices,
|
|
133
149
|
cpu: {
|
|
134
150
|
vcpus: cpu.vcpus,
|
|
135
|
-
max_vcpus: cpu.max_vcpus,
|
|
151
|
+
max_vcpus: cpu.hotplug ? cpu.max_vcpus : 0,
|
|
136
152
|
core_per_socket: cpu.core_per_socket,
|
|
137
153
|
model: cpu.model,
|
|
138
154
|
reservation_mhz: cpu.reservation_mhz,
|
|
@@ -141,22 +157,11 @@ export const constructSendDataForm = (
|
|
|
141
157
|
hotplug: cpu.hotplug,
|
|
142
158
|
},
|
|
143
159
|
memory: {
|
|
144
|
-
size_mb: +memory.
|
|
160
|
+
size_mb: +memory.size_mb,
|
|
145
161
|
hotplug: memory.hotplug,
|
|
146
162
|
reservation_mb: +memory.reservation_mb,
|
|
147
163
|
limit_mb: +memory.limit_mb,
|
|
148
164
|
},
|
|
149
|
-
usb_controllers: [
|
|
150
|
-
{
|
|
151
|
-
type: usbController,
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
input_devices: [
|
|
155
|
-
{
|
|
156
|
-
type: 'keyboard',
|
|
157
|
-
bus: 'usb',
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
165
|
}
|
|
161
166
|
}
|
|
162
167
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.558",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxt build",
|
|
7
7
|
"dev": "nuxt dev --port=3002",
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
"@vueuse/nuxt": "10.1.2",
|
|
18
18
|
"eslint-config-prettier": "^8.5.0",
|
|
19
19
|
"nuxt": "3.11.2",
|
|
20
|
-
"@nuxt/kit": "3.11.2",
|
|
21
|
-
"@nuxt/schema": "3.11.2",
|
|
22
20
|
"prettier": "2.7.1",
|
|
23
21
|
"sass": "^1.54.9",
|
|
24
22
|
"sass-loader": "^10.3.1",
|
|
File without changes
|