bfg-common 1.3.315 → 1.3.316

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.
@@ -53,15 +53,15 @@ import type {
53
53
  UI_I_BodyItem,
54
54
  } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
55
55
  import type { UI_I_Localization } from '~/lib/models/interfaces'
56
+ import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
56
57
  import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
57
- import type { I_HardwareHealthTable } from '~/lib/models/store/inventory/monitor/hardwareHealth/interfaces'
58
- import * as sensorTable from '~/components/common/pages/monitor/hardwareHealth/tableView/lib/config/sensorTable'
59
- import * as storageSensorTable from '~/components/common/pages/monitor/hardwareHealth/tableView/lib/config/storageSensorTable'
60
- import * as alertWarningTable from '~/components/common/pages/monitor/hardwareHealth/tableView/lib/config/alertWarningTable'
61
- import * as systemLogTable from '~/components/common/pages/monitor/hardwareHealth/tableView/lib/config/systemLogTable'
58
+ import * as sensorTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable'
59
+ import * as storageSensorTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/storageSensorTable'
60
+ import * as alertWarningTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/alertWarningTable'
61
+ import * as systemLogTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/systemLogTable'
62
62
 
63
63
  const props = defineProps<{
64
- dataTable: I_HardwareHealthTable[]
64
+ dataTable: UI_I_HardwareHealthSensors[]
65
65
  loading: boolean
66
66
  totalItems: number
67
67
  totalPages: number
@@ -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_hardwareHealth } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
11
+ import type { UI_I_HardwareHealthAlertWarnings } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
12
12
  // import { E_HostStatusIcon } from '~/components/templates/inventory/treeView/lib/models/enums'
13
13
  import { hardwareHealthAlertWarningTableKeys } from '~/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys'
14
14
 
@@ -67,9 +67,11 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
67
67
  return result
68
68
  }
69
69
 
70
- export const bodyItems = (data: I_hardwareHealth[]): UI_I_BodyItem[][] => {
70
+ export const bodyItems = (
71
+ data: UI_I_HardwareHealthAlertWarnings[]
72
+ ): UI_I_BodyItem[][] => {
71
73
  const bodyItems: UI_I_BodyItem[][] = []
72
- data.forEach((sensor: I_hardwareHealth, key) => {
74
+ data.forEach((sensor: UI_I_HardwareHealthAlertWarnings, key) => {
73
75
  bodyItems.push([
74
76
  {
75
77
  key: 'col0',
@@ -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_hardwareHealthStorageSensor } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
11
+ import type { UI_I_HardwareHealthStorageSensor } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
12
12
  import { hardwareHealthStorageSensorTableKeys } from '~/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys'
13
13
 
14
14
  const getItems = (
@@ -62,10 +62,10 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
62
62
  }
63
63
 
64
64
  export const bodyItems = (
65
- data: I_hardwareHealthStorageSensor[]
65
+ data: UI_I_HardwareHealthStorageSensor[]
66
66
  ): UI_I_BodyItem[][] => {
67
67
  const bodyItems: UI_I_BodyItem[][] = []
68
- data.forEach((token: I_hardwareHealthStorageSensor, key) => {
68
+ data.forEach((token: UI_I_HardwareHealthStorageSensor, key) => {
69
69
  bodyItems.push([
70
70
  {
71
71
  key: 'col0',
@@ -17,7 +17,7 @@ export const hardwareHealthStorageSensorTableKeys: T_HardwareHealthStorageSensor
17
17
  ['name', 'health', 'categories']
18
18
 
19
19
  export const hardwareHealthAlertWarningTableKeys: T_HardwareHealthAlertWarningTableItemTuple =
20
- ['sensors', 'status', 'reading']
20
+ ['name', 'status', 'reading']
21
21
 
22
22
  export const hardwareHealthSystemLogTableKeys: T_HardwareHealthSystemLogTableItemTuple =
23
23
  ['time', 'event']
@@ -11,11 +11,11 @@ export interface UI_I_HardwareHealthSensors {
11
11
  selEntries?: UI_I_hardwareHealthEventEntries[]
12
12
  }
13
13
 
14
- // export interface I_hardwareHealthStorageSensor extends I_hardwareHealth {
15
- // name: string
16
- // health: string
17
- // }
18
- // export interface I_hardwareHealthSystemLog extends I_hardwareHealth {
19
- // time: string
20
- // event: string
21
- // }
14
+ export interface UI_I_HardwareHealthAlertWarnings extends UI_I_HardwareHealthSensors{}
15
+
16
+ export interface UI_I_HardwareHealthStorageSensor {
17
+ name: string
18
+ health: string
19
+ categories: string
20
+ }
21
+ export interface UI_I_HardwareHealthSystemLog {}
@@ -11,7 +11,7 @@ export type T_HardwareHealthStorageSensorsTableItemTuple = [
11
11
  'categories'
12
12
  ]
13
13
  export type T_HardwareHealthAlertWarningTableItemTuple = [
14
- 'sensors',
14
+ 'name',
15
15
  'status',
16
16
  'reading'
17
17
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.315",
4
+ "version": "1.3.316",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",