bfg-common 1.3.593 → 1.3.594
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 +69 -82
- package/assets/localization/local_en.json +69 -82
- package/assets/localization/local_hy.json +69 -82
- package/assets/localization/local_kk.json +69 -82
- package/assets/localization/local_ru.json +69 -85
- package/assets/localization/local_zh.json +69 -82
- package/components/atoms/TheIcon2.vue +1366 -1366
- package/components/atoms/table/dataGrid/DataGridPagination.vue +1 -1
- package/components/common/browse/Browse.vue +240 -240
- 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/layout/theHeader/TheHeaderNew.vue +5 -4
- package/components/common/layout/theHeader/feedback/Feedback.vue +1 -1
- package/components/common/layout/theHeader/helpMenu/helpMenuNew/HelpMenuNew.vue +37 -2
- package/components/common/layout/theHeader/helpMenu/helpMenuNew/lib/config/dropMenu.ts +4 -1
- package/components/common/layout/theHeader/helpMenu/helpMenuOld/lib/config/dropMenu.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/InventoryNew.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/lib/config/preferencesTabs.ts +1 -1
- package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +9 -2
- package/components/common/monitor/advanced/Advanced.vue +7 -4
- package/components/common/monitor/advanced/tools/Tools.vue +7 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +15 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +3 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +3 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +34 -12
- package/components/common/monitor/advanced/tools/chartOptionsModal/lib/utils/checkSubmit.ts +8 -3
- package/components/common/pages/hardwareHealth/tableView/lib/config/systemLogTable.ts +1 -1
- package/components/common/shortcuts/Shortcuts.vue +1 -1
- package/components/common/split/horizontal/HorizontalNew.vue +321 -321
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Sa.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/tooltip/Tooltip.vue +1 -1
- package/components/common/wizards/datastore/add/Add.vue +437 -437
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +2 -2
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +95 -95
- package/composables/productNameLocal.ts +22 -41
- package/lib/models/interfaces.ts +3 -10
- package/lib/models/types.ts +13 -30
- package/lib/utils/sendTask.ts +1 -1
- package/package.json +1 -1
- package/plugins/recursion.ts +293 -293
- package/store/tasks/mappers/recentTasks.ts +45 -45
|
@@ -1,212 +1,212 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ul class="context-wrap">
|
|
3
|
-
<span v-if="props.isLoading">
|
|
4
|
-
<atoms-loader-pre-loader
|
|
5
|
-
id="loader"
|
|
6
|
-
class="absolute-center context-menu__loading"
|
|
7
|
-
:show="true"
|
|
8
|
-
/>
|
|
9
|
-
</span>
|
|
10
|
-
<li
|
|
11
|
-
v-for="(item, key) in props.items"
|
|
12
|
-
:key="key"
|
|
13
|
-
:class="[
|
|
14
|
-
'menu-item',
|
|
15
|
-
{ disabled: item.disabled || isLoading },
|
|
16
|
-
{ 'item-header': item.isHeader },
|
|
17
|
-
{ 'has-border-top': item.hasBorderTop },
|
|
18
|
-
]"
|
|
19
|
-
@mouseenter="emits('toggle-items', [item, true, $event])"
|
|
20
|
-
@mouseleave="emits('toggle-items', [item, false, $event])"
|
|
21
|
-
>
|
|
22
|
-
<span
|
|
23
|
-
class="context-link"
|
|
24
|
-
:data-id="`${item.testId}-context-link`"
|
|
25
|
-
@mousedown="emits('select-item', item)"
|
|
26
|
-
>
|
|
27
|
-
<span :class="['context-icon', item.iconClassName]" />
|
|
28
|
-
<span class="menu-item-text">{{ item.name }}</span>
|
|
29
|
-
<span v-if="item.items.length" class="arrow-icon" />
|
|
30
|
-
<span v-if="item.shortcut" class="shortcut">{{ item.shortcut }}</span>
|
|
31
|
-
</span>
|
|
32
|
-
|
|
33
|
-
<div class="context-children">
|
|
34
|
-
<common-context-recursion
|
|
35
|
-
v-show="item.isShowItems"
|
|
36
|
-
:action-loading="props.actionLoading"
|
|
37
|
-
:class="[{ 'child-show': item.isShowItems }]"
|
|
38
|
-
:items="item.items"
|
|
39
|
-
@select-item="emits('select-item', $event)"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
</li>
|
|
43
|
-
</ul>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script setup lang="ts">
|
|
47
|
-
import type { UI_I_ContextMenuItem } from '~/components/common/context/lib/models/interfaces'
|
|
48
|
-
import type { I_HTMLLiElement } from '~/components/common/context/recursion/lib/models/interfaces'
|
|
49
|
-
|
|
50
|
-
const props = defineProps<{
|
|
51
|
-
items: UI_I_ContextMenuItem[]
|
|
52
|
-
actionLoading: string | null
|
|
53
|
-
isLoading: boolean
|
|
54
|
-
testId?: string
|
|
55
|
-
}>()
|
|
56
|
-
|
|
57
|
-
const emits = defineEmits<{
|
|
58
|
-
(event: 'select-item', value: UI_I_ContextMenuItem): void
|
|
59
|
-
(
|
|
60
|
-
event: 'toggle-items',
|
|
61
|
-
value: [UI_I_ContextMenuItem, boolean, I_HTMLLiElement]
|
|
62
|
-
): void
|
|
63
|
-
}>()
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
<style scoped lang="scss">
|
|
67
|
-
.loader-wrapper {
|
|
68
|
-
width: 100%;
|
|
69
|
-
height: 100%;
|
|
70
|
-
z-index: 100;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.context-menu__loading {
|
|
74
|
-
:deep(.spinner) {
|
|
75
|
-
width: 45px;
|
|
76
|
-
height: 45px;
|
|
77
|
-
min-width: 45px;
|
|
78
|
-
min-height: 45px;
|
|
79
|
-
z-index: 1000;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
.context-wrap {
|
|
83
|
-
width: auto;
|
|
84
|
-
max-width: 400px;
|
|
85
|
-
background: var(--global-bg-color);
|
|
86
|
-
border-radius: 0;
|
|
87
|
-
color: #333;
|
|
88
|
-
border: 1px solid var(--context-menu-border-color);
|
|
89
|
-
user-select: none;
|
|
90
|
-
list-style: none;
|
|
91
|
-
max-height: 100vh;
|
|
92
|
-
overflow-y: auto;
|
|
93
|
-
|
|
94
|
-
.menu-item {
|
|
95
|
-
position: relative;
|
|
96
|
-
color: #565656;
|
|
97
|
-
border-bottom: 1px solid transparent;
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
padding: 5px 0 3px;
|
|
100
|
-
|
|
101
|
-
&.has-border-top {
|
|
102
|
-
border-top: 1px solid var(--context-menu-inset-border-color);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&.item-header {
|
|
106
|
-
font-size: 11px;
|
|
107
|
-
background-color: var(--context-menu-item-header-color);
|
|
108
|
-
cursor: default;
|
|
109
|
-
}
|
|
110
|
-
&:not(.item-header):not(.disabled):hover {
|
|
111
|
-
background-color: var(--context-menu-hover-bg-color);
|
|
112
|
-
color: #454545;
|
|
113
|
-
border-bottom: 1px solid var(--context-menu-hover-border-color);
|
|
114
|
-
}
|
|
115
|
-
&.disabled {
|
|
116
|
-
opacity: 0.5;
|
|
117
|
-
user-select: none;
|
|
118
|
-
cursor: default;
|
|
119
|
-
}
|
|
120
|
-
&.left {
|
|
121
|
-
:deep(.context-children) {
|
|
122
|
-
left: 0;
|
|
123
|
-
background: red;
|
|
124
|
-
|
|
125
|
-
.context-wrap {
|
|
126
|
-
transform: translateX(-100%);
|
|
127
|
-
left: auto;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.context-link {
|
|
133
|
-
position: relative;
|
|
134
|
-
overflow: hidden;
|
|
135
|
-
text-overflow: ellipsis;
|
|
136
|
-
white-space: nowrap;
|
|
137
|
-
display: flex;
|
|
138
|
-
align-items: center;
|
|
139
|
-
user-select: none;
|
|
140
|
-
padding: 3px 20px 4px 10px;
|
|
141
|
-
|
|
142
|
-
.menu-item-text {
|
|
143
|
-
flex: 1 1 0;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.context-icon {
|
|
147
|
-
display: inline-block;
|
|
148
|
-
margin: -2px 4px 0 0;
|
|
149
|
-
vertical-align: middle;
|
|
150
|
-
width: 18px;
|
|
151
|
-
height: 18px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.arrow-icon {
|
|
155
|
-
position: absolute;
|
|
156
|
-
top: 50%;
|
|
157
|
-
margin-top: -8px;
|
|
158
|
-
right: 4px;
|
|
159
|
-
background-image: url('assets/img/icons/sprite.png');
|
|
160
|
-
display: inline-block;
|
|
161
|
-
width: 16px;
|
|
162
|
-
height: 16px;
|
|
163
|
-
overflow: hidden;
|
|
164
|
-
background-repeat: no-repeat;
|
|
165
|
-
font-size: 0;
|
|
166
|
-
line-height: 0;
|
|
167
|
-
text-align: center;
|
|
168
|
-
transform: rotate(90deg);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.shortcut {
|
|
172
|
-
padding-left: 10px;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.context-children {
|
|
177
|
-
position: absolute;
|
|
178
|
-
top: 0;
|
|
179
|
-
left: 100%;
|
|
180
|
-
|
|
181
|
-
.context-wrap {
|
|
182
|
-
position: fixed;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
.context-menu__loading {
|
|
188
|
-
:deep(.spinner) {
|
|
189
|
-
width: 45px;
|
|
190
|
-
height: 45px;
|
|
191
|
-
min-width: 45px;
|
|
192
|
-
min-height: 45px;
|
|
193
|
-
z-index: 1000;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
</style>
|
|
197
|
-
<style>
|
|
198
|
-
:root {
|
|
199
|
-
--context-menu-hover-bg-color: #e8e8e8;
|
|
200
|
-
--context-menu-border-color: #949494;
|
|
201
|
-
--context-menu-inset-border-color: #d4d5d6;
|
|
202
|
-
--context-menu-item-header-color: #eceff2;
|
|
203
|
-
--context-menu-hover-border-color: #666;
|
|
204
|
-
}
|
|
205
|
-
:root.dark-theme {
|
|
206
|
-
--context-menu-hover-bg-color: #324f61;
|
|
207
|
-
--context-menu-border-color: #495865;
|
|
208
|
-
--context-menu-inset-border-color: #485764;
|
|
209
|
-
--context-menu-item-header-color: #29414e;
|
|
210
|
-
--context-menu-hover-border-color: #fff;
|
|
211
|
-
}
|
|
212
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<ul class="context-wrap">
|
|
3
|
+
<span v-if="props.isLoading">
|
|
4
|
+
<atoms-loader-pre-loader
|
|
5
|
+
id="loader"
|
|
6
|
+
class="absolute-center context-menu__loading"
|
|
7
|
+
:show="true"
|
|
8
|
+
/>
|
|
9
|
+
</span>
|
|
10
|
+
<li
|
|
11
|
+
v-for="(item, key) in props.items"
|
|
12
|
+
:key="key"
|
|
13
|
+
:class="[
|
|
14
|
+
'menu-item',
|
|
15
|
+
{ disabled: item.disabled || isLoading },
|
|
16
|
+
{ 'item-header': item.isHeader },
|
|
17
|
+
{ 'has-border-top': item.hasBorderTop },
|
|
18
|
+
]"
|
|
19
|
+
@mouseenter="emits('toggle-items', [item, true, $event])"
|
|
20
|
+
@mouseleave="emits('toggle-items', [item, false, $event])"
|
|
21
|
+
>
|
|
22
|
+
<span
|
|
23
|
+
class="context-link"
|
|
24
|
+
:data-id="`${item.testId}-context-link`"
|
|
25
|
+
@mousedown="emits('select-item', item)"
|
|
26
|
+
>
|
|
27
|
+
<span :class="['context-icon', item.iconClassName]" />
|
|
28
|
+
<span class="menu-item-text">{{ item.name }}</span>
|
|
29
|
+
<span v-if="item.items.length" class="arrow-icon" />
|
|
30
|
+
<span v-if="item.shortcut" class="shortcut">{{ item.shortcut }}</span>
|
|
31
|
+
</span>
|
|
32
|
+
|
|
33
|
+
<div class="context-children">
|
|
34
|
+
<common-context-recursion
|
|
35
|
+
v-show="item.isShowItems"
|
|
36
|
+
:action-loading="props.actionLoading"
|
|
37
|
+
:class="[{ 'child-show': item.isShowItems }]"
|
|
38
|
+
:items="item.items"
|
|
39
|
+
@select-item="emits('select-item', $event)"
|
|
40
|
+
/>
|
|
41
|
+
</div>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script setup lang="ts">
|
|
47
|
+
import type { UI_I_ContextMenuItem } from '~/components/common/context/lib/models/interfaces'
|
|
48
|
+
import type { I_HTMLLiElement } from '~/components/common/context/recursion/lib/models/interfaces'
|
|
49
|
+
|
|
50
|
+
const props = defineProps<{
|
|
51
|
+
items: UI_I_ContextMenuItem[]
|
|
52
|
+
actionLoading: string | null
|
|
53
|
+
isLoading: boolean
|
|
54
|
+
testId?: string
|
|
55
|
+
}>()
|
|
56
|
+
|
|
57
|
+
const emits = defineEmits<{
|
|
58
|
+
(event: 'select-item', value: UI_I_ContextMenuItem): void
|
|
59
|
+
(
|
|
60
|
+
event: 'toggle-items',
|
|
61
|
+
value: [UI_I_ContextMenuItem, boolean, I_HTMLLiElement]
|
|
62
|
+
): void
|
|
63
|
+
}>()
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style scoped lang="scss">
|
|
67
|
+
.loader-wrapper {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
z-index: 100;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.context-menu__loading {
|
|
74
|
+
:deep(.spinner) {
|
|
75
|
+
width: 45px;
|
|
76
|
+
height: 45px;
|
|
77
|
+
min-width: 45px;
|
|
78
|
+
min-height: 45px;
|
|
79
|
+
z-index: 1000;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.context-wrap {
|
|
83
|
+
width: auto;
|
|
84
|
+
max-width: 400px;
|
|
85
|
+
background: var(--global-bg-color);
|
|
86
|
+
border-radius: 0;
|
|
87
|
+
color: #333;
|
|
88
|
+
border: 1px solid var(--context-menu-border-color);
|
|
89
|
+
user-select: none;
|
|
90
|
+
list-style: none;
|
|
91
|
+
max-height: 100vh;
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
|
|
94
|
+
.menu-item {
|
|
95
|
+
position: relative;
|
|
96
|
+
color: #565656;
|
|
97
|
+
border-bottom: 1px solid transparent;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
padding: 5px 0 3px;
|
|
100
|
+
|
|
101
|
+
&.has-border-top {
|
|
102
|
+
border-top: 1px solid var(--context-menu-inset-border-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.item-header {
|
|
106
|
+
font-size: 11px;
|
|
107
|
+
background-color: var(--context-menu-item-header-color);
|
|
108
|
+
cursor: default;
|
|
109
|
+
}
|
|
110
|
+
&:not(.item-header):not(.disabled):hover {
|
|
111
|
+
background-color: var(--context-menu-hover-bg-color);
|
|
112
|
+
color: #454545;
|
|
113
|
+
border-bottom: 1px solid var(--context-menu-hover-border-color);
|
|
114
|
+
}
|
|
115
|
+
&.disabled {
|
|
116
|
+
opacity: 0.5;
|
|
117
|
+
user-select: none;
|
|
118
|
+
cursor: default;
|
|
119
|
+
}
|
|
120
|
+
&.left {
|
|
121
|
+
:deep(.context-children) {
|
|
122
|
+
left: 0;
|
|
123
|
+
background: red;
|
|
124
|
+
|
|
125
|
+
.context-wrap {
|
|
126
|
+
transform: translateX(-100%);
|
|
127
|
+
left: auto;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.context-link {
|
|
133
|
+
position: relative;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
user-select: none;
|
|
140
|
+
padding: 3px 20px 4px 10px;
|
|
141
|
+
|
|
142
|
+
.menu-item-text {
|
|
143
|
+
flex: 1 1 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.context-icon {
|
|
147
|
+
display: inline-block;
|
|
148
|
+
margin: -2px 4px 0 0;
|
|
149
|
+
vertical-align: middle;
|
|
150
|
+
width: 18px;
|
|
151
|
+
height: 18px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.arrow-icon {
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 50%;
|
|
157
|
+
margin-top: -8px;
|
|
158
|
+
right: 4px;
|
|
159
|
+
background-image: url('assets/img/icons/sprite.png');
|
|
160
|
+
display: inline-block;
|
|
161
|
+
width: 16px;
|
|
162
|
+
height: 16px;
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
background-repeat: no-repeat;
|
|
165
|
+
font-size: 0;
|
|
166
|
+
line-height: 0;
|
|
167
|
+
text-align: center;
|
|
168
|
+
transform: rotate(90deg);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.shortcut {
|
|
172
|
+
padding-left: 10px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.context-children {
|
|
177
|
+
position: absolute;
|
|
178
|
+
top: 0;
|
|
179
|
+
left: 100%;
|
|
180
|
+
|
|
181
|
+
.context-wrap {
|
|
182
|
+
position: fixed;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
.context-menu__loading {
|
|
188
|
+
:deep(.spinner) {
|
|
189
|
+
width: 45px;
|
|
190
|
+
height: 45px;
|
|
191
|
+
min-width: 45px;
|
|
192
|
+
min-height: 45px;
|
|
193
|
+
z-index: 1000;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
</style>
|
|
197
|
+
<style>
|
|
198
|
+
:root {
|
|
199
|
+
--context-menu-hover-bg-color: #e8e8e8;
|
|
200
|
+
--context-menu-border-color: #949494;
|
|
201
|
+
--context-menu-inset-border-color: #d4d5d6;
|
|
202
|
+
--context-menu-item-header-color: #eceff2;
|
|
203
|
+
--context-menu-hover-border-color: #666;
|
|
204
|
+
}
|
|
205
|
+
:root.dark-theme {
|
|
206
|
+
--context-menu-hover-bg-color: #324f61;
|
|
207
|
+
--context-menu-border-color: #495865;
|
|
208
|
+
--context-menu-inset-border-color: #485764;
|
|
209
|
+
--context-menu-item-header-color: #29414e;
|
|
210
|
+
--context-menu-hover-border-color: #fff;
|
|
211
|
+
}
|
|
212
|
+
</style>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
name="reset"
|
|
39
39
|
/>
|
|
40
40
|
<span v-else class="reset-loader-content">
|
|
41
|
-
<ui-loader2 />
|
|
41
|
+
<ui-loader2 width="24" height="24" />
|
|
42
42
|
</span>
|
|
43
43
|
</button>
|
|
44
44
|
<div class="divider" />
|
|
@@ -180,7 +180,8 @@ const emits = defineEmits<{
|
|
|
180
180
|
align-items: center;
|
|
181
181
|
|
|
182
182
|
.title {
|
|
183
|
-
font-size:
|
|
183
|
+
font-size: 16px;
|
|
184
|
+
font-weight: 400;
|
|
184
185
|
}
|
|
185
186
|
.badge-info {
|
|
186
187
|
background-color: var(--badge-info-bg-color);
|
|
@@ -223,8 +224,8 @@ const emits = defineEmits<{
|
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
.reset-loader-content {
|
|
226
|
-
width:
|
|
227
|
-
height:
|
|
227
|
+
width: 24px;
|
|
228
|
+
height: 24px;
|
|
228
229
|
|
|
229
230
|
.loader {
|
|
230
231
|
padding: 2px;
|
|
@@ -78,7 +78,7 @@ const showNotification = (message: UI_I_NotifyBodyMessage): void => {
|
|
|
78
78
|
}
|
|
79
79
|
const msgError = ref<UI_I_NotifyBodyMessage>({
|
|
80
80
|
status: 'error',
|
|
81
|
-
title: localization.value.
|
|
81
|
+
title: localization.value.error,
|
|
82
82
|
desc: '',
|
|
83
83
|
})
|
|
84
84
|
const handleErrors = (error: Ref<API_UI_I_Error>): void => {
|
|
@@ -26,7 +26,32 @@
|
|
|
26
26
|
elem-id="help-menu-dropdown-toggle"
|
|
27
27
|
@select="onSelectDropdown"
|
|
28
28
|
@hide="onHideDropdown"
|
|
29
|
-
|
|
29
|
+
>
|
|
30
|
+
<template #row="{ item }">
|
|
31
|
+
<a
|
|
32
|
+
:id="item.testId"
|
|
33
|
+
:data-id="item.testId"
|
|
34
|
+
class="w-full flex items-center dropdown-item"
|
|
35
|
+
>
|
|
36
|
+
<span v-if="item.iconName === 'icon-help'" class="flex ui-item-text">
|
|
37
|
+
<ui-icon-main-navigation-panel
|
|
38
|
+
:name="item.iconName"
|
|
39
|
+
width="16"
|
|
40
|
+
height="16"
|
|
41
|
+
/>
|
|
42
|
+
</span>
|
|
43
|
+
<span v-if="item.iconName === 'info'" class="flex ui-item-text">
|
|
44
|
+
<ui-icon :name="item.iconName" width="16" height="16" />
|
|
45
|
+
</span>
|
|
46
|
+
<span v-if="item.iconName === 'comment'" class="flex ui-item-text">
|
|
47
|
+
<ui-icon :name="item.iconName" width="16" height="16" />
|
|
48
|
+
</span>
|
|
49
|
+
<p class="ui-item-text truncate text-sm font-medium mt-0 mb-0 ml-2">
|
|
50
|
+
{{ item.text }}
|
|
51
|
+
</p>
|
|
52
|
+
</a>
|
|
53
|
+
</template>
|
|
54
|
+
</ui-dropdown>
|
|
30
55
|
|
|
31
56
|
<common-layout-the-header-feedback
|
|
32
57
|
:is-show-feedback="isShowFeedback"
|
|
@@ -110,7 +135,17 @@ const onSelectDropdown = (value: string): void => {
|
|
|
110
135
|
padding: 0 !important;
|
|
111
136
|
}
|
|
112
137
|
}
|
|
113
|
-
#
|
|
138
|
+
#ui-popup-window-help-menu-dropdown-toggle {
|
|
114
139
|
margin-top: 17px;
|
|
115
140
|
}
|
|
141
|
+
#dropdown-help-menu-dropdown {
|
|
142
|
+
.ui-item-text {
|
|
143
|
+
color: var(--dropdown-item-hover-color);
|
|
144
|
+
}
|
|
145
|
+
.ui-dropdown-menu-item:has(.logout) {
|
|
146
|
+
.ui-item-text {
|
|
147
|
+
color: #ea3223;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
116
151
|
</style>
|
|
@@ -6,20 +6,23 @@ export const helpMenuFunc = (
|
|
|
6
6
|
): UI_I_Dropdown[] => {
|
|
7
7
|
return [
|
|
8
8
|
{
|
|
9
|
-
text: localization.
|
|
9
|
+
text: localization.help,
|
|
10
10
|
value: 'help',
|
|
11
11
|
testId: 'information-menu-help',
|
|
12
|
+
iconName: 'icon-help',
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
15
|
text: localization.about,
|
|
15
16
|
value: 'about',
|
|
16
17
|
testId: 'information-menu-about',
|
|
17
18
|
divider: true,
|
|
19
|
+
iconName: 'info',
|
|
18
20
|
},
|
|
19
21
|
{
|
|
20
22
|
text: localization.sendFeedback,
|
|
21
23
|
value: 'sendFeedback',
|
|
22
24
|
testId: 'information-menu-send-feedback',
|
|
25
|
+
iconName: 'comment',
|
|
23
26
|
},
|
|
24
27
|
]
|
|
25
28
|
}
|
package/components/common/layout/theHeader/userMenu/modals/preferences/lib/config/preferencesTabs.ts
CHANGED
|
@@ -25,7 +25,7 @@ export const preferencesTabs = (
|
|
|
25
25
|
testId: 'user-preferences-default-console',
|
|
26
26
|
}
|
|
27
27
|
const inventoryTab = {
|
|
28
|
-
text: `${localization.
|
|
28
|
+
text: `${localization.inventory}`,
|
|
29
29
|
value: 'inventory-tab',
|
|
30
30
|
disabled: false,
|
|
31
31
|
testId: 'user-preferences-inventory',
|
|
@@ -95,6 +95,12 @@ const onSelectDropdown = (value: string): void => {
|
|
|
95
95
|
color: #ffffff;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
.title {
|
|
99
|
+
font-size: 14px;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
font-family: 'Inter';
|
|
102
|
+
}
|
|
103
|
+
|
|
98
104
|
.arrow-icon-container {
|
|
99
105
|
display: flex;
|
|
100
106
|
transform: rotate(90deg);
|
|
@@ -102,9 +108,10 @@ const onSelectDropdown = (value: string): void => {
|
|
|
102
108
|
}
|
|
103
109
|
}
|
|
104
110
|
|
|
105
|
-
#
|
|
111
|
+
#ui-popup-window-user-menu-dropdown-toggle {
|
|
106
112
|
margin-top: 17px;
|
|
107
|
-
|
|
113
|
+
}
|
|
114
|
+
#dropdown-user-menu-dropdown {
|
|
108
115
|
.ui-item-text {
|
|
109
116
|
color: var(--dropdown-item-hover-color);
|
|
110
117
|
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
:language="props.language"
|
|
20
20
|
:selected-counters-keys="props.selectedCountersKeys"
|
|
21
21
|
:selected-metric="props.selectedMetric"
|
|
22
|
+
:selected-metric-local="props.selectedMetricLocal"
|
|
22
23
|
:disabled-period="props.disabledPeriod"
|
|
23
24
|
:disabled-view="props.disabledView"
|
|
24
25
|
:selected-chart-type="props.selectedChartType"
|
|
@@ -35,11 +36,12 @@
|
|
|
35
36
|
:selected-objects="props.selectedObjects"
|
|
36
37
|
:project="props.project"
|
|
37
38
|
:objects-loading="props.objectsLoading"
|
|
39
|
+
:objects-data="props.objectsData"
|
|
38
40
|
@update-tools="emits('update-tools', $event)"
|
|
39
41
|
@exporting="onExporting"
|
|
40
42
|
@open-advanced-page="onGetEmptyPage"
|
|
41
43
|
@select-row="emits('select-row', $event)"
|
|
42
|
-
@select-metric="emits('select-metric', $event)"
|
|
44
|
+
@select-metric-local="emits('select-metric-local', $event)"
|
|
43
45
|
@update-chart-type="emits('update-chart-type', $event)"
|
|
44
46
|
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
45
47
|
@update-unit-count="emits('update-unit-count', $event)"
|
|
@@ -51,7 +53,6 @@
|
|
|
51
53
|
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
52
54
|
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
53
55
|
@submit-options="emits('submit-options', $event)"
|
|
54
|
-
@update-cores="emits('update-cores')"
|
|
55
56
|
/>
|
|
56
57
|
|
|
57
58
|
<div v-show="!props.data" class="empty-container">
|
|
@@ -100,6 +101,7 @@ import type {
|
|
|
100
101
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
101
102
|
import type { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
102
103
|
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
104
|
+
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
103
105
|
import type { UI_T_Project } from '~/lib/models/types'
|
|
104
106
|
import { getCountCores } from '~/components/common/monitor/advanced/tools/lib/utils/countCores'
|
|
105
107
|
|
|
@@ -115,6 +117,7 @@ const props = defineProps<{
|
|
|
115
117
|
getDateFormat: any
|
|
116
118
|
selectedCountersKeys: number[]
|
|
117
119
|
selectedMetric: UI_T_ChartHost | UI_T_ChartVm
|
|
120
|
+
selectedMetricLocal: UI_T_ChartHost | UI_T_ChartVm
|
|
118
121
|
selectedChartType: string
|
|
119
122
|
selectedTimespanType: string
|
|
120
123
|
unitsCount: number
|
|
@@ -129,6 +132,7 @@ const props = defineProps<{
|
|
|
129
132
|
selectedObjects: string
|
|
130
133
|
project: UI_T_Project
|
|
131
134
|
objectsLoading: boolean
|
|
135
|
+
objectsData: UI_I_ObjectItem[]
|
|
132
136
|
disabledPeriod?: boolean
|
|
133
137
|
disabledView?: boolean
|
|
134
138
|
isEmpty?: boolean
|
|
@@ -139,7 +143,7 @@ const emits = defineEmits<{
|
|
|
139
143
|
(event: 'open-advanced-page'): void
|
|
140
144
|
(event: 'update-selected-row', value: number[]): void
|
|
141
145
|
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
142
|
-
(event: 'select-metric', value: string): void
|
|
146
|
+
(event: 'select-metric-local', value: string): void
|
|
143
147
|
(event: 'update-chart-type', value: string): void
|
|
144
148
|
(event: 'update-timespan-type', value: string): void
|
|
145
149
|
(event: 'update-unit-count', value: number): void
|
|
@@ -152,7 +156,6 @@ const emits = defineEmits<{
|
|
|
152
156
|
(event: 'update-custom-time-to', value: string): void
|
|
153
157
|
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
154
158
|
(event: 'update:selected-timespan-type', value: string): void
|
|
155
|
-
(event: 'update-cores'): void
|
|
156
159
|
}>()
|
|
157
160
|
|
|
158
161
|
const localization = computed<UI_I_Localization>(() => useLocal())
|