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.
- package/components/common/pages/hardwareHealth/HardwareHealth.vue +2 -2
- package/components/common/pages/hardwareHealth/lib/models/enums.ts +1 -1
- package/components/common/pages/hardwareHealth/lib/models/interfaces.ts +1 -1
- package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +4 -4
- package/components/common/pages/hardwareHealth/tableView/lib/config/systemLogTable.ts +3 -3
- package/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys.ts +8 -8
- package/components/common/pages/hardwareHealth/tableView/lib/models/enums.ts +6 -0
- package/components/common/pages/hardwareHealth/tableView/lib/models/interfaces.ts +9 -5
- package/components/common/pages/hardwareHealth/tableView/lib/models/types.ts +4 -4
- package/package.json +1 -1
|
@@ -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 {
|
|
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<
|
|
117
|
+
const generateAlertTextWithLink = computed<UI_I_StorageSensorsAlert>(() => {
|
|
118
118
|
const { storageSensorsAlert, thisKbArticle } = localization.value
|
|
119
119
|
|
|
120
120
|
const [before, after] = storageSensorsAlert.split('{ link }')
|
|
@@ -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 {
|
|
13
|
-
import {
|
|
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:
|
|
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:
|
|
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 {
|
|
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:
|
|
54
|
+
data: UI_I_HardwareHealthSystemLog[]
|
|
55
55
|
): UI_I_BodyItem[][] => {
|
|
56
56
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
57
|
-
data.forEach((systemLog:
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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:
|
|
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:
|
|
16
|
+
export const hardwareHealthStorageSensorTableKeys: UI_T_HardwareHealthStorageSensorsTableItemTuple =
|
|
17
17
|
['name', 'health', 'categories']
|
|
18
18
|
|
|
19
|
-
export const hardwareHealthAlertWarningTableKeys:
|
|
19
|
+
export const hardwareHealthAlertWarningTableKeys: UI_T_HardwareHealthAlertWarningTableItemTuple =
|
|
20
20
|
['name', 'status', 'reading']
|
|
21
21
|
|
|
22
|
-
export const hardwareHealthSystemLogTableKeys:
|
|
22
|
+
export const hardwareHealthSystemLogTableKeys: UI_T_HardwareHealthSystemLogTableItemTuple =
|
|
23
23
|
['time', 'event']
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
interface
|
|
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:
|
|
7
|
+
status: 'Warning' | 'Alert' | 'Normal' | 'Unknown'
|
|
8
8
|
reading: string
|
|
9
9
|
category: string
|
|
10
10
|
lastUpdated: string
|
|
11
|
-
selEntries?:
|
|
11
|
+
selEntries?: UI_I_HardwareHealthEventEntries[]
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface UI_I_HardwareHealthAlertWarnings
|
|
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
|
|
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
|
|
8
|
+
export type UI_T_HardwareHealthStorageSensorsTableItemTuple = [
|
|
9
9
|
'name',
|
|
10
10
|
'health',
|
|
11
11
|
'categories'
|
|
12
12
|
]
|
|
13
|
-
export type
|
|
13
|
+
export type UI_T_HardwareHealthAlertWarningTableItemTuple = [
|
|
14
14
|
'name',
|
|
15
15
|
'status',
|
|
16
16
|
'reading'
|
|
17
17
|
]
|
|
18
|
-
export type
|
|
18
|
+
export type UI_T_HardwareHealthSystemLogTableItemTuple = [
|
|
19
19
|
'time',
|
|
20
20
|
'event'
|
|
21
21
|
]
|