bfg-common 1.4.59 → 1.4.61
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 +215 -215
- package/assets/localization/local_en.json +215 -215
- package/assets/localization/local_hy.json +215 -215
- package/assets/localization/local_kk.json +215 -215
- package/assets/localization/local_ru.json +215 -215
- package/assets/localization/local_zh.json +215 -215
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/common/browse/blocks/Title.vue +91 -91
- package/components/common/browse/blocks/info/Date.vue +21 -21
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +198 -198
- package/components/common/context/recursion/RecursionOld.vue +212 -212
- package/components/common/monitor/advanced/Advanced.vue +3 -4
- package/components/common/monitor/advanced/GraphView.vue +1 -1
- package/components/common/monitor/advanced/table/Table.vue +1 -3
- package/components/common/monitor/advanced/tools/Tools.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +8 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +278 -222
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +5 -5
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +12 -14
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +16 -16
- package/components/common/monitor/overview/Overview.vue +1 -1
- package/components/common/monitor/overview/filters/Filters.vue +2 -2
- package/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker.ts +5 -5
- package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +14 -13
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +5 -5
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/Table.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +5 -5
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +12 -12
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +6 -6
- package/components/common/split/horizontal/HorizontalNew.vue +321 -321
- package/components/common/vm/actions/add/Add.vue +603 -598
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +61 -57
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
- package/components/common/vm/actions/common/lib/config/capabilities.ts +1 -0
- package/components/common/vm/actions/common/lib/models/interfaces.ts +148 -139
- package/components/common/vm/actions/common/lib/utils/capabilities.ts +46 -0
- package/components/common/vm/actions/common/select/lib/models/interfaces.ts +35 -32
- package/components/common/vm/actions/common/select/os/os.vue +233 -227
- package/components/common/wizards/datastore/add/Add.vue +437 -437
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/binary.ts +4 -0
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/store/tasks/mappers/recentTasks.ts +45 -45
|
@@ -1,139 +1,148 @@
|
|
|
1
|
-
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
2
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
-
import {
|
|
4
|
-
UI_I_SendDataNewNetwork,
|
|
5
|
-
UI_I_SendDataNewPciDevice,
|
|
6
|
-
UI_I_SendDataVideoCard,
|
|
7
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
8
|
-
import type { UI_I_SendDataVmoptions } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
9
|
-
import {UI_I_TreeNode} from
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
interface
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
1
|
+
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
2
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
+
import type {
|
|
4
|
+
UI_I_SendDataNewNetwork,
|
|
5
|
+
UI_I_SendDataNewPciDevice,
|
|
6
|
+
UI_I_SendDataVideoCard,
|
|
7
|
+
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
8
|
+
import type { UI_I_SendDataVmoptions } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
9
|
+
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
10
|
+
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
11
|
+
|
|
12
|
+
export interface UI_I_Capabilities {
|
|
13
|
+
bus_types: UI_I_ArbitraryObject<UI_I_ArbitraryObject<string>>
|
|
14
|
+
cpu_models: UI_I_ArbitraryObject<string>
|
|
15
|
+
machine_types: UI_I_ArbitraryObject<string>
|
|
16
|
+
max_mem_kib: number
|
|
17
|
+
max_vcpus: number
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface UI_I_VmForm {
|
|
21
|
+
name: string
|
|
22
|
+
compatibility: string
|
|
23
|
+
storage: UI_I_DatastoreTableItem | null
|
|
24
|
+
guestMachineType: UI_I_OptionItem | null
|
|
25
|
+
guestOsFamily: UI_I_OptionItem | null
|
|
26
|
+
guestOsVersion: UI_I_OptionItem | null
|
|
27
|
+
computeResource: UI_I_TreeNode | null
|
|
28
|
+
locationPath: string
|
|
29
|
+
dataCenter: UI_I_TreeNode | null
|
|
30
|
+
}
|
|
31
|
+
export interface UI_I_VmFormCash {
|
|
32
|
+
dataCenterId: string | number | null
|
|
33
|
+
computeResourceTypeAndId: string | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface UI_I_ErrorMessage {
|
|
37
|
+
title: string
|
|
38
|
+
descriptions: string[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface UI_I_CreateVmDataStorage {
|
|
42
|
+
id: string
|
|
43
|
+
}
|
|
44
|
+
interface UI_I_CreateVmDataCpu {
|
|
45
|
+
vcpus: number
|
|
46
|
+
max_vcpus: number
|
|
47
|
+
core_per_socket: number
|
|
48
|
+
model: string
|
|
49
|
+
reservation_mhz: number
|
|
50
|
+
limit_mhz: number
|
|
51
|
+
shares: number
|
|
52
|
+
hotplug: boolean
|
|
53
|
+
}
|
|
54
|
+
interface UI_I_CreateVmDataMemory {
|
|
55
|
+
size_mb: number
|
|
56
|
+
hotplug: boolean
|
|
57
|
+
reservation_mb: number
|
|
58
|
+
limit_mb: number
|
|
59
|
+
}
|
|
60
|
+
export interface UI_I_CreateVmDataUsbController {
|
|
61
|
+
type: string
|
|
62
|
+
}
|
|
63
|
+
interface UI_I_CreateVmDataInputDevices {
|
|
64
|
+
type: string
|
|
65
|
+
bus: string
|
|
66
|
+
}
|
|
67
|
+
export interface UI_I_CreateVmDataNewDiskDevice {
|
|
68
|
+
create: boolean
|
|
69
|
+
size: number
|
|
70
|
+
bus: string
|
|
71
|
+
storage_id: string
|
|
72
|
+
provision_type: string
|
|
73
|
+
disk_mode: string
|
|
74
|
+
boot_order: number
|
|
75
|
+
// новое
|
|
76
|
+
device_type: string
|
|
77
|
+
sharing: boolean
|
|
78
|
+
shares: number
|
|
79
|
+
cache: string
|
|
80
|
+
io: string
|
|
81
|
+
limit_iops: number
|
|
82
|
+
}
|
|
83
|
+
export interface UI_I_EditVmDataDiskDevice {
|
|
84
|
+
size: number
|
|
85
|
+
source: string
|
|
86
|
+
storage_id: string
|
|
87
|
+
device_type: string
|
|
88
|
+
bus: string
|
|
89
|
+
target: string
|
|
90
|
+
boot_order: number
|
|
91
|
+
provision_type: string
|
|
92
|
+
disk_mode: string
|
|
93
|
+
sharing: boolean
|
|
94
|
+
read_only: boolean
|
|
95
|
+
shares: number
|
|
96
|
+
cache: string
|
|
97
|
+
io: string
|
|
98
|
+
limit_iops: number
|
|
99
|
+
discard: string
|
|
100
|
+
attach: boolean
|
|
101
|
+
detach: boolean
|
|
102
|
+
remove: boolean
|
|
103
|
+
create: boolean
|
|
104
|
+
}
|
|
105
|
+
export interface UI_I_CreateVmDataExistDiskDevice {
|
|
106
|
+
create: false
|
|
107
|
+
source: string
|
|
108
|
+
bus: string
|
|
109
|
+
device_type: string
|
|
110
|
+
provision_type: string
|
|
111
|
+
disk_mode: string
|
|
112
|
+
boot_order: number
|
|
113
|
+
// новое
|
|
114
|
+
sharing: boolean
|
|
115
|
+
shares: number
|
|
116
|
+
cache: string
|
|
117
|
+
io: string
|
|
118
|
+
limit_iops: number
|
|
119
|
+
}
|
|
120
|
+
export interface UI_I_CreateVmDataCdDvdDevice {
|
|
121
|
+
create: false
|
|
122
|
+
source: string
|
|
123
|
+
bus: string
|
|
124
|
+
device_type: 'cdrom'
|
|
125
|
+
boot_order: number
|
|
126
|
+
}
|
|
127
|
+
export interface UI_I_CreateVmData {
|
|
128
|
+
name: string
|
|
129
|
+
uuid: string
|
|
130
|
+
compatibility: string
|
|
131
|
+
guest_os_family: string
|
|
132
|
+
guest_os_version: string
|
|
133
|
+
machine_type: string
|
|
134
|
+
video_card: UI_I_SendDataVideoCard
|
|
135
|
+
disk_devices: (
|
|
136
|
+
| UI_I_CreateVmDataNewDiskDevice
|
|
137
|
+
| UI_I_CreateVmDataExistDiskDevice
|
|
138
|
+
| UI_I_CreateVmDataCdDvdDevice
|
|
139
|
+
)[]
|
|
140
|
+
network_devices: UI_I_SendDataNewNetwork[]
|
|
141
|
+
passthrough_pci_devices: UI_I_SendDataNewPciDevice[]
|
|
142
|
+
options: UI_I_SendDataVmoptions
|
|
143
|
+
storage: UI_I_CreateVmDataStorage
|
|
144
|
+
cpu: UI_I_CreateVmDataCpu
|
|
145
|
+
memory: UI_I_CreateVmDataMemory
|
|
146
|
+
usb_controllers: UI_I_CreateVmDataUsbController[]
|
|
147
|
+
input_devices: UI_I_CreateVmDataInputDevices[]
|
|
148
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
2
|
+
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
|
3
|
+
|
|
4
|
+
export const mapCapabilities = (
|
|
5
|
+
capabilitiesFromApi: UI_I_Capabilities
|
|
6
|
+
): void => {
|
|
7
|
+
const { $binary } = useNuxtApp()
|
|
8
|
+
|
|
9
|
+
capabilities.dataFromApi = capabilitiesFromApi
|
|
10
|
+
|
|
11
|
+
// Machine Types
|
|
12
|
+
capabilities.machineTypes = Object.keys(
|
|
13
|
+
capabilitiesFromApi.machine_types
|
|
14
|
+
).map((key) => {
|
|
15
|
+
return {
|
|
16
|
+
text: capabilitiesFromApi.machine_types[key],
|
|
17
|
+
value: key,
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
// CPU Models
|
|
21
|
+
capabilities.cpuModels = Object.keys(capabilitiesFromApi.cpu_models).map(
|
|
22
|
+
(key) => {
|
|
23
|
+
return {
|
|
24
|
+
text: capabilitiesFromApi.cpu_models[key],
|
|
25
|
+
value: key,
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
capabilities.maxCpus = capabilitiesFromApi.max_vcpus
|
|
31
|
+
capabilities.maxMemory = $binary.kbToMb(capabilitiesFromApi.max_mem_kib)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const mapCapabilitiesBus = (machineType: string): void => {
|
|
35
|
+
if (capabilities.dataFromApi) {
|
|
36
|
+
const buseType = capabilities.dataFromApi.bus_types[machineType]
|
|
37
|
+
capabilities.bus = Object.keys(buseType).map(
|
|
38
|
+
(key) => {
|
|
39
|
+
return {
|
|
40
|
+
text: buseType[key],
|
|
41
|
+
value: key,
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
3
|
+
import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
4
|
+
|
|
5
|
+
export interface UI_I_OsChange {
|
|
6
|
+
selectedMachineType: UI_I_OptionItem | null
|
|
7
|
+
selectedOS: UI_I_OptionItem | null
|
|
8
|
+
selectedVersion: UI_I_OptionItem | null
|
|
9
|
+
windowsVirtualization: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface API_UI_I_CompatibilityCpu {
|
|
13
|
+
max_vcpus: number
|
|
14
|
+
models: UI_I_ArbitraryObject<string>
|
|
15
|
+
}
|
|
16
|
+
export interface API_UI_I_Compatibility {
|
|
17
|
+
compatibility: UI_I_ArbitraryObject<string>
|
|
18
|
+
guest_os_families: UI_I_ArbitraryObject<string>
|
|
19
|
+
guest_os_versions: UI_I_ArbitraryObject<UI_I_ArbitraryObject<string>>
|
|
20
|
+
machine_types: UI_I_ArbitraryObject<string>
|
|
21
|
+
cpu: API_UI_I_CompatibilityCpu
|
|
22
|
+
max_memory_mb: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UI_I_Compatibility {
|
|
26
|
+
compatibility: UI_I_OptionItem[]
|
|
27
|
+
guestOsFamilies: UI_I_OptionItem[]
|
|
28
|
+
guestOsVersions: UI_I_ArbitraryObject<UI_I_OptionItem[]>
|
|
29
|
+
machineTypes: UI_I_OptionItem[]
|
|
30
|
+
cpuModels: UI_I_OptionItem[]
|
|
31
|
+
bus: UI_I_OptionItem[]
|
|
32
|
+
maxCpus: number
|
|
33
|
+
maxMemory: number
|
|
34
|
+
dataFromApi?: UI_I_Capabilities
|
|
35
|
+
}
|