bfg-common 1.6.29 → 1.6.31
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_ru.json +1 -1
- package/components/common/monitor/advanced/table/lib/models/interfaces.ts +1 -0
- package/components/common/monitor/advanced/table/lib/models/types.ts +1 -4
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +1 -0
- package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +5 -35
- package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +5 -7
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +4 -28
- package/components/common/monitor/lib/utils/local_be.json +5 -1
- package/components/common/monitor/lib/utils/local_en.json +5 -1
- package/components/common/monitor/lib/utils/local_hy.json +5 -1
- package/components/common/monitor/lib/utils/local_kk.json +5 -1
- package/components/common/monitor/lib/utils/local_ru.json +5 -1
- package/components/common/monitor/lib/utils/local_zh.json +5 -1
- package/components/common/monitor/utilization/lib/utils/index.ts +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/select/options/New.vue +1 -1
- package/components/common/vm/actions/rename/New.vue +7 -7
- package/components/common/wizards/common/steps/name/New.vue +6 -4
- package/package.json +2 -2
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
"ghz": "ГГц",
|
|
636
636
|
"mhz": "МГц",
|
|
637
637
|
"global": "Глобальный",
|
|
638
|
-
"globalPermissionRoot": "
|
|
638
|
+
"globalPermissionRoot": "Глобальный уровень разрешений",
|
|
639
639
|
"globalPermissions": "Глобальные разрешения",
|
|
640
640
|
"good": "Хороший",
|
|
641
641
|
"graphics": "Графика",
|
|
@@ -11,7 +11,7 @@ export const bodyOptions = (
|
|
|
11
11
|
const currentBody = constructUsersAndGroupsTableItems(items)
|
|
12
12
|
|
|
13
13
|
return {
|
|
14
|
-
id: '
|
|
14
|
+
id: 'advanced-main-table-config',
|
|
15
15
|
title: `${localization.inventoryMonitor.performanceChartLegend} (${items.length})`,
|
|
16
16
|
selectedRows: [],
|
|
17
17
|
isAllSelected: false,
|
|
@@ -46,18 +46,8 @@ export const bodyOptions = (
|
|
|
46
46
|
show: true,
|
|
47
47
|
filter: true,
|
|
48
48
|
},
|
|
49
|
-
// {
|
|
50
|
-
// col: 'col3',
|
|
51
|
-
// colName: 'rollup',
|
|
52
|
-
// text: localization.common.rollup,
|
|
53
|
-
// width: '150px',
|
|
54
|
-
// isSortable: true,
|
|
55
|
-
// sort: 'asc',
|
|
56
|
-
// show: true,
|
|
57
|
-
// filter: true,
|
|
58
|
-
// },
|
|
59
49
|
{
|
|
60
|
-
col: '
|
|
50
|
+
col: 'col3',
|
|
61
51
|
colName: 'units',
|
|
62
52
|
text: localization.inventoryMonitor.unitOfMeasurement,
|
|
63
53
|
width: '150px',
|
|
@@ -67,17 +57,7 @@ export const bodyOptions = (
|
|
|
67
57
|
filter: true,
|
|
68
58
|
},
|
|
69
59
|
{
|
|
70
|
-
col: '
|
|
71
|
-
colName: 'latest',
|
|
72
|
-
text: localization.common.latest,
|
|
73
|
-
width: '150px',
|
|
74
|
-
isSortable: true,
|
|
75
|
-
sort: 'asc',
|
|
76
|
-
show: true,
|
|
77
|
-
filter: true,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
col: 'col6',
|
|
60
|
+
col: 'col4',
|
|
81
61
|
colName: 'maximum',
|
|
82
62
|
text: localization.common.maximum,
|
|
83
63
|
width: '150px',
|
|
@@ -87,7 +67,7 @@ export const bodyOptions = (
|
|
|
87
67
|
filter: true,
|
|
88
68
|
},
|
|
89
69
|
{
|
|
90
|
-
col: '
|
|
70
|
+
col: 'col5',
|
|
91
71
|
colName: 'minimum',
|
|
92
72
|
text: localization.common.minimum,
|
|
93
73
|
width: '150px',
|
|
@@ -96,18 +76,8 @@ export const bodyOptions = (
|
|
|
96
76
|
show: true,
|
|
97
77
|
filter: true,
|
|
98
78
|
},
|
|
99
|
-
// {
|
|
100
|
-
// col: 'col8',
|
|
101
|
-
// colName: 'average',
|
|
102
|
-
// text: localization.common.average,
|
|
103
|
-
// width: '150px',
|
|
104
|
-
// isSortable: true,
|
|
105
|
-
// sort: 'asc',
|
|
106
|
-
// show: true,
|
|
107
|
-
// filter: true,
|
|
108
|
-
// },
|
|
109
79
|
{
|
|
110
|
-
col: '
|
|
80
|
+
col: 'default-actions',
|
|
111
81
|
colName: 'default-actions',
|
|
112
82
|
text: '',
|
|
113
83
|
show: true,
|
|
@@ -12,13 +12,11 @@ export const constructUsersAndGroupsTableItems = (
|
|
|
12
12
|
data: [
|
|
13
13
|
{ col: 'col0', key: 'icon', text: '', data: { color: item.key } },
|
|
14
14
|
{ col: 'col1', key: 'zone', text: item.relatedDeviceName },
|
|
15
|
-
{ col: 'col2', text: item.
|
|
16
|
-
{ col: 'col3', text: item.
|
|
17
|
-
{ col: 'col4', text: item.
|
|
18
|
-
{ col: 'col5', text: String(item.
|
|
19
|
-
{ col: '
|
|
20
|
-
{ col: 'col7', text: String(item.minimum) },
|
|
21
|
-
{ col: 'col8', text: String(item.average) },
|
|
15
|
+
{ col: 'col2', text: item.description },
|
|
16
|
+
{ col: 'col3', text: item.units },
|
|
17
|
+
{ col: 'col4', text: String(item.maximum) },
|
|
18
|
+
{ col: 'col5', text: String(item.minimum) },
|
|
19
|
+
{ col: 'default-actions', key: 'default-actions', text: '', data: {} },
|
|
22
20
|
],
|
|
23
21
|
})
|
|
24
22
|
})
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="chart-legend">
|
|
3
|
-
<span class="title">{{
|
|
4
|
-
localization.inventoryMonitor.performanceChartLegend
|
|
5
|
-
}}</span>
|
|
6
|
-
<client-only>
|
|
7
|
-
<atoms-table-data-grid
|
|
8
|
-
v-model:selected-row="selectedRow"
|
|
9
|
-
v-model:column-keys="columnKeys"
|
|
10
|
-
v-model:page-size="pageSize"
|
|
11
|
-
v-model:page="page"
|
|
12
|
-
:head-items="headAInfo"
|
|
13
|
-
:body-items="dataBody"
|
|
14
|
-
:total-items="dataBody.length"
|
|
15
|
-
:total-pages="1"
|
|
16
|
-
type="checkbox"
|
|
17
|
-
class="data-table"
|
|
18
|
-
test-id="advances-table"
|
|
19
|
-
hide-page-size
|
|
20
|
-
>
|
|
21
|
-
<template #col1="{ item }">
|
|
22
|
-
<div
|
|
23
|
-
:style="[{ backgroundColor: item.data.color }]"
|
|
24
|
-
class="datagrid-column-color-block"
|
|
25
|
-
></div>
|
|
26
|
-
</template>
|
|
27
|
-
</atoms-table-data-grid>
|
|
28
|
-
</client-only>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<script setup lang="ts">
|
|
33
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
34
|
-
import type {
|
|
35
|
-
UI_I_HeadItem,
|
|
36
|
-
UI_I_BodyItem,
|
|
37
|
-
UI_I_ColumnKey,
|
|
38
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
39
|
-
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
40
|
-
import * as table from '~/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable'
|
|
41
|
-
|
|
42
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
43
|
-
|
|
44
|
-
const props = defineProps<{
|
|
45
|
-
data: UI_I_PerformanceItem[]
|
|
46
|
-
}>()
|
|
47
|
-
const emits = defineEmits<{
|
|
48
|
-
(event: 'select', value: number[]): void
|
|
49
|
-
}>()
|
|
50
|
-
|
|
51
|
-
const selectedRow = ref<number[]>([])
|
|
52
|
-
const pageSize = ref<number>(100)
|
|
53
|
-
const page = ref<number>(1)
|
|
54
|
-
const headAInfo = computed<UI_I_HeadItem[]>(() =>
|
|
55
|
-
table.headItems(localization.value)
|
|
56
|
-
)
|
|
57
|
-
const columnKeys = ref<UI_I_ColumnKey[]>(table.columnKeys(localization.value))
|
|
58
|
-
watch(localization, () => {
|
|
59
|
-
columnKeys.value = table.columnKeys(localization.value)
|
|
60
|
-
})
|
|
61
|
-
const dataBody = ref<UI_I_BodyItem[][]>([])
|
|
62
|
-
|
|
63
|
-
watch(
|
|
64
|
-
() => props.data,
|
|
65
|
-
(newValue) => {
|
|
66
|
-
if (!newValue) return
|
|
67
|
-
|
|
68
|
-
dataBody.value = table.bodyItems(newValue)
|
|
69
|
-
},
|
|
70
|
-
{ immediate: true }
|
|
71
|
-
)
|
|
72
|
-
watch(
|
|
73
|
-
selectedRow,
|
|
74
|
-
(newValue) => {
|
|
75
|
-
emits('select', newValue)
|
|
76
|
-
},
|
|
77
|
-
{ deep: true }
|
|
78
|
-
)
|
|
79
|
-
</script>
|
|
80
|
-
|
|
81
|
-
<style scoped lang="scss">
|
|
82
|
-
.chart-legend {
|
|
83
|
-
.title {
|
|
84
|
-
font-weight: 700;
|
|
85
|
-
height: 20px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.datagrid-column-color-block {
|
|
89
|
-
width: 16px;
|
|
90
|
-
height: 16px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="chart-legend">
|
|
3
|
+
<span class="title">{{
|
|
4
|
+
localization.inventoryMonitor.performanceChartLegend
|
|
5
|
+
}}</span>
|
|
6
|
+
<client-only>
|
|
7
|
+
<atoms-table-data-grid
|
|
8
|
+
v-model:selected-row="selectedRow"
|
|
9
|
+
v-model:column-keys="columnKeys"
|
|
10
|
+
v-model:page-size="pageSize"
|
|
11
|
+
v-model:page="page"
|
|
12
|
+
:head-items="headAInfo"
|
|
13
|
+
:body-items="dataBody"
|
|
14
|
+
:total-items="dataBody.length"
|
|
15
|
+
:total-pages="1"
|
|
16
|
+
type="checkbox"
|
|
17
|
+
class="data-table"
|
|
18
|
+
test-id="advances-table"
|
|
19
|
+
hide-page-size
|
|
20
|
+
>
|
|
21
|
+
<template #col1="{ item }">
|
|
22
|
+
<div
|
|
23
|
+
:style="[{ backgroundColor: item.data.color }]"
|
|
24
|
+
class="datagrid-column-color-block"
|
|
25
|
+
></div>
|
|
26
|
+
</template>
|
|
27
|
+
</atoms-table-data-grid>
|
|
28
|
+
</client-only>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script setup lang="ts">
|
|
33
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
34
|
+
import type {
|
|
35
|
+
UI_I_HeadItem,
|
|
36
|
+
UI_I_BodyItem,
|
|
37
|
+
UI_I_ColumnKey,
|
|
38
|
+
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
39
|
+
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
40
|
+
import * as table from '~/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable'
|
|
41
|
+
|
|
42
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
43
|
+
|
|
44
|
+
const props = defineProps<{
|
|
45
|
+
data: UI_I_PerformanceItem[]
|
|
46
|
+
}>()
|
|
47
|
+
const emits = defineEmits<{
|
|
48
|
+
(event: 'select', value: number[]): void
|
|
49
|
+
}>()
|
|
50
|
+
|
|
51
|
+
const selectedRow = ref<number[]>([])
|
|
52
|
+
const pageSize = ref<number>(100)
|
|
53
|
+
const page = ref<number>(1)
|
|
54
|
+
const headAInfo = computed<UI_I_HeadItem[]>(() =>
|
|
55
|
+
table.headItems(localization.value)
|
|
56
|
+
)
|
|
57
|
+
const columnKeys = ref<UI_I_ColumnKey[]>(table.columnKeys(localization.value))
|
|
58
|
+
watch(localization, () => {
|
|
59
|
+
columnKeys.value = table.columnKeys(localization.value)
|
|
60
|
+
})
|
|
61
|
+
const dataBody = ref<UI_I_BodyItem[][]>([])
|
|
62
|
+
|
|
63
|
+
watch(
|
|
64
|
+
() => props.data,
|
|
65
|
+
(newValue) => {
|
|
66
|
+
if (!newValue) return
|
|
67
|
+
|
|
68
|
+
dataBody.value = table.bodyItems(newValue)
|
|
69
|
+
},
|
|
70
|
+
{ immediate: true }
|
|
71
|
+
)
|
|
72
|
+
watch(
|
|
73
|
+
selectedRow,
|
|
74
|
+
(newValue) => {
|
|
75
|
+
emits('select', newValue)
|
|
76
|
+
},
|
|
77
|
+
{ deep: true }
|
|
78
|
+
)
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
<style scoped lang="scss">
|
|
82
|
+
.chart-legend {
|
|
83
|
+
.title {
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
height: 20px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.datagrid-column-color-block {
|
|
89
|
+
width: 16px;
|
|
90
|
+
height: 16px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
</style>
|
package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts
CHANGED
|
@@ -14,13 +14,10 @@ import {
|
|
|
14
14
|
export const performanceTableKey: UI_T_PerformanceColumnKey[] = [
|
|
15
15
|
'key',
|
|
16
16
|
'relatedDeviceName',
|
|
17
|
-
'
|
|
18
|
-
'rollupType',
|
|
17
|
+
'description',
|
|
19
18
|
'units',
|
|
20
|
-
'latest',
|
|
21
19
|
'maximum',
|
|
22
20
|
'minimum',
|
|
23
|
-
'average',
|
|
24
21
|
]
|
|
25
22
|
|
|
26
23
|
const getItems = (
|
|
@@ -46,17 +43,14 @@ const getItems = (
|
|
|
46
43
|
widthCol,
|
|
47
44
|
performanceTableKey[2],
|
|
48
45
|
],
|
|
49
|
-
// [localization.common.rollup, true, widthCol, performanceTableKey[3]],
|
|
50
46
|
[
|
|
51
47
|
localization.inventoryMonitor.unitOfMeasurement,
|
|
52
48
|
true,
|
|
53
49
|
widthCol,
|
|
54
|
-
performanceTableKey[
|
|
50
|
+
performanceTableKey[3],
|
|
55
51
|
],
|
|
56
|
-
[localization.common.
|
|
57
|
-
[localization.common.
|
|
58
|
-
[localization.common.minimum, true, widthCol, performanceTableKey[7]],
|
|
59
|
-
// [localization.common.average, true, widthCol, performanceTableKey[8]],
|
|
52
|
+
[localization.common.maximum, true, widthCol, performanceTableKey[4]],
|
|
53
|
+
[localization.common.minimum, true, widthCol, performanceTableKey[5]],
|
|
60
54
|
]
|
|
61
55
|
}
|
|
62
56
|
|
|
@@ -125,24 +119,6 @@ export const bodyItems = (data: UI_I_PerformanceItem[]): UI_I_BodyItem[][] => {
|
|
|
125
119
|
id: key,
|
|
126
120
|
testId: `advanced-item-${performanceTableKey[5]}-${key}`,
|
|
127
121
|
},
|
|
128
|
-
{
|
|
129
|
-
key: 'col7',
|
|
130
|
-
text: performance[performanceTableKey[6]],
|
|
131
|
-
id: key,
|
|
132
|
-
testId: `advanced-item-${performanceTableKey[6]}-${key}`,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
key: 'col8',
|
|
136
|
-
text: performance[performanceTableKey[7]],
|
|
137
|
-
id: key,
|
|
138
|
-
testId: `advanced-item-${performanceTableKey[7]}-${key}`,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
key: 'col9',
|
|
142
|
-
text: performance[performanceTableKey[8]],
|
|
143
|
-
id: key,
|
|
144
|
-
testId: `advanced-item-${performanceTableKey[8]}-${key}`,
|
|
145
|
-
},
|
|
146
122
|
])
|
|
147
123
|
})
|
|
148
124
|
return bodyItems
|
|
@@ -694,5 +694,9 @@
|
|
|
694
694
|
"memoryUsed": "Выкарыстанне памяці",
|
|
695
695
|
"memoryUsedDesc": "Аб'ём памяці, які выкарыстоўваецца віртуальнай машынай у дадзены момант",
|
|
696
696
|
"vmNetworkTotalUsage": "Агульны сеткавы трафік ВМ",
|
|
697
|
-
"vmNetworkTotalUsageDesc": "Агульны ўваходны і зыходны сеткавы трафік віртуальнай машыны ў адзінку часу"
|
|
697
|
+
"vmNetworkTotalUsageDesc": "Агульны ўваходны і зыходны сеткавы трафік віртуальнай машыны ў адзінку часу",
|
|
698
|
+
"capacityMHz": "Агульная магутнасць працэсара",
|
|
699
|
+
"consumedMHz": "Спажываная магутнасць працэсара",
|
|
700
|
+
"usagePercent": "Выкарыстанне працэсара",
|
|
701
|
+
"totalCores": "Усяго ядзер працэсара"
|
|
698
702
|
}
|
|
@@ -694,5 +694,9 @@
|
|
|
694
694
|
"memoryUsed": "Memory usage",
|
|
695
695
|
"memoryUsedDesc": "Amount of memory currently used by the virtual machine",
|
|
696
696
|
"vmNetworkTotalUsage": "Total VM network traffic",
|
|
697
|
-
"vmNetworkTotalUsageDesc": "Total incoming and outgoing network traffic of the virtual machine per unit of time"
|
|
697
|
+
"vmNetworkTotalUsageDesc": "Total incoming and outgoing network traffic of the virtual machine per unit of time",
|
|
698
|
+
"capacityMHz": "Total CPU capacity",
|
|
699
|
+
"consumedMHz": "Consumed CPU capacity",
|
|
700
|
+
"usagePercent": "CPU usage",
|
|
701
|
+
"totalCores": "Total CPU cores"
|
|
698
702
|
}
|
|
@@ -694,5 +694,9 @@
|
|
|
694
694
|
"memoryUsed": "Հիշողության օգտագործում",
|
|
695
695
|
"memoryUsedDesc": "Վիրտուալ մեքենայի կողմից ներկայումս օգտագործվող հիշողության ծավալը",
|
|
696
696
|
"vmNetworkTotalUsage": "ՎՄ-ի ընդհանուր ցանցային երթևեկություն",
|
|
697
|
-
"vmNetworkTotalUsageDesc": "Վիրտուալ մեքենայի ընդհանուր մուտքային և ելքային ցանցային երթևեկությունը ժամանակի միավորի համար"
|
|
697
|
+
"vmNetworkTotalUsageDesc": "Վիրտուալ մեքենայի ընդհանուր մուտքային և ելքային ցանցային երթևեկությունը ժամանակի միավորի համար",
|
|
698
|
+
"capacityMHz": "Պրոցեսորի ընդհանուր հզորությունը",
|
|
699
|
+
"consumedMHz": "Սպառված պրոցեսորի հզորությունը",
|
|
700
|
+
"usagePercent": "Պրոցեսորի օգտագործումը",
|
|
701
|
+
"totalCores": "Պրոցեսորի միջուկների ընդհանուր քանակը"
|
|
698
702
|
}
|
|
@@ -694,5 +694,9 @@
|
|
|
694
694
|
"memoryUsed": "Жадты пайдалану",
|
|
695
695
|
"memoryUsedDesc": "Виртуалды машинаның қазіргі уақытта пайдаланатын жад көлемі",
|
|
696
696
|
"vmNetworkTotalUsage": "ВМ жалпы желілік трафигі",
|
|
697
|
-
"vmNetworkTotalUsageDesc": "Виртуалды машинаның уақыт бірлігіндегі жалпы кіріс және шығыс желілік трафигі"
|
|
697
|
+
"vmNetworkTotalUsageDesc": "Виртуалды машинаның уақыт бірлігіндегі жалпы кіріс және шығыс желілік трафигі",
|
|
698
|
+
"capacityMHz": "Процессордың жалпы қуаты",
|
|
699
|
+
"consumedMHz": "Тұтынылған процессор қуаты",
|
|
700
|
+
"usagePercent": "Процессорды пайдалану",
|
|
701
|
+
"totalCores": "Процессор ядроларының жалпы саны"
|
|
698
702
|
}
|
|
@@ -694,5 +694,9 @@
|
|
|
694
694
|
"memoryUsed": "Используемая память",
|
|
695
695
|
"memoryUsedDesc": "Объём памяти, фактически используемой виртуальной машиной в данный момент",
|
|
696
696
|
"vmNetworkTotalUsage": "Общий сетевой трафик ВМ",
|
|
697
|
-
"vmNetworkTotalUsageDesc": "Суммарный входящий и исходящий сетевой трафик виртуальной машины за единицу времени"
|
|
697
|
+
"vmNetworkTotalUsageDesc": "Суммарный входящий и исходящий сетевой трафик виртуальной машины за единицу времени",
|
|
698
|
+
"capacityMHz": "Общая мощность ЦПУ",
|
|
699
|
+
"consumedMHz": "Используемая мощность ЦПУ",
|
|
700
|
+
"usagePercent": "Загрузка ЦПУ",
|
|
701
|
+
"totalCores": "Общее количество ядер ЦПУ"
|
|
698
702
|
}
|
|
@@ -694,5 +694,9 @@
|
|
|
694
694
|
"memoryUsed": "内存使用量",
|
|
695
695
|
"memoryUsedDesc": "虚拟机当前使用的内存量",
|
|
696
696
|
"vmNetworkTotalUsage": "虚拟机总网络流量",
|
|
697
|
-
"vmNetworkTotalUsageDesc": "单位时间内虚拟机的总入站和出站网络流量"
|
|
697
|
+
"vmNetworkTotalUsageDesc": "单位时间内虚拟机的总入站和出站网络流量",
|
|
698
|
+
"capacityMHz": "总 CPU 容量",
|
|
699
|
+
"consumedMHz": "已消耗 CPU 容量",
|
|
700
|
+
"usagePercent": "CPU 使用率",
|
|
701
|
+
"totalCores": "CPU 核心总数"
|
|
698
702
|
}
|
|
@@ -4,6 +4,7 @@ import type {
|
|
|
4
4
|
} from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
5
5
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
6
6
|
import { UI_E_UtilizationBlockCurrentKeys } from '~/components/common/monitor/utilization/lib/models/enums'
|
|
7
|
+
import { getMetricsLocalizationByKey } from '~/components/common/monitor/lib/utils/localization'
|
|
7
8
|
|
|
8
9
|
export const constructApiData = (
|
|
9
10
|
apiData: API_UI_I_UtilizationData,
|
|
@@ -22,6 +23,7 @@ export const constructApiData = (
|
|
|
22
23
|
.toString(16)
|
|
23
24
|
.padStart(6, '0')
|
|
24
25
|
: ''
|
|
26
|
+
item.label = getMetricsLocalizationByKey(item.label)
|
|
25
27
|
|
|
26
28
|
return item
|
|
27
29
|
}),
|
|
@@ -157,7 +157,7 @@ const onHideFileModal = (): void => {
|
|
|
157
157
|
}, 0)
|
|
158
158
|
}
|
|
159
159
|
const onSelectFile = (file: UI_I_FileTreeNode): void => {
|
|
160
|
-
source.value = file.path
|
|
160
|
+
source.value = file.path.replace(/^([^:]+):/, '[$1]:')
|
|
161
161
|
}
|
|
162
162
|
const fileTypes = computed<UI_I_OptionItem[]>(() =>
|
|
163
163
|
fileTypesFunc(localization.value)
|
|
@@ -56,6 +56,11 @@ const emits = defineEmits<{
|
|
|
56
56
|
}>()
|
|
57
57
|
|
|
58
58
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
59
|
+
|
|
60
|
+
onMounted(() => {
|
|
61
|
+
const cdDvdMediaInputElement = document.getElementById('vm-wizard-dvd-media-input')
|
|
62
|
+
cdDvdMediaInputElement?.classList.remove('text-ellipsis')
|
|
63
|
+
})
|
|
59
64
|
</script>
|
|
60
65
|
|
|
61
66
|
<style>
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
>
|
|
13
13
|
<template #content>
|
|
14
14
|
<ui-alert
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
v-if="props.errors.length"
|
|
16
|
+
:messages="props.errors.length && !isEmptyName ? props.errors : []"
|
|
17
|
+
test-id="vm-rename-error-alert"
|
|
18
|
+
type="error"
|
|
19
|
+
class="mb-2 mt-2 mx-8"
|
|
20
|
+
size="md"
|
|
21
|
+
hide-close-button
|
|
22
22
|
/>
|
|
23
23
|
<div class="content">
|
|
24
24
|
<form @submit.prevent="onRename">
|
|
@@ -17,9 +17,11 @@
|
|
|
17
17
|
<div class="name-field">
|
|
18
18
|
<div class="flex-1 flex-align-center">
|
|
19
19
|
<ui-skeleton-item v-if="isLoading" width="112px" height="20px" />
|
|
20
|
-
<label v-else :for="`${props.testIds.name}-name`" class="name-label"
|
|
21
|
-
localization.common.name
|
|
22
|
-
|
|
20
|
+
<label v-else :for="`${props.testIds.name}-name`" class="name-label"
|
|
21
|
+
>{{ localization.common.name }} ({{
|
|
22
|
+
localization.common.optional
|
|
23
|
+
}})</label
|
|
24
|
+
>
|
|
23
25
|
|
|
24
26
|
<common-tooltip-help
|
|
25
27
|
v-if="!isLoading"
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
<ui-input
|
|
56
58
|
v-model="name"
|
|
57
59
|
id="vm-name-tooltip"
|
|
58
|
-
:placeholder="`${localization.common.name}
|
|
60
|
+
:placeholder="`${localization.common.name}`"
|
|
59
61
|
type="text"
|
|
60
62
|
maxlength="54"
|
|
61
63
|
:error="props.nameErrorText"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.31",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxt build",
|
|
7
7
|
"dev": "nuxt dev --port=3002",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@vueuse/core": "10.1.2",
|
|
19
19
|
"@vueuse/nuxt": "10.1.2",
|
|
20
20
|
"bfg-nuxt-3-graph": "1.0.27",
|
|
21
|
-
"bfg-uikit": "1.1.
|
|
21
|
+
"bfg-uikit": "1.1.26",
|
|
22
22
|
"eslint-config-prettier": "^8.5.0",
|
|
23
23
|
"eslint-plugin-myrules": "file:./eslint",
|
|
24
24
|
"nuxt": "3.11.2",
|