bfg-common 1.3.401 → 1.3.403

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.
@@ -2367,5 +2367,8 @@
2367
2367
  "datastoresCount": "Сховішчы даных ({0})",
2368
2368
  "networksCount": "Сеткі ({0})",
2369
2369
  "applyTheRule": "Прымяніць правіла",
2370
- "restoreFromBackup": "Аднавіць з рэзервовай копіі"
2370
+ "restoreFromBackup": "Аднавіць з рэзервовай копіі",
2371
+ "backupType": "Тып рэзервовага капіявання",
2372
+ "ipAddressIsRequired": "Патрабуецца IP-адрас",
2373
+ "portIsRequired": "Патрабуецца порт"
2371
2374
  }
@@ -2371,5 +2371,8 @@
2371
2371
  "datastoresCount": "Datastores ({0})",
2372
2372
  "networksCount": "Networks ({0})",
2373
2373
  "applyTheRule": "Apply the rule",
2374
- "restoreFromBackup": "Restore from backup"
2374
+ "restoreFromBackup": "Restore from backup",
2375
+ "backupType": "Backup type",
2376
+ "ipAddressIsRequired": "IP Address is required",
2377
+ "portIsRequired": "Port is required"
2375
2378
  }
@@ -2371,5 +2371,8 @@
2371
2371
  "datastoresCount": "Տվյալների պահեստներ ({0})",
2372
2372
  "networksCount": "Ցանցեր ({0})",
2373
2373
  "applyTheRule": "Կիրառեք կանոնը",
2374
- "restoreFromBackup": "Վերականգնել կրկնօրինակից"
2374
+ "restoreFromBackup": "Վերականգնել կրկնօրինակից",
2375
+ "backupType": "Կրկնօրինակման տեսակը",
2376
+ "ipAddressIsRequired": "Պահանջվում է IP հասցե",
2377
+ "portIsRequired": "Պահանջվում է port"
2375
2378
  }
@@ -2370,5 +2370,8 @@
2370
2370
  "datastoresCount": "Деректер қоймалары ({0})",
2371
2371
  "networksCount": "Желілер ({0})",
2372
2372
  "applyTheRule": "Ережені қолданыңыз",
2373
- "restoreFromBackup": "Сақтық көшірмеден қалпына келтіру"
2373
+ "restoreFromBackup": "Сақтық көшірмеден қалпына келтіру",
2374
+ "backupType": "Сақтық көшірме түрі",
2375
+ "ipAddressIsRequired": "IP мекенжайы қажет",
2376
+ "portIsRequired": "Порт қажет"
2374
2377
  }
@@ -2376,5 +2376,8 @@
2376
2376
  "datastoresCount": "Хранилища данных ({0})",
2377
2377
  "networksCount": "Сети ({0})",
2378
2378
  "applyTheRule": "Применить правило",
2379
- "restoreFromBackup": "Восстановление из резервной копии"
2379
+ "restoreFromBackup": "Восстановление из резервной копии",
2380
+ "backupType": "Тип бэкапа",
2381
+ "ipAddressIsRequired": "Требуется IP-адрес",
2382
+ "portIsRequired": "Требуется порт"
2380
2383
  }
@@ -2370,5 +2370,8 @@
2370
2370
  "datastoresCount": "数据存储 ({0})",
2371
2371
  "networksCount": "网络 ({0})",
2372
2372
  "applyTheRule": "应用规则",
2373
- "restoreFromBackup": "从备份恢复"
2373
+ "restoreFromBackup": "从备份恢复",
2374
+ "backupType": "备份类型",
2375
+ "ipAddressIsRequired": "IP 地址为必填项",
2376
+ "portIsRequired": "端口为必填项"
2374
2377
  }
@@ -79,25 +79,21 @@ const hardwareHealthDescription = computed<string>(() => {
79
79
  const { thereIsAlertAndWarningOutOfSensors, noAlertsOrWarningsOutOfSensors } =
80
80
  localization.value
81
81
 
82
-
83
82
  let alertCount = 0
84
83
  let warningCount = 0
85
84
 
86
-
87
- hardwareHealth.value.forEach(sensor => {
88
- if (sensor.status === 'alert') alertCount++
89
- if (sensor.status === 'warning') warningCount++
85
+ hardwareHealth.value.forEach((sensor: UI_I_HardwareHealthSensors) => {
86
+ if (sensor.status === 3) alertCount++
87
+ if (sensor.status === 2) warningCount++
90
88
  })
91
89
 
92
- // console.log(hardwareHealth.value, 'hardwareHealth')
93
- //
94
90
  // const hasStatusTwoOrThree = hardwareHealth.value.some((sensor) =>
95
91
  // ['warning', 'alert'].includes(sensor.status)
96
92
  // )
97
93
 
98
94
  type Replacements = {
99
- alert: number,
100
- warning: number,
95
+ alert: number
96
+ warning: number
101
97
  sensors: number
102
98
  }
103
99
 
@@ -111,7 +107,10 @@ const hardwareHealthDescription = computed<string>(() => {
111
107
  ? thereIsAlertAndWarningOutOfSensors
112
108
  : noAlertsOrWarningsOutOfSensors
113
109
 
114
- return text?.replace(/{(\w+)}/g, (_, key: keyof Replacements) => replacements[key])
110
+ return text?.replace(
111
+ /{(\w+)}/g,
112
+ (_, key: keyof Replacements) => replacements[key]
113
+ )
115
114
  })
116
115
 
117
116
  const generateAlertTextWithLink = computed<UI_I_StorageSensorsAlert>(() => {
@@ -42,12 +42,12 @@
42
42
  {{ item.text }}
43
43
 
44
44
  <a
45
- v-if="false"
45
+ v-if="item.data.warning"
46
46
  id="sensor-item-warning"
47
47
  :data-id="item.data.testId"
48
48
  href="javascript:void(0)"
49
49
  class="row-details__text"
50
- @click="onShowFieldWarning(item.data.error)"
50
+ @click="onShowFieldWarning(item.data.warning)"
51
51
  >{{ localization.details }}...
52
52
  </a>
53
53
  </template>
@@ -64,9 +64,11 @@ export const bodyItems = (
64
64
  ): UI_I_BodyItem[][] => {
65
65
  const bodyItems: UI_I_BodyItem[][] = []
66
66
  data.forEach((sensor: UI_I_HardwareHealthSensors, key) => {
67
- // const data = {
68
- // current: sensor,
69
- // }
67
+ const statusData = {
68
+ iconClassName: sensorsIconByStatus[sensor.status],
69
+ isSprite: false,
70
+ warning: sensor.warning,
71
+ }
70
72
 
71
73
  bodyItems.push([
72
74
  // {
@@ -87,10 +89,7 @@ export const bodyItems = (
87
89
  sensorsLocalizationByStatus[sensor[hardwareHealthSensorTableKeys[1]]]
88
90
  ],
89
91
  id: key,
90
- data: {
91
- iconClassName: sensorsIconByStatus[sensor.status],
92
- isSprite: false,
93
- },
92
+ data: statusData,
94
93
  },
95
94
  {
96
95
  key: 'col2',
@@ -8,6 +8,7 @@ export interface UI_I_HardwareHealthSensors {
8
8
  reading: string
9
9
  category: string
10
10
  lastUpdated: string
11
+ warning?: string
11
12
  selEntries?: UI_I_HardwareHealthEventEntries[]
12
13
  }
13
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.401",
4
+ "version": "1.3.403",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",