bfg-common 1.2.200 → 1.2.201

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 +1 -3
  2. package/assets/localization/local_en.json +1 -3
  3. package/assets/localization/local_hy.json +1 -3
  4. package/assets/localization/local_kk.json +1 -3
  5. package/assets/localization/local_ru.json +1 -3
  6. package/assets/localization/local_zh.json +1 -3
  7. package/assets/scss/common/icons/icons-2.scss +222 -222
  8. package/components/atoms/switch/Switch.vue +107 -107
  9. package/components/atoms/wizard/Wizard.vue +1 -0
  10. package/components/atoms/wizard/utils/utils.ts +486 -538
  11. package/components/common/BadBrowser.vue +114 -114
  12. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  13. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  14. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  15. package/components/common/browse/blocks/Title.vue +66 -66
  16. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  17. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  18. package/components/common/feedback/Feedback.vue +261 -261
  19. package/components/common/feedback/VisitPortal.vue +53 -53
  20. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  21. package/components/common/recursionTree/RecursionTree.vue +201 -201
  22. package/components/common/vm/actions/add/Add.vue +568 -687
  23. package/components/common/vm/actions/add/utils.ts +238 -118
  24. package/components/common/vm/actions/addOld/Add.vue +690 -0
  25. package/components/common/vm/actions/addOld/FolderTreeView.vue +83 -0
  26. package/components/common/vm/actions/addOld/utils.ts +118 -0
  27. package/components/common/vm/actions/clone/Clone.vue +545 -545
  28. package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
  29. package/components/common/vm/actions/clone/utils.ts +43 -43
  30. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +9 -6
  31. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +267 -0
  32. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
  33. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  34. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  35. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  36. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  37. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  38. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
  39. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
  40. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
  41. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
  42. package/components/common/vm/actions/common/select/name/Name.vue +10 -5
  43. package/components/common/vm/actions/common/select/name/NameOld.vue +215 -0
  44. package/components/common/vm/actions/common/select/storage/Storage.vue +6 -4
  45. package/components/common/vm/actions/common/select/storage/StorageOld.vue +194 -0
  46. package/components/common/vm/actions/common/select/storage/config/config.ts +154 -154
  47. package/components/common/vm/utils/powerActions.ts +55 -55
  48. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  49. package/components/layout/theHeader/utils/localization.ts +32 -32
  50. package/composables/useLocal.ts +38 -38
  51. package/minify.js +146 -146
  52. package/models/interfaces.ts +49 -49
  53. package/models/store/interfaces.ts +37 -37
  54. package/models/store/storage/interfaces.ts +32 -32
  55. package/models/store/types.ts +43 -43
  56. package/modules/fixContentBuild/utils/methods.ts +114 -114
  57. package/package.json +1 -1
  58. package/public/spice-console/application/codec.js +257 -257
  59. package/public/spice-console/lib/rasterEngine.js +907 -907
  60. package/public/spice-console/network/spicechannel.js +369 -369
  61. package/utils/contentBuild.ts +34 -34
  62. package/utils/sendTask.ts +77 -77
@@ -1,118 +1,238 @@
1
- import { UI_I_ArbitraryObject } from '~/models/interfaces'
2
- import { UI_E_Fields } from '~/components/common/vm/actions/common/models/enums'
3
- import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
4
- import { UI_I_Localization } from '~/models/interfaces'
5
- import { UI_I_VerticalStepItem } from '~/components/atoms/models/interfaces'
6
- import { UI_T_Project } from '~/models/types'
7
- import { checkAllField } from '~/components/common/vm/actions/utils'
8
-
9
- export const objectToOptionItem = (
10
- // TODO переместить в более глобальное место
11
- obj: UI_I_ArbitraryObject<string>
12
- ): UI_I_OptionItem[] => {
13
- const result = []
14
- for (const key in obj) {
15
- result.push({
16
- text: obj[key],
17
- value: key,
18
- })
19
- }
20
- return result
21
- }
22
-
23
- export const getStepPositionByField = (field: string): number => {
24
- if (checkAllField(field)) {
25
- return UI_E_Fields[field]
26
- } else if (field.includes('disk_devices')) {
27
- return UI_E_Fields.disk_devices
28
- } else if (field.includes('network_devices')) {
29
- return UI_E_Fields.network_devices
30
- }
31
- return 5
32
- }
33
-
34
- export const stepItemsFunc = (
35
- localization: UI_I_Localization,
36
- project: UI_T_Project
37
- ): UI_I_VerticalStepItem[] => {
38
- if (project === 'sphere') {
39
- return [
40
- {
41
- text: localization.selectCreationType,
42
- disabled: false,
43
- complete: false,
44
- },
45
- {
46
- text: localization.selectNameFolder,
47
- disabled: true,
48
- complete: false,
49
- },
50
- {
51
- text: localization.selectComputeResource,
52
- disabled: true,
53
- complete: false,
54
- },
55
- { text: localization.selectStorage, disabled: true, complete: false },
56
- { text: localization.compatibility, disabled: true, complete: false },
57
- { text: localization.selectGuestOS, disabled: true, complete: false },
58
- {
59
- text: localization.customizeHardware,
60
- disabled: true,
61
- complete: false,
62
- },
63
- { text: localization.readyComplete, disabled: true, complete: false },
64
- ]
65
- }
66
- return [
67
- {
68
- text: localization.selectCreationType,
69
- disabled: false,
70
- complete: false,
71
- },
72
- {
73
- text: localization.selectName,
74
- disabled: true,
75
- complete: false,
76
- },
77
- { text: localization.selectStorage, disabled: true, complete: false },
78
- { text: localization.compatibility, disabled: true, complete: false },
79
- {
80
- text: localization.selectGuestOSMachineType,
81
- disabled: true,
82
- complete: false,
83
- },
84
- {
85
- text: localization.customizeHardware,
86
- disabled: true,
87
- complete: false,
88
- },
89
- { text: localization.readyComplete, disabled: true, complete: false },
90
- ]
91
- }
92
-
93
- export const subTitleFunc = (
94
- localization: UI_I_Localization,
95
- project: UI_T_Project
96
- ): string[] => {
97
- if (project === 'sphere') {
98
- return [
99
- localization.howWouldLikeCreateVirtualMachine,
100
- localization.specifyUniqueNameTargetLocation,
101
- localization.selectDestinationComputeResourceOperation,
102
- localization.selectStorageConfigurationDiskFiles,
103
- localization.selectCompatibilityVmDependingHostsEnvironment,
104
- localization.chooseGuestOSInstalledVM,
105
- localization.configureVirtualMachineHardware,
106
- localization.clickFinishStartCreation,
107
- ]
108
- }
109
- return [
110
- localization.howWouldLikeCreateVirtualMachine,
111
- localization.specifyUniqueName,
112
- localization.selectStorageConfigurationDiskFiles,
113
- localization.selectCompatibilityVmDependingHostsEnvironment,
114
- localization.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
115
- localization.configureVirtualMachineHardware,
116
- localization.clickFinishStartCreation,
117
- ]
118
- }
1
+ import type { UI_I_WizardStep } from '~/components/atoms/wizard/models/interfaces'
2
+
3
+ import { UI_I_ArbitraryObject } from '~/models/interfaces'
4
+ import { UI_E_Fields } from '~/components/common/vm/actions/common/models/enums'
5
+ import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
6
+ import { UI_I_Localization } from '~/models/interfaces'
7
+ import { UI_I_VerticalStepItem } from '~/components/atoms/models/interfaces'
8
+ import { UI_T_Project } from '~/models/types'
9
+ import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/models/enums'
10
+ import { checkAllField } from '~/components/common/vm/actions/utils'
11
+
12
+ export const objectToOptionItem = (
13
+ // TODO переместить в более глобальное место
14
+ obj: UI_I_ArbitraryObject<string>
15
+ ): UI_I_OptionItem[] => {
16
+ const result = []
17
+ for (const key in obj) {
18
+ result.push({
19
+ text: obj[key],
20
+ value: key,
21
+ })
22
+ }
23
+ return result
24
+ }
25
+
26
+ export const getStepPositionByField = (field: string): number => {
27
+ if (checkAllField(field)) {
28
+ return UI_E_Fields[field]
29
+ } else if (field.includes('disk_devices')) {
30
+ return UI_E_Fields.disk_devices
31
+ } else if (field.includes('network_devices')) {
32
+ return UI_E_Fields.network_devices
33
+ }
34
+ return 5
35
+ }
36
+
37
+ export const stepItemsFunc = (
38
+ localization: UI_I_Localization,
39
+ project: UI_T_Project
40
+ ): UI_I_VerticalStepItem[] => {
41
+ if (project === 'sphere') {
42
+ return [
43
+ {
44
+ text: localization.selectCreationType,
45
+ disabled: false,
46
+ complete: false,
47
+ },
48
+ {
49
+ text: localization.selectNameFolder,
50
+ disabled: true,
51
+ complete: false,
52
+ },
53
+ {
54
+ text: localization.selectComputeResource,
55
+ disabled: true,
56
+ complete: false,
57
+ },
58
+ { text: localization.selectStorage, disabled: true, complete: false },
59
+ { text: localization.compatibility, disabled: true, complete: false },
60
+ { text: localization.selectGuestOS, disabled: true, complete: false },
61
+ {
62
+ text: localization.customizeHardware,
63
+ disabled: true,
64
+ complete: false,
65
+ },
66
+ { text: localization.readyComplete, disabled: true, complete: false },
67
+ ]
68
+ }
69
+ return [
70
+ {
71
+ text: localization.selectCreationType,
72
+ disabled: false,
73
+ complete: false,
74
+ },
75
+ {
76
+ text: localization.selectName,
77
+ disabled: true,
78
+ complete: false,
79
+ },
80
+ { text: localization.selectStorage, disabled: true, complete: false },
81
+ { text: localization.compatibility, disabled: true, complete: false },
82
+ {
83
+ text: localization.selectGuestOSMachineType,
84
+ disabled: true,
85
+ complete: false,
86
+ },
87
+ {
88
+ text: localization.customizeHardware,
89
+ disabled: true,
90
+ complete: false,
91
+ },
92
+ { text: localization.readyComplete, disabled: true, complete: false },
93
+ ]
94
+ }
95
+
96
+ export const subTitleFunc = (
97
+ localization: UI_I_Localization,
98
+ project: UI_T_Project
99
+ ): string[] => {
100
+ if (project === 'sphere') {
101
+ return [
102
+ localization.howWouldLikeCreateVirtualMachine,
103
+ localization.specifyUniqueNameTargetLocation,
104
+ localization.selectDestinationComputeResourceOperation,
105
+ localization.selectStorageConfigurationDiskFiles,
106
+ localization.selectCompatibilityVmDependingHostsEnvironment,
107
+ localization.chooseGuestOSInstalledVM,
108
+ localization.configureVirtualMachineHardware,
109
+ localization.clickFinishStartCreation,
110
+ ]
111
+ }
112
+ return [
113
+ localization.howWouldLikeCreateVirtualMachine,
114
+ localization.specifyUniqueName,
115
+ localization.selectStorageConfigurationDiskFiles,
116
+ localization.selectCompatibilityVmDependingHostsEnvironment,
117
+ localization.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
118
+ localization.configureVirtualMachineHardware,
119
+ localization.clickFinishStartCreation,
120
+ ]
121
+ }
122
+
123
+ export const wizardSteps = (
124
+ localization: UI_I_Localization
125
+ ): UI_I_WizardStep[] => {
126
+ return [
127
+ {
128
+ id: 0,
129
+ stepName: '',
130
+ title: localization.selectCreationType,
131
+ subTitle: localization.howWouldLikeCreateVirtualMachine,
132
+ status: UI_E_WIZARD_STATUS.SELECTED,
133
+ isValid: true,
134
+ fields: {},
135
+ },
136
+ // Procurator
137
+ {
138
+ id: 1,
139
+ stepName: '',
140
+ title: localization.selectName,
141
+ subTitle: localization.specifyUniqueName,
142
+ status: UI_E_WIZARD_STATUS.INACTIVE,
143
+ isValid: true,
144
+ fields: {
145
+ name: {
146
+ field: '',
147
+ alert: '',
148
+ },
149
+ },
150
+ },
151
+ // Sphere
152
+ {
153
+ id: 2,
154
+ stepName: '',
155
+ title: localization.selectNameFolder,
156
+ subTitle: localization.specifyUniqueNameTargetLocation,
157
+ status: UI_E_WIZARD_STATUS.INACTIVE,
158
+ isValid: true,
159
+ fields: {},
160
+ },
161
+ // Sphere
162
+ {
163
+ id: 3,
164
+ stepName: '',
165
+ title: localization.selectComputeResource,
166
+ subTitle: localization.selectDestinationComputeResourceOperation,
167
+ status: UI_E_WIZARD_STATUS.INACTIVE,
168
+ isValid: true,
169
+ fields: {},
170
+ },
171
+ {
172
+ id: 4,
173
+ stepName: '',
174
+ title: localization.selectStorage,
175
+ subTitle: localization.selectStorageConfigurationDiskFiles,
176
+ status: UI_E_WIZARD_STATUS.INACTIVE,
177
+ isValid: true,
178
+ fields: {
179
+ storage: {
180
+ field: '',
181
+ alert: '',
182
+ },
183
+ },
184
+ },
185
+ {
186
+ id: 5,
187
+ stepName: '',
188
+ title: localization.compatibility,
189
+ subTitle: localization.selectCompatibilityVmDependingHostsEnvironment,
190
+ status: UI_E_WIZARD_STATUS.INACTIVE,
191
+ isValid: true,
192
+ fields: {},
193
+ },
194
+ // Procurator
195
+ {
196
+ id: 6,
197
+ stepName: '',
198
+ title: localization.selectGuestOSMachineType,
199
+ subTitle: localization.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
200
+ status: UI_E_WIZARD_STATUS.INACTIVE,
201
+ isValid: true,
202
+ fields: {},
203
+ },
204
+ // Sphere
205
+ {
206
+ id: 7,
207
+ stepName: '',
208
+ title: localization.selectGuestOS,
209
+ subTitle: localization.chooseGuestOSInstalledVM,
210
+ status: UI_E_WIZARD_STATUS.INACTIVE,
211
+ isValid: true,
212
+ fields: {},
213
+ },
214
+ {
215
+ id: 8,
216
+ stepName: '',
217
+ title: localization.customizeHardware,
218
+ subTitle: localization.configureVirtualMachineHardware,
219
+ status: UI_E_WIZARD_STATUS.INACTIVE,
220
+ isValid: true,
221
+ fields: {
222
+ customizeHardware: {
223
+ field: '',
224
+ alert: '',
225
+ },
226
+ },
227
+ },
228
+ {
229
+ id: 9,
230
+ stepName: '',
231
+ title: localization.readyComplete,
232
+ subTitle: localization.clickFinishStartCreation,
233
+ status: UI_E_WIZARD_STATUS.INACTIVE,
234
+ isValid: true,
235
+ fields: {},
236
+ },
237
+ ]
238
+ }