bfg-common 1.4.799 → 1.4.801
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/img/icons/icons-sprite-dark-1.svg +31 -14
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +6 -1
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-1.svg +30 -13
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +6 -1
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +33 -8
- package/assets/localization/local_en.json +33 -8
- package/assets/localization/local_hy.json +33 -8
- package/assets/localization/local_kk.json +34 -9
- package/assets/localization/local_ru.json +43 -18
- package/assets/localization/local_zh.json +33 -8
- package/assets/scss/clarity/local_ar.json +6 -3
- package/assets/scss/common/icons/icons-1.scss +4 -4
- package/components/atoms/autocomplete/Autocomplete.vue +68 -12
- package/components/atoms/select/TheSelect.vue +10 -1
- package/components/atoms/table/dataGrid/DataGrid.vue +12 -4
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +4 -1
- package/components/atoms/table/dataGrid/lib/utils/export.ts +13 -13
- package/components/atoms/tabs/VerticalTabs.vue +11 -6
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/chartOptionsModal/counters/timespan/form/Form.vue +544 -544
- package/components/common/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +116 -116
- package/components/common/context/Context.vue +16 -4
- package/components/common/context/recursion/Recursion.vue +2 -1
- package/components/common/context/recursion/RecursionNew.vue +57 -31
- package/components/common/context/recursion/RecursionOld.vue +33 -19
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +7 -7
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/feedback/Buttons.vue +2 -2
- package/components/common/feedback/Message.vue +1 -0
- package/components/common/feedback/VisitPortal.vue +5 -1
- package/components/common/graph/Graph.vue +5 -11
- package/components/common/graph/GraphNew.vue +71 -0
- package/components/common/graph/GraphOld.vue +31 -0
- package/components/common/layout/theHeader/feedback/new/New.vue +29 -14
- package/components/common/layout/theHeader/feedback/new/additionalDetails/AdditionalDetails.vue +34 -9
- package/components/common/layout/theHeader/feedback/new/additionalDetails/Headline.vue +17 -6
- package/components/common/layout/theHeader/feedback/new/description/Description.vue +1 -0
- package/components/common/layout/theHeader/feedback/new/email/Email.vue +1 -1
- package/components/common/layout/theHeader/feedback/new/subtitle/Subtitle.vue +22 -6
- package/components/common/layout/theHeader/feedback/new/tabs/Tabs.vue +17 -15
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +1 -1
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +3 -2
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -1
- package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/Notification.vue +7 -7
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +95 -95
- package/components/common/monitor/overview/Overview.vue +14 -28
- package/components/common/monitor/overview/OverviewNew.vue +138 -0
- package/components/common/monitor/overview/OverviewOld.vue +137 -0
- package/components/common/monitor/overview/filters/Filters.vue +35 -103
- package/components/common/monitor/overview/filters/FiltersNew.vue +122 -0
- package/components/common/monitor/overview/filters/FiltersOld.vue +151 -0
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +463 -456
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +389 -387
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +8 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +94 -94
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +66 -66
- package/components/common/pages/home/headline/Headline.vue +3 -2
- package/components/common/pages/home/headline/HeadlineNew.vue +1 -1
- package/components/common/pages/home/headline/HeadlineOld.vue +5 -0
- package/components/common/pages/home/widgets/vms/VmsNew.vue +1 -1
- package/components/common/pages/packages/Packages.vue +208 -0
- package/components/common/pages/packages/lib/config/actions.ts +59 -0
- package/components/common/pages/packages/lib/models/types.ts +8 -0
- package/components/common/pages/packages/tableView/TableView.vue +120 -0
- package/components/common/pages/packages/tableView/lib/config/configTable.ts +136 -0
- package/components/common/pages/packages/tableView/lib/config/tableKey.ts +14 -0
- package/components/common/pages/packages/tableView/lib/models/types.ts +12 -0
- package/components/common/pages/shortcuts/Shortcuts.vue +1 -1
- package/components/common/pages/tasks/Tasks.vue +23 -8
- package/components/common/pages/tasks/table/Table.vue +66 -16
- package/components/common/pages/tasks/table/errorInfo/ErrorInfo.vue +27 -10
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +28 -12
- package/components/common/pages/tasks/table/lib/config/config.ts +11 -11
- package/components/common/portlets/customAttributes/Portlet.vue +4 -4
- package/components/common/portlets/tag/TagAddNew.vue +4 -4
- package/components/common/select/radio/RadioGroup.vue +3 -3
- package/components/common/selectLanguage/SelectLanguage.vue +29 -25
- package/components/common/selectLanguage/lib/config/config.ts +1 -0
- package/components/common/split/horizontal/HorizontalNew.vue +42 -24
- package/components/common/split/horizontal/HorizontalOld.vue +43 -13
- package/components/common/vm/actions/add/Add.vue +6 -1
- package/components/common/vm/actions/clone/Clone.vue +8 -3
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +6 -4
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +26 -10
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +12 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +4 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +6 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +9 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +3 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +3 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +87 -24
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +14 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +9 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +0 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +43 -12
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +50 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +5 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +64 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +60 -19
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/lib/config/options.ts +11 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +16 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +59 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +60 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionOld.vue +1 -1
- package/components/common/vm/actions/common/lib/config/capabilities.ts +1 -1
- package/components/common/vm/actions/editSettings/EditSettings.vue +4 -0
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +2 -0
- package/components/common/vm/actions/editSettings/new/New.vue +2 -0
- package/components/common/wizards/datastore/add/Add.vue +4 -4
- package/components/common/wizards/datastore/add/lib/config/steps.ts +14 -14
- package/components/common/wizards/datastore/add/lib/validations.ts +9 -9
- package/components/common/wizards/datastore/add/nfs/Nfs.vue +6 -9
- package/components/common/wizards/vm/migrate/Migrate.vue +12 -12
- package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +1 -1
- package/composables/useLocal.ts +3 -1
- package/composables/useLocalStorage.ts +1 -1
- package/lib/models/store/vm/interfaces.ts +11 -0
- package/lib/models/table/interfaces.ts +1 -0
- package/package.json +3 -3
- package/store/tasks/actions.ts +2 -1
|
@@ -82,6 +82,7 @@ import { getCurrentOptionsStorageFunc } from '~/components/common/pages/hardware
|
|
|
82
82
|
const props = defineProps<{
|
|
83
83
|
selectedChartOptionName: string
|
|
84
84
|
selectedMetric: UI_T_Chart
|
|
85
|
+
selectedChartType: string
|
|
85
86
|
selectedPowerCountersKeys: number[]
|
|
86
87
|
powerSelectedRowsLocal: UI_I_HardwareHealthSensorsGraph[]
|
|
87
88
|
selectedTemperatureCountersKeys: number[]
|
|
@@ -172,6 +173,13 @@ watch(
|
|
|
172
173
|
)
|
|
173
174
|
|
|
174
175
|
const localSelectedChartType = ref<string>('')
|
|
176
|
+
watch(
|
|
177
|
+
() => props.selectedChartType,
|
|
178
|
+
(newValue) => {
|
|
179
|
+
localSelectedChartType.value = newValue
|
|
180
|
+
},
|
|
181
|
+
{ immediate: true }
|
|
182
|
+
)
|
|
175
183
|
|
|
176
184
|
const localSelectedTimespanType = ref<string>('')
|
|
177
185
|
watch(
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-container">
|
|
3
|
-
<common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-table
|
|
4
|
-
:chart="props.chart"
|
|
5
|
-
:selected-power-keys="props.selectedPowerKeys"
|
|
6
|
-
:selected-temperature-keys="props.selectedTemperatureKeys"
|
|
7
|
-
:power-counters-table-data="props.powerCountersTableData"
|
|
8
|
-
:temperature-counters-table-data="props.temperatureCountersTableData"
|
|
9
|
-
@select-power-row="emits('select-power-row', $event)"
|
|
10
|
-
@select-temperature-row="emits('select-temperature-row', $event)"
|
|
11
|
-
@total-items="totalMetricItems = $event"
|
|
12
|
-
/>
|
|
13
|
-
<common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-timespan
|
|
14
|
-
:language="props.language"
|
|
15
|
-
:selected-chart-type="props.selectedChartType"
|
|
16
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
17
|
-
:units-count="props.unitsCount"
|
|
18
|
-
:period-type="props.periodType"
|
|
19
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
20
|
-
:custom-date-from="props.customDateFrom"
|
|
21
|
-
:custom-date-to="props.customDateTo"
|
|
22
|
-
:custom-time-from="props.customTimeFrom"
|
|
23
|
-
:custom-time-to="props.customTimeTo"
|
|
24
|
-
:valid-date-end="props.validDateEnd"
|
|
25
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
26
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
27
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
28
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
29
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
30
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
31
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
32
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
33
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script setup lang="ts">
|
|
39
|
-
import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
40
|
-
import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
|
|
41
|
-
|
|
42
|
-
const props = defineProps<{
|
|
43
|
-
chart: UI_T_Chart
|
|
44
|
-
selectedPowerKeys: number[]
|
|
45
|
-
selectedTemperatureKeys: number[]
|
|
46
|
-
powerCountersTableData: UI_I_HardwareHealthSensorsGraph[]
|
|
47
|
-
temperatureCountersTableData: UI_I_HardwareHealthSensorsGraph[]
|
|
48
|
-
language: string
|
|
49
|
-
selectedChartType: string
|
|
50
|
-
selectedTimespanType: string
|
|
51
|
-
unitsCount: number
|
|
52
|
-
periodType: string
|
|
53
|
-
selectedCustomTime: string
|
|
54
|
-
customDateFrom: string
|
|
55
|
-
customDateTo: string
|
|
56
|
-
customTimeFrom: string
|
|
57
|
-
customTimeTo: string
|
|
58
|
-
validDateEnd: number
|
|
59
|
-
}>()
|
|
60
|
-
|
|
61
|
-
const emits = defineEmits<{
|
|
62
|
-
(event: 'select-power-row', value: UI_I_HardwareHealthSensorsGraph[]): void
|
|
63
|
-
(
|
|
64
|
-
event: 'select-temperature-row',
|
|
65
|
-
value: UI_I_HardwareHealthSensorsGraph[]
|
|
66
|
-
): void
|
|
67
|
-
(event: 'update-chart-type', value: string): void
|
|
68
|
-
(event: 'update-custom-time', value: string): void
|
|
69
|
-
(event: 'update-timespan-type', value: string): void
|
|
70
|
-
(event: 'update-unit-count', value: number): void
|
|
71
|
-
(event: 'update-period-type', value: string): void
|
|
72
|
-
(event: 'update-custom-date-from', value: string): void
|
|
73
|
-
(event: 'update-custom-date-to', value: string): void
|
|
74
|
-
(event: 'update-custom-time-from', value: string): void
|
|
75
|
-
(event: 'update-custom-time-to', value: string): void
|
|
76
|
-
}>()
|
|
77
|
-
|
|
78
|
-
const totalMetricItems = ref<number>(0)
|
|
79
|
-
</script>
|
|
80
|
-
|
|
81
|
-
<style scoped lang="scss">
|
|
82
|
-
.chart-option-counters-container {
|
|
83
|
-
margin-top: 20px;
|
|
84
|
-
flex-basis: 80%;
|
|
85
|
-
padding-left: 15px;
|
|
86
|
-
max-width: 80%;
|
|
87
|
-
}
|
|
88
|
-
@media (max-width: 1024px) {
|
|
89
|
-
.chart-option-counters-container {
|
|
90
|
-
max-width: unset;
|
|
91
|
-
padding-left: 0;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vertical-flex-container chart-option-counters-container">
|
|
3
|
+
<common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-table
|
|
4
|
+
:chart="props.chart"
|
|
5
|
+
:selected-power-keys="props.selectedPowerKeys"
|
|
6
|
+
:selected-temperature-keys="props.selectedTemperatureKeys"
|
|
7
|
+
:power-counters-table-data="props.powerCountersTableData"
|
|
8
|
+
:temperature-counters-table-data="props.temperatureCountersTableData"
|
|
9
|
+
@select-power-row="emits('select-power-row', $event)"
|
|
10
|
+
@select-temperature-row="emits('select-temperature-row', $event)"
|
|
11
|
+
@total-items="totalMetricItems = $event"
|
|
12
|
+
/>
|
|
13
|
+
<common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-timespan
|
|
14
|
+
:language="props.language"
|
|
15
|
+
:selected-chart-type="props.selectedChartType"
|
|
16
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
17
|
+
:units-count="props.unitsCount"
|
|
18
|
+
:period-type="props.periodType"
|
|
19
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
20
|
+
:custom-date-from="props.customDateFrom"
|
|
21
|
+
:custom-date-to="props.customDateTo"
|
|
22
|
+
:custom-time-from="props.customTimeFrom"
|
|
23
|
+
:custom-time-to="props.customTimeTo"
|
|
24
|
+
:valid-date-end="props.validDateEnd"
|
|
25
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
26
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
27
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
28
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
29
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
30
|
+
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
31
|
+
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
32
|
+
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
33
|
+
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script setup lang="ts">
|
|
39
|
+
import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
|
|
40
|
+
import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
|
|
41
|
+
|
|
42
|
+
const props = defineProps<{
|
|
43
|
+
chart: UI_T_Chart
|
|
44
|
+
selectedPowerKeys: number[]
|
|
45
|
+
selectedTemperatureKeys: number[]
|
|
46
|
+
powerCountersTableData: UI_I_HardwareHealthSensorsGraph[]
|
|
47
|
+
temperatureCountersTableData: UI_I_HardwareHealthSensorsGraph[]
|
|
48
|
+
language: string
|
|
49
|
+
selectedChartType: string
|
|
50
|
+
selectedTimespanType: string
|
|
51
|
+
unitsCount: number
|
|
52
|
+
periodType: string
|
|
53
|
+
selectedCustomTime: string
|
|
54
|
+
customDateFrom: string
|
|
55
|
+
customDateTo: string
|
|
56
|
+
customTimeFrom: string
|
|
57
|
+
customTimeTo: string
|
|
58
|
+
validDateEnd: number
|
|
59
|
+
}>()
|
|
60
|
+
|
|
61
|
+
const emits = defineEmits<{
|
|
62
|
+
(event: 'select-power-row', value: UI_I_HardwareHealthSensorsGraph[]): void
|
|
63
|
+
(
|
|
64
|
+
event: 'select-temperature-row',
|
|
65
|
+
value: UI_I_HardwareHealthSensorsGraph[]
|
|
66
|
+
): void
|
|
67
|
+
(event: 'update-chart-type', value: string): void
|
|
68
|
+
(event: 'update-custom-time', value: string): void
|
|
69
|
+
(event: 'update-timespan-type', value: string): void
|
|
70
|
+
(event: 'update-unit-count', value: number): void
|
|
71
|
+
(event: 'update-period-type', value: string): void
|
|
72
|
+
(event: 'update-custom-date-from', value: string): void
|
|
73
|
+
(event: 'update-custom-date-to', value: string): void
|
|
74
|
+
(event: 'update-custom-time-from', value: string): void
|
|
75
|
+
(event: 'update-custom-time-to', value: string): void
|
|
76
|
+
}>()
|
|
77
|
+
|
|
78
|
+
const totalMetricItems = ref<number>(0)
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
<style scoped lang="scss">
|
|
82
|
+
.chart-option-counters-container {
|
|
83
|
+
margin-top: 20px;
|
|
84
|
+
flex-basis: 80%;
|
|
85
|
+
padding-left: 15px;
|
|
86
|
+
max-width: 80%;
|
|
87
|
+
}
|
|
88
|
+
@media (max-width: 1024px) {
|
|
89
|
+
.chart-option-counters-container {
|
|
90
|
+
max-width: unset;
|
|
91
|
+
padding-left: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
</style>
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="timespan-objects-section-direction">
|
|
3
|
-
<common-chart-options-modal-counters-timespan-form
|
|
4
|
-
:language="props.language"
|
|
5
|
-
:selected-chart-type="props.selectedChartType"
|
|
6
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
-
:units-count="props.unitsCount"
|
|
8
|
-
:period-type="props.periodType"
|
|
9
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
-
:custom-date-from="props.customDateFrom"
|
|
11
|
-
:custom-date-to="props.customDateTo"
|
|
12
|
-
:custom-time-from="props.customTimeFrom"
|
|
13
|
-
:custom-time-to="props.customTimeTo"
|
|
14
|
-
:valid-date-end="props.validDateEnd"
|
|
15
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
16
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
17
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
18
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
19
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
20
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
21
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
22
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
23
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
24
|
-
/>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script setup lang="ts">
|
|
29
|
-
const props = defineProps<{
|
|
30
|
-
language: string
|
|
31
|
-
selectedChartType: string
|
|
32
|
-
selectedTimespanType: string
|
|
33
|
-
unitsCount: number
|
|
34
|
-
periodType: string
|
|
35
|
-
selectedCustomTime: string
|
|
36
|
-
customDateFrom: string
|
|
37
|
-
customDateTo: string
|
|
38
|
-
customTimeFrom: string
|
|
39
|
-
customTimeTo: string
|
|
40
|
-
validDateEnd: number
|
|
41
|
-
}>()
|
|
42
|
-
|
|
43
|
-
const emits = defineEmits<{
|
|
44
|
-
(event: 'update-chart-type', value: string): void
|
|
45
|
-
(event: 'update-custom-time', value: string): void
|
|
46
|
-
(event: 'update-timespan-type', value: string): void
|
|
47
|
-
(event: 'update-unit-count', value: number): void
|
|
48
|
-
(event: 'update-period-type', value: string): void
|
|
49
|
-
(event: 'update-custom-date-from', value: string): void
|
|
50
|
-
(event: 'update-custom-date-to', value: string): void
|
|
51
|
-
(event: 'update-custom-time-from', value: string): void
|
|
52
|
-
(event: 'update-custom-time-to', value: string): void
|
|
53
|
-
}>()
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style scoped lang="scss">
|
|
57
|
-
.timespan-objects-section-direction {
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: row;
|
|
60
|
-
}
|
|
61
|
-
@media (max-width: 1024px) {
|
|
62
|
-
.timespan-objects-section-direction {
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="timespan-objects-section-direction">
|
|
3
|
+
<common-chart-options-modal-counters-timespan-form
|
|
4
|
+
:language="props.language"
|
|
5
|
+
:selected-chart-type="props.selectedChartType"
|
|
6
|
+
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
+
:units-count="props.unitsCount"
|
|
8
|
+
:period-type="props.periodType"
|
|
9
|
+
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
+
:custom-date-from="props.customDateFrom"
|
|
11
|
+
:custom-date-to="props.customDateTo"
|
|
12
|
+
:custom-time-from="props.customTimeFrom"
|
|
13
|
+
:custom-time-to="props.customTimeTo"
|
|
14
|
+
:valid-date-end="props.validDateEnd"
|
|
15
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
16
|
+
@update-custom-time="emits('update-custom-time', $event)"
|
|
17
|
+
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
18
|
+
@update-unit-count="emits('update-unit-count', $event)"
|
|
19
|
+
@update-period-type="emits('update-period-type', $event)"
|
|
20
|
+
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
21
|
+
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
22
|
+
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
23
|
+
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script setup lang="ts">
|
|
29
|
+
const props = defineProps<{
|
|
30
|
+
language: string
|
|
31
|
+
selectedChartType: string
|
|
32
|
+
selectedTimespanType: string
|
|
33
|
+
unitsCount: number
|
|
34
|
+
periodType: string
|
|
35
|
+
selectedCustomTime: string
|
|
36
|
+
customDateFrom: string
|
|
37
|
+
customDateTo: string
|
|
38
|
+
customTimeFrom: string
|
|
39
|
+
customTimeTo: string
|
|
40
|
+
validDateEnd: number
|
|
41
|
+
}>()
|
|
42
|
+
|
|
43
|
+
const emits = defineEmits<{
|
|
44
|
+
(event: 'update-chart-type', value: string): void
|
|
45
|
+
(event: 'update-custom-time', value: string): void
|
|
46
|
+
(event: 'update-timespan-type', value: string): void
|
|
47
|
+
(event: 'update-unit-count', value: number): void
|
|
48
|
+
(event: 'update-period-type', value: string): void
|
|
49
|
+
(event: 'update-custom-date-from', value: string): void
|
|
50
|
+
(event: 'update-custom-date-to', value: string): void
|
|
51
|
+
(event: 'update-custom-time-from', value: string): void
|
|
52
|
+
(event: 'update-custom-time-to', value: string): void
|
|
53
|
+
}>()
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<style scoped lang="scss">
|
|
57
|
+
.timespan-objects-section-direction {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: row;
|
|
60
|
+
}
|
|
61
|
+
@media (max-width: 1024px) {
|
|
62
|
+
.timespan-objects-section-direction {
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
v-model="selectedZone"
|
|
6
6
|
:data="zoneOptionList"
|
|
7
7
|
:project="props.project"
|
|
8
|
-
|
|
8
|
+
/>
|
|
9
9
|
|
|
10
10
|
<common-pages-home-headline-old
|
|
11
11
|
v-else
|
|
12
12
|
v-model="selectedZone"
|
|
13
13
|
:data="zoneOptionList"
|
|
14
|
-
|
|
14
|
+
:project="props.project"
|
|
15
|
+
/>
|
|
15
16
|
</div>
|
|
16
17
|
</template>
|
|
17
18
|
|
|
@@ -36,7 +36,7 @@ const props = defineProps<{
|
|
|
36
36
|
|
|
37
37
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
38
38
|
|
|
39
|
-
const isProjectSphere =
|
|
39
|
+
const isProjectSphere = ref<boolean>(props.project === 'sphere')
|
|
40
40
|
|
|
41
41
|
const selectItems = computed<UI_I_Dropdown[]>(() => props.data)
|
|
42
42
|
</script>
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
</h2>
|
|
5
5
|
|
|
6
6
|
<atoms-select-the-select
|
|
7
|
+
v-if="isProjectSphere"
|
|
7
8
|
v-model="selectedZoneModel"
|
|
8
9
|
:options="props.data"
|
|
9
10
|
test-id="home-zone-select"
|
|
@@ -14,11 +15,13 @@
|
|
|
14
15
|
</template>
|
|
15
16
|
|
|
16
17
|
<script lang="ts" setup>
|
|
18
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
17
19
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
18
20
|
import type { UI_I_Option } from '~/components/atoms/select/lib/models/interfaces'
|
|
19
21
|
|
|
20
22
|
const selectedZoneModel = defineModel<string>({ required: true })
|
|
21
23
|
const props = defineProps<{
|
|
24
|
+
project: UI_T_Project
|
|
22
25
|
data: UI_I_Option[]
|
|
23
26
|
}>()
|
|
24
27
|
const emits = defineEmits<{
|
|
@@ -26,6 +29,8 @@ const emits = defineEmits<{
|
|
|
26
29
|
}>()
|
|
27
30
|
|
|
28
31
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
32
|
+
|
|
33
|
+
const isProjectSphere = ref<boolean>(props.project === 'sphere')
|
|
29
34
|
</script>
|
|
30
35
|
|
|
31
36
|
<style lang="scss" scoped>
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="packages-page">
|
|
3
|
+
<common-headline :headline="localization.common.softwarePackages" />
|
|
4
|
+
|
|
5
|
+
<div class="grid-toolbar">
|
|
6
|
+
<common-tools-actions
|
|
7
|
+
test-id="packages-tools-panel"
|
|
8
|
+
:actions="actions"
|
|
9
|
+
@click="onClickAction"
|
|
10
|
+
>
|
|
11
|
+
<template #icon="{ data }">
|
|
12
|
+
<span
|
|
13
|
+
v-if="data.type === 'updates'"
|
|
14
|
+
class="vx-icon-import icon"
|
|
15
|
+
></span>
|
|
16
|
+
<span
|
|
17
|
+
v-if="data.type === 'refresh'"
|
|
18
|
+
class="vsphere-icon-reset icon"
|
|
19
|
+
></span>
|
|
20
|
+
</template>
|
|
21
|
+
</common-tools-actions>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<common-pages-packages-table-view
|
|
25
|
+
v-model="selectedRow"
|
|
26
|
+
:data-table="props.packagesData?.items || []"
|
|
27
|
+
:total-items="props.packagesData?.total_items || 0"
|
|
28
|
+
:total-pages="props.packagesData?.total_pages || 1"
|
|
29
|
+
:pagination="pagination"
|
|
30
|
+
:loading="props.loading"
|
|
31
|
+
@pagination="onPagination"
|
|
32
|
+
@sort="onSort"
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script lang="ts" setup>
|
|
38
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
39
|
+
import type {
|
|
40
|
+
UI_I_Pagination,
|
|
41
|
+
} from '~/lib/models/table/interfaces'
|
|
42
|
+
import type { UI_T_SelectedRow } from '~/components/atoms/table/dataGrid/lib/models/types'
|
|
43
|
+
import type { UI_I_Button } from '~/components/common/tools/lib/models/interfaces'
|
|
44
|
+
import type { UI_T_Action } from '~/components/common/pages/packages/lib/models/types'
|
|
45
|
+
import { actionsFunc } from '~/components/common/pages/packages/lib/config/actions'
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
const selectedRow = defineModel<UI_T_SelectedRow>('selectedRow')
|
|
49
|
+
const pagination = defineModel<UI_I_Pagination>('pagination')
|
|
50
|
+
|
|
51
|
+
const props = defineProps<{
|
|
52
|
+
packagesData: any | null
|
|
53
|
+
loading: boolean
|
|
54
|
+
}>()
|
|
55
|
+
const emits = defineEmits<{
|
|
56
|
+
(event: 'sort', value: string): void
|
|
57
|
+
(event: 'pagination', value: UI_I_Pagination): void
|
|
58
|
+
(event: 'action', value: [UI_T_Action, FormData | null]): void
|
|
59
|
+
(event: 'refresh'): void
|
|
60
|
+
}>()
|
|
61
|
+
|
|
62
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
63
|
+
|
|
64
|
+
const disabledActions = ref<string[]>([
|
|
65
|
+
'enable',
|
|
66
|
+
'disable',
|
|
67
|
+
'on',
|
|
68
|
+
'off',
|
|
69
|
+
'remove',
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
const actions = computed<UI_I_Button[]>(() =>
|
|
73
|
+
actionsFunc(localization.value, disabledActions.value)
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
const onPagination = (value: UI_I_Pagination): void => {
|
|
77
|
+
emits('pagination', value)
|
|
78
|
+
}
|
|
79
|
+
const onSort = (value: string): void => {
|
|
80
|
+
emits('sort', value)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const checkAllActions = (): void => {
|
|
84
|
+
if (typeof selectedRow.value !== 'number') return
|
|
85
|
+
|
|
86
|
+
const selectedPackage = props.packagesData?.items[selectedRow.value]
|
|
87
|
+
if (!selectedPackage) return
|
|
88
|
+
|
|
89
|
+
disabledActions.value = []
|
|
90
|
+
if (window.location.hostname === 'dev-pn.aobfg.ru') return
|
|
91
|
+
|
|
92
|
+
if (selectedPackage.not_runnable || selectedPackage.required) {
|
|
93
|
+
disabledActions.value = ['enable', 'disable', 'on', 'off']
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (selectedPackage.required) {
|
|
97
|
+
disabledActions.value = ['remove']
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
watch(
|
|
101
|
+
selectedRow,
|
|
102
|
+
() => {
|
|
103
|
+
checkAllActions()
|
|
104
|
+
},
|
|
105
|
+
{ immediate: true }
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
const onAction = async (
|
|
109
|
+
action: UI_T_Action,
|
|
110
|
+
file: FormData | null = null
|
|
111
|
+
): Promise<void> => {
|
|
112
|
+
emits('action', [action, file])
|
|
113
|
+
}
|
|
114
|
+
const onRefresh = (): void => {
|
|
115
|
+
emits('refresh')
|
|
116
|
+
}
|
|
117
|
+
const onChangeFiles = (event: Event | undefined): void => {
|
|
118
|
+
if (!event) return
|
|
119
|
+
|
|
120
|
+
const target = event.target as HTMLInputElement
|
|
121
|
+
if (!target.files) return
|
|
122
|
+
|
|
123
|
+
const file = target.files[0]
|
|
124
|
+
|
|
125
|
+
const formData = new FormData()
|
|
126
|
+
formData.append('package', file)
|
|
127
|
+
onAction('update', formData)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const onClickAction = (type: string, file?: Event): void => {
|
|
131
|
+
switch (type) {
|
|
132
|
+
case 'updates':
|
|
133
|
+
onChangeFiles(file)
|
|
134
|
+
break
|
|
135
|
+
case 'refresh':
|
|
136
|
+
onRefresh()
|
|
137
|
+
break
|
|
138
|
+
case 'enable':
|
|
139
|
+
onAction('enable')
|
|
140
|
+
break
|
|
141
|
+
case 'disable':
|
|
142
|
+
onAction('disable')
|
|
143
|
+
break
|
|
144
|
+
case 'on':
|
|
145
|
+
onAction('on')
|
|
146
|
+
break
|
|
147
|
+
case 'off':
|
|
148
|
+
onAction('off')
|
|
149
|
+
break
|
|
150
|
+
case 'remove':
|
|
151
|
+
onAction('remove')
|
|
152
|
+
break
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
156
|
+
|
|
157
|
+
<style>
|
|
158
|
+
:root {
|
|
159
|
+
--action-link-container-bg-color: #e9f6fd;
|
|
160
|
+
--vui-action-label-color: #333;
|
|
161
|
+
}
|
|
162
|
+
:root.dark-theme {
|
|
163
|
+
--action-link-container-bg-color: #29414e;
|
|
164
|
+
--vui-action-label-color: #adbbc4;
|
|
165
|
+
}
|
|
166
|
+
</style>
|
|
167
|
+
|
|
168
|
+
<style lang="scss" scoped>
|
|
169
|
+
@import '~/assets/scss/common/mixins.scss';
|
|
170
|
+
|
|
171
|
+
.packages-page {
|
|
172
|
+
@include flex($dir: column);
|
|
173
|
+
height: 100%;
|
|
174
|
+
|
|
175
|
+
.grid-toolbar {
|
|
176
|
+
.icon {
|
|
177
|
+
display: block;
|
|
178
|
+
width: 16px;
|
|
179
|
+
height: 16px;
|
|
180
|
+
min-width: 16px;
|
|
181
|
+
min-height: 16px;
|
|
182
|
+
background-size: 100% auto;
|
|
183
|
+
margin-right: 5px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:deep(.btn) {
|
|
187
|
+
text-transform: none;
|
|
188
|
+
font-size: 13px;
|
|
189
|
+
font-weight: normal;
|
|
190
|
+
color: var(--vui-action-label-color);
|
|
191
|
+
min-width: unset;
|
|
192
|
+
padding: 4px;
|
|
193
|
+
line-height: normal;
|
|
194
|
+
margin-right: 4px;
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
letter-spacing: normal;
|
|
198
|
+
|
|
199
|
+
&:not(:disabled):hover {
|
|
200
|
+
color: var(--vui-action-label-color);
|
|
201
|
+
text-decoration: none;
|
|
202
|
+
background-color: var(--action-link-container-bg-color);
|
|
203
|
+
border: 1px solid #c7e9ff;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_Button } from '~/components/common/tools/lib/models/interfaces'
|
|
3
|
+
|
|
4
|
+
export const actionsFunc = (
|
|
5
|
+
localization: UI_I_Localization,
|
|
6
|
+
disabledActions: string[]
|
|
7
|
+
): UI_I_Button[] => {
|
|
8
|
+
const actions = [
|
|
9
|
+
{
|
|
10
|
+
text: localization.common.updates,
|
|
11
|
+
type: 'updates',
|
|
12
|
+
disabled: false,
|
|
13
|
+
uploaded: true,
|
|
14
|
+
testId: 'packages-updates',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: localization.common.refresh2,
|
|
18
|
+
type: 'refresh',
|
|
19
|
+
disabled: false,
|
|
20
|
+
testId: 'packages-refresh',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: localization.common.enable2,
|
|
24
|
+
type: 'enable',
|
|
25
|
+
disabled: false,
|
|
26
|
+
testId: 'packages-enable',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: localization.common.disable2,
|
|
30
|
+
type: 'disable',
|
|
31
|
+
disabled: false,
|
|
32
|
+
testId: 'packages-disable',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
text: localization.common.on,
|
|
36
|
+
type: 'on',
|
|
37
|
+
disabled: false,
|
|
38
|
+
testId: 'packages-on',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: localization.common.off2,
|
|
42
|
+
type: 'off',
|
|
43
|
+
disabled: false,
|
|
44
|
+
testId: 'packages-off',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
text: localization.common.remove,
|
|
48
|
+
type: 'remove',
|
|
49
|
+
disabled: false,
|
|
50
|
+
testId: 'packages-remove',
|
|
51
|
+
},
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
return actions.map((action) => {
|
|
55
|
+
action.disabled = disabledActions.includes(action.type)
|
|
56
|
+
|
|
57
|
+
return action
|
|
58
|
+
})
|
|
59
|
+
}
|