bfg-common 1.4.61 → 1.4.63
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 +216 -216
- package/assets/localization/local_en.json +216 -216
- package/assets/localization/local_hy.json +216 -216
- package/assets/localization/local_kk.json +216 -216
- package/assets/localization/local_ru.json +216 -216
- package/assets/localization/local_zh.json +216 -216
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/common/browse/blocks/Title.vue +91 -91
- package/components/common/browse/blocks/info/Date.vue +21 -21
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +198 -198
- package/components/common/context/recursion/RecursionOld.vue +212 -212
- package/components/common/monitor/advanced/Advanced.vue +4 -3
- package/components/common/monitor/advanced/GraphView.vue +1 -1
- package/components/common/monitor/advanced/table/Table.vue +3 -1
- package/components/common/monitor/advanced/tools/Tools.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +9 -8
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +222 -278
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +3 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +113 -111
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +16 -16
- package/components/common/monitor/overview/Overview.vue +1 -1
- package/components/common/monitor/overview/filters/Filters.vue +2 -2
- package/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker.ts +5 -5
- package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +13 -14
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +5 -5
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/Table.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/Form.vue +3 -3
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +115 -115
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/Metrics.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +6 -6
- package/components/common/split/horizontal/HorizontalNew.vue +321 -321
- package/components/common/vm/actions/add/Add.vue +598 -603
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +57 -61
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
- package/components/common/vm/actions/common/lib/config/capabilities.ts +0 -1
- package/components/common/vm/actions/common/lib/models/interfaces.ts +139 -148
- package/components/common/vm/actions/common/select/lib/models/interfaces.ts +32 -35
- package/components/common/vm/actions/common/select/os/os.vue +227 -233
- package/components/common/wizards/datastore/add/Add.vue +437 -437
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/binary.ts +0 -4
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/store/tasks/mappers/recentTasks.ts +45 -45
- package/components/common/vm/actions/common/lib/utils/capabilities.ts +0 -46
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_ArbitraryObject,
|
|
3
|
-
UI_I_Localization,
|
|
4
|
-
} from '~/lib/models/interfaces'
|
|
5
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
6
|
-
|
|
7
|
-
export const timespanFunc = (
|
|
8
|
-
localization: UI_I_Localization
|
|
9
|
-
): UI_I_OptionItem[] => [
|
|
10
|
-
{
|
|
11
|
-
text: localization.
|
|
12
|
-
value: 'real_time',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
text: localization.
|
|
16
|
-
value: 'last_day',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
text: localization.
|
|
20
|
-
value: 'last_week',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
text: localization.
|
|
24
|
-
value: 'last_month',
|
|
25
|
-
},
|
|
26
|
-
// {
|
|
27
|
-
// text: localization.
|
|
28
|
-
// value: 'last_year',
|
|
29
|
-
// },
|
|
30
|
-
{
|
|
31
|
-
text: localization.
|
|
32
|
-
value: 'custom_interval',
|
|
33
|
-
},
|
|
34
|
-
]
|
|
35
|
-
|
|
36
|
-
export const customTimeFunc = (
|
|
37
|
-
localization: UI_I_Localization,
|
|
38
|
-
value: number,
|
|
39
|
-
lang: string
|
|
40
|
-
): UI_I_OptionItem[] => {
|
|
41
|
-
const isLangRu = lang === 'ru_RU'
|
|
42
|
-
|
|
43
|
-
const hourText = isLangRu
|
|
44
|
-
? getCorrectRuForm(value, 'hour')
|
|
45
|
-
: localization.common.hours2
|
|
46
|
-
const dayText = isLangRu
|
|
47
|
-
? getCorrectRuForm(value, 'day')
|
|
48
|
-
: localization.common.days2
|
|
49
|
-
const weekText = isLangRu
|
|
50
|
-
? getCorrectRuForm(value, 'week')
|
|
51
|
-
: localization.common.weeks2
|
|
52
|
-
const monthText = isLangRu
|
|
53
|
-
? getCorrectRuForm(value, 'month')
|
|
54
|
-
: localization.common.months2
|
|
55
|
-
|
|
56
|
-
return [
|
|
57
|
-
{
|
|
58
|
-
text: hourText,
|
|
59
|
-
value: 'hours',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
text: dayText,
|
|
63
|
-
value: 'days',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
text: weekText,
|
|
67
|
-
value: 'weeks',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
text: monthText,
|
|
71
|
-
value: 'months',
|
|
72
|
-
},
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export const chartTypeFunc = (
|
|
77
|
-
localization: UI_I_Localization
|
|
78
|
-
): UI_I_OptionItem[] => [
|
|
79
|
-
{
|
|
80
|
-
text: localization.
|
|
81
|
-
value: 'line_graph',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
text: localization.
|
|
85
|
-
value: 'stacked_graph',
|
|
86
|
-
},
|
|
87
|
-
]
|
|
88
|
-
|
|
89
|
-
const getCorrectRuForm = (value: number, type: string): string => {
|
|
90
|
-
const forms: UI_I_ArbitraryObject<string[]> = {
|
|
91
|
-
hour: ['Час', 'Часа', 'Часов'],
|
|
92
|
-
day: ['День', 'Дня', 'Дней'],
|
|
93
|
-
week: ['Неделя', 'Недели', 'Недель'],
|
|
94
|
-
month: ['Месяц', 'Месяца', 'Месяцев'],
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
let text: string
|
|
98
|
-
|
|
99
|
-
if (!value) {
|
|
100
|
-
return getCorrectRuForm[type]
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
if (value % 10 === 1 && value % 100 !== 11) {
|
|
104
|
-
text = forms[type][0]
|
|
105
|
-
} else if (
|
|
106
|
-
[2, 3, 4].includes(value % 10) &&
|
|
107
|
-
![12, 13, 14].includes(value % 100)
|
|
108
|
-
) {
|
|
109
|
-
text = forms[type][1]
|
|
110
|
-
} else {
|
|
111
|
-
text = forms[type][2]
|
|
112
|
-
}
|
|
113
|
-
getCorrectRuForm[type] = text
|
|
114
|
-
return text
|
|
115
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
UI_I_ArbitraryObject,
|
|
3
|
+
UI_I_Localization,
|
|
4
|
+
} from '~/lib/models/interfaces'
|
|
5
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
6
|
+
|
|
7
|
+
export const timespanFunc = (
|
|
8
|
+
localization: UI_I_Localization
|
|
9
|
+
): UI_I_OptionItem[] => [
|
|
10
|
+
{
|
|
11
|
+
text: localization.inventoryMonitor.realTime,
|
|
12
|
+
value: 'real_time',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
text: localization.inventoryMonitor.lastDay,
|
|
16
|
+
value: 'last_day',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
text: localization.inventoryMonitor.lastWeek,
|
|
20
|
+
value: 'last_week',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: localization.inventoryMonitor.lastMonth,
|
|
24
|
+
value: 'last_month',
|
|
25
|
+
},
|
|
26
|
+
// {
|
|
27
|
+
// text: localization.inventoryMonitor.lastYear,
|
|
28
|
+
// value: 'last_year',
|
|
29
|
+
// },
|
|
30
|
+
{
|
|
31
|
+
text: localization.inventoryMonitor.customInterval,
|
|
32
|
+
value: 'custom_interval',
|
|
33
|
+
},
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
export const customTimeFunc = (
|
|
37
|
+
localization: UI_I_Localization,
|
|
38
|
+
value: number,
|
|
39
|
+
lang: string
|
|
40
|
+
): UI_I_OptionItem[] => {
|
|
41
|
+
const isLangRu = lang === 'ru_RU'
|
|
42
|
+
|
|
43
|
+
const hourText = isLangRu
|
|
44
|
+
? getCorrectRuForm(value, 'hour')
|
|
45
|
+
: localization.common.hours2
|
|
46
|
+
const dayText = isLangRu
|
|
47
|
+
? getCorrectRuForm(value, 'day')
|
|
48
|
+
: localization.common.days2
|
|
49
|
+
const weekText = isLangRu
|
|
50
|
+
? getCorrectRuForm(value, 'week')
|
|
51
|
+
: localization.common.weeks2
|
|
52
|
+
const monthText = isLangRu
|
|
53
|
+
? getCorrectRuForm(value, 'month')
|
|
54
|
+
: localization.common.months2
|
|
55
|
+
|
|
56
|
+
return [
|
|
57
|
+
{
|
|
58
|
+
text: hourText,
|
|
59
|
+
value: 'hours',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
text: dayText,
|
|
63
|
+
value: 'days',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
text: weekText,
|
|
67
|
+
value: 'weeks',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
text: monthText,
|
|
71
|
+
value: 'months',
|
|
72
|
+
},
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const chartTypeFunc = (
|
|
77
|
+
localization: UI_I_Localization
|
|
78
|
+
): UI_I_OptionItem[] => [
|
|
79
|
+
{
|
|
80
|
+
text: localization.inventoryMonitor.lineGraph,
|
|
81
|
+
value: 'line_graph',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
text: localization.inventoryMonitor.stackedGraph,
|
|
85
|
+
value: 'stacked_graph',
|
|
86
|
+
},
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
const getCorrectRuForm = (value: number, type: string): string => {
|
|
90
|
+
const forms: UI_I_ArbitraryObject<string[]> = {
|
|
91
|
+
hour: ['Час', 'Часа', 'Часов'],
|
|
92
|
+
day: ['День', 'Дня', 'Дней'],
|
|
93
|
+
week: ['Неделя', 'Недели', 'Недель'],
|
|
94
|
+
month: ['Месяц', 'Месяца', 'Месяцев'],
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
let text: string
|
|
98
|
+
|
|
99
|
+
if (!value) {
|
|
100
|
+
return getCorrectRuForm[type]
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (value % 10 === 1 && value % 100 !== 11) {
|
|
104
|
+
text = forms[type][0]
|
|
105
|
+
} else if (
|
|
106
|
+
[2, 3, 4].includes(value % 10) &&
|
|
107
|
+
![12, 13, 14].includes(value % 100)
|
|
108
|
+
) {
|
|
109
|
+
text = forms[type][1]
|
|
110
|
+
} else {
|
|
111
|
+
text = forms[type][2]
|
|
112
|
+
}
|
|
113
|
+
getCorrectRuForm[type] = text
|
|
114
|
+
return text
|
|
115
|
+
}
|
|
@@ -7,30 +7,30 @@ export const periodFunc = (
|
|
|
7
7
|
): UI_I_OptionItem[] => {
|
|
8
8
|
const result = [
|
|
9
9
|
{
|
|
10
|
-
text: localization.
|
|
10
|
+
text: localization.inventoryMonitor.realTime,
|
|
11
11
|
value: 'real_time',
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
|
-
text: localization.
|
|
14
|
+
text: localization.inventoryMonitor.lastDay,
|
|
15
15
|
value: 'last_day',
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
text: localization.
|
|
18
|
+
text: localization.inventoryMonitor.lastWeek,
|
|
19
19
|
value: 'last_week',
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
text: localization.
|
|
22
|
+
text: localization.inventoryMonitor.lastMonth,
|
|
23
23
|
value: 'last_month',
|
|
24
24
|
},
|
|
25
25
|
// {
|
|
26
|
-
// text: localization.
|
|
26
|
+
// text: localization.inventoryMonitor.lastYear,
|
|
27
27
|
// value: 'last_year',
|
|
28
28
|
// },
|
|
29
29
|
]
|
|
30
30
|
|
|
31
31
|
if (selectedTimespanType === 'custom_interval') {
|
|
32
32
|
result.push({
|
|
33
|
-
text: localization.
|
|
33
|
+
text: localization.inventoryMonitor.customInterval,
|
|
34
34
|
value: 'custom_interval',
|
|
35
35
|
})
|
|
36
36
|
}
|