bfg-common 1.3.317 → 1.3.319

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.
@@ -52,7 +52,7 @@
52
52
  import { UI_I_Localization } from '~/lib/models/interfaces'
53
53
  import { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
54
54
  import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
55
- import type { I_StorageSensorsAlert } from '~/components/common/pages/hardwareHealth/lib/models/interfaces'
55
+ import type { UI_I_StorageSensorsAlert } from '~/components/common/pages/hardwareHealth/lib/models/interfaces'
56
56
  import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
57
57
  import { hardwareHealthTabsFunc } from '~/components/common/pages/hardwareHealth/lib/config/tabsPannel'
58
58
 
@@ -114,7 +114,7 @@ const hardwareHealthDescription = computed<string>(() => {
114
114
  return text?.replace(/{(\w+)}/g, (_, key: keyof Replacements) => replacements[key])
115
115
  })
116
116
 
117
- const generateAlertTextWithLink = computed<I_StorageSensorsAlert>(() => {
117
+ const generateAlertTextWithLink = computed<UI_I_StorageSensorsAlert>(() => {
118
118
  const { storageSensorsAlert, thisKbArticle } = localization.value
119
119
 
120
120
  const [before, after] = storageSensorsAlert.split('{ link }')
@@ -1,4 +1,4 @@
1
- export enum E_SensorsCategoryIcon {
1
+ export enum UI_E_SensorsCategoryIcon {
2
2
  power = 'vx-icon-power',
3
3
  temperature = 'vx-icon-temp',
4
4
  battery = 'vx-icon-battery',
@@ -1,4 +1,4 @@
1
- export interface I_StorageSensorsAlert {
1
+ export interface UI_I_StorageSensorsAlert {
2
2
  after: string
3
3
  before: string
4
4
  link: string
@@ -9,8 +9,8 @@ import {
9
9
  constructColumnKey,
10
10
  } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
11
11
  import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
12
- import { sensorsIconByStatus } from '~/components/common/pages/hardwareHealth/lib/config/status'
13
- import { E_SensorsCategoryIcon } from '~/components/common/pages/hardwareHealth/lib/models/enums'
12
+ import { UI_E_SensorsIconByStatus } from '~/components/common/pages/hardwareHealth/tableView/lib/models/enums'
13
+ import { UI_E_SensorsCategoryIcon } from '~/components/common/pages/hardwareHealth/lib/models/enums'
14
14
  import { hardwareHealthSensorTableKeys } from '~/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys'
15
15
 
16
16
  const getItems = (
@@ -82,7 +82,7 @@ export const bodyItems = (
82
82
  text: sensor[hardwareHealthSensorTableKeys[1]],
83
83
  id: key,
84
84
  data: {
85
- iconClassName: sensorsIconByStatus[sensor.status],
85
+ iconClassName: UI_E_SensorsIconByStatus[sensor.status],
86
86
  isSprite: false,
87
87
  },
88
88
  },
@@ -101,7 +101,7 @@ export const bodyItems = (
101
101
  text: sensor[hardwareHealthSensorTableKeys[3]],
102
102
  id: key,
103
103
  data: {
104
- iconClassName: E_SensorsCategoryIcon[sensor.category.toLowerCase()],
104
+ iconClassName: UI_E_SensorsCategoryIcon[sensor.category.toLowerCase()],
105
105
  isSprite: true,
106
106
  },
107
107
  },
@@ -8,7 +8,7 @@ import {
8
8
  constructHeadItem,
9
9
  constructColumnKey,
10
10
  } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
11
- import type { I_hardwareHealthSystemLog } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
11
+ import type { UI_I_HardwareHealthSystemLog } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
12
12
  import { hardwareHealthSystemLogTableKeys } from '~/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys'
13
13
 
14
14
  const getItems = (
@@ -51,10 +51,10 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
51
51
  }
52
52
 
53
53
  export const bodyItems = (
54
- data: I_hardwareHealthSystemLog[]
54
+ data: UI_I_HardwareHealthSystemLog[]
55
55
  ): UI_I_BodyItem[][] => {
56
56
  const bodyItems: UI_I_BodyItem[][] = []
57
- data.forEach((systemLog: I_hardwareHealthSystemLog, key) => {
57
+ data.forEach((systemLog: UI_I_HardwareHealthSystemLog, key) => {
58
58
  bodyItems.push([
59
59
  {
60
60
  key: 'col0',
@@ -1,11 +1,11 @@
1
1
  import type {
2
- T_HardwareHealthSensorsTableItemTuple,
3
- T_HardwareHealthStorageSensorsTableItemTuple,
4
- T_HardwareHealthAlertWarningTableItemTuple,
5
- T_HardwareHealthSystemLogTableItemTuple,
2
+ UI_T_HardwareHealthSensorsTableItemTuple,
3
+ UI_T_HardwareHealthStorageSensorsTableItemTuple,
4
+ UI_T_HardwareHealthAlertWarningTableItemTuple,
5
+ UI_T_HardwareHealthSystemLogTableItemTuple,
6
6
  } from '~/components/common/pages/hardwareHealth/tableView/lib/models/types'
7
7
 
8
- export const hardwareHealthSensorTableKeys: T_HardwareHealthSensorsTableItemTuple = [
8
+ export const hardwareHealthSensorTableKeys: UI_T_HardwareHealthSensorsTableItemTuple = [
9
9
  'name',
10
10
  'status',
11
11
  'reading',
@@ -13,11 +13,11 @@ export const hardwareHealthSensorTableKeys: T_HardwareHealthSensorsTableItemTupl
13
13
  'lastUpdated',
14
14
  ]
15
15
 
16
- export const hardwareHealthStorageSensorTableKeys: T_HardwareHealthStorageSensorsTableItemTuple =
16
+ export const hardwareHealthStorageSensorTableKeys: UI_T_HardwareHealthStorageSensorsTableItemTuple =
17
17
  ['name', 'health', 'categories']
18
18
 
19
- export const hardwareHealthAlertWarningTableKeys: T_HardwareHealthAlertWarningTableItemTuple =
19
+ export const hardwareHealthAlertWarningTableKeys: UI_T_HardwareHealthAlertWarningTableItemTuple =
20
20
  ['name', 'status', 'reading']
21
21
 
22
- export const hardwareHealthSystemLogTableKeys: T_HardwareHealthSystemLogTableItemTuple =
22
+ export const hardwareHealthSystemLogTableKeys: UI_T_HardwareHealthSystemLogTableItemTuple =
23
23
  ['time', 'event']
@@ -0,0 +1,6 @@
1
+ export enum UI_E_SensorsIconByStatus {
2
+ Unknown = 'vsphere-icon-status-unknown',
3
+ Normal = 'success-circle',
4
+ Warning = 'warning-outline',
5
+ Alert = 'error-outline',
6
+ }
@@ -1,21 +1,25 @@
1
- interface UI_I_hardwareHealthEventEntries {
1
+ interface UI_I_HardwareHealthEventEntries {
2
2
  event: string
3
3
  time: string
4
4
  }
5
5
  export interface UI_I_HardwareHealthSensors {
6
6
  name: string
7
- status: 0 | 1 | 2 | 3
7
+ status: 'Warning' | 'Alert' | 'Normal' | 'Unknown'
8
8
  reading: string
9
9
  category: string
10
10
  lastUpdated: string
11
- selEntries?: UI_I_hardwareHealthEventEntries[]
11
+ selEntries?: UI_I_HardwareHealthEventEntries[]
12
12
  }
13
13
 
14
- export interface UI_I_HardwareHealthAlertWarnings extends UI_I_HardwareHealthSensors{}
14
+ export interface UI_I_HardwareHealthAlertWarnings
15
+ extends UI_I_HardwareHealthSensors {}
15
16
 
16
17
  export interface UI_I_HardwareHealthStorageSensor {
17
18
  name: string
18
19
  health: string
19
20
  categories: string
20
21
  }
21
- export interface UI_I_HardwareHealthSystemLog {}
22
+ export interface UI_I_HardwareHealthSystemLog {
23
+ time: string
24
+ event: string
25
+ }
@@ -1,21 +1,21 @@
1
- export type T_HardwareHealthSensorsTableItemTuple = [
1
+ export type UI_T_HardwareHealthSensorsTableItemTuple = [
2
2
  'name',
3
3
  'status',
4
4
  'reading',
5
5
  'category',
6
6
  'lastUpdated'
7
7
  ]
8
- export type T_HardwareHealthStorageSensorsTableItemTuple = [
8
+ export type UI_T_HardwareHealthStorageSensorsTableItemTuple = [
9
9
  'name',
10
10
  'health',
11
11
  'categories'
12
12
  ]
13
- export type T_HardwareHealthAlertWarningTableItemTuple = [
13
+ export type UI_T_HardwareHealthAlertWarningTableItemTuple = [
14
14
  'name',
15
15
  'status',
16
16
  'reading'
17
17
  ]
18
- export type T_HardwareHealthSystemLogTableItemTuple = [
18
+ export type UI_T_HardwareHealthSystemLogTableItemTuple = [
19
19
  'time',
20
20
  'event'
21
21
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.317",
4
+ "version": "1.3.319",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",