bfg-common 1.4.675 → 1.4.677

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.
@@ -7,13 +7,13 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
7
7
  import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
8
8
  import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
9
9
  // import { E_NodeIconsByState } from '~/lib/models/enums'
10
- import { UI_E_TabsByType } from '~/components/common/pages/tasks/table/lib/models/enums'
10
+ // import { UI_E_TabsByType } from '~/components/common/pages/tasks/table/lib/models/enums'
11
11
  import {
12
12
  UI_E_RTaskChipColor,
13
13
  UI_E_RTaskStatusIcon,
14
14
  } from '~/components/common/pages/tasks/table/lib/models/enums'
15
15
  import type { T_TypeNodes } from '~/lib/models/types'
16
- import * as taskConfig from '~/components/components/templates/tasks/lib/config/taskConfig'
16
+ import * as taskConfig from '~/components/templates/tasks/lib/config/taskConfig' // url из ( sphere, procurator )
17
17
 
18
18
  export const getHeaderDataFunc = (
19
19
  localization: UI_I_Localization
@@ -165,13 +165,16 @@ export const getBodyDataFunc = (
165
165
  return bodyData.map((task, index: number) => {
166
166
 
167
167
  const iconClassName = taskConfig.iconFunc(task.targetType)
168
+ const id = taskConfig.idFunc(task)
169
+ const nav = taskConfig.navFunc(task.targetType)
168
170
 
169
171
  // const iconClassName = E_NodeIconsByState[`${task.targetType}_Normal`]
170
- const id = task.extra?.created_id || task.target
172
+ // const id = task.extra?.created_id || task.target
171
173
  const targetData = {
172
174
  id,
175
+ nav,
173
176
  icon: iconClassName,
174
- nav: UI_E_TabsByType[task.targetType],
177
+ // nav: UI_E_TabsByType[task.targetType],
175
178
  type: task.targetType,
176
179
  isLink: true,
177
180
  testId: `${task.targetType}-item`,
@@ -11,13 +11,3 @@ export enum UI_E_RTaskStatusIcon {
11
11
  'status-check',
12
12
  'error-outline',
13
13
  }
14
-
15
- export enum UI_E_TabsByType { // TODO временно так надо такой enum сделать глобально для (Sphere, Procurator)
16
- 'host' = 'v',
17
- 'vm' = 'v',
18
- 'datastore' = 's',
19
- 'network' = 'n',
20
- 'backup' = 'b',
21
- 'folder' = 'v',
22
- 'file' = 'v',
23
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.675",
4
+ "version": "1.4.677",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",