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