bfg-common 1.3.315 → 1.3.317
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.
- package/components/common/pages/hardwareHealth/HardwareHealth.vue +1 -1
- package/components/common/pages/hardwareHealth/tableView/TableView.vue +6 -6
- package/components/common/pages/hardwareHealth/tableView/lib/config/alertWarningTable.ts +5 -3
- package/components/common/pages/hardwareHealth/tableView/lib/config/storageSensorTable.ts +3 -3
- package/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys.ts +1 -1
- package/components/common/pages/hardwareHealth/tableView/lib/models/interfaces.ts +8 -8
- package/components/common/pages/hardwareHealth/tableView/lib/models/types.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
58
|
-
import * as
|
|
59
|
-
import * as
|
|
60
|
-
import * as
|
|
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:
|
|
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 {
|
|
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 = (
|
|
70
|
+
export const bodyItems = (
|
|
71
|
+
data: UI_I_HardwareHealthAlertWarnings[]
|
|
72
|
+
): UI_I_BodyItem[][] => {
|
|
71
73
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
72
|
-
data.forEach((sensor:
|
|
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 {
|
|
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:
|
|
65
|
+
data: UI_I_HardwareHealthStorageSensor[]
|
|
66
66
|
): UI_I_BodyItem[][] => {
|
|
67
67
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
68
|
-
data.forEach((token:
|
|
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
|
-
['
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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 {}
|