bfg-common 1.4.20 → 1.4.22
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/assets/localization/local_be.json +2 -2
- package/assets/localization/local_en.json +1 -1
- package/assets/localization/local_hy.json +1 -1
- package/assets/localization/local_kk.json +1 -1
- package/assets/localization/local_ru.json +1 -1
- package/assets/localization/local_zh.json +1 -1
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +36 -12
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +9 -1
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +30 -7
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -2
- package/lib/models/interfaces.ts +1 -0
- package/package.json +1 -1
|
@@ -2304,8 +2304,8 @@
|
|
|
2304
2304
|
"eventTypeDescription": "Апісанне тыпу падзеі",
|
|
2305
2305
|
"possibleCauses": "Магчымыя прычыны",
|
|
2306
2306
|
"importVms": "Імпарт віртуальных машын",
|
|
2307
|
-
"selectSourceVCenterServer": "
|
|
2308
|
-
"selectSourceVCenterServerDesc": "Імпарт
|
|
2307
|
+
"selectSourceVCenterServer": "Esxi Хост көзін таңдаңыз",
|
|
2308
|
+
"selectSourceVCenterServerDesc": "Імпарт віртуальнай машыны з абранага зыходнага вузла ESXI.",
|
|
2309
2309
|
"importVirtualMachines": "Імпарт віртуальных машын",
|
|
2310
2310
|
"importVirtualMachinesDesc": "Выберыце, якія віртуальныя машыны трэба імпартаваць.",
|
|
2311
2311
|
"selectFolder": "Выберыце тэчку",
|
|
@@ -2308,7 +2308,7 @@
|
|
|
2308
2308
|
"possibleCauses": "Possible Causes",
|
|
2309
2309
|
"importVms": "Import VMs",
|
|
2310
2310
|
"selectSourceVCenterServer": "Select a source ESXI Host",
|
|
2311
|
-
"selectSourceVCenterServerDesc": "Import Virtual
|
|
2311
|
+
"selectSourceVCenterServerDesc": "Import Virtual Machine from the selected source ESXI Host.",
|
|
2312
2312
|
"importVirtualMachines": "Import Virtual Machines",
|
|
2313
2313
|
"importVirtualMachinesDesc": "Select which Virtual Machines to be imported.",
|
|
2314
2314
|
"selectFolder": "Select folder",
|
|
@@ -2308,7 +2308,7 @@
|
|
|
2308
2308
|
"possibleCauses": "Հնարավոր պատճառներ",
|
|
2309
2309
|
"importVms": "Վիրտուալ մեքենաների ներմուծում",
|
|
2310
2310
|
"selectSourceVCenterServer": "Ընտրեք ESXi աղբյուրի հյուրընկալողը",
|
|
2311
|
-
"selectSourceVCenterServerDesc": "Ներմուծեք վիրտուալ
|
|
2311
|
+
"selectSourceVCenterServerDesc": "Ներմուծեք վիրտուալ մեքենան ընտրված ESXI աղբյուրի հանգույցից:",
|
|
2312
2312
|
"importVirtualMachines": "Ներմուծեք վիրտուալ մեքենաներ",
|
|
2313
2313
|
"importVirtualMachinesDesc": "Ընտրեք, թե որ վիրտուալ մեքենաները պետք է ներմուծվեն:",
|
|
2314
2314
|
"selectFolder": "Ընտրեք թղթապանակ",
|
|
@@ -2307,7 +2307,7 @@
|
|
|
2307
2307
|
"possibleCauses": "Ықтимал себептері",
|
|
2308
2308
|
"importVms": "Виртуалды Машиналарды Импорттау",
|
|
2309
2309
|
"selectSourceVCenterServer": "Esxi Хост көзін таңдаңыз",
|
|
2310
|
-
"selectSourceVCenterServerDesc": "
|
|
2310
|
+
"selectSourceVCenterServerDesc": "Виртуалды Машинаны таңдалған ESXI Хост көзінен импорттаңыз.",
|
|
2311
2311
|
"importVirtualMachines": "Виртуалды машиналарды импорттау",
|
|
2312
2312
|
"importVirtualMachinesDesc": "Импортталатын виртуалды машиналарды таңдаңыз.",
|
|
2313
2313
|
"selectFolder": "Қалтаны таңдаңыз",
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
"possibleCauses": "Возможные причины",
|
|
2311
2311
|
"importVms": "Импорт виртуальных машин",
|
|
2312
2312
|
"selectSourceVCenterServer": "Выберите исходный хост ESXI",
|
|
2313
|
-
"selectSourceVCenterServerDesc": "Импортируйте
|
|
2313
|
+
"selectSourceVCenterServerDesc": "Импортируйте виртуальную машину с выбранного исходного узла ESXI.",
|
|
2314
2314
|
"importVirtualMachines": "Импортировать виртуальные машины",
|
|
2315
2315
|
"importVirtualMachinesDesc": "Выберите, какие виртуальные машины нужно импортировать.",
|
|
2316
2316
|
"selectFolder": "Выберите папку",
|
|
@@ -2307,7 +2307,7 @@
|
|
|
2307
2307
|
"possibleCauses": "可能的原因",
|
|
2308
2308
|
"importVms": "导入虚拟机",
|
|
2309
2309
|
"selectSourceVCenterServer": "选择源ESXI主机",
|
|
2310
|
-
"selectSourceVCenterServerDesc": "从选定的源
|
|
2310
|
+
"selectSourceVCenterServerDesc": "从选定的源ESXI主机导入虚拟机。",
|
|
2311
2311
|
"importVirtualMachines": "导入虚拟机",
|
|
2312
2312
|
"importVirtualMachinesDesc": "选择要导入的虚拟机。",
|
|
2313
2313
|
"selectFolder": "选择文件夹",
|
|
@@ -18,14 +18,21 @@
|
|
|
18
18
|
:disabled="props.disabledPin"
|
|
19
19
|
@change="emits('change-menu-pin')"
|
|
20
20
|
/>
|
|
21
|
-
<label
|
|
21
|
+
<label
|
|
22
|
+
for="pin-menu-control"
|
|
23
|
+
class="pointer flex-align-center pin-unpin-label"
|
|
24
|
+
>
|
|
22
25
|
<ui-icon-main-navigation-panel
|
|
23
26
|
:name="menuPined ? 'unpin' : 'pin'"
|
|
24
|
-
width="
|
|
25
|
-
height="
|
|
27
|
+
width="16px"
|
|
28
|
+
height="16px"
|
|
26
29
|
/>
|
|
27
|
-
<span v-if="!menuPined">{{
|
|
28
|
-
|
|
30
|
+
<span v-if="!menuPined" class="pin-unpin-text">{{
|
|
31
|
+
localization.common.pinMenu
|
|
32
|
+
}}</span>
|
|
33
|
+
<span v-else class="pin-unpin-text">{{
|
|
34
|
+
localization.common.unpinMenu
|
|
35
|
+
}}</span>
|
|
29
36
|
</label>
|
|
30
37
|
</div>
|
|
31
38
|
|
|
@@ -37,7 +44,11 @@
|
|
|
37
44
|
@click="emits('collapse-menu')"
|
|
38
45
|
>
|
|
39
46
|
<span class="nav-trigger-icon flex">
|
|
40
|
-
<ui-icon-main-navigation-panel
|
|
47
|
+
<ui-icon-main-navigation-panel
|
|
48
|
+
name="doubleArrow"
|
|
49
|
+
width="16px"
|
|
50
|
+
height="16px"
|
|
51
|
+
/>
|
|
41
52
|
</span>
|
|
42
53
|
</button>
|
|
43
54
|
</div>
|
|
@@ -55,7 +66,11 @@
|
|
|
55
66
|
:title="item2.title"
|
|
56
67
|
@click="emits('hide-main-menu')"
|
|
57
68
|
>
|
|
58
|
-
<ui-icon-main-navigation-panel
|
|
69
|
+
<ui-icon-main-navigation-panel
|
|
70
|
+
:name="item2.iconName"
|
|
71
|
+
width="20px"
|
|
72
|
+
height="20px"
|
|
73
|
+
/>
|
|
59
74
|
<span class="nav-text">{{ item2.title }}</span>
|
|
60
75
|
</nuxt-link>
|
|
61
76
|
<div
|
|
@@ -151,17 +166,23 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
151
166
|
|
|
152
167
|
&:hover {
|
|
153
168
|
background-color: var(--vertical-nav-hover-bg-color);
|
|
169
|
+
|
|
170
|
+
.pin-unpin-label {
|
|
171
|
+
color: #008fd6;
|
|
172
|
+
}
|
|
154
173
|
}
|
|
155
174
|
|
|
156
175
|
input {
|
|
157
176
|
display: none;
|
|
158
177
|
}
|
|
159
|
-
label {
|
|
178
|
+
.pin-unpin-label {
|
|
160
179
|
color: var(--vertical-nav-item-color);
|
|
161
180
|
font-size: 12px;
|
|
162
181
|
font-weight: 500;
|
|
163
182
|
|
|
164
|
-
|
|
183
|
+
.pin-unpin-text {
|
|
184
|
+
font-size: 12px;
|
|
185
|
+
font-weight: 500;
|
|
165
186
|
margin-left: 6px;
|
|
166
187
|
}
|
|
167
188
|
}
|
|
@@ -178,6 +199,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
178
199
|
|
|
179
200
|
&:hover {
|
|
180
201
|
background-color: var(--vertical-nav-hover-bg-color);
|
|
202
|
+
color: #008fd6;
|
|
181
203
|
}
|
|
182
204
|
}
|
|
183
205
|
}
|
|
@@ -212,6 +234,8 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
212
234
|
|
|
213
235
|
.nav-text {
|
|
214
236
|
margin-left: 12px;
|
|
237
|
+
font-size: 14px;
|
|
238
|
+
font-weight: 400;
|
|
215
239
|
}
|
|
216
240
|
}
|
|
217
241
|
.nav-link + .nav-link {
|
|
@@ -231,14 +255,14 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
231
255
|
|
|
232
256
|
<style>
|
|
233
257
|
:root.is-new-view {
|
|
234
|
-
--vertical-nav-bg-color: rgba(233, 235, 237, 0.
|
|
258
|
+
--vertical-nav-bg-color: rgba(233, 235, 237, 0.92);
|
|
235
259
|
--vertical-nav-item-color: #4d5d69;
|
|
236
|
-
--vertical-nav-hover-bg-color:
|
|
260
|
+
--vertical-nav-hover-bg-color: rgba(211, 214, 218, 0.48);
|
|
237
261
|
--vertical-active-nav-bg-color: #213444;
|
|
238
262
|
--vertical-active-nav-color: #ffffff;
|
|
239
263
|
}
|
|
240
264
|
:root.is-new-view.dark-theme {
|
|
241
|
-
--vertical-nav-bg-color: rgba(
|
|
265
|
+
--vertical-nav-bg-color: rgba(51, 68, 83, 0.92);
|
|
242
266
|
--vertical-nav-item-color: #ffffff;
|
|
243
267
|
--vertical-nav-hover-bg-color: #485865;
|
|
244
268
|
--vertical-active-nav-bg-color: rgba(233, 235, 237, 0.96);
|
|
@@ -152,7 +152,15 @@ watch(
|
|
|
152
152
|
newValue[0] === 'host' &&
|
|
153
153
|
['disk', 'network'].includes(newValue[1])
|
|
154
154
|
) {
|
|
155
|
-
|
|
155
|
+
let newItems = [
|
|
156
|
+
{
|
|
157
|
+
id: 'total',
|
|
158
|
+
target_object: localization.value.common.total,
|
|
159
|
+
},
|
|
160
|
+
]
|
|
161
|
+
newItems = [...newItems, ...props.currentItems]
|
|
162
|
+
|
|
163
|
+
items = newItems
|
|
156
164
|
}
|
|
157
165
|
|
|
158
166
|
bodyItems.value = table.bodyItems(items)
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
:data="powerDataLocal"
|
|
35
35
|
:update="updatePowerHelper"
|
|
36
36
|
:chart="powerChart"
|
|
37
|
-
:selected-row="
|
|
37
|
+
:selected-row="selectedRowPower"
|
|
38
38
|
/>
|
|
39
39
|
<div v-else-if="props.powerLoading" class="graphic-loader-block">
|
|
40
40
|
<div class="spinner"></div>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
:data="temperatureDataLocal"
|
|
48
48
|
:update="updateTemperatureHelper"
|
|
49
49
|
:chart="temperatureChart"
|
|
50
|
-
:selected-row="
|
|
50
|
+
:selected-row="selectedRowTemperature"
|
|
51
51
|
/>
|
|
52
52
|
<div v-else-if="props.temperatureLoading" class="graphic-loader-block">
|
|
53
53
|
<div class="spinner"></div>
|
|
@@ -64,7 +64,7 @@ import type {
|
|
|
64
64
|
I_LineGraph,
|
|
65
65
|
} from '~/node_modules/bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
66
66
|
import { graphDataFunc } from '~/node_modules/bfg-nuxt-3-graph/graph/lib/utils/renderGraph'
|
|
67
|
-
import type { UI_I_OptionsForm } from '~/components/common/
|
|
67
|
+
import type { UI_I_OptionsForm } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/interfaces'
|
|
68
68
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
69
69
|
import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
|
|
70
70
|
import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
|
|
@@ -84,10 +84,6 @@ const props = defineProps<{
|
|
|
84
84
|
mainSelectedRow: number[]
|
|
85
85
|
}>()
|
|
86
86
|
|
|
87
|
-
const emits = defineEmits<{
|
|
88
|
-
(event: 'update:selected-timespan-type', value: string): void
|
|
89
|
-
}>()
|
|
90
|
-
|
|
91
87
|
const { $store }: any = useNuxtApp()
|
|
92
88
|
|
|
93
89
|
const selectedChartOptionName = ref<string>('')
|
|
@@ -101,6 +97,32 @@ const customDateTo = ref<string>('')
|
|
|
101
97
|
const customTimeFrom = ref<string>('')
|
|
102
98
|
const customTimeTo = ref<string>('')
|
|
103
99
|
|
|
100
|
+
const selectedRowPower = ref<number[]>([])
|
|
101
|
+
const selectedRowTemperature = ref<number[]>([])
|
|
102
|
+
const updateAllSelectedSelectedRow = (): void => {
|
|
103
|
+
selectedRowPower.value = []
|
|
104
|
+
selectedRowTemperature.value = []
|
|
105
|
+
props.mainSelectedRow.forEach((key) => {
|
|
106
|
+
const category = props.countersTableData[key].category.toLowerCase()
|
|
107
|
+
|
|
108
|
+
switch (category) {
|
|
109
|
+
case 'power':
|
|
110
|
+
selectedRowPower.value.push(key)
|
|
111
|
+
break
|
|
112
|
+
case 'temperature':
|
|
113
|
+
selectedRowTemperature.value.push(key)
|
|
114
|
+
break
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
}
|
|
118
|
+
watch(
|
|
119
|
+
() => props.mainSelectedRow,
|
|
120
|
+
() => {
|
|
121
|
+
updateAllSelectedSelectedRow()
|
|
122
|
+
},
|
|
123
|
+
{ deep: true, immediate: true }
|
|
124
|
+
)
|
|
125
|
+
|
|
104
126
|
const unitsCount = ref<number>(0)
|
|
105
127
|
const powerCountersTableData = ref<UI_I_HardwareHealthSensorsGraph[]>([])
|
|
106
128
|
const temperatureCountersTableData = ref<UI_I_HardwareHealthSensorsGraph[]>([])
|
|
@@ -261,6 +283,7 @@ const tools = {
|
|
|
261
283
|
}
|
|
262
284
|
|
|
263
285
|
const onSubmitOptions = (data: UI_I_OptionsForm): void => {
|
|
286
|
+
selectedTimespanType.value = data.periodName
|
|
264
287
|
updateSelectedCountersKeys(data.metric)
|
|
265
288
|
if (data.metric === 'power')
|
|
266
289
|
$store.dispatch(
|
package/lib/models/interfaces.ts
CHANGED
|
@@ -30,6 +30,7 @@ export interface UI_I_Localization {
|
|
|
30
30
|
inventoryMonitor: UI_I_ArbitraryObject<string>
|
|
31
31
|
inventoryTabs: UI_I_ArbitraryObject<string>
|
|
32
32
|
snapshots: UI_I_ArbitraryObject<string>
|
|
33
|
+
importVms: UI_I_ArbitraryObject<string>
|
|
33
34
|
}
|
|
34
35
|
export interface UI_I_SendTaskParams {
|
|
35
36
|
method: string
|