bfg-common 1.0.0
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/.eslintrc.js +21 -0
- package/.idea/inspectionProfiles/Project_Default.xml +49 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +6 -0
- package/.idea/uikit.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.prettierrc +5 -0
- package/PROJECT_STRUCTURE.md +42 -0
- package/README.md +42 -0
- package/assets/img/bg1.jpeg +0 -0
- package/assets/img/bg2.jpeg +0 -0
- package/assets/img/icons/icon-cps-dark-mode.png +0 -0
- package/assets/img/icons/icon-cps.png +0 -0
- package/assets/img/icons/icon-datastore.svg +1 -0
- package/assets/img/icons/icon-hcs.svg +4 -0
- package/assets/img/icons/icon-life-m-dark.svg +4 -0
- package/assets/img/icons/icon-life-m-light.svg +4 -0
- package/assets/img/icons/icon-ro-dark.svg +2 -0
- package/assets/img/icons/icon-ro-light.svg +3 -0
- package/assets/img/icons/icons-sprite-dark-1.svg +1 -0
- package/assets/img/icons/icons-sprite-dark-2.svg +1 -0
- package/assets/img/icons/icons-sprite-dark-3.svg +1 -0
- package/assets/img/icons/icons-sprite-dark-4.svg +1 -0
- package/assets/img/icons/icons-sprite-dark-5.svg +1 -0
- package/assets/img/icons/icons-sprite-light-1.svg +1 -0
- package/assets/img/icons/icons-sprite-light-2.svg +1 -0
- package/assets/img/icons/icons-sprite-light-3.svg +1 -0
- package/assets/img/icons/icons-sprite-light-4.svg +1 -0
- package/assets/img/icons/icons-sprite-light-5.svg +1 -0
- package/assets/img/icons/info.svg +8 -0
- package/assets/img/icons/sprite.png +0 -0
- package/assets/img/icons/summary-cluster.svg +1 -0
- package/assets/img/icons/vc.svg +53 -0
- package/assets/img/icons/vm-ui-icons.png +0 -0
- package/assets/img/logo copy.svg +50 -0
- package/assets/img/logo.png +0 -0
- package/assets/img/logo.svg +51 -0
- package/assets/localization/local_be.json +1851 -0
- package/assets/localization/local_en.json +1851 -0
- package/assets/localization/local_hy.json +1851 -0
- package/assets/localization/local_kk.json +1851 -0
- package/assets/localization/local_ru.json +1851 -0
- package/assets/localization/local_zh.json +1851 -0
- package/assets/scss/clarity/clr-ui.min.css +8 -0
- package/assets/scss/common/animations.scss +28 -0
- package/assets/scss/common/global.scss +178 -0
- package/assets/scss/common/icons/icons-1.scss +188 -0
- package/assets/scss/common/icons/icons-2.scss +208 -0
- package/assets/scss/common/icons/icons-3.scss +176 -0
- package/assets/scss/common/icons/icons-4.scss +179 -0
- package/assets/scss/common/icons/icons-5.scss +53 -0
- package/assets/scss/common/icons/icons.scss +14 -0
- package/assets/scss/common/mixins.scss +39 -0
- package/assets/scss/common/normalize.scss +320 -0
- package/assets/scss/common/theme.scss +230 -0
- package/assets/scss/common/utilities.scss +18 -0
- package/assets/scss/common/variables.scss +43 -0
- package/assets/scss/main.scss +13 -0
- package/components/atoms/DiagramIcon.vue +287 -0
- package/components/atoms/TheIcon.vue +1687 -0
- package/components/atoms/TheIcon2.vue +318 -0
- package/components/atoms/alert/Alert.spec.ts +38 -0
- package/components/atoms/alert/Alert.vue +84 -0
- package/components/atoms/alert/Notification.spec.ts +34 -0
- package/components/atoms/alert/Notification.vue +167 -0
- package/components/atoms/alert/models/enums.ts +12 -0
- package/components/atoms/alert/models/interfaces.ts +27 -0
- package/components/atoms/alert/models/types.ts +7 -0
- package/components/atoms/autocomplete/Autocomplete.vue +236 -0
- package/components/atoms/collapse/CollapseNav.vue +153 -0
- package/components/atoms/collapse/CollapseNavItem.vue +190 -0
- package/components/atoms/collapse/models/interfaces.ts +9 -0
- package/components/atoms/combobox/Combobox.vue +131 -0
- package/components/atoms/datepicker/Datepicker.vue +612 -0
- package/components/atoms/datepicker/config/allShortMonths.ts +103 -0
- package/components/atoms/datepicker/config/datapicker.ts +43 -0
- package/components/atoms/datepicker/models/interfaces.ts +8 -0
- package/components/atoms/dropdown/Portlet.spec.ts +26 -0
- package/components/atoms/dropdown/Portlet.vue +111 -0
- package/components/atoms/dropdown/dropdown/Dropdown.vue +148 -0
- package/components/atoms/dropdown/dropdown/models/interfaces.ts +8 -0
- package/components/atoms/dropdown/tree/Tree.vue +134 -0
- package/components/atoms/dropdown/tree/models/interfaces.ts +9 -0
- package/components/atoms/input/Search.vue +16 -0
- package/components/atoms/list/SelectList.vue +62 -0
- package/components/atoms/list/SimpleList.vue +29 -0
- package/components/atoms/list/dragDropList/DragDropList.vue +139 -0
- package/components/atoms/list/dragDropList/config/events.ts +4 -0
- package/components/atoms/loader/BarLoader.vue +21 -0
- package/components/atoms/loader/Loader.vue +26 -0
- package/components/atoms/loader/PreLoader.vue +34 -0
- package/components/atoms/loader/Preloader.spec.ts +24 -0
- package/components/atoms/modal/Modal.spec.ts +55 -0
- package/components/atoms/modal/Modal.vue +241 -0
- package/components/atoms/modal/bySteps/BySteps.spec.ts +66 -0
- package/components/atoms/modal/bySteps/BySteps.vue +234 -0
- package/components/atoms/modal/byStepsSecond/ByStepsSecond.vue +174 -0
- package/components/atoms/models/interfaces.ts +11 -0
- package/components/atoms/nav/NavBar.spec.ts +34 -0
- package/components/atoms/nav/NavBar.vue +116 -0
- package/components/atoms/nav/VerticalNavBar.vue +89 -0
- package/components/atoms/nav/models/interfaces.ts +5 -0
- package/components/atoms/notificationBar/NotificationBar.vue +175 -0
- package/components/atoms/notificationBar/models/enums.ts +27 -0
- package/components/atoms/notificationBar/models/interfaces.ts +6 -0
- package/components/atoms/notificationBar/models/types.ts +1 -0
- package/components/atoms/perPage/PerPage.vue +52 -0
- package/components/atoms/popover/Popover.vue +48 -0
- package/components/atoms/popup/SimplePopup.vue +90 -0
- package/components/atoms/select/TheSelect.vue +175 -0
- package/components/atoms/select/models/interfaces.ts +4 -0
- package/components/atoms/stack/StackBlock.vue +171 -0
- package/components/atoms/stack/StackContent.vue +60 -0
- package/components/atoms/step/VerticalStep.spec.ts +68 -0
- package/components/atoms/step/VerticalStep.vue +104 -0
- package/components/atoms/step/models/verticalStepItem.ts +7 -0
- package/components/atoms/switch/Switch.vue +107 -0
- package/components/atoms/table/compact/Compact.vue +526 -0
- package/components/atoms/table/compact/models/interfaces.ts +11 -0
- package/components/atoms/table/dataGrid/DataGrid.spec.ts +61 -0
- package/components/atoms/table/dataGrid/DataGrid.vue +1283 -0
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -0
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -0
- package/components/atoms/table/dataGrid/DataGridPagination.vue +83 -0
- package/components/atoms/table/dataGrid/config/itemsPerPage.ts +20 -0
- package/components/atoms/table/dataGrid/models/interfaces.ts +24 -0
- package/components/atoms/table/dataGrid/models/types.ts +5 -0
- package/components/atoms/table/dataGrid/utils/constructDataTable.ts +33 -0
- package/components/atoms/table/info/Info.vue +60 -0
- package/components/atoms/table/info/models/interfaces.ts +6 -0
- package/components/atoms/table/simpleEvent/SimpleEvent.vue +98 -0
- package/components/atoms/table/simpleEvent/models/interfaces.ts +9 -0
- package/components/atoms/table/simpleInfo/SimpleInfo.vue +68 -0
- package/components/atoms/table/simpleInfo/models/interfaces.ts +4 -0
- package/components/atoms/table/simpleTable/SimpleTable.vue +291 -0
- package/components/atoms/table/simpleTable/models/interfaces.ts +10 -0
- package/components/atoms/tabs/Tabs.vue +189 -0
- package/components/atoms/tabs/VerticalTabs.vue +81 -0
- package/components/atoms/tabs/models/interfaces.ts +4 -0
- package/components/atoms/tabs/models/types.ts +1 -0
- package/components/atoms/tooltip/Models/interfaces.ts +4 -0
- package/components/atoms/tooltip/Signpost.vue +224 -0
- package/components/atoms/tooltip/Text.vue +39 -0
- package/components/atoms/tooltip/Tooltip.vue +57 -0
- package/components/atoms/tooltip/TooltipError.vue +113 -0
- package/components/common/accordion/Accordion.vue +176 -0
- package/components/common/accordion/Recursion.vue +195 -0
- package/components/common/accordion/models/interfaces.ts +14 -0
- package/components/common/adapterManager/AdapterManager.vue +715 -0
- package/components/common/adapterManager/AddAdapterModal.vue +464 -0
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -0
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -0
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -0
- package/components/common/adapterManager/config/index.ts +19 -0
- package/components/common/adapterManager/ui/NoSelectedAdapter.vue +39 -0
- package/components/common/adapterManager/ui/SecondTitle.vue +37 -0
- package/components/common/adapterManager/ui/actions/ActionsBar.vue +93 -0
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +28 -0
- package/components/common/adapterManager/ui/actions/MoveDownAdapterButton.vue +33 -0
- package/components/common/adapterManager/ui/actions/MoveUpAdapterButton.vue +33 -0
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +34 -0
- package/components/common/adapterManager/ui/actions/VerticalSeparator.vue +11 -0
- package/components/common/adapterManager/ui/table/Adapters.vue +91 -0
- package/components/common/adapterManager/ui/table/Header.vue +89 -0
- package/components/common/adapterManager/ui/table/Table.vue +167 -0
- package/components/common/addNetworking/AddNetworking.vue +982 -0
- package/components/common/addNetworking/Wizard.vue +286 -0
- package/components/common/addNetworking/config/addNetworkingSteps.ts +404 -0
- package/components/common/addNetworking/config/index.ts +46 -0
- package/components/common/addNetworking/config/initialData.ts +78 -0
- package/components/common/addNetworking/config/portPropertiesStep.ts +19 -0
- package/components/common/addNetworking/config/selectSwitch.ts +19 -0
- package/components/common/addNetworking/config/sendData.ts +87 -0
- package/components/common/addNetworking/config/temporaryData.ts +8 -0
- package/components/common/addNetworking/config/validation.ts +23 -0
- package/components/common/addNetworking/mappers/mappers.ts +166 -0
- package/components/common/addNetworking/modals/SelectNetwork.vue +149 -0
- package/components/common/addNetworking/modals/SelectStandardSwitch.vue +125 -0
- package/components/common/addNetworking/modals/SelectSwitch.vue +114 -0
- package/components/common/addNetworking/models/enums.ts +7 -0
- package/components/common/addNetworking/models/interfaces.ts +207 -0
- package/components/common/addNetworking/models/types.ts +5 -0
- package/components/common/addNetworking/steps/ConnectionSettings.vue +269 -0
- package/components/common/addNetworking/steps/CreateStandardSwitch.vue +91 -0
- package/components/common/addNetworking/steps/Header.vue +53 -0
- package/components/common/addNetworking/steps/IpFourSettings.vue +361 -0
- package/components/common/addNetworking/steps/PhysicalAdapter.vue +24 -0
- package/components/common/addNetworking/steps/PortProperties.vue +481 -0
- package/components/common/addNetworking/steps/ReadyComplete.vue +29 -0
- package/components/common/addNetworking/steps/SelectConnectionType.vue +106 -0
- package/components/common/addNetworking/steps/SelectedTargetDevice.vue +563 -0
- package/components/common/addNetworking/utils/index.ts +212 -0
- package/components/common/browse/Browse.vue +182 -0
- package/components/common/browse/blocks/Container.vue +102 -0
- package/components/common/browse/blocks/Title.vue +66 -0
- package/components/common/browse/blocks/contents/Files.vue +68 -0
- package/components/common/browse/blocks/info/Date.vue +21 -0
- package/components/common/browse/blocks/info/Size.vue +17 -0
- package/components/common/browse/blocks/info/Text.vue +17 -0
- package/components/common/browse/blocks/models/types.ts +1 -0
- package/components/common/browse/models/interfaces.ts +5 -0
- package/components/common/context/Context.spec.ts +20 -0
- package/components/common/context/Context.vue +97 -0
- package/components/common/context/ContextRecursion.spec.ts +55 -0
- package/components/common/context/ContextRecursion.vue +251 -0
- package/components/common/context/models/interfaces.ts +26 -0
- package/components/common/details/DetailsItem.vue +106 -0
- package/components/common/details/DetailsList.vue +23 -0
- package/components/common/details/model/interfaces.ts +9 -0
- package/components/common/diagramMain/Diagram.vue +186 -0
- package/components/common/diagramMain/DiagramMain.vue +979 -0
- package/components/common/diagramMain/Header.vue +160 -0
- package/components/common/diagramMain/Highlights.vue +102 -0
- package/components/common/diagramMain/adapter/Adapter.vue +105 -0
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -0
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -0
- package/components/common/diagramMain/adapter/Block.vue +41 -0
- package/components/common/diagramMain/adapter/Contents.vue +96 -0
- package/components/common/diagramMain/adapter/Lines.vue +52 -0
- package/components/common/diagramMain/adapter/SecondBlock.vue +42 -0
- package/components/common/diagramMain/config/index.ts +51 -0
- package/components/common/diagramMain/config/initial.ts +38 -0
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +236 -0
- package/components/common/diagramMain/modals/MigrateVmkernelAdapter.vue +535 -0
- package/components/common/diagramMain/modals/config/adapterModal.ts +110 -0
- package/components/common/diagramMain/modals/config/diagramConfig.ts +17 -0
- package/components/common/diagramMain/modals/config/index.ts +57 -0
- package/components/common/diagramMain/modals/config/initial.ts +195 -0
- package/components/common/diagramMain/modals/config/migrateVmkernelAdapterSteps.ts +81 -0
- package/components/common/diagramMain/modals/config/networkModal.ts +337 -0
- package/components/common/diagramMain/modals/config/portModal.ts +201 -0
- package/components/common/diagramMain/modals/config/switchModal.ts +172 -0
- package/components/common/diagramMain/modals/config/vCenterModal.ts +30 -0
- package/components/common/diagramMain/modals/config/validation.ts +3 -0
- package/components/common/diagramMain/modals/config/vmKernelAdapter.ts +90 -0
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +41 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +490 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +714 -0
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +211 -0
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +178 -0
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +161 -0
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +165 -0
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +392 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -0
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -0
- package/components/common/diagramMain/modals/steps/ConnectionSettings.vue +206 -0
- package/components/common/diagramMain/modals/steps/SelectVmkernelAdapter.vue +221 -0
- package/components/common/diagramMain/modals/steps/VmkernelAdapterReadyComplete.vue +50 -0
- package/components/common/diagramMain/modals/utils/index.ts +9 -0
- package/components/common/diagramMain/modals/viewSettings/Info.vue +94 -0
- package/components/common/diagramMain/modals/viewSettings/ViewSettings.vue +171 -0
- package/components/common/diagramMain/modals/viewSettings/ViewSettingsModal.vue +93 -0
- package/components/common/diagramMain/models/enums.ts +27 -0
- package/components/common/diagramMain/models/interfaces.ts +586 -0
- package/components/common/diagramMain/models/types.ts +9 -0
- package/components/common/diagramMain/network/Block.vue +55 -0
- package/components/common/diagramMain/network/Contents.vue +238 -0
- package/components/common/diagramMain/network/Lines.vue +65 -0
- package/components/common/diagramMain/network/Network.vue +117 -0
- package/components/common/diagramMain/network/NoNetwork.vue +47 -0
- package/components/common/diagramMain/network/SecondBlock.vue +51 -0
- package/components/common/diagramMain/port/Port.vue +301 -0
- package/components/common/diagramMain/port/Ports.vue +41 -0
- package/components/common/diagramMain/switch/Switch.vue +71 -0
- package/components/common/diagramMain/switch/SwitchSelected.vue +29 -0
- package/components/common/diagramMain/utils/utils.ts +218 -0
- package/components/common/feedback/Buttons.vue +232 -0
- package/components/common/feedback/Feedback.vue +236 -0
- package/components/common/feedback/Message.vue +468 -0
- package/components/common/feedback/VisitPortal.vue +54 -0
- package/components/common/feedback/config/drawingPanel.ts +31 -0
- package/components/common/feedback/config/feedbackTabs.ts +24 -0
- package/components/common/feedback/models/interfaces.ts +15 -0
- package/components/common/graph/Graph.vue +107 -0
- package/components/common/graph/utils/renderGraph.ts +389 -0
- package/components/common/headline/Headline.vue +32 -0
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +343 -0
- package/components/common/mainNavigationPanel/models/interfaces.ts +6 -0
- package/components/common/mainNavigationPanel/models/types.ts +1 -0
- package/components/common/modals/Rename.vue +165 -0
- package/components/common/modals/config/defaultForm.ts +18 -0
- package/components/common/modals/config/renameLabelWidth.ts +3 -0
- package/components/common/modals/models/interfaces.ts +5 -0
- package/components/common/monitor/advanced/Advanced.vue +149 -0
- package/components/common/monitor/advanced/GraphView.vue +200 -0
- package/components/common/monitor/advanced/models/interfaces.ts +6 -0
- package/components/common/monitor/advanced/models/types.ts +1 -0
- package/components/common/monitor/advanced/table/Table.vue +90 -0
- package/components/common/monitor/advanced/table/config/performanceDatatable.ts +116 -0
- package/components/common/monitor/advanced/table/models/interfaces.ts +12 -0
- package/components/common/monitor/advanced/table/models/types.ts +10 -0
- package/components/common/monitor/advanced/tools/Tools.vue +281 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +109 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/Notification.vue +33 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +79 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/config/optionsActions.ts +13 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +53 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +47 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +104 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/tableConfig.ts +73 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/interfaces.ts +15 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/types.ts +7 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +18 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +388 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/config/dateForm.ts +59 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +107 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/config/objectTable.ts +54 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/models/interfaces.ts +4 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/models/types.ts +1 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +32 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/config/optionsMetrics.ts +104 -0
- package/components/common/monitor/advanced/tools/config/advancedToolbar.ts +73 -0
- package/components/common/monitor/advanced/tools/models/interfaces.ts +4 -0
- package/components/common/monitor/config/getValidDateByOption.ts +14 -0
- package/components/common/monitor/models/interfaces.ts +16 -0
- package/components/common/monitor/overview/Overview.vue +412 -0
- package/components/common/monitor/overview/filters/Filters.vue +210 -0
- package/components/common/monitor/overview/filters/config/filterOptions.ts +56 -0
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +220 -0
- package/components/common/monitor/overview/filters/customIntervalModal/config/dateChecker.ts +35 -0
- package/components/common/monitor/overview/filters/models/interfaces.ts +6 -0
- package/components/common/monitor/overview/filters/models/types.ts +3 -0
- package/components/common/perPage/PerPage.vue +51 -0
- package/components/common/recursionTree/RecursionTree.vue +201 -0
- package/components/common/recursionTree/models/interfaces.ts +19 -0
- package/components/common/resource/models/interfaces.ts +9 -0
- package/components/common/resource/models/types.ts +1 -0
- package/components/common/resource/progressBlock/ProgressBlock.vue +105 -0
- package/components/common/resource/simple/Simple.vue +58 -0
- package/components/common/resource/simple/models/enums.ts +5 -0
- package/components/common/resource/utils.ts +33 -0
- package/components/common/select/button/ButtonDropdown.vue +100 -0
- package/components/common/select/button/models/interfaces.ts +6 -0
- package/components/common/select/radio/RadioGroup.vue +71 -0
- package/components/common/select/radio/models/interfaces.ts +10 -0
- package/components/common/spiceConsole/Drawer.vue +233 -0
- package/components/common/spiceConsole/SpiceConsole.vue +87 -0
- package/components/common/spiceConsole/keyboard/Keyboard.vue +402 -0
- package/components/common/spiceConsole/keyboard/config/keyboardRows.ts +891 -0
- package/components/common/spiceConsole/keyboard/models/interfaces.ts +17 -0
- package/components/common/spiceConsole/models/types.ts +1 -0
- package/components/common/split/horizontal/Horizontal.vue +306 -0
- package/components/common/split/horizontal/models/interfaces.ts +5 -0
- package/components/common/split/vertical/Vertical.vue +213 -0
- package/components/common/split/vertical/models/interfaces.ts +3 -0
- package/components/common/tools/Actions.vue +141 -0
- package/components/common/tools/models/interfaces.ts +6 -0
- package/components/common/vm/actions/add/Add.vue +654 -0
- package/components/common/vm/actions/add/FolderTreeView.vue +83 -0
- package/components/common/vm/actions/add/config/capabilities.ts +670 -0
- package/components/common/vm/actions/add/customizeHardware/CustomizeHardware.vue +236 -0
- package/components/common/vm/actions/add/customizeHardware/config/navItems.ts +19 -0
- package/components/common/vm/actions/add/customizeHardware/models/interfaces.ts +7 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/VirtualHardware.vue +611 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/browseView/BrowseView.vue +203 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/browseView/models/interfaces.ts +8 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/bus/Bus.vue +86 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/bus/config/options.ts +13 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +223 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/config/fileTypes.ts +9 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/config/options.ts +11 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +55 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/models/types.ts +1 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/config/binaryOptions.ts +12 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/config/dropdownItems.ts +52 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +97 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +368 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +49 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Hv.vue +93 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Iommu.vue +52 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/MaxCpu.vue +99 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Pc.vue +54 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Sa.vue +102 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/config/cpuOptions.ts +19 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/shares/Shares.vue +151 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/shares/config/options.ts +28 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/tooltip/Tooltip.vue +58 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +210 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/config/options.ts +28 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +278 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/MemoryHotPlug.vue +53 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +23 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/models/interfaces.ts +125 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/models/types.ts +4 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/DiskFile.vue +24 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/Location.vue +171 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/MaximumSize.vue +27 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +447 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +80 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/cache/config/options.ts +7 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +147 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/limitIops/config/options.ts +28 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/mode/Mode.vue +87 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/mode/config/options.ts +18 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/provisioning/Provisioning.vue +87 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/provisioning/config/options.ts +15 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/sharing/Sharing.vue +85 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/sharing/config/options.ts +12 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/Location.vue +141 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +252 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/adapterType/AdapterType.vue +86 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/adapterType/config/options.ts +9 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +140 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/macAddress/config/options.ts +11 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +157 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/config/options.ts +7 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +44 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +49 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/config/options.ts +10 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +27 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +41 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelection.vue +56 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +65 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newUsbController/config/options.ts +6 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/other/InputDevices.vue +21 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/other/Other.vue +27 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +228 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/config/options.ts +33 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/Graphics.vue +45 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/TotalVideoMemory.vue +120 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +169 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/config/options.ts +11 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/model/Model.vue +57 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/model/config/options.ts +10 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +82 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/numberDisplays/config/options.ts +14 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/Vmoptions.vue +141 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/BootOptions.vue +110 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/Menu.vue +45 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/Secure.vue +45 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +50 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/delay/config/config.ts +14 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +83 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/firmware/config/config.ts +11 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/Order.vue +195 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/models/interfaces.ts +8 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +114 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/models/interfaces.ts +34 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +45 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/FileTransfer.vue +49 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/FolderSharing.vue +50 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +49 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +49 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +226 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +82 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/config/config.ts +14 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +82 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/config/config.ts +12 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +50 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/config/config.ts +6 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/MouseMode.vue +52 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/config/config.ts +11 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +134 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/password/models/interfaces.ts +5 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/password/utils.ts +12 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/SharePolicy.vue +52 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/config/config.ts +11 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +82 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/config/config.ts +12 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +82 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/type/config/config.ts +7 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +56 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/config/config.ts +14 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +82 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/config/config.ts +12 -0
- package/components/common/vm/actions/add/customizeHardware/vmoptions/tools/Tools.vue +63 -0
- package/components/common/vm/actions/add/models/enums.ts +89 -0
- package/components/common/vm/actions/add/models/interfaces.ts +125 -0
- package/components/common/vm/actions/add/models/types.ts +63 -0
- package/components/common/vm/actions/add/readyToComplete/ReadyToComplete.vue +15 -0
- package/components/common/vm/actions/add/select/compatibility/Compatibility.vue +151 -0
- package/components/common/vm/actions/add/select/computeResource/ComputeResource.spec.ts +479 -0
- package/components/common/vm/actions/add/select/computeResource/ComputeResource.vue +158 -0
- package/components/common/vm/actions/add/select/computeResource/TreeView.vue +126 -0
- package/components/common/vm/actions/add/select/createType/CreateType.vue +61 -0
- package/components/common/vm/actions/add/select/createType/config/items.ts +26 -0
- package/components/common/vm/actions/add/select/models/interfaces.ts +32 -0
- package/components/common/vm/actions/add/select/models/types.ts +44 -0
- package/components/common/vm/actions/add/select/name/Name.vue +163 -0
- package/components/common/vm/actions/add/select/os/os.vue +221 -0
- package/components/common/vm/actions/add/select/storage/Storage.vue +176 -0
- package/components/common/vm/actions/add/select/storage/config/config.ts +148 -0
- package/components/common/vm/actions/add/select/storage/models/types.ts +15 -0
- package/components/common/vm/actions/add/utils.ts +118 -0
- package/components/common/vm/actions/editSettings/EditSettings.vue +312 -0
- package/components/common/vm/actions/editSettings/models/types.ts +23 -0
- package/components/common/vm/actions/editSettings/utils.ts +48 -0
- package/components/common/vm/actions/models/interfaces.ts +6 -0
- package/components/common/vm/actions/models/types.ts +11 -0
- package/components/common/vm/actions/utils.ts +221 -0
- package/components/common/wizards/datastore/add/Add.vue +382 -0
- package/components/common/wizards/datastore/add/config/stepItems.ts +160 -0
- package/components/common/wizards/datastore/add/local/Local.vue +67 -0
- package/components/common/wizards/datastore/add/local/createName/CreateName.vue +159 -0
- package/components/common/wizards/datastore/add/local/createName/config/defaultForm.ts +15 -0
- package/components/common/wizards/datastore/add/models/interfaces.ts +35 -0
- package/components/common/wizards/datastore/add/models/types.ts +14 -0
- package/components/common/wizards/datastore/add/nfs/Nfs.vue +91 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +95 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/config/tabsPannel.ts +24 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/models/interfaces.ts +9 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/models/types.ts +5 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/TablesView.vue +141 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/config/compatibleTable.ts +54 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/config/hostsTableItems.ts +75 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/config/incompatibleTable.ts +68 -0
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/config/tableKeys.ts +15 -0
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -0
- package/components/common/wizards/datastore/add/nfs/configuration/config/defaultForm.ts +33 -0
- package/components/common/wizards/datastore/add/nfs/configuration/models/interfaces.ts +12 -0
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/DeletePopover.vue +97 -0
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -0
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/config/serversListConfig.ts +41 -0
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/config/tableKeys.ts +3 -0
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/models/interfaces.ts +11 -0
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/models/types.ts +1 -0
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -0
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/config/radioOptions.ts +24 -0
- package/components/common/wizards/datastore/add/nfs/version/Version.vue +70 -0
- package/components/common/wizards/datastore/add/nfs/version/config/versionOptions.ts +20 -0
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +77 -0
- package/components/common/wizards/datastore/add/readyComplete/config/propertiesDetails.ts +165 -0
- package/components/common/wizards/datastore/add/readyComplete/models/interfaces.ts +4 -0
- package/components/common/wizards/datastore/add/sharedStorm/SharedStorm.vue +85 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +447 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/config/defaultForm.ts +18 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/config/selectOptions.ts +14 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/config/hostsTable.ts +87 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/config/tableKeys.ts +11 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/models/interfaces.ts +55 -0
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/models/types.ts +14 -0
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -0
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/config/selectOptions.ts +46 -0
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/graphicTooltip/graphicTooltip.vue +64 -0
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/sizeGraphic/sizeGraphic.vue +225 -0
- package/components/common/wizards/datastore/add/sharedStorm/version/Version.vue +70 -0
- package/components/common/wizards/datastore/add/sharedStorm/version/config/versionOptions.ts +19 -0
- package/components/common/wizards/datastore/add/types/Types.vue +79 -0
- package/components/common/wizards/datastore/add/types/config/typeOptions.ts +31 -0
- package/components/common/wizards/datastore/add/utils.ts +69 -0
- package/components/models/interfaces.ts +14 -0
- package/composables/deepCopy.ts +21 -0
- package/composables/useDiff.ts +15 -0
- package/composables/useLocal.ts +36 -0
- package/composables/useLocalStorage.ts +45 -0
- package/composables/useThrottle.ts +32 -0
- package/composables/useUniqueId.ts +5 -0
- package/config/regExp.ts +13 -0
- package/eslint/index.js +15 -0
- package/eslint/no-import-type.js +17 -0
- package/eslint/no-invalid-type-prefix.js +32 -0
- package/minify.js +51 -0
- package/models/composables/useMyFetch/interfaces.ts +4 -0
- package/models/composables/useMyFetch/types.ts +1 -0
- package/models/enums.ts +21 -0
- package/models/interfaces.ts +29 -0
- package/models/plugins/date/interfaces.ts +5 -0
- package/models/plugins/date/types.ts +1 -0
- package/models/plugins/validation/interfaces.ts +21 -0
- package/models/plugins/validation/types.ts +1 -0
- package/models/store/host/interfaces.ts +38 -0
- package/models/store/interfaces.ts +47 -0
- package/models/store/network/interfaces.ts +13 -0
- package/models/store/storage/interfaces.ts +32 -0
- package/models/store/vm/interfaces.ts +87 -0
- package/models/types.ts +6 -0
- package/nuxt.config.ts +8 -0
- package/package.json +39 -0
- package/plugins/binary.ts +122 -0
- package/plugins/date.ts +179 -0
- package/plugins/recursion.ts +199 -0
- package/plugins/spice-console/spice.console.ts +128 -0
- package/plugins/text.ts +48 -0
- package/plugins/validation.ts +172 -0
- package/public/favicon.ico +0 -0
- package/public/spice-console/application/WorkerProcess.js +3350 -0
- package/public/spice-console/application/WorkerProcess_back.js +3144 -0
- package/public/spice-console/application/WorkerProcess_meta.js +3103 -0
- package/public/spice-console/application/WorkerProcess_reverse.js +3214 -0
- package/public/spice-console/application/agent.js +175 -0
- package/public/spice-console/application/application.js +641 -0
- package/public/spice-console/application/checkActivity.js +50 -0
- package/public/spice-console/application/clientgui.js +842 -0
- package/public/spice-console/application/clipboard/clipboarddataparser.js +92 -0
- package/public/spice-console/application/clipboard/local/localClipboard.js +110 -0
- package/public/spice-console/application/clipboard.js +82 -0
- package/public/spice-console/application/codec.js +257 -0
- package/public/spice-console/application/imagecache.js +81 -0
- package/public/spice-console/application/inputmanager.js +270 -0
- package/public/spice-console/application/packetfactory.js +202 -0
- package/public/spice-console/application/packetfilter.js +103 -0
- package/public/spice-console/application/packetprocess.js +75 -0
- package/public/spice-console/application/rasteroperation.js +118 -0
- package/public/spice-console/application/spiceconnection.js +197 -0
- package/public/spice-console/application/stream.js +67 -0
- package/public/spice-console/application/virtualmouse.js +109 -0
- package/public/spice-console/keymaps/keyevent.js +36 -0
- package/public/spice-console/keymaps/keymap.js +229 -0
- package/public/spice-console/keymaps/keymapes.js +375 -0
- package/public/spice-console/keymaps/keymapesObj.js +317 -0
- package/public/spice-console/keymaps/keymapus.js +317 -0
- package/public/spice-console/keymaps/scanCodeObjModifier.js +65 -0
- package/public/spice-console/keymaps/scanCodeObjProvider.js +60 -0
- package/public/spice-console/lib/AsyncConsumer.js +204 -0
- package/public/spice-console/lib/AsyncWorker.js +60 -0
- package/public/spice-console/lib/CollisionDetector.js +27 -0
- package/public/spice-console/lib/DataLogger.js +197 -0
- package/public/spice-console/lib/GenericObjectPool.js +152 -0
- package/public/spice-console/lib/GlobalPool.js +114 -0
- package/public/spice-console/lib/ImageUncompressor.js +138 -0
- package/public/spice-console/lib/IntegrationBenchmark.js +64 -0
- package/public/spice-console/lib/PacketWorkerIdentifier.js +107 -0
- package/public/spice-console/lib/SyncAsyncHandler.js +46 -0
- package/public/spice-console/lib/base64.js +298 -0
- package/public/spice-console/lib/biginteger.js +1640 -0
- package/public/spice-console/lib/bowser.js +276 -0
- package/public/spice-console/lib/decoder/dixie.js +7930 -0
- package/public/spice-console/lib/decoder/jmuxer.js +2815 -0
- package/public/spice-console/lib/displayRouter.js +83 -0
- package/public/spice-console/lib/encrypt.js +191 -0
- package/public/spice-console/lib/flipper.js +39 -0
- package/public/spice-console/lib/graphic.js +1230 -0
- package/public/spice-console/lib/graphicdebug.js +223 -0
- package/public/spice-console/lib/images/bitmap.js +194 -0
- package/public/spice-console/lib/images/jsquic_family.js +84 -0
- package/public/spice-console/lib/images/jsquic_rgba.js +343 -0
- package/public/spice-console/lib/images/jsquic_uncompress.js +530 -0
- package/public/spice-console/lib/images/lz.js +717 -0
- package/public/spice-console/lib/images/png.js +275 -0
- package/public/spice-console/lib/jgestures.min.js +44 -0
- package/public/spice-console/lib/jquery-2.0.3.js +8829 -0
- package/public/spice-console/lib/jquery-mousewheel.js +84 -0
- package/public/spice-console/lib/jquery-visibility.min.js +2 -0
- package/public/spice-console/lib/jsbn.js +578 -0
- package/public/spice-console/lib/jsbn2.js +675 -0
- package/public/spice-console/lib/lodash.4.0.0.min.js +136 -0
- package/public/spice-console/lib/modernizr.js +39 -0
- package/public/spice-console/lib/pixastic.js +3244 -0
- package/public/spice-console/lib/prettyprint.js +794 -0
- package/public/spice-console/lib/prng4.js +64 -0
- package/public/spice-console/lib/queue.js +259 -0
- package/public/spice-console/lib/rasterEngine.js +907 -0
- package/public/spice-console/lib/rng.js +87 -0
- package/public/spice-console/lib/runqueue.js +103 -0
- package/public/spice-console/lib/sha1.js +124 -0
- package/public/spice-console/lib/stuckkeyshandler.js +122 -0
- package/public/spice-console/lib/timelapsedetector.js +62 -0
- package/public/spice-console/lib/utils.js +327 -0
- package/public/spice-console/lib/virtualjoystick.js +370 -0
- package/public/spice-console/network/busconnection.js +195 -0
- package/public/spice-console/network/clusternodechooser.js +49 -0
- package/public/spice-console/network/connectioncontrol.js +60 -0
- package/public/spice-console/network/packetcontroller.js +62 -0
- package/public/spice-console/network/packetextractor.js +73 -0
- package/public/spice-console/network/packetlinkfactory.js +64 -0
- package/public/spice-console/network/packetreassembler.js +77 -0
- package/public/spice-console/network/reassemblerfactory.js +39 -0
- package/public/spice-console/network/sizedefiner.js +86 -0
- package/public/spice-console/network/socket.js +120 -0
- package/public/spice-console/network/socketqueue.js +95 -0
- package/public/spice-console/network/spicechannel.js +310 -0
- package/public/spice-console/network/websocketwrapper.js +75 -0
- package/public/spice-console/process/busprocess.js +309 -0
- package/public/spice-console/process/cursorprocess.js +110 -0
- package/public/spice-console/process/displaypreprocess.js +152 -0
- package/public/spice-console/process/displayprocess.js +210 -0
- package/public/spice-console/process/inputprocess.js +204 -0
- package/public/spice-console/process/mainprocess.js +78 -0
- package/public/spice-console/process/playbackprocess.js +233 -0
- package/public/spice-console/resources/magnifier.png +0 -0
- package/public/spice-console/resources/mouse.png +0 -0
- package/public/spice-console/resources/mouse_cursor.gif +0 -0
- package/public/spice-console/resources/mouse_cursor.png +0 -0
- package/public/spice-console/run.js +181 -0
- package/public/spice-console/spiceobjects/generated/protocol.js +537 -0
- package/public/spice-console/spiceobjects/spiceobjects.js +3474 -0
- package/public/spice-console/swcanvas/swcanvas.js +82 -0
- package/public/spice-console/tools/generate.php +269 -0
- package/public/spice-console/tools/generateKeyboardLayout.php +63 -0
- package/public/spice-console/tools/generateSpiceObject.php +81 -0
- package/public/spice-console-minify/application/WorkerProcess.min.js +1 -0
- package/public/spice-console-minify/application/WorkerProcess_back.min.js +1 -0
- package/public/spice-console-minify/application/WorkerProcess_meta.min.js +1 -0
- package/public/spice-console-minify/application/WorkerProcess_reverse.min.js +1 -0
- package/public/spice-console-minify/application/agent.min.js +1 -0
- package/public/spice-console-minify/application/application.min.js +1 -0
- package/public/spice-console-minify/application/checkActivity.min.js +1 -0
- package/public/spice-console-minify/application/clientgui.min.js +1 -0
- package/public/spice-console-minify/application/clipboard/clipboarddataparser.min.js +1 -0
- package/public/spice-console-minify/application/clipboard/local/localClipboard.min.js +1 -0
- package/public/spice-console-minify/application/clipboard.min.js +1 -0
- package/public/spice-console-minify/application/codec.min.js +1 -0
- package/public/spice-console-minify/application/imagecache.min.js +1 -0
- package/public/spice-console-minify/application/inputmanager.min.js +1 -0
- package/public/spice-console-minify/application/packetfactory.min.js +1 -0
- package/public/spice-console-minify/application/packetfilter.min.js +1 -0
- package/public/spice-console-minify/application/packetprocess.min.js +1 -0
- package/public/spice-console-minify/application/rasteroperation.min.js +1 -0
- package/public/spice-console-minify/application/spiceconnection.min.js +1 -0
- package/public/spice-console-minify/application/stream.min.js +1 -0
- package/public/spice-console-minify/application/virtualmouse.min.js +1 -0
- package/public/spice-console-minify/keymaps/keyevent.min.js +1 -0
- package/public/spice-console-minify/keymaps/keymap.min.js +1 -0
- package/public/spice-console-minify/keymaps/keymapes.min.js +1 -0
- package/public/spice-console-minify/keymaps/keymapesObj.min.js +1 -0
- package/public/spice-console-minify/keymaps/keymapus.min.js +1 -0
- package/public/spice-console-minify/keymaps/scanCodeObjModifier.min.js +1 -0
- package/public/spice-console-minify/keymaps/scanCodeObjProvider.min.js +1 -0
- package/public/spice-console-minify/lib/AsyncConsumer.min.js +1 -0
- package/public/spice-console-minify/lib/AsyncWorker.min.js +1 -0
- package/public/spice-console-minify/lib/CollisionDetector.min.js +1 -0
- package/public/spice-console-minify/lib/DataLogger.min.js +1 -0
- package/public/spice-console-minify/lib/GenericObjectPool.min.js +1 -0
- package/public/spice-console-minify/lib/GlobalPool.min.js +1 -0
- package/public/spice-console-minify/lib/ImageUncompressor.min.js +1 -0
- package/public/spice-console-minify/lib/IntegrationBenchmark.min.js +1 -0
- package/public/spice-console-minify/lib/PacketWorkerIdentifier.min.js +1 -0
- package/public/spice-console-minify/lib/SyncAsyncHandler.min.js +1 -0
- package/public/spice-console-minify/lib/base64.min.js +1 -0
- package/public/spice-console-minify/lib/biginteger.min.js +1 -0
- package/public/spice-console-minify/lib/bowser.min.js +1 -0
- package/public/spice-console-minify/lib/decoder/dixie.min.js +5 -0
- package/public/spice-console-minify/lib/decoder/jmuxer.min.js +1 -0
- package/public/spice-console-minify/lib/displayRouter.min.js +1 -0
- package/public/spice-console-minify/lib/encrypt.min.js +1 -0
- package/public/spice-console-minify/lib/flipper.min.js +1 -0
- package/public/spice-console-minify/lib/graphic.min.js +1 -0
- package/public/spice-console-minify/lib/graphicdebug.min.js +1 -0
- package/public/spice-console-minify/lib/images/bitmap.min.js +1 -0
- package/public/spice-console-minify/lib/images/jsquic_family.min.js +1 -0
- package/public/spice-console-minify/lib/images/jsquic_rgba.min.js +1 -0
- package/public/spice-console-minify/lib/images/jsquic_uncompress.min.js +1 -0
- package/public/spice-console-minify/lib/images/lz.min.js +1 -0
- package/public/spice-console-minify/lib/images/png.min.js +1 -0
- package/public/spice-console-minify/lib/jgestures.min.js +25 -0
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +25 -0
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +12 -0
- package/public/spice-console-minify/lib/jquery-visibility.min.js +2 -0
- package/public/spice-console-minify/lib/jsbn.min.js +1 -0
- package/public/spice-console-minify/lib/jsbn2.min.js +1 -0
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +6 -0
- package/public/spice-console-minify/lib/modernizr.min.js +1 -0
- package/public/spice-console-minify/lib/pixastic.min.js +1 -0
- package/public/spice-console-minify/lib/prettyprint.min.js +1 -0
- package/public/spice-console-minify/lib/prng4.min.js +1 -0
- package/public/spice-console-minify/lib/queue.min.js +1 -0
- package/public/spice-console-minify/lib/rasterEngine.min.js +1 -0
- package/public/spice-console-minify/lib/rng.min.js +1 -0
- package/public/spice-console-minify/lib/runqueue.min.js +1 -0
- package/public/spice-console-minify/lib/sha1.min.js +1 -0
- package/public/spice-console-minify/lib/stuckkeyshandler.min.js +1 -0
- package/public/spice-console-minify/lib/timelapsedetector.min.js +1 -0
- package/public/spice-console-minify/lib/utils.min.js +1 -0
- package/public/spice-console-minify/lib/virtualjoystick.min.js +1 -0
- package/public/spice-console-minify/network/busconnection.min.js +1 -0
- package/public/spice-console-minify/network/clusternodechooser.min.js +1 -0
- package/public/spice-console-minify/network/connectioncontrol.min.js +1 -0
- package/public/spice-console-minify/network/packetcontroller.min.js +1 -0
- package/public/spice-console-minify/network/packetextractor.min.js +1 -0
- package/public/spice-console-minify/network/packetlinkfactory.min.js +1 -0
- package/public/spice-console-minify/network/packetreassembler.min.js +1 -0
- package/public/spice-console-minify/network/reassemblerfactory.min.js +1 -0
- package/public/spice-console-minify/network/sizedefiner.min.js +1 -0
- package/public/spice-console-minify/network/socket.min.js +1 -0
- package/public/spice-console-minify/network/socketqueue.min.js +1 -0
- package/public/spice-console-minify/network/spicechannel.min.js +1 -0
- package/public/spice-console-minify/network/websocketwrapper.min.js +1 -0
- package/public/spice-console-minify/process/busprocess.min.js +1 -0
- package/public/spice-console-minify/process/cursorprocess.min.js +1 -0
- package/public/spice-console-minify/process/displaypreprocess.min.js +1 -0
- package/public/spice-console-minify/process/displayprocess.min.js +1 -0
- package/public/spice-console-minify/process/inputprocess.min.js +1 -0
- package/public/spice-console-minify/process/mainprocess.min.js +1 -0
- package/public/spice-console-minify/process/playbackprocess.min.js +1 -0
- package/public/spice-console-minify/run.min.js +1 -0
- package/public/spice-console-minify/spiceobjects/generated/protocol.min.js +1 -0
- package/public/spice-console-minify/spiceobjects/spiceobjects.min.js +1 -0
- package/public/spice-console-minify/swcanvas/swcanvas.min.js +1 -0
- package/tsconfig.json +4 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="charts-view">
|
|
3
|
+
<template v-if="oneSettingsLocal && !isMountedLoader">
|
|
4
|
+
<div :class="['chart-container', `graph-${oneSettingsLocal.title}`]">
|
|
5
|
+
<div v-if="oneSettingsLocal.loader" class="graphic-loader-block">
|
|
6
|
+
<div class="spinner"></div>
|
|
7
|
+
<p>{{ localization.retrievingData }}...</p>
|
|
8
|
+
</div>
|
|
9
|
+
<common-graph
|
|
10
|
+
v-else-if="oneGraphData"
|
|
11
|
+
:data="oneGraphData"
|
|
12
|
+
:chart="chartOne"
|
|
13
|
+
:update="oneUpdateHelper"
|
|
14
|
+
/>
|
|
15
|
+
<div v-else class="graph-empty-block">
|
|
16
|
+
<div class="title">{{ oneSettingsLocal.title }}</div>
|
|
17
|
+
<div class="body-block">
|
|
18
|
+
{{ localization.emptyGraphText }}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<template v-if="twoSettingsLocal && !isMountedLoader">
|
|
24
|
+
<div :class="['chart-container', `graph-${twoSettingsLocal.title}`]">
|
|
25
|
+
<div v-if="twoSettingsLocal.loader" class="graphic-loader-block">
|
|
26
|
+
<div class="spinner"></div>
|
|
27
|
+
<p>{{ localization.retrievingData }}...</p>
|
|
28
|
+
</div>
|
|
29
|
+
<common-graph
|
|
30
|
+
v-else-if="twoGraphData"
|
|
31
|
+
:data="twoGraphData"
|
|
32
|
+
:chart="chartTwo"
|
|
33
|
+
:update="twoUpdateHelper"
|
|
34
|
+
/>
|
|
35
|
+
<div v-else class="graph-empty-block">
|
|
36
|
+
<div class="title">{{ twoSettingsLocal.title }}</div>
|
|
37
|
+
<div class="body-block">
|
|
38
|
+
{{ localization.emptyGraphText }}
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
<template v-if="threeSettingsLocal && !isMountedLoader">
|
|
44
|
+
<div :class="['chart-container', `graph-${threeSettingsLocal.title}`]">
|
|
45
|
+
<div v-if="threeSettingsLocal.loader" class="graphic-loader-block">
|
|
46
|
+
<div class="spinner"></div>
|
|
47
|
+
<p>{{ localization.retrievingData }}...</p>
|
|
48
|
+
</div>
|
|
49
|
+
<common-graph
|
|
50
|
+
v-else-if="threeGraphData"
|
|
51
|
+
:data="threeGraphData"
|
|
52
|
+
:chart="chartThree"
|
|
53
|
+
:update="threeUpdateHelper"
|
|
54
|
+
/>
|
|
55
|
+
<div v-else class="graph-empty-block">
|
|
56
|
+
<div class="title">{{ threeSettingsLocal.title }}</div>
|
|
57
|
+
<div class="body-block">
|
|
58
|
+
{{ localization.emptyGraphText }}
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
<template v-if="fourSettingsLocal && !isMountedLoader">
|
|
64
|
+
<div :class="['chart-container', `graph-${fourSettingsLocal.title}`]">
|
|
65
|
+
<div v-if="fourSettingsLocal.loader" class="graphic-loader-block">
|
|
66
|
+
<div class="spinner"></div>
|
|
67
|
+
<p>{{ localization.retrievingData }}...</p>
|
|
68
|
+
</div>
|
|
69
|
+
<common-graph
|
|
70
|
+
v-else-if="fourGraphData"
|
|
71
|
+
:data="fourGraphData"
|
|
72
|
+
:chart="chartFour"
|
|
73
|
+
:update="fourUpdateHelper"
|
|
74
|
+
/>
|
|
75
|
+
<div v-else class="graph-empty-block">
|
|
76
|
+
<div class="title">{{ fourSettingsLocal.title }}</div>
|
|
77
|
+
<div class="body-block">
|
|
78
|
+
{{ localization.emptyGraphText }}
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</template>
|
|
83
|
+
<div v-if="isMountedLoader" class="content-global-loading">
|
|
84
|
+
{{ localization.loading }}...
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<script setup lang="ts">
|
|
90
|
+
import { format } from 'date-fns'
|
|
91
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
92
|
+
import { UI_I_GraphDataSettingItem } from '~/components/common/monitor/models/interfaces'
|
|
93
|
+
import { graphDataFunc } from 'bfg-nuxt-3-graph/graph/utils/renderGraph'
|
|
94
|
+
import {
|
|
95
|
+
I_LineGraph,
|
|
96
|
+
I_SeriesLine,
|
|
97
|
+
} from 'bfg-nuxt-3-graph/graph/models/interfaces'
|
|
98
|
+
|
|
99
|
+
const props = defineProps<{
|
|
100
|
+
oneChart?: UI_I_GraphDataSettingItem | null
|
|
101
|
+
twoChart?: UI_I_GraphDataSettingItem | null
|
|
102
|
+
threeChart?: UI_I_GraphDataSettingItem | null
|
|
103
|
+
fourChart?: UI_I_GraphDataSettingItem | null
|
|
104
|
+
themeMode?: 'string'
|
|
105
|
+
formatDate?: 'string'
|
|
106
|
+
formatTime?: 'string'
|
|
107
|
+
}>()
|
|
108
|
+
|
|
109
|
+
const { $formattedDatetime } = useNuxtApp()
|
|
110
|
+
|
|
111
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
112
|
+
|
|
113
|
+
const isFullScreen = ref<boolean>(false)
|
|
114
|
+
|
|
115
|
+
const fullScreenCallBack = (newValue: boolean): void => {
|
|
116
|
+
newValue && (isFullScreen.value = newValue)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const oneUpdateHelper = ref<number>(0)
|
|
120
|
+
const twoUpdateHelper = ref<number>(0)
|
|
121
|
+
const threeUpdateHelper = ref<number>(0)
|
|
122
|
+
const fourUpdateHelper = ref<number>(0)
|
|
123
|
+
|
|
124
|
+
const chartOne = ref<any>(null)
|
|
125
|
+
const chartTwo = ref<any>(null)
|
|
126
|
+
const chartThree = ref<any>(null)
|
|
127
|
+
const chartFour = ref<any>(null)
|
|
128
|
+
|
|
129
|
+
const currentChartName = ref<string>('')
|
|
130
|
+
|
|
131
|
+
const getCurrentChart = (chart: any): any => {
|
|
132
|
+
if (currentChartName.value === 'cpu' || currentChartName.value === 'space')
|
|
133
|
+
return (chartOne.value = chart)
|
|
134
|
+
if (currentChartName.value === 'memory') return (chartTwo.value = chart)
|
|
135
|
+
if (currentChartName.value === 'disk') return (chartThree.value = chart)
|
|
136
|
+
if (currentChartName.value === 'network') return (chartFour.value = chart)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const oneSettingsLocal = ref<UI_I_GraphDataSettingItem | null>(null)
|
|
140
|
+
const twoSettingsLocal = ref<UI_I_GraphDataSettingItem | null>(null)
|
|
141
|
+
const threeSettingsLocal = ref<UI_I_GraphDataSettingItem | null>(null)
|
|
142
|
+
const fourSettingsLocal = ref<UI_I_GraphDataSettingItem | null>(null)
|
|
143
|
+
|
|
144
|
+
const isMountedLoader = ref<boolean>()
|
|
145
|
+
|
|
146
|
+
const oneGraphData = ref<I_LineGraph | null>(null)
|
|
147
|
+
const twoGraphData = ref<I_LineGraph | null>(null)
|
|
148
|
+
const threeGraphData = ref<I_LineGraph | null>(null)
|
|
149
|
+
const fourGraphData = ref<I_LineGraph | null>(null)
|
|
150
|
+
|
|
151
|
+
const setCurrentGraphData = (
|
|
152
|
+
name: string,
|
|
153
|
+
data: I_SeriesLine,
|
|
154
|
+
isDarkMode: boolean,
|
|
155
|
+
width: number
|
|
156
|
+
): void => {
|
|
157
|
+
currentChartName.value = name
|
|
158
|
+
|
|
159
|
+
const graphData = graphDataFunc(
|
|
160
|
+
data,
|
|
161
|
+
isDarkMode,
|
|
162
|
+
localization.value,
|
|
163
|
+
fullScreenCallBack,
|
|
164
|
+
false,
|
|
165
|
+
true,
|
|
166
|
+
true,
|
|
167
|
+
'',
|
|
168
|
+
'',
|
|
169
|
+
width,
|
|
170
|
+
getCurrentChart,
|
|
171
|
+
$formattedDatetime,
|
|
172
|
+
format,
|
|
173
|
+
props.formatDate,
|
|
174
|
+
props.formatTime
|
|
175
|
+
)
|
|
176
|
+
if (name === 'cpu' || name === 'space') oneGraphData.value = graphData
|
|
177
|
+
if (name === 'memory') twoGraphData.value = graphData
|
|
178
|
+
if (name === 'disk') threeGraphData.value = graphData
|
|
179
|
+
if (name === 'network') fourGraphData.value = graphData
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const outputSize = (): void => {
|
|
183
|
+
setTimeout(() => {
|
|
184
|
+
if (oneGraphData.value) oneUpdateHelper.value++
|
|
185
|
+
if (twoGraphData.value) twoUpdateHelper.value++
|
|
186
|
+
if (threeGraphData.value) threeUpdateHelper.value++
|
|
187
|
+
if (fourGraphData.value) fourUpdateHelper.value++
|
|
188
|
+
|
|
189
|
+
if (chartOne.value && chartOne.value?.hasLoaded) chartOne.value.reflow()
|
|
190
|
+
|
|
191
|
+
if (chartTwo.value && chartTwo.value?.hasLoaded) chartTwo.value.reflow()
|
|
192
|
+
|
|
193
|
+
if (chartThree.value && chartThree.value?.hasLoaded)
|
|
194
|
+
chartThree.value.reflow()
|
|
195
|
+
|
|
196
|
+
if (chartFour.value && chartFour.value?.hasLoaded) chartFour.value.reflow()
|
|
197
|
+
}, 1000)
|
|
198
|
+
}
|
|
199
|
+
const updateGraph = (
|
|
200
|
+
graphSetting: UI_I_GraphDataSettingItem,
|
|
201
|
+
name: string
|
|
202
|
+
): void => {
|
|
203
|
+
outputSize()
|
|
204
|
+
updateGraphsData(graphSetting, name)
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const updateGraphsData = (
|
|
208
|
+
data: UI_I_GraphDataSettingItem,
|
|
209
|
+
name: string
|
|
210
|
+
): void => {
|
|
211
|
+
if (!data.data) return
|
|
212
|
+
|
|
213
|
+
const themeMode = useLocalStorage('themeMode') || props.themeMode
|
|
214
|
+
const isDarkMode = themeMode === 'dark-theme'
|
|
215
|
+
|
|
216
|
+
const width =
|
|
217
|
+
document
|
|
218
|
+
.querySelector(`.graph-${name} .graph-content`)
|
|
219
|
+
?.getBoundingClientRect().width || 700
|
|
220
|
+
|
|
221
|
+
setCurrentGraphData(name, data.data, isDarkMode, width)
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const checkIsMountedError = (): void => {
|
|
225
|
+
if (
|
|
226
|
+
oneSettingsLocal.value ||
|
|
227
|
+
twoSettingsLocal.value ||
|
|
228
|
+
threeSettingsLocal.value ||
|
|
229
|
+
fourSettingsLocal.value
|
|
230
|
+
)
|
|
231
|
+
isMountedLoader.value = false
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
watch(
|
|
235
|
+
() => props.oneChart,
|
|
236
|
+
(value) => {
|
|
237
|
+
if (!value) return
|
|
238
|
+
|
|
239
|
+
oneSettingsLocal.value = value
|
|
240
|
+
updateGraph(oneSettingsLocal.value, value.title)
|
|
241
|
+
|
|
242
|
+
isMountedLoader.value && checkIsMountedError()
|
|
243
|
+
},
|
|
244
|
+
{ deep: true, immediate: true }
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
watch(
|
|
248
|
+
() => props.twoChart,
|
|
249
|
+
(value) => {
|
|
250
|
+
if (!value) return
|
|
251
|
+
|
|
252
|
+
twoSettingsLocal.value = value
|
|
253
|
+
updateGraph(twoSettingsLocal.value, value.title)
|
|
254
|
+
|
|
255
|
+
isMountedLoader.value && checkIsMountedError()
|
|
256
|
+
},
|
|
257
|
+
{ deep: true, immediate: true }
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
watch(
|
|
261
|
+
() => props.threeChart,
|
|
262
|
+
(value) => {
|
|
263
|
+
if (!value) return
|
|
264
|
+
|
|
265
|
+
threeSettingsLocal.value = value
|
|
266
|
+
updateGraph(threeSettingsLocal.value, value.title)
|
|
267
|
+
|
|
268
|
+
isMountedLoader.value && checkIsMountedError()
|
|
269
|
+
},
|
|
270
|
+
{ deep: true, immediate: true }
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
watch(chartOne, (newValue) => {
|
|
274
|
+
if (!newValue) return
|
|
275
|
+
|
|
276
|
+
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
277
|
+
})
|
|
278
|
+
watch(chartTwo, (newValue) => {
|
|
279
|
+
if (!newValue) return
|
|
280
|
+
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
281
|
+
})
|
|
282
|
+
watch(chartFour, (newValue) => {
|
|
283
|
+
if (!newValue) return
|
|
284
|
+
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
285
|
+
})
|
|
286
|
+
watch(chartThree, (newValue) => {
|
|
287
|
+
if (!newValue) return
|
|
288
|
+
newValue.exportingGroup?.element?.children[0].children[0].remove()
|
|
289
|
+
})
|
|
290
|
+
|
|
291
|
+
watch(
|
|
292
|
+
() => props.fourChart,
|
|
293
|
+
(value) => {
|
|
294
|
+
if (!value) return
|
|
295
|
+
|
|
296
|
+
fourSettingsLocal.value = value
|
|
297
|
+
updateGraph(fourSettingsLocal.value, value.title)
|
|
298
|
+
|
|
299
|
+
isMountedLoader.value && checkIsMountedError()
|
|
300
|
+
},
|
|
301
|
+
{ deep: true, immediate: true }
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
const setResizeObserve = (): void => {
|
|
305
|
+
const el = document.getElementById('center-pane')
|
|
306
|
+
|
|
307
|
+
if (!el) {
|
|
308
|
+
setTimeout(setResizeObserve, 0)
|
|
309
|
+
return
|
|
310
|
+
}
|
|
311
|
+
new ResizeObserver(outputSize).observe(el)
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
onMounted(() => {
|
|
315
|
+
isMountedLoader.value = true
|
|
316
|
+
setResizeObserve()
|
|
317
|
+
})
|
|
318
|
+
</script>
|
|
319
|
+
|
|
320
|
+
<style>
|
|
321
|
+
:root {
|
|
322
|
+
--loader-bg-color: #ffffff;
|
|
323
|
+
}
|
|
324
|
+
:root.dark-theme {
|
|
325
|
+
--loader-bg-color: #22343c;
|
|
326
|
+
}
|
|
327
|
+
</style>
|
|
328
|
+
|
|
329
|
+
<style scoped lang="scss">
|
|
330
|
+
.charts-view {
|
|
331
|
+
position: relative;
|
|
332
|
+
display: flex;
|
|
333
|
+
flex-direction: row;
|
|
334
|
+
flex-wrap: wrap;
|
|
335
|
+
justify-content: space-between;
|
|
336
|
+
overflow: auto;
|
|
337
|
+
height: 100%;
|
|
338
|
+
|
|
339
|
+
.graphic-loader-block {
|
|
340
|
+
background-color: var(--loader-bg-color);
|
|
341
|
+
height: 100%;
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-direction: column;
|
|
344
|
+
align-items: center;
|
|
345
|
+
justify-content: center;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.graph-empty-block {
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
height: 100%;
|
|
352
|
+
background-color: var(--loader-bg-color);
|
|
353
|
+
|
|
354
|
+
.title {
|
|
355
|
+
text-align: center;
|
|
356
|
+
font-size: 18px;
|
|
357
|
+
margin-top: 10px;
|
|
358
|
+
color: var(--global-font-color);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.body-block {
|
|
362
|
+
height: 100%;
|
|
363
|
+
display: flex;
|
|
364
|
+
justify-content: center;
|
|
365
|
+
text-align: center;
|
|
366
|
+
align-items: center;
|
|
367
|
+
color: var(--global-font-color);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.chart-container {
|
|
372
|
+
box-sizing: border-box;
|
|
373
|
+
flex-grow: 1;
|
|
374
|
+
padding: 5px;
|
|
375
|
+
min-height: 300px;
|
|
376
|
+
height: 100%;
|
|
377
|
+
min-width: 300px;
|
|
378
|
+
width: 100%;
|
|
379
|
+
position: relative;
|
|
380
|
+
|
|
381
|
+
&:first-child:last-child {
|
|
382
|
+
height: 100%;
|
|
383
|
+
width: 100%;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
&:first-child:nth-last-child(2),
|
|
387
|
+
&:nth-child(2):last-child {
|
|
388
|
+
width: 50%;
|
|
389
|
+
height: 100%;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.content-global-loading {
|
|
394
|
+
width: 100%;
|
|
395
|
+
height: 100%;
|
|
396
|
+
display: flex;
|
|
397
|
+
align-items: center;
|
|
398
|
+
justify-content: center;
|
|
399
|
+
color: var(--global-font-color);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
@media (min-width: 1280px) {
|
|
403
|
+
.charts-view .chart-container {
|
|
404
|
+
width: 50%;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
@media (min-height: 800px) {
|
|
408
|
+
.charts-view .chart-container {
|
|
409
|
+
height: 50%;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
</style>
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="horizontal-flex-container overview-chart-title-bar">
|
|
3
|
+
<div class="horizontal-flex-container">
|
|
4
|
+
<label for="periodSelect" class="label-select"
|
|
5
|
+
>{{ localization.period }}:</label
|
|
6
|
+
>
|
|
7
|
+
<div v-if="!disabledPeriodOptions" class="select">
|
|
8
|
+
<select id="periodSelect" v-model="selectedPeriod">
|
|
9
|
+
<option
|
|
10
|
+
v-for="(item, index) in periodOptions"
|
|
11
|
+
:key="index"
|
|
12
|
+
:value="item.value"
|
|
13
|
+
>
|
|
14
|
+
{{ item.text }}
|
|
15
|
+
</option>
|
|
16
|
+
</select>
|
|
17
|
+
</div>
|
|
18
|
+
<span v-else class="single-option">{{ periodOptions[0].text }}</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div v-show="isShowCustomIntervalButton">
|
|
21
|
+
<a
|
|
22
|
+
id="show-interval-modal-button"
|
|
23
|
+
href="#"
|
|
24
|
+
@click="onShowIntervalModal"
|
|
25
|
+
>{{ localization.changeCustomInterval }}</a
|
|
26
|
+
>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-if="!disabledPeriodOptions" class="chart-title">
|
|
29
|
+
{{ chartTitleDate }}
|
|
30
|
+
</div>
|
|
31
|
+
<div class="view-select-label horizontal-flex-container">
|
|
32
|
+
<label for="viewSelect" class="label-select"
|
|
33
|
+
>{{ localization.view }}:</label
|
|
34
|
+
>
|
|
35
|
+
<div class="select">
|
|
36
|
+
<select id="viewSelect" v-model="selectedView">
|
|
37
|
+
<option
|
|
38
|
+
v-for="(item, index) in viewOptions"
|
|
39
|
+
:key="index"
|
|
40
|
+
:value="item.value"
|
|
41
|
+
disabled
|
|
42
|
+
>
|
|
43
|
+
{{ item.text }}
|
|
44
|
+
</option>
|
|
45
|
+
</select>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<common-monitor-overview-filters-custom-interval-modal
|
|
51
|
+
v-show="isShowIntervalModal"
|
|
52
|
+
@hide="onHideIntervalModal"
|
|
53
|
+
@submit="onSubmitIntervalModal"
|
|
54
|
+
/>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<script setup lang="ts">
|
|
58
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
59
|
+
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
60
|
+
import {
|
|
61
|
+
periodFunc,
|
|
62
|
+
viewFunc,
|
|
63
|
+
} from '~/components/common/monitor/overview/filters/config/filterOptions'
|
|
64
|
+
import { UI_I_MonitorGraphPayload } from '~/components/common/monitor/models/interfaces'
|
|
65
|
+
import { getValidDateByOptionFunc } from '~/components/common/monitor/config/getValidDateByOption'
|
|
66
|
+
import { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/models/types'
|
|
67
|
+
|
|
68
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
69
|
+
const { $formattedDatetime } = useNuxtApp()
|
|
70
|
+
|
|
71
|
+
const props = defineProps<{
|
|
72
|
+
startDate: number
|
|
73
|
+
endDate: number
|
|
74
|
+
chartType: 'spline' | 'pie'
|
|
75
|
+
view: UI_T_OverviewViewType
|
|
76
|
+
formatDate?: 'string'
|
|
77
|
+
formatTime?: 'string'
|
|
78
|
+
}>()
|
|
79
|
+
|
|
80
|
+
const emits = defineEmits<{
|
|
81
|
+
(event: 'update-filters', filters: UI_I_MonitorGraphPayload): void
|
|
82
|
+
}>()
|
|
83
|
+
|
|
84
|
+
const selectedPeriod = ref<string>('')
|
|
85
|
+
const periodOptions = computed<UI_I_OptionItem[]>(() =>
|
|
86
|
+
periodFunc(localization.value)
|
|
87
|
+
)
|
|
88
|
+
watch(
|
|
89
|
+
() => periodOptions.value,
|
|
90
|
+
(val: UI_I_OptionItem[]) => {
|
|
91
|
+
if (val) selectedPeriod.value = val[0].value
|
|
92
|
+
},
|
|
93
|
+
{ immediate: true }
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
const isShowCustomIntervalButton = computed<boolean>(
|
|
97
|
+
() => selectedPeriod.value === 'custom_interval'
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
const isShowIntervalModal = ref<boolean>(false)
|
|
101
|
+
const onShowIntervalModal = (): void => {
|
|
102
|
+
isShowIntervalModal.value = true
|
|
103
|
+
}
|
|
104
|
+
const onHideIntervalModal = (): void => {
|
|
105
|
+
isShowIntervalModal.value = false
|
|
106
|
+
}
|
|
107
|
+
const onSubmitIntervalModal = (customDates: number[]): void => {
|
|
108
|
+
customDatesData.value = customDates
|
|
109
|
+
sendUpdatedFilters()
|
|
110
|
+
onHideIntervalModal()
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const chartTitleDate = computed<string>(() => {
|
|
114
|
+
const startValue = props.startDate
|
|
115
|
+
const endValue = props.endDate
|
|
116
|
+
if (!startValue && !endValue) return ''
|
|
117
|
+
|
|
118
|
+
const start = $formattedDatetime(
|
|
119
|
+
startValue,
|
|
120
|
+
props.formatDate,
|
|
121
|
+
true,
|
|
122
|
+
'',
|
|
123
|
+
props.formatTime
|
|
124
|
+
)
|
|
125
|
+
const end = $formattedDatetime(
|
|
126
|
+
endValue,
|
|
127
|
+
props.formatDate,
|
|
128
|
+
true,
|
|
129
|
+
'',
|
|
130
|
+
props.formatTime
|
|
131
|
+
)
|
|
132
|
+
return `${start} - ${end}`
|
|
133
|
+
})
|
|
134
|
+
|
|
135
|
+
const disabledPeriodOptions = computed<boolean>(
|
|
136
|
+
() => props.chartType === 'pie' || !chartTitleDate.value
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
const selectedView = ref<string>('')
|
|
140
|
+
const viewOptions = computed<UI_I_OptionItem[]>(() =>
|
|
141
|
+
viewFunc(localization.value, props.view)
|
|
142
|
+
)
|
|
143
|
+
watch(
|
|
144
|
+
() => viewOptions.value,
|
|
145
|
+
(val: UI_I_OptionItem[]) => {
|
|
146
|
+
if (val) selectedView.value = val[0].value
|
|
147
|
+
},
|
|
148
|
+
{ immediate: true }
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
const customDatesData = ref<number[]>([])
|
|
152
|
+
const sendUpdatedFilters = (): void => {
|
|
153
|
+
const currentPeriod =
|
|
154
|
+
selectedPeriod.value === 'custom_interval'
|
|
155
|
+
? customDatesData.value
|
|
156
|
+
: getValidDateByOptionFunc(selectedPeriod.value)
|
|
157
|
+
const filters: UI_I_MonitorGraphPayload = {
|
|
158
|
+
period: currentPeriod,
|
|
159
|
+
view: selectedView.value,
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
emits('update-filters', filters)
|
|
163
|
+
}
|
|
164
|
+
watch(
|
|
165
|
+
() => [selectedPeriod.value, selectedView.value],
|
|
166
|
+
(value: string[]) => {
|
|
167
|
+
value[0] !== 'custom_interval' && sendUpdatedFilters()
|
|
168
|
+
},
|
|
169
|
+
{ immediate: true }
|
|
170
|
+
)
|
|
171
|
+
</script>
|
|
172
|
+
|
|
173
|
+
<style scoped lang="scss">
|
|
174
|
+
.horizontal-flex-container {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: row;
|
|
177
|
+
align-items: center;
|
|
178
|
+
line-height: 20px;
|
|
179
|
+
flex-shrink: 0;
|
|
180
|
+
padding-top: 5px;
|
|
181
|
+
|
|
182
|
+
.select select {
|
|
183
|
+
height: 20px;
|
|
184
|
+
margin: 5px;
|
|
185
|
+
color: var(--global-font-color);
|
|
186
|
+
}
|
|
187
|
+
.single-option {
|
|
188
|
+
margin-left: 5px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.chart-title {
|
|
192
|
+
color: var(--global-font-color);
|
|
193
|
+
text-overflow: ellipsis;
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
overflow: hidden;
|
|
196
|
+
margin: 6px;
|
|
197
|
+
font-weight: 700;
|
|
198
|
+
text-transform: uppercase;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.view-select-label {
|
|
202
|
+
margin-left: auto;
|
|
203
|
+
padding-right: 7px;
|
|
204
|
+
padding-left: 7px;
|
|
205
|
+
text-overflow: ellipsis;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
align-items: center;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
</style>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
2
|
+
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
3
|
+
import { UI_I_OverviewViewOptionData } from '~/components/common/monitor/overview/filters/models/interfaces'
|
|
4
|
+
import { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/models/types'
|
|
5
|
+
|
|
6
|
+
export const periodFunc = (
|
|
7
|
+
localization: UI_I_Localization
|
|
8
|
+
): UI_I_OptionItem[] => [
|
|
9
|
+
{
|
|
10
|
+
text: localization.realTime,
|
|
11
|
+
value: 'real_time',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
text: localization.lastDay,
|
|
15
|
+
value: 'last_day',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
text: localization.lastWeek,
|
|
19
|
+
value: 'last_week',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
text: localization.lastMonth,
|
|
23
|
+
value: 'last_month',
|
|
24
|
+
},
|
|
25
|
+
// {
|
|
26
|
+
// text: localization.lastYear,
|
|
27
|
+
// value: 'last_year',
|
|
28
|
+
// },
|
|
29
|
+
{
|
|
30
|
+
text: localization.customInterval,
|
|
31
|
+
value: 'custom_interval',
|
|
32
|
+
},
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
export const viewFunc = (
|
|
36
|
+
localization: UI_I_Localization,
|
|
37
|
+
viewType: UI_T_OverviewViewType
|
|
38
|
+
): UI_I_OptionItem[] => {
|
|
39
|
+
const viewData: UI_I_OverviewViewOptionData = {
|
|
40
|
+
host: [
|
|
41
|
+
{ text: localization.overview, value: 'overview' },
|
|
42
|
+
{ text: localization.networkAdapters, value: 'network_adapters' },
|
|
43
|
+
{ text: localization.disks, value: 'disks' },
|
|
44
|
+
{ text: localization.virtual_machines, value: 'virtual_machines' },
|
|
45
|
+
],
|
|
46
|
+
vm: [
|
|
47
|
+
{ text: localization.overview, value: 'overview' },
|
|
48
|
+
{ text: localization.space, value: 'space' },
|
|
49
|
+
{ text: localization.spaceUtilization, value: 'space_utilization' },
|
|
50
|
+
{ text: localization.networkAdapters, value: 'network_adapters' },
|
|
51
|
+
{ text: localization.disks, value: 'disks' },
|
|
52
|
+
],
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return viewData[viewType]
|
|
56
|
+
}
|