bfg-common 1.6.49 → 1.6.50
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 +255 -9
- package/assets/localization/local_en.json +264 -17
- package/assets/localization/local_hy.json +257 -11
- package/assets/localization/local_kk.json +255 -9
- package/assets/localization/local_ru.json +264 -18
- package/assets/localization/local_zh.json +255 -9
- package/assets/scss/common/global.scss +11 -0
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/tooltip/TooltipError.vue +3 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
- package/components/common/certificate/CertificateInfo.vue +7 -1
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +12 -5
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
- package/components/common/diagramMain/Diagram.vue +167 -85
- package/components/common/diagramMain/DiagramMain.vue +34 -10
- package/components/common/diagramMain/header/Header.vue +49 -0
- package/components/common/diagramMain/header/HeaderNew.vue +155 -0
- package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
- package/components/common/diagramMain/modals/Modals.vue +4 -0
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +2 -2
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
- package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/monitor/advanced/tools/Tools.vue +10 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +16 -19
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +62 -9
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/HardwareHealth.vue +4 -0
- package/components/common/pages/hardwareHealth/HardwareHealthNew.vue +12 -3
- package/components/common/pages/hardwareHealth/HardwareHealthOld.vue +3 -0
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +4 -3
- package/components/common/pages/hardwareHealth/historyTestimony/GraphOld.vue +3 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +32 -8
- package/components/common/pages/hardwareHealth/historyTestimony/tools/ToolsNew.vue +11 -18
- package/components/common/pages/hardwareHealth/historyTestimony/tools/ToolsOld.vue +10 -19
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +19 -7
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +68 -5
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +25 -23
- package/components/common/readyToComplete/New.vue +1 -0
- package/components/common/split/vertical/New.vue +42 -8
- package/components/common/split/vertical/Old.vue +31 -2
- package/components/common/split/vertical/Vertical.vue +4 -0
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
- package/components/common/vm/actions/confirm/Confirm.vue +3 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +6 -0
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +13 -2
- package/components/common/wizards/network/add/AddNew.vue +22 -26
- package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +13 -3
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/package.json +2 -2
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/agent.js +18 -17
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/SaveOptionsModal.vue +0 -81
|
@@ -159,21 +159,74 @@ export const exportFunc = (
|
|
|
159
159
|
]
|
|
160
160
|
|
|
161
161
|
export const getCurrentOptionsStorageFunc = (
|
|
162
|
-
routeType: string,
|
|
163
162
|
project: UI_T_Project
|
|
164
163
|
): string[] => {
|
|
165
|
-
|
|
164
|
+
const routeId = useRoute().params.id
|
|
165
|
+
const routeType = useRoute().params.type
|
|
166
|
+
const localStoragePrefix = project === 'sphere' ? getLocalStoragePrefix() : ''
|
|
167
|
+
|
|
166
168
|
const optionsNames = []
|
|
167
169
|
for (const key of Object.entries(localStorage)) {
|
|
168
|
-
if (
|
|
169
|
-
|
|
170
|
+
if (
|
|
171
|
+
key[0].includes('ChartOptionsAdvanced') &&
|
|
172
|
+
key[0].includes(localStoragePrefix)
|
|
173
|
+
) {
|
|
174
|
+
const values = JSON.parse(key[1])
|
|
170
175
|
if (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
)
|
|
174
|
-
optionsNames.push(
|
|
175
|
-
}
|
|
176
|
+
values.value.routeType === routeType &&
|
|
177
|
+
values.value.nodeId === routeId
|
|
178
|
+
)
|
|
179
|
+
optionsNames.push(values.value.validShowName)
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
182
|
return optionsNames
|
|
179
183
|
}
|
|
184
|
+
|
|
185
|
+
export const removeSelectedOptionsFromStorageFunc = (
|
|
186
|
+
selectedName: string,
|
|
187
|
+
project: UI_T_Project
|
|
188
|
+
): void => {
|
|
189
|
+
const routeId = useRoute().params.id
|
|
190
|
+
const localStoragePrefix = project === 'sphere' ? getLocalStoragePrefix() : ''
|
|
191
|
+
|
|
192
|
+
for (const key of Object.entries(localStorage)) {
|
|
193
|
+
if (
|
|
194
|
+
key[0].includes('ChartOptionsAdvanced') &&
|
|
195
|
+
key[0].includes(localStoragePrefix)
|
|
196
|
+
) {
|
|
197
|
+
let values = JSON.parse(key[1])
|
|
198
|
+
|
|
199
|
+
if (
|
|
200
|
+
values.value.validShowName === selectedName &&
|
|
201
|
+
values.value.nodeId === routeId
|
|
202
|
+
)
|
|
203
|
+
window.localStorage.removeItem(key[0])
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export const getSelectedOptionsValueFromStorageFunc = (
|
|
209
|
+
selectedName: string,
|
|
210
|
+
project: UI_T_Project
|
|
211
|
+
): any => {
|
|
212
|
+
const routeId = useRoute().params.id
|
|
213
|
+
const localStoragePrefix = project === 'sphere' ? getLocalStoragePrefix() : ''
|
|
214
|
+
|
|
215
|
+
let result = null
|
|
216
|
+
|
|
217
|
+
for (const key of Object.entries(localStorage)) {
|
|
218
|
+
if (
|
|
219
|
+
key[0].includes('ChartOptionsAdvanced') &&
|
|
220
|
+
key[0].includes(localStoragePrefix)
|
|
221
|
+
) {
|
|
222
|
+
let values = JSON.parse(key[1])
|
|
223
|
+
|
|
224
|
+
if (
|
|
225
|
+
values.value.validShowName === selectedName &&
|
|
226
|
+
values.value.nodeId === routeId
|
|
227
|
+
)
|
|
228
|
+
result = values.value
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return result
|
|
232
|
+
}
|
|
@@ -191,19 +191,19 @@ export const getBodyDataFunc = (
|
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
col: 'col2',
|
|
194
|
-
text: $binary.round(datastore.capacity.capacity_mb, false, lang)
|
|
194
|
+
text: $binary.round(datastore.capacity.capacity_mb || 0, false, lang)
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
col: 'col3',
|
|
198
|
-
text: $binary.round(datastore.capacity.provisioned_mb, false, lang)
|
|
198
|
+
text: $binary.round(datastore.capacity.provisioned_mb || 0, false, lang)
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
col: 'col4',
|
|
202
|
-
text: $binary.round(datastore.capacity.free_mb, false, lang)
|
|
202
|
+
text: $binary.round(datastore.capacity.free_mb || 0, false, lang)
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
col: 'col5',
|
|
206
|
-
text: $binary.round(datastore.capacity.used_mb, false, lang)
|
|
206
|
+
text: $binary.round(datastore.capacity.used_mb || 0, false, lang)
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
col: 'col6',
|
|
@@ -83,7 +83,7 @@ export const bodyItems = (
|
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
key: 'col2',
|
|
86
|
-
text: $binary.round(datastore.capacity[tableKeys[2]], false, lang),
|
|
86
|
+
text: $binary.round(datastore.capacity[tableKeys[2]] || 0, false, lang),
|
|
87
87
|
id: datastore.id,
|
|
88
88
|
testId: `backup-datastore-table-item-${datastore.id}`,
|
|
89
89
|
data: {
|
|
@@ -93,7 +93,7 @@ export const bodyItems = (
|
|
|
93
93
|
{
|
|
94
94
|
key: 'col3',
|
|
95
95
|
text: $binary.round(
|
|
96
|
-
datastore.capacity[tableKeys[3]],
|
|
96
|
+
datastore.capacity[tableKeys[3]] || 0,
|
|
97
97
|
false,
|
|
98
98
|
lang
|
|
99
99
|
),
|
|
@@ -105,7 +105,7 @@ export const bodyItems = (
|
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
key: 'col4',
|
|
108
|
-
text: $binary.round(datastore.capacity[tableKeys[4]], false, lang),
|
|
108
|
+
text: $binary.round(datastore.capacity[tableKeys[4]] || 0, false, lang),
|
|
109
109
|
id: datastore.id,
|
|
110
110
|
testId: `backup-datastore-table-item-${datastore.id}`,
|
|
111
111
|
data: {
|
|
@@ -114,7 +114,7 @@ export const bodyItems = (
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
key: 'col5',
|
|
117
|
-
text: $binary.round(datastore.capacity[tableKeys[5]], false, lang),
|
|
117
|
+
text: $binary.round(datastore.capacity[tableKeys[5]] || 0, false, lang),
|
|
118
118
|
id: datastore.id,
|
|
119
119
|
testId: `backup-datastore-table-item-${datastore.id}`,
|
|
120
120
|
data: {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
:selected-host-name="props.selectedHostName"
|
|
20
20
|
:hardware-health-tabs="tabItems"
|
|
21
21
|
:generated-alert-text="generateAlertTextWithLink"
|
|
22
|
+
:project="props.project"
|
|
22
23
|
@update-history-testimony-tools="
|
|
23
24
|
emits('update-history-testimony-tools', $event)
|
|
24
25
|
"
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
:selected-host-name="props.selectedHostName"
|
|
44
45
|
:hardware-health-tabs="hardwareHealthTabs"
|
|
45
46
|
:generated-alert-text="generateAlertTextWithLink"
|
|
47
|
+
:project="props.project"
|
|
46
48
|
@update-history-testimony-tools="
|
|
47
49
|
emits('update-history-testimony-tools', $event)
|
|
48
50
|
"
|
|
@@ -58,6 +60,7 @@ import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardw
|
|
|
58
60
|
import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
|
|
59
61
|
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
60
62
|
import type { UI_I_StorageSensorsAlert } from '~/components/common/pages/hardwareHealth/lib/models/interfaces'
|
|
63
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
61
64
|
import {
|
|
62
65
|
hardwareHealthTabsFunc,
|
|
63
66
|
hardwareHealthTabsNewFunc,
|
|
@@ -77,6 +80,7 @@ const props = defineProps<{
|
|
|
77
80
|
validDateEnd: number
|
|
78
81
|
formatDate: string
|
|
79
82
|
selectedHostName: string
|
|
83
|
+
project: UI_T_Project
|
|
80
84
|
}>()
|
|
81
85
|
|
|
82
86
|
const emits = defineEmits<{
|
|
@@ -78,10 +78,16 @@
|
|
|
78
78
|
:main-selected-row="mainSelectedRow"
|
|
79
79
|
:counters-table-data="props.data"
|
|
80
80
|
:selected-host-name="props.selectedHostName"
|
|
81
|
+
:project="props.project"
|
|
81
82
|
@update-tools="emits('update-history-testimony-tools', $event)"
|
|
82
83
|
/>
|
|
83
84
|
|
|
84
|
-
<div
|
|
85
|
+
<div
|
|
86
|
+
:class="[
|
|
87
|
+
'table-content pt-4 h-full overflow-hidden px-[6px]',
|
|
88
|
+
activeTab,
|
|
89
|
+
]"
|
|
90
|
+
>
|
|
85
91
|
<common-pages-hardware-health-table-view-new
|
|
86
92
|
:table-data="tableData || []"
|
|
87
93
|
:total-items="tableData?.length || 0"
|
|
@@ -104,6 +110,7 @@ import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardw
|
|
|
104
110
|
import type { UI_I_StorageSensorsAlert } from '~/components/common/pages/hardwareHealth/lib/models/interfaces'
|
|
105
111
|
import type { UI_I_HardwareHealthHistoryTestimonyTools } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
106
112
|
import type { UI_I_IndicatorAlerts } from '~/components/common/pages/hardwareHealth/indicators/lib/models/interfaces'
|
|
113
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
107
114
|
|
|
108
115
|
const activeTab = defineModel<UI_T_HardwareHealthTabMode>('activeTab', {
|
|
109
116
|
required: true,
|
|
@@ -131,6 +138,7 @@ const props = defineProps<{
|
|
|
131
138
|
selectedHostName: string
|
|
132
139
|
hardwareHealthTabs: UI_I_TabItem[]
|
|
133
140
|
generatedAlertText: UI_I_StorageSensorsAlert
|
|
141
|
+
project: UI_T_Project
|
|
134
142
|
}>()
|
|
135
143
|
const emits = defineEmits<{
|
|
136
144
|
(
|
|
@@ -234,8 +242,9 @@ const statusCounts = computed<UI_I_IndicatorAlerts>(() => {
|
|
|
234
242
|
}
|
|
235
243
|
|
|
236
244
|
.table-content {
|
|
237
|
-
&.alert-warning,
|
|
238
|
-
|
|
245
|
+
&.alert-warning,
|
|
246
|
+
&.history-testimony {
|
|
247
|
+
:deep(.data-table-header th:not(:last-child)) {
|
|
239
248
|
min-width: max-content !important;
|
|
240
249
|
}
|
|
241
250
|
}
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
:valid-date-end="props.validDateEnd"
|
|
55
55
|
:format-date="props.formatDate"
|
|
56
56
|
:selected-host-name="props.selectedHostName"
|
|
57
|
+
:project="props.project"
|
|
57
58
|
@update-tools="emits('update-history-testimony-tools', $event)"
|
|
58
59
|
/>
|
|
59
60
|
|
|
@@ -79,6 +80,7 @@ import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/model
|
|
|
79
80
|
import type { UI_I_StorageSensorsAlert } from '~/components/common/pages/hardwareHealth/lib/models/interfaces'
|
|
80
81
|
import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
|
|
81
82
|
import type { UI_I_HardwareHealthHistoryTestimonyTools } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
83
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
82
84
|
|
|
83
85
|
const activeTab = defineModel<UI_T_HardwareHealthTabMode>('activeTab', {
|
|
84
86
|
required: true,
|
|
@@ -106,6 +108,7 @@ const props = defineProps<{
|
|
|
106
108
|
selectedHostName: string
|
|
107
109
|
hardwareHealthTabs: UI_I_CollapseNavItem[]
|
|
108
110
|
generatedAlertText: UI_I_StorageSensorsAlert
|
|
111
|
+
project: UI_T_Project
|
|
109
112
|
}>()
|
|
110
113
|
|
|
111
114
|
const emits = defineEmits<{
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
:timespan-period-type="timespanPeriodType"
|
|
41
41
|
:selected-row-power="selectedRowPower"
|
|
42
42
|
:selected-row-temperature="selectedRowTemperature"
|
|
43
|
+
:project="props.project"
|
|
43
44
|
@show-chart-modal="isShowChartModal = true"
|
|
44
45
|
@hide-chart-modal="isShowChartModal = false"
|
|
45
46
|
@update-tools="onUpdateTools"
|
|
@@ -47,7 +48,6 @@
|
|
|
47
48
|
@power-selected-rows-local="powerSelectedRowsLocal = $event"
|
|
48
49
|
@temperature-selected-rows-local="temperatureSelectedRowsLocal = $event"
|
|
49
50
|
@update-period-type="timespanPeriodType = $event"
|
|
50
|
-
@delete-option="onDeleteOption"
|
|
51
51
|
@submit-options="onSubmitOptions"
|
|
52
52
|
/>
|
|
53
53
|
<common-pages-hardware-health-history-testimony-graph-old
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
:timespan-period-type="timespanPeriodType"
|
|
92
92
|
:selected-row-power="selectedRowPower"
|
|
93
93
|
:selected-row-temperature="selectedRowTemperature"
|
|
94
|
+
:project="props.project"
|
|
94
95
|
@show-chart-modal="isShowChartModal = true"
|
|
95
96
|
@hide-chart-modal="isShowChartModal = false"
|
|
96
97
|
@update-tools="onUpdateTools"
|
|
@@ -98,7 +99,6 @@
|
|
|
98
99
|
@power-selected-rows-local="powerSelectedRowsLocal = $event"
|
|
99
100
|
@temperature-selected-rows-local="temperatureSelectedRowsLocal = $event"
|
|
100
101
|
@update-period-type="timespanPeriodType = $event"
|
|
101
|
-
@delete-option="onDeleteOption"
|
|
102
102
|
@submit-options="onSubmitOptions"
|
|
103
103
|
/>
|
|
104
104
|
</template>
|
|
@@ -117,6 +117,7 @@ import type {
|
|
|
117
117
|
import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
|
|
118
118
|
import type { UI_I_SensorsGraphPayload } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/models/interfaces'
|
|
119
119
|
import type { UI_I_OptionsForm } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/interfaces'
|
|
120
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
120
121
|
|
|
121
122
|
const selectedView = defineModel<string>('selectedView')
|
|
122
123
|
|
|
@@ -133,6 +134,7 @@ const props = defineProps<{
|
|
|
133
134
|
mainSelectedRow: number[]
|
|
134
135
|
validDateEnd: number
|
|
135
136
|
formatDate: string
|
|
137
|
+
project: UI_T_Project
|
|
136
138
|
selectedHostName?: string
|
|
137
139
|
}>()
|
|
138
140
|
const emits = defineEmits<{
|
|
@@ -403,7 +405,5 @@ const onSubmitOptions = (data: UI_I_OptionsForm): void => {
|
|
|
403
405
|
data
|
|
404
406
|
)
|
|
405
407
|
}
|
|
406
|
-
|
|
407
|
-
const onDeleteOption = (): void => {}
|
|
408
408
|
</script>
|
|
409
409
|
<style scoped lang="scss"></style>
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
:valid-date-end="props.validDateEnd"
|
|
26
26
|
:format-date="props.formatDate"
|
|
27
27
|
:selected-host-name="props.selectedHostName"
|
|
28
|
+
:project="props.project"
|
|
28
29
|
@show-chart-modal="emits('show-chart-modal')"
|
|
29
30
|
@hide-chart-modal="emits('hide-chart-modal')"
|
|
30
31
|
@update-tools="emits('update-tools', $event)"
|
|
@@ -34,7 +35,6 @@
|
|
|
34
35
|
emits('temperature-selected-rows-local', $event)
|
|
35
36
|
"
|
|
36
37
|
@update-period-type="emits('update-period-type', $event)"
|
|
37
|
-
@delete-option="emits('delete-option')"
|
|
38
38
|
@submit-options="emits('submit-options', $event)"
|
|
39
39
|
/>
|
|
40
40
|
|
|
@@ -88,6 +88,7 @@ import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardw
|
|
|
88
88
|
import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
89
89
|
import type { UI_I_SensorsGraphPayload } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/models/interfaces'
|
|
90
90
|
import type { UI_I_OptionsForm } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/interfaces'
|
|
91
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
91
92
|
|
|
92
93
|
const selectedView = defineModel<string>('selectedView', { required: true })
|
|
93
94
|
|
|
@@ -130,6 +131,7 @@ const props = defineProps<{
|
|
|
130
131
|
timespanPeriodType: string
|
|
131
132
|
selectedRowPower: number[]
|
|
132
133
|
selectedRowTemperature: number[]
|
|
134
|
+
project: UI_T_Project
|
|
133
135
|
}>()
|
|
134
136
|
const emits = defineEmits<{
|
|
135
137
|
(event: 'show-chart-modal'): void
|
|
@@ -145,7 +147,6 @@ const emits = defineEmits<{
|
|
|
145
147
|
value: UI_I_HardwareHealthSensorsGraph[]
|
|
146
148
|
): void
|
|
147
149
|
(event: 'update-period-type', value: string): void
|
|
148
|
-
(event: 'delete-option'): void
|
|
149
150
|
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
150
151
|
}>()
|
|
151
152
|
</script>
|
|
@@ -154,7 +155,7 @@ const emits = defineEmits<{
|
|
|
154
155
|
display: flex;
|
|
155
156
|
flex-wrap: wrap;
|
|
156
157
|
justify-content: space-between;
|
|
157
|
-
grid-
|
|
158
|
+
grid-gap: 12px;
|
|
158
159
|
|
|
159
160
|
&.power {
|
|
160
161
|
& > div:nth-child(1) {
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
:valid-date-end="props.validDateEnd"
|
|
26
26
|
:format-date="props.formatDate"
|
|
27
27
|
:selected-host-name="props.selectedHostName"
|
|
28
|
+
:project="props.project"
|
|
28
29
|
@show-chart-modal="emits('show-chart-modal')"
|
|
29
30
|
@hide-chart-modal="emits('hide-chart-modal')"
|
|
30
31
|
@update-tools="emits('update-tools', $event)"
|
|
@@ -34,7 +35,6 @@
|
|
|
34
35
|
emits('temperature-selected-rows-local', $event)
|
|
35
36
|
"
|
|
36
37
|
@update-period-type="emits('update-period-type', $event)"
|
|
37
|
-
@delete-option="emits('delete-option')"
|
|
38
38
|
@submit-options="emits('submit-options', $event)"
|
|
39
39
|
/>
|
|
40
40
|
<div
|
|
@@ -88,6 +88,7 @@ import type { UI_I_HardwareHealthSensors } from '~/components/common/pages/hardw
|
|
|
88
88
|
import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
89
89
|
import type { UI_I_SensorsGraphPayload } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/models/interfaces'
|
|
90
90
|
import { containerMediumSize } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/config/containerSizes'
|
|
91
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
91
92
|
|
|
92
93
|
const selectedView = defineModel<string>('selectedView', { required: true })
|
|
93
94
|
|
|
@@ -130,6 +131,7 @@ const props = defineProps<{
|
|
|
130
131
|
timespanPeriodType: string
|
|
131
132
|
selectedRowPower: number[]
|
|
132
133
|
selectedRowTemperature: number[]
|
|
134
|
+
project: UI_T_Project
|
|
133
135
|
}>()
|
|
134
136
|
const emits = defineEmits<{
|
|
135
137
|
(event: 'show-chart-modal'): void
|
|
@@ -145,7 +147,6 @@ const emits = defineEmits<{
|
|
|
145
147
|
value: UI_I_HardwareHealthSensorsGraph[]
|
|
146
148
|
): void
|
|
147
149
|
(event: 'update-period-type', value: string): void
|
|
148
|
-
(event: 'delete-option'): void
|
|
149
150
|
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
150
151
|
}>()
|
|
151
152
|
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
:period-options="periodOptions"
|
|
28
28
|
:selected-timespan-type="props.selectedTimespanType"
|
|
29
29
|
:selected-host-name="props.selectedHostName"
|
|
30
|
+
:options-names="optionsNames"
|
|
31
|
+
:project="props.project"
|
|
30
32
|
@show-chart-modal="emits('show-chart-modal')"
|
|
31
33
|
@hide-chart-modal="emits('hide-chart-modal')"
|
|
32
34
|
@update-tools="onUpdateTools"
|
|
@@ -36,8 +38,9 @@
|
|
|
36
38
|
emits('temperature-selected-rows-local', $event)
|
|
37
39
|
"
|
|
38
40
|
@update-period-type="emits('update-period-type', $event)"
|
|
39
|
-
@delete-option="emits('delete-option')"
|
|
40
41
|
@submit-options="emits('submit-options', $event)"
|
|
42
|
+
@save-option-name="onSaveOptionName"
|
|
43
|
+
@delete-option="onDeleteOption"
|
|
41
44
|
/>
|
|
42
45
|
<common-pages-hardware-health-history-testimony-tools-old
|
|
43
46
|
v-else
|
|
@@ -67,6 +70,8 @@
|
|
|
67
70
|
:period-options="periodOptions"
|
|
68
71
|
:selected-timespan-type="props.selectedTimespanType"
|
|
69
72
|
:selected-host-name="props.selectedHostName"
|
|
73
|
+
:options-names="optionsNames"
|
|
74
|
+
:project="props.project"
|
|
70
75
|
@show-chart-modal="emits('show-chart-modal')"
|
|
71
76
|
@hide-chart-modal="emits('hide-chart-modal')"
|
|
72
77
|
@update-tools="onUpdateTools"
|
|
@@ -76,20 +81,23 @@
|
|
|
76
81
|
emits('temperature-selected-rows-local', $event)
|
|
77
82
|
"
|
|
78
83
|
@update-period-type="emits('update-period-type', $event)"
|
|
79
|
-
@delete-option="emits('delete-option')"
|
|
80
84
|
@submit-options="emits('submit-options', $event)"
|
|
85
|
+
@save-option-name="onSaveOptionName"
|
|
86
|
+
@delete-option="onDeleteOption"
|
|
81
87
|
/>
|
|
82
88
|
</template>
|
|
83
89
|
<script setup lang="ts">
|
|
84
90
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
85
|
-
import { periodFunc } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar'
|
|
86
|
-
import { getValidDateByOptionFunc } from '~/components/common/monitor/lib/config/getValidDateByOption'
|
|
87
|
-
import { checkDateFunc } from '~/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker'
|
|
88
91
|
import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
|
|
89
92
|
import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
90
93
|
import type { UI_I_SensorsGraphPayload } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/models/interfaces'
|
|
91
94
|
import type { UI_I_OptionsForm } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/interfaces'
|
|
92
95
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
96
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
97
|
+
import { periodFunc } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar'
|
|
98
|
+
import { getValidDateByOptionFunc } from '~/components/common/monitor/lib/config/getValidDateByOption'
|
|
99
|
+
import { checkDateFunc } from '~/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker'
|
|
100
|
+
import { getCurrentOptionsStorageFunc } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar'
|
|
93
101
|
|
|
94
102
|
const selectedView = defineModel<string>('selectedView', { required: true })
|
|
95
103
|
|
|
@@ -118,6 +126,7 @@ const props = defineProps<{
|
|
|
118
126
|
validDateEnd: number
|
|
119
127
|
formatDate: string
|
|
120
128
|
selectedHostName: string
|
|
129
|
+
project: UI_T_Project
|
|
121
130
|
}>()
|
|
122
131
|
const emits = defineEmits<{
|
|
123
132
|
(event: 'show-chart-modal'): void
|
|
@@ -133,7 +142,6 @@ const emits = defineEmits<{
|
|
|
133
142
|
value: UI_I_HardwareHealthSensorsGraph[]
|
|
134
143
|
): void
|
|
135
144
|
(event: 'update-period-type', value: string): void
|
|
136
|
-
(event: 'delete-option'): void
|
|
137
145
|
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
138
146
|
}>()
|
|
139
147
|
|
|
@@ -166,8 +174,9 @@ const onUpdateTools = (): void => {
|
|
|
166
174
|
const periodValue = selectedPeriod.value
|
|
167
175
|
const viewValue = selectedView.value
|
|
168
176
|
const selectedValue = useLocalStorage(
|
|
169
|
-
|
|
170
|
-
undefined
|
|
177
|
+
'ChartOptionsSensors' + viewValue,
|
|
178
|
+
undefined,
|
|
179
|
+
props.project === 'sphere'
|
|
171
180
|
)
|
|
172
181
|
|
|
173
182
|
const fields = selectedValue
|
|
@@ -214,5 +223,20 @@ const onUpdateTools = (): void => {
|
|
|
214
223
|
|
|
215
224
|
emits('update-tools', tools)
|
|
216
225
|
}
|
|
226
|
+
|
|
227
|
+
const optionsNames = ref<string[]>([])
|
|
228
|
+
|
|
229
|
+
const onSaveOptionName = (): void => {
|
|
230
|
+
optionsNames.value = getCurrentOptionsStorageFunc(props.project)
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const onDeleteOption = (): void => {
|
|
234
|
+
optionsNames.value = getCurrentOptionsStorageFunc(props.project)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
onMounted(() => {
|
|
238
|
+
optionsNames.value = getCurrentOptionsStorageFunc(props.project)
|
|
239
|
+
onUpdateTools()
|
|
240
|
+
})
|
|
217
241
|
</script>
|
|
218
242
|
<style scoped lang="scss"></style>
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
:valid-date-end="props.validDateEnd"
|
|
71
71
|
:format-date="props.formatDate"
|
|
72
72
|
:selected-host-name="props.selectedHostName"
|
|
73
|
+
:project="props.project"
|
|
73
74
|
@hide="emits('hide-chart-modal')"
|
|
74
75
|
@select-metric-local="emits('select-metric-local', $event)"
|
|
75
76
|
@power-selected-rows-local="emits('power-selected-rows-local', $event)"
|
|
@@ -78,18 +79,18 @@
|
|
|
78
79
|
"
|
|
79
80
|
@update-period-type="emits('update-period-type', $event)"
|
|
80
81
|
@delete-option="emits('delete-option')"
|
|
81
|
-
@save-option-name="
|
|
82
|
+
@save-option-name="emits('save-option-name')"
|
|
82
83
|
@submit-options="emits('submit-options', $event)"
|
|
83
84
|
/>
|
|
84
85
|
</template>
|
|
85
86
|
<script setup lang="ts">
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
87
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
88
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
88
89
|
import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
|
|
89
90
|
import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
90
91
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
91
92
|
import type { UI_I_OptionsForm } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/interfaces'
|
|
92
|
-
import
|
|
93
|
+
import { viewFunc } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar'
|
|
93
94
|
|
|
94
95
|
const selectedView = defineModel<string>('selectedView', { required: true })
|
|
95
96
|
const selectedPeriod = defineModel<string>('selectedPeriod', { required: true })
|
|
@@ -119,6 +120,8 @@ const props = defineProps<{
|
|
|
119
120
|
chartTitleDate: string
|
|
120
121
|
periodOptions: UI_I_OptionItem[]
|
|
121
122
|
selectedHostName: string
|
|
123
|
+
optionsNames: string[]
|
|
124
|
+
project: UI_T_Project
|
|
122
125
|
}>()
|
|
123
126
|
const emits = defineEmits<{
|
|
124
127
|
(event: 'show-chart-modal'): void
|
|
@@ -134,16 +137,15 @@ const emits = defineEmits<{
|
|
|
134
137
|
value: UI_I_HardwareHealthSensorsGraph[]
|
|
135
138
|
): void
|
|
136
139
|
(event: 'update-period-type', value: string): void
|
|
137
|
-
(event: 'delete-option'): void
|
|
138
140
|
(event: 'submit-options', value: UI_I_OptionsForm): void
|
|
141
|
+
(event: 'save-option-name'): void
|
|
142
|
+
(event: 'delete-option'): void
|
|
139
143
|
}>()
|
|
140
144
|
|
|
141
145
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
142
146
|
|
|
143
|
-
const optionsNames = ref<string[]>([])
|
|
144
|
-
|
|
145
147
|
const viewOptions = computed<UI_I_OptionItem[]>(() =>
|
|
146
|
-
viewFunc(localization.value, optionsNames
|
|
148
|
+
viewFunc(localization.value, props.optionsNames)
|
|
147
149
|
)
|
|
148
150
|
|
|
149
151
|
watch(
|
|
@@ -154,7 +156,7 @@ watch(
|
|
|
154
156
|
if (newValue) currentValue = newValue
|
|
155
157
|
else if (
|
|
156
158
|
selectedView.value &&
|
|
157
|
-
optionsNames.
|
|
159
|
+
props.optionsNames.includes(selectedView.value)
|
|
158
160
|
)
|
|
159
161
|
currentValue = selectedView.value
|
|
160
162
|
else currentValue = selectedView.value || viewOptions.value[0]?.value
|
|
@@ -163,15 +165,6 @@ watch(
|
|
|
163
165
|
},
|
|
164
166
|
{ immediate: true }
|
|
165
167
|
)
|
|
166
|
-
|
|
167
|
-
const onSaveOptionName = (): void => {
|
|
168
|
-
optionsNames.value = getCurrentOptionsStorageFunc()
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
onMounted(() => {
|
|
172
|
-
optionsNames.value = getCurrentOptionsStorageFunc()
|
|
173
|
-
emits('update-tools')
|
|
174
|
-
})
|
|
175
168
|
</script>
|
|
176
169
|
<style scoped lang="scss">
|
|
177
170
|
.advanced-filters {
|