bfg-common 1.3.293 → 1.3.295

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.
@@ -363,7 +363,6 @@ export default class Wizard {
363
363
  return { ...st, status: UI_E_WIZARD_STATUS.SELECTED }
364
364
 
365
365
  // TODO Было сделано на скорую руку
366
- console.log(st.status, 3333333, st.id > stepId);
367
366
  if (st.id > stepId && st.status === UI_E_WIZARD_STATUS.SELECTED)
368
367
  return { ...st, status: UI_E_WIZARD_STATUS.COMPLETED }
369
368
 
@@ -523,9 +523,7 @@ const validateSendData = async (
523
523
  if (data) {
524
524
  stepHasError = true
525
525
  selectedNavItem.value = data[0]
526
- console.log(data[1], 1111);
527
526
  data[1] !== null && wizard.selectStepHard(data[1])
528
- // data[1] !== null && (stepPosition.value = data[1])
529
527
  }
530
528
 
531
529
  return {
@@ -1,17 +1,17 @@
1
1
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
2
  import type { UI_I_VerticalStepItem } from '~/components/atoms/lib/models/interfaces'
3
3
  import type { UI_T_Project } from '~/lib/models/types'
4
- import { UI_E_FieldsSphere, UI_E_FieldsProcurator } from '~/components/common/vm/actions/common/lib/models/enums'
4
+ import { UI_E_Fields } from '~/components/common/vm/actions/common/lib/models/enums'
5
5
  import { checkAllField } from '~/components/common/vm/actions/lib/utils'
6
6
 
7
- export const getStepPositionByField = (field: string, project: UI_T_Project): number => {
7
+ export const getStepPositionByField = (field: string): number => {
8
8
  // TODO refactoring for procurator
9
9
  if (checkAllField(field)) {
10
- return project === 'sphere' ? UI_E_FieldsSphere[field] : UI_E_FieldsProcurator[field]
10
+ return UI_E_Fields[field]
11
11
  } else if (field.includes('disk_devices')) {
12
- return project === 'sphere' ? UI_E_FieldsSphere.disk_devices : UI_E_FieldsProcurator.disk_devices
12
+ return UI_E_Fields.disk_devices
13
13
  } else if (field.includes('network_devices')) {
14
- return project === 'sphere' ? UI_E_FieldsSphere.network_devices : UI_E_FieldsProcurator.network_devices
14
+ return UI_E_Fields.network_devices
15
15
  }
16
16
  return 5
17
17
  }
@@ -1,4 +1,4 @@
1
- export enum UI_E_FieldsSphere {
1
+ export enum UI_E_Fields {
2
2
  'compute_resource' = 3,
3
3
  'storage.id' = 4,
4
4
  'storage.name' = 4,
@@ -28,35 +28,6 @@ export enum UI_E_FieldsSphere {
28
28
  'disk_devices' = 7,
29
29
  'network_devices' = 7,
30
30
  }
31
- export enum UI_E_FieldsProcurator {
32
- 'storage.id' = 3,
33
- 'storage.name' = 3,
34
- 'storage.type' = 3,
35
- 'storage.pool' = 3,
36
- 'compatibility' = 4,
37
- 'guest_os_family' = 5,
38
- 'guest_os_version' = 5,
39
- 'machine_type' = 5,
40
- 'cpu.vcpus' = 4,
41
- 'cpu.max_vcpus' = 4,
42
- 'cpu.shares' = 4,
43
- 'cpu.core_per_socket' = 4,
44
- 'cpu.model' = 4,
45
- 'memory.size_mb' = 4,
46
- 'memory.limit_mb' = 4,
47
- 'memory.reservation_mb' = 4,
48
- 'video_card.adapter' = 4,
49
- 'video_card.displays' = 4,
50
- 'video_card.memory_mb' = 4,
51
- 'options.remote_console.type' = 4,
52
- 'options.remote_console.spice.img_compression' = 4,
53
- 'options.remote_console.spice.jpeg_compression' = 4,
54
- 'options.remote_console.spice.zlib_glz_compression' = 4,
55
- 'options.remote_console.spice.streaming_mode' = 4,
56
- 'options.boot_options.firmware' = 4,
57
- 'disk_devices' = 4,
58
- 'network_devices' = 4,
59
- }
60
31
 
61
32
  // TODO remove because not used
62
33
  export enum UI_E_GetElemByField {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.293",
4
+ "version": "1.3.295",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",