bfg-common 1.6.95 → 1.6.97
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/.idea/inspectionProfiles/Project_Default.xml +3 -1
- package/assets/img/icons/icons-sprite-dark-5.svg +15 -2
- package/assets/img/icons/icons-sprite-light-5.svg +18 -5
- package/assets/localization/local_be.json +667 -51
- package/assets/localization/local_en.json +690 -73
- package/assets/localization/local_hy.json +670 -54
- package/assets/localization/local_kk.json +668 -52
- package/assets/localization/local_ru.json +704 -88
- package/assets/localization/local_zh.json +667 -51
- package/assets/scss/clarity/local_ar.json +12 -12
- package/assets/scss/common/global.scss +11 -0
- package/assets/scss/common/normalize.scss +3 -0
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +10 -8
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +1 -0
- package/components/atoms/list/dragDropList/DragDropList.vue +14 -10
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGrid.vue +4 -0
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +3 -0
- package/components/common/adapterManager/AdapterManagerNew.vue +128 -6
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +64 -31
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +3 -4
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +1 -0
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +10 -4
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +16 -1
- package/components/common/adapterManager/ui/table/TableNew.vue +3 -2
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +70 -36
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +5 -1
- package/components/common/certificate/Certificate.vue +16 -6
- package/components/common/certificate/Info/Info.vue +61 -0
- package/components/common/certificate/{CertificateInfo.vue → Info/Old.vue} +6 -28
- package/components/common/certificate/Info/new/New.vue +285 -0
- package/components/common/certificate/Info/new/lib/config/index.ts +59 -0
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +3 -0
- package/components/common/certificate/Info/new/lib/utils/index.ts +10 -0
- package/components/common/certificate/Old.vue +27 -0
- package/components/common/certificate/new/New.vue +30 -0
- package/components/common/certificate/new/Skeleton.vue +155 -0
- package/components/common/certificate/tools/New.vue +48 -0
- package/components/common/certificate/tools/Old.vue +39 -0
- package/components/common/certificate/{Tools.vue → tools/Tools.vue} +18 -23
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +20 -0
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +190 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +392 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +307 -0
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +106 -0
- package/components/common/configure/physicalAdapters/emptyBlock/EmptyBlock.vue +17 -0
- package/components/common/configure/physicalAdapters/emptyBlock/EmptyBlockNew.vue +37 -0
- package/components/common/configure/physicalAdapters/emptyBlock/EmptyBlockOld.vue +26 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +124 -0
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +232 -0
- package/components/common/configure/physicalAdapters/modals/edit/EditOld.vue +170 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/config/config.ts +59 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +17 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableView.vue +43 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +345 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewOld.vue +334 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfig.ts +177 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +191 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +129 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/tableKeys.ts +14 -0
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +33 -0
- package/components/common/configure/physicalAdapters/tableView/lib/models/types.ts +11 -0
- package/components/common/configure/physicalAdapters/tableView/mappers/mappers.ts +43 -0
- package/components/common/context/recursion/RecursionNew.vue +1 -2
- package/components/common/context/recursion/RecursionOld.vue +2 -2
- package/components/common/diagramMain/Diagram.vue +169 -85
- package/components/common/diagramMain/DiagramMain.vue +40 -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 +5 -5
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
- package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
- package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -110
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{SwitchProperties.vue → switchProperties/SwitchPropertiesOld.vue} +12 -89
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +9 -9
- 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/networkModal.ts +15 -15
- package/components/common/diagramMain/modals/lib/config/portModal.ts +12 -12
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +2 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdapters.vue +164 -0
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdaptersNew.vue +306 -0
- package/components/common/diagramMain/modals/{ManagePhysicalAdaptersModal.vue → managePhysicalAdapters/ManagePhysicalAdaptersOld.vue} +33 -119
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +3 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +8 -3
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +2 -2
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +67 -16
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +17 -0
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +3 -0
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +66 -20
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +8 -0
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/layout/theHeader/Old.vue +1 -5
- 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/ChangePassword.vue +16 -10
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +7 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +10 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +12 -8
- 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/security/Security.vue +48 -28
- 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/New.vue +20 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +11 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +12 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/modals/Rename.vue +3 -1
- package/components/common/modals/newFolder/new/Location.vue +21 -1
- package/components/common/monitor/advanced/Advanced.vue +8 -5
- package/components/common/monitor/advanced/AdvancedNew.vue +4 -2
- package/components/common/monitor/advanced/AdvancedOld.vue +8 -3
- package/components/common/monitor/advanced/table/lib/models/interfaces.ts +1 -0
- package/components/common/monitor/advanced/table/lib/models/types.ts +1 -4
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +1 -0
- package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +8 -38
- package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +5 -7
- package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +27 -31
- package/components/common/monitor/advanced/tools/Tools.vue +17 -13
- package/components/common/monitor/advanced/tools/ToolsNew.vue +4 -2
- package/components/common/monitor/advanced/tools/ToolsOld.vue +4 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +38 -18
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +99 -80
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +9 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +13 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +22 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersOld.vue +9 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +7 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1901 -493
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces.ts +5 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +9 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig.ts +4 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +3 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +14 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +22 -21
- package/components/common/monitor/advanced/tools/chartOptionsModal/lib/config/index.ts +2 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/lib/utils/checkSubmit.ts +11 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/MetricsNew.vue +2 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics.ts +34 -1
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +80 -11
- package/components/common/monitor/lib/utils/local_be.json +714 -0
- package/components/common/monitor/lib/utils/local_en.json +714 -0
- package/components/common/monitor/lib/utils/local_hy.json +714 -0
- package/components/common/monitor/lib/utils/local_kk.json +714 -0
- package/components/common/monitor/lib/utils/local_ru.json +714 -0
- package/components/common/monitor/lib/utils/local_zh.json +714 -0
- package/components/common/monitor/lib/utils/localization.ts +43 -0
- package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +3 -1
- package/components/common/monitor/utilization/Old.vue +120 -0
- package/components/common/monitor/utilization/Utilization.vue +65 -0
- package/components/common/monitor/utilization/infoBlock/InfoBlock.vue +146 -0
- package/components/common/monitor/utilization/infoBlock/New.vue +185 -0
- package/components/common/monitor/utilization/infoBlock/Old.vue +190 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/New.vue +64 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/Old.vue +65 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/ProgressBar.vue +84 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces.ts +10 -0
- package/components/common/monitor/utilization/lib/models/interfaces.ts +27 -0
- package/components/common/monitor/utilization/lib/models/types.ts +1 -0
- package/components/common/monitor/utilization/lib/utils/index.ts +112 -0
- package/components/common/monitor/utilization/new/New.vue +195 -0
- package/components/common/monitor/utilization/new/Portlet.vue +42 -0
- package/components/common/monitor/utilization/new/Skeleton.vue +120 -0
- package/components/common/monitor/utilization/new/lib/utils/newPortlet.ts +7 -0
- package/components/common/noDataProvided/NoDataProvided.vue +17 -0
- package/components/common/noDataProvided/NoDataProvidedNew.vue +66 -0
- package/components/common/noDataProvided/NoDataProvidedOld.vue +18 -0
- package/components/common/pages/auth/TheFooter.vue +9 -0
- package/components/common/pages/backups/lib/models/interfaces.ts +1 -0
- package/components/common/pages/backups/modals/Modals.vue +1 -0
- package/components/common/pages/backups/modals/createBackup/New.vue +4 -0
- package/components/common/pages/backups/modals/createBackup/Old.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/backups/modals/createBackup/disks/tableView/new/TableView.vue +0 -1
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/lib/config/table.ts +1 -1
- package/components/common/pages/backups/modals/createBackup/general/General.vue +1 -0
- package/components/common/pages/backups/modals/createBackup/general/GeneralNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/general/GeneralOld.vue +59 -9
- package/components/common/pages/backups/modals/lib/config/restore.ts +1 -0
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +1 -0
- package/components/common/pages/backups/modals/restore/New.vue +40 -35
- package/components/common/pages/backups/modals/restore/Restore.vue +4 -5
- package/components/common/pages/backups/modals/restore/disks/tableView/new/Table.vue +6 -1
- package/components/common/pages/backups/modals/restore/disks/tableView/new/lib/config/table.ts +1 -0
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +1 -1
- package/components/common/pages/backups/modals/restore/name/NameNew.vue +3 -0
- package/components/common/pages/backups/modals/restore/networks/table/new/Table.vue +7 -0
- package/components/common/pages/hardwareHealth/HardwareHealth.vue +69 -148
- package/components/common/pages/hardwareHealth/HardwareHealthNew.vue +252 -0
- package/components/common/pages/hardwareHealth/HardwareHealthOld.vue +192 -0
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +204 -251
- package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +211 -0
- package/components/common/pages/hardwareHealth/historyTestimony/GraphOld.vue +212 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +96 -248
- package/components/common/pages/hardwareHealth/historyTestimony/tools/ToolsNew.vue +227 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/ToolsOld.vue +289 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +110 -112
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModalNew.vue +173 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModalOld.vue +168 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/NotificationNew.vue +22 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/Actions.vue +34 -55
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +145 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsOld.vue +81 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/{SaveOptionsModal.vue → saveOptionsModal/SaveOptionsModal.vue} +2 -2
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/Counters.vue +70 -49
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/CountersNew.vue +108 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/CountersOld.vue +93 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/Table.vue +25 -78
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/lib/models/interfaces.ts +13 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +58 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/lib/config/options.ts +19 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/lib/config/tableData.ts +73 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableNew/lib/utils/constructTable.ts +31 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/tableOld/TableOld.vue +103 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/{lib → tableOld/lib}/config/tableConfig.ts +3 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/Timespan.vue +50 -33
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +177 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +65 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/Metrics.vue +15 -9
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/MetricsNew.vue +121 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/metrics/MetricsOld.vue +22 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/lib/config/toolbar.ts +68 -5
- package/components/common/pages/hardwareHealth/indicators/Indicators.vue +96 -0
- package/components/common/pages/hardwareHealth/indicators/lib/models/interfaces.ts +5 -0
- package/components/common/pages/hardwareHealth/lib/config/status.ts +14 -0
- package/components/common/pages/hardwareHealth/lib/config/tabsPannel.ts +38 -0
- package/components/common/pages/hardwareHealth/lib/models/enums.ts +1 -1
- package/components/common/pages/hardwareHealth/tableView/new/New.vue +230 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/alertWarningTable.ts +99 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/historyTestimonyTable.ts +126 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/sensorTable.ts +164 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/storageSensorsTable.ts +88 -0
- package/components/common/pages/hardwareHealth/tableView/new/lib/config/systemLogTable.ts +74 -0
- package/components/common/pages/hardwareHealth/tableView/{TableView.vue → old/Old.vue} +16 -7
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/alertWarningTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/historyTestimonyTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/sensorTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/storageSensorTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/systemLogTable.ts +2 -2
- package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/config/tableKeys.ts +1 -1
- package/components/common/pages/hardwareHealth/tableView/{modal → old/modal}/SensorWarning.vue +3 -0
- package/components/common/pages/hardwareHealth/tooltip/Tooltip.vue +73 -0
- package/components/common/pages/licensing/listView/lib/config/list.ts +1 -1
- package/components/common/pages/scheduledTasks/lib/models/interfaces.ts +6 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/Frequency.vue +51 -42
- package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/AfterStartup.vue +20 -48
- package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/New.vue +73 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/afterStartup/Old.vue +65 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/end/End.vue +18 -69
- package/components/common/pages/scheduledTasks/modals/common/frequency/end/New.vue +104 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/end/Old.vue +112 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/interval/Interval.vue +22 -53
- package/components/common/pages/scheduledTasks/modals/common/frequency/interval/New.vue +79 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/interval/Old.vue +68 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/lib/utils.ts +1 -1
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/New.vue +170 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/Old.vue +234 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/On.vue +30 -168
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/lib/config/options.ts +17 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/New.vue +66 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/Old.vue +44 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/SelectWeek.vue +17 -28
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/selectWeek/lib/config/weekOptions.ts +20 -50
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/New.vue +83 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/Old.vue +77 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/startOn/StartOn.vue +20 -51
- package/components/common/pages/scheduledTasks/modals/common/taskForm/New.vue +338 -0
- package/components/common/pages/scheduledTasks/modals/common/{newTaskForm/NewTaskForm.vue → taskForm/Old.vue} +12 -69
- package/components/common/pages/scheduledTasks/modals/common/taskForm/TaskForm.vue +129 -0
- package/components/common/pages/scheduledTasks/table/Table.vue +27 -81
- package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +2 -2
- package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +47 -17
- package/components/common/pages/scheduledTasks/table/expandDetails/Old.vue +4 -9
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/HistoryRun.vue +16 -54
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/new/New.vue +146 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/new/lib/config/historyRunsTable.ts +161 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/old/Old.vue +68 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/{lib → old/lib}/config/historyRunsTable.ts +4 -4
- package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/{lib → old/lib}/config/tableKeys.ts +1 -1
- package/components/common/pages/scheduledTasks/table/expandDetails/lib/config/expandDetails.ts +7 -5
- package/components/common/pages/scheduledTasks/table/expandDetails/lib/models/interfaces.ts +8 -0
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +13 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +318 -0
- package/components/common/pages/scheduledTasks/table/new/lib/config/scheduledTasksTable.ts +192 -0
- package/components/common/pages/scheduledTasks/table/new/lib/models/enums.ts +14 -0
- package/components/common/pages/scheduledTasks/table/old/Old.vue +93 -0
- package/components/common/pages/scheduledTasks/table/{lib → old/lib}/config/scheduledTasksTable.ts +13 -9
- package/components/common/pages/scheduledTasks/table/{lib → old/lib}/config/tableKeys.ts +1 -1
- package/components/common/pages/shortcuts/Shortcuts.vue +1 -1
- package/components/common/pages/shortcuts/category/CategoryNew.vue +1 -0
- package/components/common/pages/shortcuts/category/CategoryOld.vue +1 -0
- package/components/common/pages/shortcuts/lib/models/interfaces.ts +2 -0
- 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/spiceConsole/SpiceConsole.vue +38 -0
- package/components/common/spiceConsole/keyboard/Keyboard.vue +5 -2
- package/components/common/split/horizontal/New.vue +6 -3
- package/components/common/split/horizontal/Old.vue +1 -1
- 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/tools/Actions.vue +8 -3
- package/components/common/tools/lib/models/interfaces.ts +2 -0
- package/components/common/tooltip/Help.vue +28 -28
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/clone/Clone.vue +78 -68
- package/components/common/vm/actions/clone/lib/config/steps.ts +8 -8
- package/components/common/vm/actions/clone/new/New.vue +71 -36
- package/components/common/vm/actions/clone/new/SkeletonName.vue +22 -0
- package/components/common/vm/actions/clone/old/Old.vue +10 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/New.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/Old.vue +6 -3
- 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/Cpu.vue +30 -9
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +7 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Old.vue +6 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocket.vue +29 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +3 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/lib/config/options.ts +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +12 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/New.vue +6 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Old.vue +6 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +6 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/Reservation.vue +9 -12
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +11 -3
- package/components/common/vm/actions/common/select/createType/lib/config/items.ts +1 -1
- package/components/common/vm/actions/common/select/options/New.vue +56 -48
- package/components/common/vm/actions/common/select/options/Old.vue +42 -24
- package/components/common/vm/actions/common/select/options/Options.vue +33 -2
- package/components/common/vm/actions/common/select/storage/Old.vue +0 -1
- package/components/common/vm/actions/common/select/storage/Storage.vue +2 -3
- package/components/common/vm/actions/common/select/storage/new/New.vue +13 -10
- 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/actions/consolidate/New.vue +1 -1
- package/components/common/vm/actions/consolidate/Old.vue +2 -2
- package/components/common/vm/actions/editSettings/EditSettings.vue +20 -1
- package/components/common/vm/actions/register/New.vue +55 -27
- package/components/common/vm/actions/register/lib/config/steps.ts +1 -1
- package/components/common/vm/actions/rename/New.vue +11 -1
- package/components/common/vm/actions/rename/Old.vue +1 -0
- package/components/common/vm/actions/rename/Rename.vue +6 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/vm/snapshots/lib/models/types.ts +1 -0
- package/components/common/vm/snapshots/modals/confirm/New.vue +3 -2
- package/components/common/vm/snapshots/modals/confirm/Old.vue +3 -3
- package/components/common/vm/snapshots/modals/confirm/lib/models/enums.ts +2 -0
- package/components/common/vm/snapshots/modals/lib/config/modalTexts.ts +1 -0
- package/components/common/wizards/common/steps/name/New.vue +56 -35
- 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/_vmfsVersion/lib/config/versionOptions.ts +2 -2
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +60 -42
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/AdvancedOptions.vue +7 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +53 -76
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/Old.vue +13 -61
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/lib/config/raidOptions.ts +35 -0
- package/components/common/wizards/network/add/Add.vue +99 -109
- package/components/common/wizards/network/add/AddNew.vue +50 -21
- package/components/common/wizards/network/add/AddOld.vue +2 -2
- package/components/common/wizards/network/add/lib/config/config.ts +1 -1
- package/components/common/wizards/network/add/lib/config/initialData.ts +23 -9
- package/components/common/wizards/network/add/lib/config/selectSwitch.ts +5 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +4 -2
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +8 -3
- package/components/common/wizards/network/add/mappers/mappers.ts +12 -5
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettings.vue +19 -13
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsNew.vue +10 -2
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +11 -4
- package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitch.vue +8 -26
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettings.vue +25 -16
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +84 -17
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +13 -9
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +29 -5
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +8 -3
- package/components/common/wizards/network/add/steps/readyComplete/ReadyComplete.vue +8 -6
- package/components/common/wizards/network/add/steps/readyComplete/ReadyCompleteNew.vue +16 -7
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +7 -8
- package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeNew.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +11 -12
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +89 -19
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +8 -9
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +8 -9
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +9 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +21 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectStandardSwitch.vue +18 -1
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +18 -1
- package/components/common/wizards/network/add/validations/common.ts +8 -3
- package/components/common/wizards/network/add/validations/connectionSettings.ts +2 -2
- package/components/common/wizards/network/add/validations/networkValidation.ts +2 -2
- package/components/common/wizards/network/add/validations/portProperties.ts +2 -2
- package/components/common/wizards/vm/migrate/New.vue +15 -4
- package/components/common/wizards/vm/migrate/Old.vue +1 -1
- 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/ComputeResource.vue +30 -9
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/Old.vue +0 -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/composables/useLocalStorage.ts +1 -1
- package/lib/models/interfaces.ts +3 -0
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/lib/utils/validation.ts +3 -2
- package/package.json +3 -3
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/WorkerProcess.js +411 -303
- package/public/spice-console/application/agent.js +18 -17
- package/public/spice-console/application/application.js +7 -6
- package/public/spice-console/lib/graphic.js +55 -11
- package/public/spice-console/process/mainprocess.js +10 -2
- package/public/spice-console/run.js +19 -8
- package/public/spice-console-minify/WorkerProcess.min.js +1 -1
- package/public/spice-console-minify/run.min.js +1 -1
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
- package/components/common/certificate/lib/config/tabsPannel.ts +0 -22
- package/components/common/pages/scheduledTasks/table/lib/config/schedulerStatus.ts +0 -4
- package/components/common/pages/scheduledTasks/table/lib/models/interfaces.ts +0 -11
- /package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/{Notification.vue → NotificationOld.vue} +0 -0
- /package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/counters/table/{lib → tableOld/lib}/models/types.ts +0 -0
- /package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/models/interfaces.ts +0 -0
- /package/components/common/pages/hardwareHealth/tableView/{lib → old/lib}/models/types.ts +0 -0
- /package/components/common/pages/scheduledTasks/modals/common/{newTaskForm → taskForm}/lib/models/interfaces.ts +0 -0
- /package/components/common/pages/scheduledTasks/modals/common/{newTaskForm → taskForm}/lib/utils.ts +0 -0
- /package/components/common/pages/scheduledTasks/table/expandDetails/historyRun/{lib → old/lib}/models/types.ts +0 -0
- /package/components/common/pages/scheduledTasks/table/{lib → old/lib}/models/types.ts +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="metrics-container">
|
|
3
|
+
<p class="title">
|
|
4
|
+
{{ localization.zabbix.metrics }} ({{ props.metricsItems?.length }})
|
|
5
|
+
</p>
|
|
6
|
+
<div class="metrics-items-block">
|
|
7
|
+
<div
|
|
8
|
+
v-for="item in props.metricsItems"
|
|
9
|
+
:key="item.value"
|
|
10
|
+
:class="[
|
|
11
|
+
'metric-item',
|
|
12
|
+
{ selected: selectedMetric === item.value },
|
|
13
|
+
]"
|
|
14
|
+
>
|
|
15
|
+
<ui-tooltip
|
|
16
|
+
:id="`tooltip-metric-${item.value}`"
|
|
17
|
+
:test-id="`tooltip-metric-${item.value}`"
|
|
18
|
+
size="md"
|
|
19
|
+
position="right"
|
|
20
|
+
position-by-tooltip="bottom"
|
|
21
|
+
show-type="variant-1"
|
|
22
|
+
>
|
|
23
|
+
<template #target>
|
|
24
|
+
<div
|
|
25
|
+
:id="`tooltip-metric-${item.value}`"
|
|
26
|
+
class="popped tooltip w-full"
|
|
27
|
+
>
|
|
28
|
+
<div
|
|
29
|
+
:data-id="item.value"
|
|
30
|
+
:title="item.text"
|
|
31
|
+
class="metric-name"
|
|
32
|
+
@click="selectedMetric = String(item.value)"
|
|
33
|
+
>
|
|
34
|
+
{{ item.text }}
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
<template #content>
|
|
39
|
+
<div>
|
|
40
|
+
{{ item.text }}
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
</ui-tooltip>
|
|
44
|
+
|
|
45
|
+
<div class="metric-name-border-line"></div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
<script setup lang="ts">
|
|
51
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
52
|
+
import type {UI_I_VerticalTabs} from "~/components/atoms/tabs/lib/models/interfaces";
|
|
53
|
+
|
|
54
|
+
const selectedMetric = defineModel<string>('selectedMetric', { required: true })
|
|
55
|
+
|
|
56
|
+
const props = defineProps<{
|
|
57
|
+
metricsItems: UI_I_VerticalTabs[]
|
|
58
|
+
}>()
|
|
59
|
+
|
|
60
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
61
|
+
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style scoped lang="scss">
|
|
65
|
+
.metrics-container {
|
|
66
|
+
margin-top: 6px;
|
|
67
|
+
margin-bottom: 5px;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
height: inherit;
|
|
71
|
+
padding: 12px;
|
|
72
|
+
border-radius: 8px;
|
|
73
|
+
background-color: var(--metrics-container-bg-color);
|
|
74
|
+
box-shadow: 0 1px 4px 0 #00000014;
|
|
75
|
+
|
|
76
|
+
.title {
|
|
77
|
+
font-size: 14px;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
color: var(--metrics-container-title-color);
|
|
80
|
+
margin-bottom: 16px;
|
|
81
|
+
}
|
|
82
|
+
.metrics-items-block {
|
|
83
|
+
overflow-y: auto;
|
|
84
|
+
height: inherit;
|
|
85
|
+
|
|
86
|
+
.metric-item {
|
|
87
|
+
&.selected {
|
|
88
|
+
.metric-name {
|
|
89
|
+
background-color: var(--metrics-container-selected-item-bg-color);
|
|
90
|
+
color: var(--metrics-container-selected-item-color);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&:not(.selected) {
|
|
94
|
+
.metric-name {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
|
|
97
|
+
&:hover {
|
|
98
|
+
background-color: var(--metrics-container-item-hover-bg-color);
|
|
99
|
+
color: var(--metrics-container-item-hover-color);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.metric-name {
|
|
104
|
+
border-radius: 6px;
|
|
105
|
+
padding: 8px 12px;
|
|
106
|
+
font-size: 13px;
|
|
107
|
+
color: var(--metrics-container-item-color);
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
text-overflow: ellipsis;
|
|
111
|
+
}
|
|
112
|
+
.metric-name-border-line {
|
|
113
|
+
margin-top: 8px;
|
|
114
|
+
margin-bottom: 8px;
|
|
115
|
+
height: 1px;
|
|
116
|
+
background-color: var(--metrics-container-item-border-line-color);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
</style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="chart-option-groups-container">
|
|
3
|
+
<span>{{ localization.inventoryMonitor.chartMetrics }}</span>
|
|
4
|
+
<atoms-tabs-vertical-tabs
|
|
5
|
+
v-model="selectedMetric"
|
|
6
|
+
:items="props.metricsItems"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
<script setup lang="ts">
|
|
11
|
+
|
|
12
|
+
const selectedMetric = defineModel<string>('selectedMetric', { required: true })
|
|
13
|
+
const props = defineProps<{
|
|
14
|
+
metricsItems: UI_I_OptionItem[]
|
|
15
|
+
}>()
|
|
16
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
17
|
+
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<style scoped lang="scss">
|
|
21
|
+
|
|
22
|
+
</style>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
2
3
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
4
|
|
|
4
5
|
export const periodFunc = (
|
|
@@ -69,14 +70,76 @@ export const viewFunc = (
|
|
|
69
70
|
return result
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
export const getCurrentOptionsStorageFunc = (
|
|
73
|
+
export const getCurrentOptionsStorageFunc = (
|
|
74
|
+
project: UI_T_Project
|
|
75
|
+
): string[] => {
|
|
76
|
+
const routeId = useRoute().params.id
|
|
77
|
+
const routeType = useRoute().params.type
|
|
78
|
+
const localStoragePrefix = project === 'sphere' ? getLocalStoragePrefix() : ''
|
|
79
|
+
|
|
73
80
|
const optionsNames = []
|
|
74
81
|
for (const key of Object.entries(localStorage)) {
|
|
75
|
-
if (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
if (
|
|
83
|
+
key[0].includes('ChartOptionsSensors') &&
|
|
84
|
+
key[0].includes(localStoragePrefix)
|
|
85
|
+
) {
|
|
86
|
+
const values = JSON.parse(key[1])
|
|
87
|
+
|
|
88
|
+
if (
|
|
89
|
+
values.value.routeType === routeType &&
|
|
90
|
+
values.value.nodeId === routeId
|
|
91
|
+
)
|
|
92
|
+
optionsNames.push(values.value.validShowName)
|
|
79
93
|
}
|
|
80
94
|
}
|
|
81
95
|
return optionsNames
|
|
82
96
|
}
|
|
97
|
+
|
|
98
|
+
export const removeSelectedOptionsFromStorageFunc = (
|
|
99
|
+
selectedName: string,
|
|
100
|
+
project: UI_T_Project
|
|
101
|
+
): void => {
|
|
102
|
+
const routeId = useRoute().params.id
|
|
103
|
+
const localStoragePrefix = project === 'sphere' ? getLocalStoragePrefix() : ''
|
|
104
|
+
|
|
105
|
+
for (const key of Object.entries(localStorage)) {
|
|
106
|
+
if (
|
|
107
|
+
key[0].includes('ChartOptionsSensors') &&
|
|
108
|
+
key[0].includes(localStoragePrefix)
|
|
109
|
+
) {
|
|
110
|
+
let values = JSON.parse(key[1])
|
|
111
|
+
|
|
112
|
+
if (
|
|
113
|
+
values.value.validShowName === selectedName &&
|
|
114
|
+
values.value.nodeId === routeId
|
|
115
|
+
)
|
|
116
|
+
window.localStorage.removeItem(key[0])
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const getSelectedOptionsValueFromStorageFunc = (
|
|
122
|
+
selectedName: string,
|
|
123
|
+
project: UI_T_Project
|
|
124
|
+
): any => {
|
|
125
|
+
const routeId = useRoute().params.id
|
|
126
|
+
const localStoragePrefix = project === 'sphere' ? getLocalStoragePrefix() : ''
|
|
127
|
+
|
|
128
|
+
let result = null
|
|
129
|
+
|
|
130
|
+
for (const key of Object.entries(localStorage)) {
|
|
131
|
+
if (
|
|
132
|
+
key[0].includes('ChartOptionsSensors') &&
|
|
133
|
+
key[0].includes(localStoragePrefix)
|
|
134
|
+
) {
|
|
135
|
+
let values = JSON.parse(key[1])
|
|
136
|
+
|
|
137
|
+
if (
|
|
138
|
+
values.value.validShowName === selectedName &&
|
|
139
|
+
values.value.nodeId === routeId
|
|
140
|
+
)
|
|
141
|
+
result = values.value
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return result
|
|
145
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex">
|
|
3
|
+
<div class="chip-item flex items-center pr-4">
|
|
4
|
+
<span v-if="!props.loading" class="chip-label mr-3"
|
|
5
|
+
>{{ localization.common.sensors }}:
|
|
6
|
+
</span>
|
|
7
|
+
<ui-skeleton-item v-else width="80" height="24" class="mr-3" />
|
|
8
|
+
<ui-chip
|
|
9
|
+
v-if="!props.loading"
|
|
10
|
+
size="lg"
|
|
11
|
+
:color="props.statusCounts.length > 0 ? 'primary' : 'default'"
|
|
12
|
+
class="mb-2"
|
|
13
|
+
test-id="hardware-health-sensor-chip"
|
|
14
|
+
rounded
|
|
15
|
+
>
|
|
16
|
+
{{ props.statusCounts.length }}
|
|
17
|
+
</ui-chip>
|
|
18
|
+
<ui-skeleton-item v-else width="32" height="24" />
|
|
19
|
+
</div>
|
|
20
|
+
<div class="chip-item flex items-center pr-4">
|
|
21
|
+
<span v-if="!props.loading" class="chip-label mr-3"
|
|
22
|
+
>{{ localization.common.alerts }}:
|
|
23
|
+
</span>
|
|
24
|
+
<ui-skeleton-item v-else width="80" height="24" class="mr-3" />
|
|
25
|
+
<ui-chip
|
|
26
|
+
v-if="!props.loading"
|
|
27
|
+
size="lg"
|
|
28
|
+
:color="props.statusCounts.alertStatus > 0 ? 'red' : 'default'"
|
|
29
|
+
class="mb-2"
|
|
30
|
+
test-id="hardware-health-sensor-chip"
|
|
31
|
+
rounded
|
|
32
|
+
>
|
|
33
|
+
{{ props.statusCounts.alertStatus }}
|
|
34
|
+
</ui-chip>
|
|
35
|
+
<ui-skeleton-item v-else width="32" height="24" />
|
|
36
|
+
</div>
|
|
37
|
+
<div class="chip-item flex items-center pr-4">
|
|
38
|
+
<span v-if="!props.loading" class="chip-label mr-3"
|
|
39
|
+
>{{ localization.common.warnings }}:
|
|
40
|
+
</span>
|
|
41
|
+
<ui-skeleton-item v-else width="80" height="24" class="mr-3" />
|
|
42
|
+
<ui-chip
|
|
43
|
+
v-if="!props.loading"
|
|
44
|
+
size="lg"
|
|
45
|
+
:color="props.statusCounts.warningStatus > 0 ? 'yellow' : 'default'"
|
|
46
|
+
class="mb-2"
|
|
47
|
+
test-id="hardware-health-sensor-chip"
|
|
48
|
+
rounded
|
|
49
|
+
>
|
|
50
|
+
{{ props.statusCounts.warningStatus }}
|
|
51
|
+
</ui-chip>
|
|
52
|
+
<ui-skeleton-item v-else width="32" height="24" />
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
<script setup lang="ts">
|
|
57
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
58
|
+
import type { UI_I_IndicatorAlerts } from '~/components/common/pages/hardwareHealth/indicators/lib/models/interfaces'
|
|
59
|
+
|
|
60
|
+
const props = defineProps<{
|
|
61
|
+
statusCounts: UI_I_IndicatorAlerts
|
|
62
|
+
loading: boolean
|
|
63
|
+
}>()
|
|
64
|
+
|
|
65
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<style>
|
|
69
|
+
:root {
|
|
70
|
+
--chip-line-bg: #e9ebeda3;
|
|
71
|
+
}
|
|
72
|
+
:root.dark-theme {
|
|
73
|
+
--chip-line-bg: #e9ebed1f;
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
76
|
+
<style scoped lang="scss">
|
|
77
|
+
.chip-item {
|
|
78
|
+
&:not(:first-child)::before {
|
|
79
|
+
content: '';
|
|
80
|
+
width: 1px;
|
|
81
|
+
height: 20px;
|
|
82
|
+
background: var(--chip-line-bg);
|
|
83
|
+
margin-right: 16px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:deep(.ui-chip) {
|
|
87
|
+
margin-bottom: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.chip-label {
|
|
92
|
+
font-size: 13px;
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
color: var(--title-form-first-color);
|
|
95
|
+
}
|
|
96
|
+
</style>
|
|
@@ -11,3 +11,17 @@ export const sensorsIconByStatus = [
|
|
|
11
11
|
'warning-outline',
|
|
12
12
|
'error-outline',
|
|
13
13
|
]
|
|
14
|
+
|
|
15
|
+
export const sensorsNewIconByStatus = [
|
|
16
|
+
'',
|
|
17
|
+
'status-check',
|
|
18
|
+
'warning-outline',
|
|
19
|
+
'error-outline'
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
export const sensorsChipColorByStatus = [
|
|
23
|
+
'default',
|
|
24
|
+
'green',
|
|
25
|
+
'yellow',
|
|
26
|
+
'red',
|
|
27
|
+
]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {UI_I_TabItem} from "~/node_modules/bfg-uikit/components/ui/tabs/models/interfaces";
|
|
1
2
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
3
|
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
3
4
|
|
|
@@ -37,3 +38,40 @@ export const hardwareHealthTabsFunc = (
|
|
|
37
38
|
},
|
|
38
39
|
]
|
|
39
40
|
}
|
|
41
|
+
|
|
42
|
+
export const hardwareHealthTabsNewFunc = (
|
|
43
|
+
localization: UI_I_Localization
|
|
44
|
+
): UI_I_TabItem[] => {
|
|
45
|
+
return [
|
|
46
|
+
{
|
|
47
|
+
name: localization.common.sensors,
|
|
48
|
+
value: 'sensor',
|
|
49
|
+
disabled: false,
|
|
50
|
+
testId: 'hardware-health-sensors',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: localization.common.storageSensors,
|
|
54
|
+
value: 'storage-sensor',
|
|
55
|
+
disabled: false,
|
|
56
|
+
testId: 'hardware-health-storage-sensor',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: localization.common.alertsAndWarnings,
|
|
60
|
+
value: 'alert-warning',
|
|
61
|
+
disabled: false,
|
|
62
|
+
testId: 'hardware-health-alert-warning',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: localization.common.systemEventLog,
|
|
66
|
+
value: 'system-log',
|
|
67
|
+
disabled: false,
|
|
68
|
+
testId: 'hardware-health-system-log',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: localization.common.historyTestimony,
|
|
72
|
+
value: 'history-testimony',
|
|
73
|
+
disabled: false,
|
|
74
|
+
testId: 'hardware-health-history-testimony',
|
|
75
|
+
},
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="hardware-health-table h-full pb-4">
|
|
3
|
+
<ui-data-table
|
|
4
|
+
:data="data"
|
|
5
|
+
:options="table[props.tableMode].options"
|
|
6
|
+
:loading="props.loading"
|
|
7
|
+
:total-pages="props.totalPages"
|
|
8
|
+
:total-items="props.totalItems"
|
|
9
|
+
:texts="texts"
|
|
10
|
+
:skeleton="tableSkeleton"
|
|
11
|
+
size="md"
|
|
12
|
+
test-id="hardware-health-table"
|
|
13
|
+
>
|
|
14
|
+
<template #skeleton-header>
|
|
15
|
+
<div class="flex gap-4 justify-between items-center">
|
|
16
|
+
<ui-skeleton-item width="80" height="20" />
|
|
17
|
+
<ui-skeleton-item width="112" height="36" border-radius="8" />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
<template v-if="props.tableMode !== 'history-testimony'" #insteadOfTitleActions>
|
|
21
|
+
<ui-button
|
|
22
|
+
test-id="vm-migrate-configure-button"
|
|
23
|
+
type="primary"
|
|
24
|
+
size="md"
|
|
25
|
+
@click="onUpdateTable"
|
|
26
|
+
>
|
|
27
|
+
<ui-icon name="reset" width="20" height="20" />
|
|
28
|
+
<span class="text-[14px] font-[500] ml-2">
|
|
29
|
+
{{ localization.common.refresh }}
|
|
30
|
+
</span>
|
|
31
|
+
</ui-button>
|
|
32
|
+
</template>
|
|
33
|
+
<template #icon="{ item, row }">
|
|
34
|
+
<div v-if="item.col === 'col1'" class="flex items-center">
|
|
35
|
+
<ui-chip
|
|
36
|
+
:label="item.data.statusText"
|
|
37
|
+
:color="item.data.statusColor"
|
|
38
|
+
rounded
|
|
39
|
+
size="md"
|
|
40
|
+
>
|
|
41
|
+
<ui-icon :name="item.data.statusIcon" width="14" height="14" />
|
|
42
|
+
<span class="font-[500] text-[12px]">{{
|
|
43
|
+
item.data.statusText
|
|
44
|
+
}}</span>
|
|
45
|
+
</ui-chip>
|
|
46
|
+
<div v-if="item.data.warning" class="ml-2 hardware-health-tooltip">
|
|
47
|
+
<common-pages-hardware-health-tooltip
|
|
48
|
+
:id="row"
|
|
49
|
+
:text="item.data.warning"
|
|
50
|
+
:title="localization.common.warning"
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div v-else class="flex gap-1 items-center">
|
|
55
|
+
<span :class="item.data.iconClassName" />
|
|
56
|
+
<span class="text-ellipsis">{{ item.text }}</span>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
<template #default-actions>
|
|
60
|
+
<span></span>
|
|
61
|
+
</template>
|
|
62
|
+
</ui-data-table>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<script lang="ts" setup>
|
|
67
|
+
import type {
|
|
68
|
+
UI_I_DataTable,
|
|
69
|
+
UI_I_DataTableBody,
|
|
70
|
+
UI_I_DataTableHeader,
|
|
71
|
+
UI_I_TableTexts
|
|
72
|
+
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
73
|
+
import type { UI_I_DataTableSkeleton } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
74
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
75
|
+
import * as sensorTable from '~/components/common/pages/hardwareHealth/tableView/new/lib/config/sensorTable'
|
|
76
|
+
import * as storageSensorsTable
|
|
77
|
+
from '~/components/common/pages/hardwareHealth/tableView/new/lib/config/storageSensorsTable'
|
|
78
|
+
import * as alertWarningTable from '~/components/common/pages/hardwareHealth/tableView/new/lib/config/alertWarningTable'
|
|
79
|
+
import * as systemLogTable from '~/components/common/pages/hardwareHealth/tableView/new/lib/config/systemLogTable'
|
|
80
|
+
import * as historyTestimonyTable from '~/components/common/pages/hardwareHealth/tableView/new/lib/config/historyTestimonyTable'
|
|
81
|
+
import type {
|
|
82
|
+
UI_I_HardwareHealthSensors
|
|
83
|
+
} from '~/components/common/pages/hardwareHealth/tableView/old/lib/models/interfaces'
|
|
84
|
+
import type { UI_T_HardwareHealthTabMode } from '~/components/common/pages/hardwareHealth/lib/models/types'
|
|
85
|
+
|
|
86
|
+
const props = defineProps<{
|
|
87
|
+
tableData: UI_I_HardwareHealthSensors[]
|
|
88
|
+
totalItems: number
|
|
89
|
+
totalPages: number
|
|
90
|
+
loading: boolean
|
|
91
|
+
tableMode: UI_T_HardwareHealthTabMode
|
|
92
|
+
selectedGraphView: string
|
|
93
|
+
}>()
|
|
94
|
+
|
|
95
|
+
const { $store }: any = useNuxtApp()
|
|
96
|
+
|
|
97
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
98
|
+
|
|
99
|
+
const table: any = {
|
|
100
|
+
sensor: sensorTable,
|
|
101
|
+
'storage-sensor': storageSensorsTable,
|
|
102
|
+
'alert-warning': alertWarningTable,
|
|
103
|
+
'system-log': systemLogTable,
|
|
104
|
+
'history-testimony': historyTestimonyTable,
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const tableTitle = computed<string>(() => {
|
|
108
|
+
switch (props.tableMode) {
|
|
109
|
+
case 'sensor':
|
|
110
|
+
return localization.value.common.sensors
|
|
111
|
+
case 'history-testimony':
|
|
112
|
+
return localization.value.common.sensors
|
|
113
|
+
case 'storage-sensor':
|
|
114
|
+
return localization.value.common.storageSensors
|
|
115
|
+
case 'alert-warning':
|
|
116
|
+
return localization.value.common.alertsAndWarnings
|
|
117
|
+
case 'system-log':
|
|
118
|
+
return localization.value.common.systemEvents
|
|
119
|
+
default:
|
|
120
|
+
return ''
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
watch(() => props.tableMode, (newValue) => {
|
|
124
|
+
switch (newValue) {
|
|
125
|
+
case 'sensor':
|
|
126
|
+
tableSkeleton.value.columnsCount = 6
|
|
127
|
+
break
|
|
128
|
+
case 'history-testimony':
|
|
129
|
+
tableSkeleton.value.columnsCount = 4
|
|
130
|
+
break
|
|
131
|
+
case 'storage-sensor':
|
|
132
|
+
tableSkeleton.value.columnsCount = 3
|
|
133
|
+
break
|
|
134
|
+
case 'alert-warning':
|
|
135
|
+
tableSkeleton.value.columnsCount = 3
|
|
136
|
+
break
|
|
137
|
+
case 'system-log':
|
|
138
|
+
tableSkeleton.value.columnsCount = 2
|
|
139
|
+
break
|
|
140
|
+
}
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
const texts = computed<UI_I_TableTexts>(() => ({
|
|
144
|
+
searchHere: localization.value.common.searchHere,
|
|
145
|
+
rowsPerPage: localization.value.common.rowsPerPage,
|
|
146
|
+
of: localization.value.common.of,
|
|
147
|
+
selected: localization.value.common.selected,
|
|
148
|
+
columns: localization.value.common.columns,
|
|
149
|
+
previous: localization.value.common.previous,
|
|
150
|
+
next: localization.value.common.next,
|
|
151
|
+
noItemsFound: localization.value.common.noItemsFound,
|
|
152
|
+
exportAll: localization.value.common.exportAll,
|
|
153
|
+
exportSelected: localization.value.common.exportSelected,
|
|
154
|
+
all: localization.value.common.all,
|
|
155
|
+
filter: localization.value.common.filter
|
|
156
|
+
}))
|
|
157
|
+
|
|
158
|
+
const tableSkeleton = ref<UI_I_DataTableSkeleton>({
|
|
159
|
+
withoutPagination: false,
|
|
160
|
+
columnsCount: 6
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
const data = computed<UI_I_DataTable>(() => ({
|
|
164
|
+
id: 'hardware-health-table',
|
|
165
|
+
header: tableHeadItems.value,
|
|
166
|
+
body: tableBodyItems.value,
|
|
167
|
+
title: `${tableTitle.value} (${props.totalItems})`
|
|
168
|
+
}))
|
|
169
|
+
|
|
170
|
+
const tableHeadItems = computed<UI_I_DataTableHeader[]>(() =>
|
|
171
|
+
table[props.tableMode].getHeaderDataFunc(localization.value)
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
const tableBodyItems = ref<UI_I_DataTableBody[]>([])
|
|
175
|
+
watch(
|
|
176
|
+
[() => props.tableData, localization],
|
|
177
|
+
([newValue]) => {
|
|
178
|
+
if (!newValue?.length) {
|
|
179
|
+
tableBodyItems.value = []
|
|
180
|
+
return
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
tableBodyItems.value = table[props.tableMode].getBodyDataFunc(
|
|
184
|
+
newValue,
|
|
185
|
+
localization.value
|
|
186
|
+
)
|
|
187
|
+
},
|
|
188
|
+
{ deep: true, immediate: true }
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
const onUpdateTable = () => {
|
|
193
|
+
$store.dispatch('main/A_GLOBAL_REFRESH', ['hardwareHealth'])
|
|
194
|
+
}
|
|
195
|
+
</script>
|
|
196
|
+
|
|
197
|
+
<style lang="scss" scoped>
|
|
198
|
+
.hardware-health-table {
|
|
199
|
+
.hardware-health-tooltip {
|
|
200
|
+
margin-top: 2px;
|
|
201
|
+
}
|
|
202
|
+
:deep(.table-title-actions-container) {
|
|
203
|
+
grid-column-gap: 16px;
|
|
204
|
+
}
|
|
205
|
+
:deep(.table-container) {
|
|
206
|
+
grid-template-rows: auto 1fr;
|
|
207
|
+
}
|
|
208
|
+
:deep(.row-size-md .ui-main-no-items-found) {
|
|
209
|
+
top: 50%;
|
|
210
|
+
}
|
|
211
|
+
:deep(.data-table-skeleton) {
|
|
212
|
+
height: 100%;
|
|
213
|
+
overflow: hidden;
|
|
214
|
+
}
|
|
215
|
+
:deep(.body.with-actions) {
|
|
216
|
+
height: calc(100% - 86px);
|
|
217
|
+
}
|
|
218
|
+
:deep(.body-row > .body-col:last-child) {
|
|
219
|
+
display: none !important;
|
|
220
|
+
}
|
|
221
|
+
:deep(.default-header > div:last-child) {
|
|
222
|
+
width: 112px !important;
|
|
223
|
+
height: 36px !important;
|
|
224
|
+
}
|
|
225
|
+
:deep(.default-header > div:first-child .skeleton-item) {
|
|
226
|
+
width: 80px !important;
|
|
227
|
+
height: 20px !important;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
</style>
|