bfg-common 1.4.88 → 1.4.90

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 (37) hide show
  1. package/assets/localization/local_be.json +4 -0
  2. package/assets/localization/local_en.json +4 -0
  3. package/assets/localization/local_hy.json +4 -0
  4. package/assets/localization/local_kk.json +4 -0
  5. package/assets/localization/local_ru.json +4 -0
  6. package/assets/localization/local_zh.json +4 -0
  7. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  8. package/components/atoms/stack/StackBlock.vue +184 -184
  9. package/components/common/browse/blocks/Title.vue +91 -91
  10. package/components/common/browse/blocks/info/Date.vue +21 -21
  11. package/components/common/context/recursion/Recursion.vue +86 -86
  12. package/components/common/context/recursion/RecursionNew.vue +198 -198
  13. package/components/common/context/recursion/RecursionOld.vue +212 -212
  14. package/components/common/layout/theHeader/TheHeaderNew.vue +81 -36
  15. package/components/common/layout/theHeader/ThemeSwitch.vue +36 -9
  16. package/components/common/layout/theHeader/helpMenu/helpMenuNew/HelpMenuNew.vue +35 -16
  17. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +32 -13
  18. package/components/common/split/horizontal/HorizontalNew.vue +321 -321
  19. package/components/common/vm/actions/add/Add.vue +609 -609
  20. package/components/common/vm/actions/clone/Clone.vue +522 -522
  21. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +151 -156
  22. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  25. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  26. package/components/common/vm/actions/common/lib/config/capabilities.ts +0 -1
  27. package/components/common/vm/actions/common/lib/models/interfaces.ts +148 -149
  28. package/components/common/vm/actions/common/lib/utils/capabilities.ts +41 -51
  29. package/components/common/vm/actions/common/select/lib/models/interfaces.ts +33 -34
  30. package/components/common/vm/actions/common/select/os/os.vue +227 -227
  31. package/components/common/vm/actions/editSettings/EditSettings.vue +327 -327
  32. package/composables/productNameLocal.ts +30 -30
  33. package/package.json +2 -2
  34. package/plugins/recursion.ts +311 -311
  35. package/public/spice-console/lib/images/bitmap.js +203 -203
  36. package/public/spice-console-minify/run.min.js +4 -4
  37. package/store/tasks/mappers/recentTasks.ts +45 -45
@@ -1,149 +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 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
- cdrom_bus_type: UI_I_ArbitraryObject<UI_I_ArbitraryObject<string>>
15
- cpu_models: UI_I_ArbitraryObject<string>
16
- machine_types: UI_I_ArbitraryObject<string>
17
- max_mem_kib: number
18
- max_vcpus: number
19
- }
20
-
21
- export interface UI_I_VmForm {
22
- name: string
23
- compatibility: string
24
- storage: UI_I_DatastoreTableItem | null
25
- guestMachineType: UI_I_OptionItem | null
26
- guestOsFamily: UI_I_OptionItem | null
27
- guestOsVersion: UI_I_OptionItem | null
28
- computeResource: UI_I_TreeNode | null
29
- locationPath: string
30
- dataCenter: UI_I_TreeNode | null
31
- }
32
- export interface UI_I_VmFormCash {
33
- dataCenterId: string | number | null
34
- computeResourceTypeAndId: string | null
35
- }
36
-
37
- export interface UI_I_ErrorMessage {
38
- title: string
39
- descriptions: string[]
40
- }
41
-
42
- interface UI_I_CreateVmDataStorage {
43
- id: string
44
- }
45
- interface UI_I_CreateVmDataCpu {
46
- vcpus: number
47
- max_vcpus: number
48
- core_per_socket: number
49
- model: string
50
- reservation_mhz: number
51
- limit_mhz: number
52
- shares: number
53
- hotplug: boolean
54
- }
55
- interface UI_I_CreateVmDataMemory {
56
- size_mb: number
57
- hotplug: boolean
58
- reservation_mb: number
59
- limit_mb: number
60
- }
61
- export interface UI_I_CreateVmDataUsbController {
62
- type: string
63
- }
64
- interface UI_I_CreateVmDataInputDevices {
65
- type: string
66
- bus: string
67
- }
68
- export interface UI_I_CreateVmDataNewDiskDevice {
69
- create: boolean
70
- size: number
71
- bus: string
72
- storage_id: string
73
- provision_type: string
74
- disk_mode: string
75
- boot_order: number
76
- // новое
77
- device_type: string
78
- sharing: boolean
79
- shares: number
80
- cache: string
81
- io: string
82
- limit_iops: number
83
- }
84
- export interface UI_I_EditVmDataDiskDevice {
85
- size: number
86
- source: string
87
- storage_id: string
88
- device_type: string
89
- bus: string
90
- target: string
91
- boot_order: number
92
- provision_type: string
93
- disk_mode: string
94
- sharing: boolean
95
- read_only: boolean
96
- shares: number
97
- cache: string
98
- io: string
99
- limit_iops: number
100
- discard: string
101
- attach: boolean
102
- detach: boolean
103
- remove: boolean
104
- create: boolean
105
- }
106
- export interface UI_I_CreateVmDataExistDiskDevice {
107
- create: false
108
- source: string
109
- bus: string
110
- device_type: string
111
- provision_type: string
112
- disk_mode: string
113
- boot_order: number
114
- // новое
115
- sharing: boolean
116
- shares: number
117
- cache: string
118
- io: string
119
- limit_iops: number
120
- }
121
- export interface UI_I_CreateVmDataCdDvdDevice {
122
- create: false
123
- source: string
124
- bus: string
125
- device_type: 'cdrom'
126
- boot_order: number
127
- }
128
- export interface UI_I_CreateVmData {
129
- name: string
130
- uuid: string
131
- compatibility: string
132
- guest_os_family: string
133
- guest_os_version: string
134
- machine_type: string
135
- video_card: UI_I_SendDataVideoCard
136
- disk_devices: (
137
- | UI_I_CreateVmDataNewDiskDevice
138
- | UI_I_CreateVmDataExistDiskDevice
139
- | UI_I_CreateVmDataCdDvdDevice
140
- )[]
141
- network_devices: UI_I_SendDataNewNetwork[]
142
- passthrough_pci_devices: UI_I_SendDataNewPciDevice[]
143
- options: UI_I_SendDataVmoptions
144
- storage: UI_I_CreateVmDataStorage
145
- cpu: UI_I_CreateVmDataCpu
146
- memory: UI_I_CreateVmDataMemory
147
- usb_controllers: UI_I_CreateVmDataUsbController[]
148
- input_devices: UI_I_CreateVmDataInputDevices[]
149
- }
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
+ }
@@ -1,51 +1,41 @@
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
- // Machine Types
10
- capabilities.machineTypes = Object.keys(
11
- capabilitiesFromApi.machine_types
12
- ).map((key) => {
13
- return {
14
- text: capabilitiesFromApi.machine_types[key],
15
- value: key,
16
- }
17
- })
18
- // CPU Models
19
- capabilities.cpuModels = Object.keys(capabilitiesFromApi.cpu_models).map(
20
- (key) => {
21
- return {
22
- text: capabilitiesFromApi.cpu_models[key],
23
- value: key,
24
- }
25
- }
26
- )
27
-
28
- Object.keys(capabilitiesFromApi.bus_types).forEach(key => {
29
- capabilities.bus[key] = Object.keys(capabilitiesFromApi.bus_types[key]).map(
30
- (key2) => {
31
- return {
32
- text: capabilitiesFromApi.bus_types[key][key2],
33
- value: key2,
34
- }
35
- }
36
- )
37
- })
38
- Object.keys(capabilitiesFromApi.cdrom_bus_type).forEach(key => {
39
- capabilities.cdromBus[key] = Object.keys(capabilitiesFromApi.cdrom_bus_type[key]).map(
40
- (key2) => {
41
- return {
42
- text: capabilitiesFromApi.cdrom_bus_type[key][key2],
43
- value: key2,
44
- }
45
- }
46
- )
47
- })
48
-
49
- capabilities.maxCpus = capabilitiesFromApi.max_vcpus
50
- capabilities.maxMemory = $binary.kbToMb(capabilitiesFromApi.max_mem_kib)
51
- }
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
+ // Machine Types
10
+ capabilities.machineTypes = Object.keys(
11
+ capabilitiesFromApi.machine_types
12
+ ).map((key) => {
13
+ return {
14
+ text: capabilitiesFromApi.machine_types[key],
15
+ value: key,
16
+ }
17
+ })
18
+ // CPU Models
19
+ capabilities.cpuModels = Object.keys(capabilitiesFromApi.cpu_models).map(
20
+ (key) => {
21
+ return {
22
+ text: capabilitiesFromApi.cpu_models[key],
23
+ value: key,
24
+ }
25
+ }
26
+ )
27
+
28
+ Object.keys(capabilitiesFromApi.bus_types).forEach(key => {
29
+ capabilities.bus[key] = Object.keys(capabilitiesFromApi.bus_types[key]).map(
30
+ (key2) => {
31
+ return {
32
+ text: capabilitiesFromApi.bus_types[key][key2],
33
+ value: key2,
34
+ }
35
+ }
36
+ )
37
+ })
38
+
39
+ capabilities.maxCpus = capabilitiesFromApi.max_vcpus
40
+ capabilities.maxMemory = $binary.kbToMb(capabilitiesFromApi.max_mem_kib)
41
+ }
@@ -1,34 +1,33 @@
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
- bus: UI_I_ArbitraryObject<UI_I_OptionItem[]>
31
- cdromBus: UI_I_ArbitraryObject<UI_I_OptionItem[]>
32
- maxCpus: number
33
- maxMemory: number
34
- }
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
+ bus: UI_I_ArbitraryObject<UI_I_OptionItem[]>
31
+ maxCpus: number
32
+ maxMemory: number
33
+ }