bfg-common 1.5.701 → 1.5.702
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 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +3 -2
- package/assets/localization/local_zh.json +2 -1
- package/components/common/layout/theHeader/modals/reconnect/ReconnectOld.vue +2 -0
- package/components/common/monitor/advanced/graphView/GraphView.vue +151 -151
- package/components/common/monitor/advanced/tools/Tools.vue +313 -313
- package/components/common/pages/files/lib/models/enums.ts +10 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +394 -394
- package/components/common/pages/hardwareHealth/tableView/TableView.vue +202 -202
- package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +165 -165
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/New.vue +0 -9
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/Old.vue +6 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +0 -26
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces.ts +3 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/New.vue +7 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +9 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/Old.vue +5 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +1 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/New.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/Old.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/New.vue +1 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/Old.vue +1 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/New.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/Old.vue +1 -1
- package/package.json +1 -1
- package/store/main/getters.ts +7 -7
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="data-table-view">
|
|
3
|
-
<div class="data-table-view__inner">
|
|
4
|
-
<atoms-table-data-grid
|
|
5
|
-
v-model:column-keys="columnKeys"
|
|
6
|
-
v-model:selected-row="selectedRow"
|
|
7
|
-
:head-items="headItems"
|
|
8
|
-
:body-items="bodyItems"
|
|
9
|
-
:total-items="props.totalItems"
|
|
10
|
-
:total-pages="props.totalPages"
|
|
11
|
-
:page-size="100"
|
|
12
|
-
:page="1"
|
|
13
|
-
:type="tableType"
|
|
14
|
-
:loading="props.loading"
|
|
15
|
-
class="data-table"
|
|
16
|
-
test-id="hardware-health-table"
|
|
17
|
-
hide-page-size
|
|
18
|
-
server-off
|
|
19
|
-
>
|
|
20
|
-
<template v-if="hasNonEmptySelEntries" #toggleBlock="{ item }">
|
|
21
|
-
<div class="row-details">
|
|
22
|
-
<div class="row-details__headline">
|
|
23
|
-
{{ localization.common.eventLogEntries }}
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<div
|
|
27
|
-
v-for="(entries, key) in item[0].data.current.sel_entries"
|
|
28
|
-
:key="key"
|
|
29
|
-
class="row-details__content"
|
|
30
|
-
>
|
|
31
|
-
<span>{{ entries.event }}</span>
|
|
32
|
-
<span>{{ entries.time }}</span>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<template #icon="{ item }">
|
|
38
|
-
<atoms-the-icon
|
|
39
|
-
v-if="!item.data.isSprite"
|
|
40
|
-
:name="item.data.iconClassName"
|
|
41
|
-
class="icon"
|
|
42
|
-
/>
|
|
43
|
-
<span v-else :class="['icon', item.data.iconClassName]"></span>
|
|
44
|
-
{{ item.text }}
|
|
45
|
-
|
|
46
|
-
<a
|
|
47
|
-
v-if="item.data.warning"
|
|
48
|
-
id="sensor-item-warning"
|
|
49
|
-
:data-id="item.data.testId"
|
|
50
|
-
href="javascript:void(0)"
|
|
51
|
-
class="row-details__text"
|
|
52
|
-
@click="onShowFieldWarning(item.data.warning)"
|
|
53
|
-
>{{ localization.common.details }}...
|
|
54
|
-
</a>
|
|
55
|
-
</template>
|
|
56
|
-
</atoms-table-data-grid>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
<common-pages-hardware-health-table-view-modal-sensor-warning
|
|
61
|
-
v-if="isShowSensorWarningDetails"
|
|
62
|
-
:error="sensorWarningError"
|
|
63
|
-
@close-modal="isShowSensorWarningDetails = false"
|
|
64
|
-
/>
|
|
65
|
-
</template>
|
|
66
|
-
|
|
67
|
-
<script lang="ts" setup>
|
|
68
|
-
import type {
|
|
69
|
-
UI_I_HeadItem,
|
|
70
|
-
UI_I_ColumnKey,
|
|
71
|
-
UI_I_BodyItem,
|
|
72
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
73
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
74
|
-
import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
|
|
75
|
-
import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
|
|
76
|
-
import type { UI_T_DataGridType } from '~/components/atoms/table/dataGrid/lib/models/types'
|
|
77
|
-
import * as sensorTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable'
|
|
78
|
-
import * as storageSensorTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/storageSensorTable'
|
|
79
|
-
import * as alertWarningTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/alertWarningTable'
|
|
80
|
-
import * as systemLogTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/systemLogTable'
|
|
81
|
-
import * as historyTestimonyTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable'
|
|
82
|
-
|
|
83
|
-
const props = defineProps<{
|
|
84
|
-
selectedGraphView: string
|
|
85
|
-
dataTable: UI_I_HardwareHealthSensors[]
|
|
86
|
-
loading: boolean
|
|
87
|
-
totalItems: number
|
|
88
|
-
totalPages: number
|
|
89
|
-
tableMode: UI_T_HardwareHealthTabMode
|
|
90
|
-
}>()
|
|
91
|
-
const selectedRow = defineModel<number[]>('selectedRow')
|
|
92
|
-
|
|
93
|
-
const { $store }: any = useNuxtApp()
|
|
94
|
-
|
|
95
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
96
|
-
|
|
97
|
-
const table: any = {
|
|
98
|
-
sensor: sensorTable,
|
|
99
|
-
'storage-sensor': storageSensorTable,
|
|
100
|
-
'alert-warning': alertWarningTable,
|
|
101
|
-
'system-log': systemLogTable,
|
|
102
|
-
'history-testimony': historyTestimonyTable,
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
const tableType = computed<UI_T_DataGridType | undefined>(() =>
|
|
106
|
-
props.tableMode === 'history-testimony' ? 'checkbox' : undefined
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
const hasNonEmptySelEntries = computed<boolean>(() => {
|
|
110
|
-
return (
|
|
111
|
-
props.dataTable.some(
|
|
112
|
-
(item) => item.sel_entries && item.sel_entries.length > 0
|
|
113
|
-
) && props.tableMode === 'sensor'
|
|
114
|
-
)
|
|
115
|
-
})
|
|
116
|
-
|
|
117
|
-
const columnKeys = ref<UI_I_ColumnKey[]>(
|
|
118
|
-
table[props.tableMode].columnKeys(localization.value)
|
|
119
|
-
)
|
|
120
|
-
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
121
|
-
table[props.tableMode].headItems(localization.value)
|
|
122
|
-
)
|
|
123
|
-
|
|
124
|
-
const updateTimeFormatAndInterfaceLang = computed<number>(
|
|
125
|
-
() => $store.getters['main/getUpdateTimeFormatAndInterfaceLang']
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
const bodyItems = computed<UI_I_BodyItem[][]>(() => {
|
|
129
|
-
if (!updateTimeFormatAndInterfaceLang.value) return []
|
|
130
|
-
// const tableData = ['sensor'].includes(props.tableMode) ? props.dataTable : [] // TODO временно так
|
|
131
|
-
let tableData = props.dataTable
|
|
132
|
-
|
|
133
|
-
switch (props.tableMode) {
|
|
134
|
-
case 'storage-sensor':
|
|
135
|
-
tableData = []
|
|
136
|
-
break
|
|
137
|
-
case 'alert-warning':
|
|
138
|
-
tableData = tableData.filter((sensor: UI_I_HardwareHealthSensors) =>
|
|
139
|
-
[2, 3].includes(sensor.status)
|
|
140
|
-
)
|
|
141
|
-
break
|
|
142
|
-
case 'system-log':
|
|
143
|
-
tableData = []
|
|
144
|
-
break
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return table[props.tableMode].bodyItems(
|
|
148
|
-
tableData,
|
|
149
|
-
localization.value,
|
|
150
|
-
props.selectedGraphView
|
|
151
|
-
)
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
const isShowSensorWarningDetails = ref<boolean>(false)
|
|
155
|
-
const sensorWarningError = ref<string | null>(null)
|
|
156
|
-
const onShowFieldWarning = (error: string): void => {
|
|
157
|
-
isShowSensorWarningDetails.value = true
|
|
158
|
-
sensorWarningError.value = error
|
|
159
|
-
}
|
|
160
|
-
</script>
|
|
161
|
-
|
|
162
|
-
<style lang="scss" scoped>
|
|
163
|
-
@import 'assets/scss/common/mixins.scss';
|
|
164
|
-
.data-table-view {
|
|
165
|
-
overflow: hidden;
|
|
166
|
-
height: inherit;
|
|
167
|
-
margin-bottom: 10px;
|
|
168
|
-
&__inner {
|
|
169
|
-
height: inherit;
|
|
170
|
-
}
|
|
171
|
-
:deep(.data-table) {
|
|
172
|
-
height: inherit;
|
|
173
|
-
.datagrid-outer-wrapper {
|
|
174
|
-
height: inherit;
|
|
175
|
-
padding-top: 0;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.row-details {
|
|
179
|
-
width: 100%;
|
|
180
|
-
&__headline {
|
|
181
|
-
font-weight: 500;
|
|
182
|
-
border-bottom: 2px solid #ccc;
|
|
183
|
-
}
|
|
184
|
-
&__content {
|
|
185
|
-
@include flex($just: space-between);
|
|
186
|
-
&:first-child {
|
|
187
|
-
margin-top: 5px;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
&__text {
|
|
191
|
-
margin-left: 8px;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
.icon {
|
|
195
|
-
width: 18px;
|
|
196
|
-
display: block;
|
|
197
|
-
min-width: 18px;
|
|
198
|
-
margin-right: 5px;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="data-table-view">
|
|
3
|
+
<div class="data-table-view__inner">
|
|
4
|
+
<atoms-table-data-grid
|
|
5
|
+
v-model:column-keys="columnKeys"
|
|
6
|
+
v-model:selected-row="selectedRow"
|
|
7
|
+
:head-items="headItems"
|
|
8
|
+
:body-items="bodyItems"
|
|
9
|
+
:total-items="props.totalItems"
|
|
10
|
+
:total-pages="props.totalPages"
|
|
11
|
+
:page-size="100"
|
|
12
|
+
:page="1"
|
|
13
|
+
:type="tableType"
|
|
14
|
+
:loading="props.loading"
|
|
15
|
+
class="data-table"
|
|
16
|
+
test-id="hardware-health-table"
|
|
17
|
+
hide-page-size
|
|
18
|
+
server-off
|
|
19
|
+
>
|
|
20
|
+
<template v-if="hasNonEmptySelEntries" #toggleBlock="{ item }">
|
|
21
|
+
<div class="row-details">
|
|
22
|
+
<div class="row-details__headline">
|
|
23
|
+
{{ localization.common.eventLogEntries }}
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div
|
|
27
|
+
v-for="(entries, key) in item[0].data.current.sel_entries"
|
|
28
|
+
:key="key"
|
|
29
|
+
class="row-details__content"
|
|
30
|
+
>
|
|
31
|
+
<span>{{ entries.event }}</span>
|
|
32
|
+
<span>{{ entries.time }}</span>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<template #icon="{ item }">
|
|
38
|
+
<atoms-the-icon
|
|
39
|
+
v-if="!item.data.isSprite"
|
|
40
|
+
:name="item.data.iconClassName"
|
|
41
|
+
class="icon"
|
|
42
|
+
/>
|
|
43
|
+
<span v-else :class="['icon', item.data.iconClassName]"></span>
|
|
44
|
+
{{ item.text }}
|
|
45
|
+
|
|
46
|
+
<a
|
|
47
|
+
v-if="item.data.warning"
|
|
48
|
+
id="sensor-item-warning"
|
|
49
|
+
:data-id="item.data.testId"
|
|
50
|
+
href="javascript:void(0)"
|
|
51
|
+
class="row-details__text"
|
|
52
|
+
@click="onShowFieldWarning(item.data.warning)"
|
|
53
|
+
>{{ localization.common.details }}...
|
|
54
|
+
</a>
|
|
55
|
+
</template>
|
|
56
|
+
</atoms-table-data-grid>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<common-pages-hardware-health-table-view-modal-sensor-warning
|
|
61
|
+
v-if="isShowSensorWarningDetails"
|
|
62
|
+
:error="sensorWarningError"
|
|
63
|
+
@close-modal="isShowSensorWarningDetails = false"
|
|
64
|
+
/>
|
|
65
|
+
</template>
|
|
66
|
+
|
|
67
|
+
<script lang="ts" setup>
|
|
68
|
+
import type {
|
|
69
|
+
UI_I_HeadItem,
|
|
70
|
+
UI_I_ColumnKey,
|
|
71
|
+
UI_I_BodyItem,
|
|
72
|
+
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
73
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
74
|
+
import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardwareHealth/tableView/lib/models/interfaces'
|
|
75
|
+
import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
|
|
76
|
+
import type { UI_T_DataGridType } from '~/components/atoms/table/dataGrid/lib/models/types'
|
|
77
|
+
import * as sensorTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable'
|
|
78
|
+
import * as storageSensorTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/storageSensorTable'
|
|
79
|
+
import * as alertWarningTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/alertWarningTable'
|
|
80
|
+
import * as systemLogTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/systemLogTable'
|
|
81
|
+
import * as historyTestimonyTable from '~/components/common/pages/hardwareHealth/tableView/lib/config/historyTestimonyTable'
|
|
82
|
+
|
|
83
|
+
const props = defineProps<{
|
|
84
|
+
selectedGraphView: string
|
|
85
|
+
dataTable: UI_I_HardwareHealthSensors[]
|
|
86
|
+
loading: boolean
|
|
87
|
+
totalItems: number
|
|
88
|
+
totalPages: number
|
|
89
|
+
tableMode: UI_T_HardwareHealthTabMode
|
|
90
|
+
}>()
|
|
91
|
+
const selectedRow = defineModel<number[]>('selectedRow')
|
|
92
|
+
|
|
93
|
+
const { $store }: any = useNuxtApp()
|
|
94
|
+
|
|
95
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
96
|
+
|
|
97
|
+
const table: any = {
|
|
98
|
+
sensor: sensorTable,
|
|
99
|
+
'storage-sensor': storageSensorTable,
|
|
100
|
+
'alert-warning': alertWarningTable,
|
|
101
|
+
'system-log': systemLogTable,
|
|
102
|
+
'history-testimony': historyTestimonyTable,
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const tableType = computed<UI_T_DataGridType | undefined>(() =>
|
|
106
|
+
props.tableMode === 'history-testimony' ? 'checkbox' : undefined
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
const hasNonEmptySelEntries = computed<boolean>(() => {
|
|
110
|
+
return (
|
|
111
|
+
props.dataTable.some(
|
|
112
|
+
(item) => item.sel_entries && item.sel_entries.length > 0
|
|
113
|
+
) && props.tableMode === 'sensor'
|
|
114
|
+
)
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
const columnKeys = ref<UI_I_ColumnKey[]>(
|
|
118
|
+
table[props.tableMode].columnKeys(localization.value)
|
|
119
|
+
)
|
|
120
|
+
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
121
|
+
table[props.tableMode].headItems(localization.value)
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
const updateTimeFormatAndInterfaceLang = computed<number>(
|
|
125
|
+
() => $store.getters['main/getUpdateTimeFormatAndInterfaceLang']
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
const bodyItems = computed<UI_I_BodyItem[][]>(() => {
|
|
129
|
+
if (!updateTimeFormatAndInterfaceLang.value) return []
|
|
130
|
+
// const tableData = ['sensor'].includes(props.tableMode) ? props.dataTable : [] // TODO временно так
|
|
131
|
+
let tableData = props.dataTable
|
|
132
|
+
|
|
133
|
+
switch (props.tableMode) {
|
|
134
|
+
case 'storage-sensor':
|
|
135
|
+
tableData = []
|
|
136
|
+
break
|
|
137
|
+
case 'alert-warning':
|
|
138
|
+
tableData = tableData.filter((sensor: UI_I_HardwareHealthSensors) =>
|
|
139
|
+
[2, 3].includes(sensor.status)
|
|
140
|
+
)
|
|
141
|
+
break
|
|
142
|
+
case 'system-log':
|
|
143
|
+
tableData = []
|
|
144
|
+
break
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return table[props.tableMode].bodyItems(
|
|
148
|
+
tableData,
|
|
149
|
+
localization.value,
|
|
150
|
+
props.selectedGraphView
|
|
151
|
+
)
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
const isShowSensorWarningDetails = ref<boolean>(false)
|
|
155
|
+
const sensorWarningError = ref<string | null>(null)
|
|
156
|
+
const onShowFieldWarning = (error: string): void => {
|
|
157
|
+
isShowSensorWarningDetails.value = true
|
|
158
|
+
sensorWarningError.value = error
|
|
159
|
+
}
|
|
160
|
+
</script>
|
|
161
|
+
|
|
162
|
+
<style lang="scss" scoped>
|
|
163
|
+
@import 'assets/scss/common/mixins.scss';
|
|
164
|
+
.data-table-view {
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
height: inherit;
|
|
167
|
+
margin-bottom: 10px;
|
|
168
|
+
&__inner {
|
|
169
|
+
height: inherit;
|
|
170
|
+
}
|
|
171
|
+
:deep(.data-table) {
|
|
172
|
+
height: inherit;
|
|
173
|
+
.datagrid-outer-wrapper {
|
|
174
|
+
height: inherit;
|
|
175
|
+
padding-top: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.row-details {
|
|
179
|
+
width: 100%;
|
|
180
|
+
&__headline {
|
|
181
|
+
font-weight: 500;
|
|
182
|
+
border-bottom: 2px solid #ccc;
|
|
183
|
+
}
|
|
184
|
+
&__content {
|
|
185
|
+
@include flex($just: space-between);
|
|
186
|
+
&:first-child {
|
|
187
|
+
margin-top: 5px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
&__text {
|
|
191
|
+
margin-left: 8px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
.icon {
|
|
195
|
+
width: 18px;
|
|
196
|
+
display: block;
|
|
197
|
+
min-width: 18px;
|
|
198
|
+
margin-right: 5px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
</style>
|