bfg-common 1.3.318 → 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": "Ежедневно",
@@ -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,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 { E_SensorsIconByStatus } from '~/components/common/pages/hardwareHealth/tableView/lib/models/enums'
13
- import { E_SensorsCategoryIcon } from '~/components/common/pages/hardwareHealth/lib/models/enums'
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: 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: E_SensorsCategoryIcon[sensor.category.toLowerCase()],
110
+ iconClassName:
111
+ UI_E_SensorsCategoryIcon[sensor.category.toLowerCase()],
105
112
  isSprite: true,
106
113
  },
107
114
  },
@@ -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']
@@ -1,14 +1,14 @@
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: 'Warning' | 'Alert' | 'Normal' | 'Unknown'
7
+ status: 0 | 1 | 2 | 3
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
14
  export interface UI_I_HardwareHealthAlertWarnings
@@ -19,4 +19,7 @@ export interface UI_I_HardwareHealthStorageSensor {
19
19
  health: string
20
20
  categories: string
21
21
  }
22
- 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.318",
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 E_SensorsIconByStatus {
2
- Unknown = 'vsphere-icon-status-unknown',
3
- Normal = 'success-circle',
4
- Warning = 'warning-outline',
5
- Alert = 'error-outline',
6
- }