bfg-common 1.3.319 → 1.3.320

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.
@@ -819,7 +819,7 @@
819
819
  "lastWeek": "Прошлая неделя",
820
820
  "lastYear": "Прошлый год",
821
821
  "latest": "Самый последний",
822
- "latinCpu": "CPU",
822
+ "latinCpu": "ЦПУ",
823
823
  "launchConsole": "Запустить консоль",
824
824
  "launchRemoteConsole": "ЗАПУСК УДАЛЕННОЙ КОНСОЛИ",
825
825
  "launchWebConsole": "ЗАПУСК ВЕБ-КОНСОЛИ",
@@ -2283,7 +2283,7 @@
2283
2283
  "alertsAndWarnings": "Оповещения и предупреждения",
2284
2284
  "systemEventLog": "Журнал системных событий",
2285
2285
  "resetEventLog": "Сбросить журнал событий",
2286
- "reading": "Чтение",
2286
+ "reading": "Показания",
2287
2287
  "selEntries": "записи SEL",
2288
2288
  "lastUpdated": "Последнее обновление",
2289
2289
  "daily": "Ежедневно",
@@ -9,9 +9,12 @@ 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 { UI_E_SensorsIconByStatus } from '~/components/common/pages/hardwareHealth/tableView/lib/models/enums'
13
12
  import { UI_E_SensorsCategoryIcon } from '~/components/common/pages/hardwareHealth/lib/models/enums'
14
13
  import { hardwareHealthSensorTableKeys } from '~/components/common/pages/hardwareHealth/tableView/lib/config/tableKeys'
14
+ import {
15
+ sensorsLocalizationByStatus,
16
+ sensorsIconByStatus,
17
+ } from '~/components/common/pages/hardwareHealth/lib/config/status'
15
18
 
16
19
  const getItems = (
17
20
  localization: UI_I_Localization
@@ -56,7 +59,8 @@ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
56
59
  }
57
60
 
58
61
  export const bodyItems = (
59
- data: UI_I_HardwareHealthSensors[]
62
+ data: UI_I_HardwareHealthSensors[],
63
+ localization: UI_I_Localization
60
64
  ): UI_I_BodyItem[][] => {
61
65
  const bodyItems: UI_I_BodyItem[][] = []
62
66
  data.forEach((sensor: UI_I_HardwareHealthSensors, key) => {
@@ -79,10 +83,12 @@ export const bodyItems = (
79
83
  },
80
84
  {
81
85
  key: 'icon',
82
- text: sensor[hardwareHealthSensorTableKeys[1]],
86
+ text: localization[
87
+ sensorsLocalizationByStatus[sensor[hardwareHealthSensorTableKeys[1]]]
88
+ ],
83
89
  id: key,
84
90
  data: {
85
- iconClassName: UI_E_SensorsIconByStatus[sensor.status],
91
+ iconClassName: sensorsIconByStatus[sensor.status],
86
92
  isSprite: false,
87
93
  },
88
94
  },
@@ -101,7 +107,8 @@ export const bodyItems = (
101
107
  text: sensor[hardwareHealthSensorTableKeys[3]],
102
108
  id: key,
103
109
  data: {
104
- iconClassName: UI_E_SensorsCategoryIcon[sensor.category.toLowerCase()],
110
+ iconClassName:
111
+ UI_E_SensorsCategoryIcon[sensor.category.toLowerCase()],
105
112
  isSprite: true,
106
113
  },
107
114
  },
@@ -4,7 +4,7 @@ interface UI_I_HardwareHealthEventEntries {
4
4
  }
5
5
  export interface UI_I_HardwareHealthSensors {
6
6
  name: string
7
- status: 'Warning' | 'Alert' | 'Normal' | 'Unknown'
7
+ status: 0 | 1 | 2 | 3
8
8
  reading: string
9
9
  category: string
10
10
  lastUpdated: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.319",
4
+ "version": "1.3.320",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -1,6 +0,0 @@
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
- }