bfg-common 1.6.77 → 1.6.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/localization/local_be.json +4461 -4213
- package/assets/localization/local_en.json +4466 -4217
- package/assets/localization/local_hy.json +4465 -4217
- package/assets/localization/local_kk.json +4464 -4216
- package/assets/localization/local_ru.json +4464 -4216
- package/assets/localization/local_zh.json +4462 -4214
- 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/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +3 -0
- package/components/common/adapterManager/AdapterManager.vue +473 -473
- package/components/common/adapterManager/AdapterManagerNew.vue +86 -0
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -498
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -70
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +110 -110
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalOld.vue +531 -531
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -32
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +37 -38
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalOld.vue +73 -73
- package/components/common/adapterManager/lib/config/index.ts +19 -19
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +34 -34
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +41 -41
- package/components/common/adapterManager/ui/actions/VerticalSeparator.vue +10 -10
- 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/bar/BarOld.vue +95 -95
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +76 -76
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +77 -77
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -24
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +18 -18
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterOld.vue +38 -38
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -31
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +51 -51
- package/components/common/adapterManager/ui/secondTitle/SecondTitleOld.vue +35 -35
- package/components/common/adapterManager/ui/table/Table.vue +88 -88
- package/components/common/adapterManager/ui/table/TableNew.vue +137 -137
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -141
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -44
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +187 -186
- package/components/common/adapterManager/ui/table/adapters/AdaptersOld.vue +87 -87
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -57
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +81 -81
- package/components/common/adapterManager/ui/table/header/HeaderOld.vue +79 -79
- package/components/common/adapterManager/ui/table/lib/models/types.ts +1 -1
- package/components/common/certificate/Certificate.vue +6 -16
- package/components/common/certificate/{Info/Old.vue → CertificateInfo.vue} +34 -6
- package/components/common/certificate/{tools/Tools.vue → Tools.vue} +23 -18
- package/components/common/certificate/lib/config/tabsPannel.ts +22 -0
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +12 -5
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
- package/components/common/diagramMain/Diagram.vue +169 -85
- package/components/common/diagramMain/DiagramMain.vue +40 -10
- package/components/common/diagramMain/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/AdapterItem.vue +438 -438
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/adapter/Contents.vue +212 -212
- package/components/common/diagramMain/adapter/Lines.vue +81 -81
- package/components/common/diagramMain/adapter/block/Block.vue +27 -27
- package/components/common/diagramMain/adapter/block/BlockNew.vue +58 -58
- package/components/common/diagramMain/adapter/block/BlockOld.vue +50 -50
- package/components/common/diagramMain/adapter/secondBlock/SecondBlock.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockNew.vue +60 -60
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockOld.vue +51 -51
- 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/highlights/Highlights.vue +151 -151
- package/components/common/diagramMain/highlights/HighlightsNew.vue +124 -124
- package/components/common/diagramMain/highlights/HighlightsOld.vue +107 -107
- package/components/common/diagramMain/lib/config/index.ts +81 -81
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/config/positions.ts +194 -194
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- package/components/common/diagramMain/lib/models/interfaces.ts +760 -760
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +331 -331
- package/components/common/diagramMain/modals/Modals.vue +483 -479
- 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 -113
- 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/SwitchPropertiesOld.vue +87 -0
- 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 +147 -147
- 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/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +405 -405
- package/components/common/diagramMain/modals/lib/config/portModal.ts +253 -253
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +245 -245
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +88 -88
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +541 -541
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +170 -170
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/VmkernelAdapterReadyComplete.vue +49 -49
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +82 -82
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -106
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +241 -241
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +57 -57
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +174 -174
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +141 -141
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +45 -45
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +323 -323
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +203 -203
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModal.vue +60 -60
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +50 -50
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalOld.vue +70 -70
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/lib/models/interfaces.ts +48 -48
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/diagramMain/network/Lines.vue +107 -107
- package/components/common/diagramMain/network/Network.vue +141 -141
- package/components/common/diagramMain/network/block/Block.vue +37 -37
- package/components/common/diagramMain/network/block/BlockNew.vue +68 -68
- package/components/common/diagramMain/network/block/BlockOld.vue +64 -64
- package/components/common/diagramMain/network/noNetwork/NoNetwork.vue +12 -12
- package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +89 -89
- package/components/common/diagramMain/network/noNetwork/NoNetworkOld.vue +61 -61
- package/components/common/diagramMain/network/secondBlock/SecondBlock.vue +41 -41
- package/components/common/diagramMain/network/secondBlock/SecondBlockNew.vue +64 -64
- package/components/common/diagramMain/network/secondBlock/SecondBlockOld.vue +60 -60
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/diagramMain/switch/Switch.vue +180 -180
- package/components/common/diagramMain/switch/SwitchSelected.vue +111 -111
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/modals/Rename.vue +3 -1
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +184 -253
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +25 -23
- package/components/common/readyToComplete/New.vue +1 -0
- package/components/common/split/horizontal/New.vue +1 -1
- 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 +7 -3
- package/components/common/tools/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/select/options/New.vue +14 -12
- package/components/common/vm/actions/common/select/options/Old.vue +16 -15
- 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/rename/Old.vue +1 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +6 -0
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +13 -2
- package/components/common/wizards/network/add/AddNew.vue +22 -26
- package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +13 -3
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/package.json +2 -2
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/agent.js +18 -17
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
- package/components/common/certificate/Info/Info.vue +0 -61
- package/components/common/certificate/Info/new/New.vue +0 -285
- package/components/common/certificate/Info/new/lib/config/index.ts +0 -59
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +0 -3
- package/components/common/certificate/Info/new/lib/utils/index.ts +0 -10
- package/components/common/certificate/Old.vue +0 -27
- package/components/common/certificate/new/New.vue +0 -30
- package/components/common/certificate/new/Skeleton.vue +0 -155
- package/components/common/certificate/tools/New.vue +0 -48
- package/components/common/certificate/tools/Old.vue +0 -39
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +0 -20
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="tooltip-info">
|
|
3
|
-
<span
|
|
2
|
+
<div :class="['tooltip-info', { isOpen: isShowTooltipLocal }]">
|
|
3
|
+
<span
|
|
4
|
+
class="tooltip-info__title"
|
|
5
|
+
@click.stop="isShowTooltipLocal = !isShowTooltipLocal"
|
|
6
|
+
>
|
|
7
|
+
{{ localization.common.vmOrigin }}
|
|
8
|
+
</span>
|
|
4
9
|
<ui-icon
|
|
5
10
|
id="vm-origin-info-trigger"
|
|
6
|
-
|
|
11
|
+
class="tooltip-info__icon pointer"
|
|
7
12
|
name="info"
|
|
8
|
-
width="
|
|
9
|
-
height="
|
|
13
|
+
width="16"
|
|
14
|
+
height="16"
|
|
10
15
|
@click.stop="isShowTooltipLocal = !isShowTooltipLocal"
|
|
11
16
|
/>
|
|
12
17
|
<ui-popup-window
|
|
@@ -40,7 +45,7 @@
|
|
|
40
45
|
:key="item2.name"
|
|
41
46
|
class="flex items-center mt-2"
|
|
42
47
|
>
|
|
43
|
-
<span :class="item2.iconName"></span>
|
|
48
|
+
<span :class="['icon-row', item2.iconName]"></span>
|
|
44
49
|
<span class="item-name">{{ item2.name }}</span>
|
|
45
50
|
</div>
|
|
46
51
|
</div>
|
|
@@ -67,22 +72,29 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
67
72
|
@import 'assets/scss/common/mixins.scss';
|
|
68
73
|
.tooltip-info {
|
|
69
74
|
@include flex($align: center);
|
|
75
|
+
column-gap: 8px;
|
|
76
|
+
&:hover {
|
|
77
|
+
.tooltip-info__title,
|
|
78
|
+
.tooltip-info__icon {
|
|
79
|
+
color: var(--close-icon);
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&.isOpen {
|
|
84
|
+
.tooltip-info__title,
|
|
85
|
+
.tooltip-info__icon {
|
|
86
|
+
color: var(--btn-primary-fill-bg-color);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
70
89
|
&__title {
|
|
71
90
|
font-family: 'Inter', sans-serif;
|
|
72
|
-
color:
|
|
91
|
+
color: #9da6ad; // for dark and light mode
|
|
73
92
|
font-weight: 500;
|
|
74
93
|
font-size: 12px;
|
|
75
94
|
white-space: nowrap;
|
|
76
|
-
margin-right: 4px;
|
|
77
95
|
}
|
|
78
96
|
&__icon {
|
|
79
97
|
color: var(--form-icon-color);
|
|
80
|
-
&:hover {
|
|
81
|
-
color: var(--close-icon);
|
|
82
|
-
}
|
|
83
|
-
&.active {
|
|
84
|
-
color: var(--btn-primary-fill-bg-color);
|
|
85
|
-
}
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
.common-widget-info {
|
|
@@ -99,14 +111,22 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
99
111
|
&__content {
|
|
100
112
|
.item-row {
|
|
101
113
|
margin-top: 12px;
|
|
114
|
+
&:first-child {
|
|
115
|
+
margin-top: 20px;
|
|
116
|
+
}
|
|
102
117
|
}
|
|
103
118
|
.title-row {
|
|
104
119
|
font-family: 'Inter', sans-serif;
|
|
105
|
-
color:
|
|
120
|
+
color: #9da6ad; // for dark and light mode
|
|
106
121
|
font-weight: 500;
|
|
107
122
|
font-size: 13px;
|
|
123
|
+
line-height: 18px;
|
|
108
124
|
margin-bottom: 8px;
|
|
109
125
|
}
|
|
126
|
+
.icon-row {
|
|
127
|
+
width: 20px;
|
|
128
|
+
height: 20px;
|
|
129
|
+
}
|
|
110
130
|
|
|
111
131
|
.item-name {
|
|
112
132
|
font-family: 'Inter', sans-serif;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export type UI_T_TasksStateLoading = 'tasks' | 'recentTasks'
|
|
2
2
|
export type UI_T_TaskStatus =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
| 0 // queued
|
|
4
|
+
| 1 // running
|
|
5
|
+
| 2 // completed
|
|
6
|
+
| 3 // failed
|
|
7
|
+
| 4 // canceled
|
|
8
|
+
| 5 // retrying
|
|
9
|
+
| 6 // warning
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.78",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxt build",
|
|
7
7
|
"dev": "nuxt dev --port=3002",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@vueuse/core": "10.1.2",
|
|
19
19
|
"@vueuse/nuxt": "10.1.2",
|
|
20
20
|
"bfg-nuxt-3-graph": "1.0.28",
|
|
21
|
-
"bfg-uikit": "1.1.
|
|
21
|
+
"bfg-uikit": "1.1.32",
|
|
22
22
|
"eslint-config-prettier": "^8.5.0",
|
|
23
23
|
"eslint-plugin-myrules": "file:./eslint",
|
|
24
24
|
"nuxt": "3.11.2",
|
package/plugins/directives.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DirectiveBinding } from '@vue/runtime-core'
|
|
2
|
-
import type {UI_I_Localization} from
|
|
2
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
5
|
nuxtApp.vueApp.directive('development', {
|
|
@@ -22,8 +22,7 @@ function applyDevelopmentState(el: HTMLElement, isDevelopment: boolean) {
|
|
|
22
22
|
|
|
23
23
|
el.setAttribute('title', localization.value.common.inDevelopment)
|
|
24
24
|
el.setAttribute('disabled', 'true')
|
|
25
|
-
el.
|
|
26
|
-
el.style.cursor = 'not-allowed'
|
|
25
|
+
el.classList.add('in-development')
|
|
27
26
|
|
|
28
27
|
// Оборачиваем, чтобы не навешивать несколько обработчиков
|
|
29
28
|
const preventClick = (e: MouseEvent) => {
|
|
@@ -40,8 +39,7 @@ function applyDevelopmentState(el: HTMLElement, isDevelopment: boolean) {
|
|
|
40
39
|
|
|
41
40
|
function cleanupDevelopment(el: HTMLElement) {
|
|
42
41
|
el.removeAttribute('title')
|
|
43
|
-
el.
|
|
44
|
-
el.style.cursor = ''
|
|
42
|
+
el.classList.remove('in-development')
|
|
45
43
|
|
|
46
44
|
const handler = (el as any)._developmentClickHandler
|
|
47
45
|
if (handler) {
|
|
@@ -70,6 +70,7 @@ wdi.Agent = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
70
70
|
|
|
71
71
|
setResolution: function(width, height) {
|
|
72
72
|
//TODO move this to a setting
|
|
73
|
+
// SC-2122
|
|
73
74
|
if(width < 800) {
|
|
74
75
|
width = 800;
|
|
75
76
|
}
|
|
@@ -80,23 +81,23 @@ wdi.Agent = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
80
81
|
|
|
81
82
|
//adapt resolution, TODO: this needs to be refractored
|
|
82
83
|
var packetData = {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
84
|
+
type: wdi.AgentMessageTypes.VD_AGENT_MONITORS_CONFIG,
|
|
85
|
+
opaque: 0,
|
|
86
|
+
data: new wdi.VDAgentMonitorsConfig({
|
|
87
|
+
num_of_monitors: 1,
|
|
88
|
+
flags: 0,
|
|
89
|
+
data: new wdi.VDAgentMonConfig({
|
|
90
|
+
width: width,
|
|
91
|
+
height: height,
|
|
92
|
+
// Custom code
|
|
93
|
+
// depth: 64,
|
|
94
|
+
depth: 32,
|
|
95
|
+
// Custom code end
|
|
96
|
+
x: 0,
|
|
97
|
+
y: 0,
|
|
98
|
+
}),
|
|
99
|
+
}),
|
|
100
|
+
}
|
|
100
101
|
this.sendAgentPacket(packetData);
|
|
101
102
|
},
|
|
102
103
|
|
package/store/tasks/actions.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
} from '~/lib/models/store/tasks/interfaces'
|
|
19
19
|
import type { UI_I_TasksState } from '~/store/tasks/lib/models/interfaces'
|
|
20
20
|
import type { UI_I_RefreshStack } from '~/store/main/lib/interfaces'
|
|
21
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
21
22
|
import { tasksConstructor } from '~/store/tasks/mappers/tasks'
|
|
22
23
|
import { recentTasks } from '~/store/tasks/mappers/recentTasks'
|
|
23
24
|
|
|
@@ -28,9 +29,13 @@ export default {
|
|
|
28
29
|
state: UI_I_TasksState
|
|
29
30
|
dispatch: <T>(arg0: string, arg1: T, arg2: UI_I_CommitOptions) => void
|
|
30
31
|
},
|
|
31
|
-
payload:
|
|
32
|
+
payload: {
|
|
33
|
+
data: UI_I_DataTableQuery
|
|
34
|
+
project: UI_T_Project
|
|
35
|
+
}
|
|
32
36
|
): Promise<API_UI_I_Error | void> {
|
|
33
|
-
const {
|
|
37
|
+
const { data, project } = payload
|
|
38
|
+
const { page, pageSize, sortBy, filter } = data
|
|
34
39
|
|
|
35
40
|
const query: UI_I_TableQuery = {
|
|
36
41
|
page_size: pageSize,
|
|
@@ -38,7 +43,21 @@ export default {
|
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
if (sortBy) query.sortBy = sortBy
|
|
41
|
-
if (filter)
|
|
46
|
+
if (filter) {
|
|
47
|
+
if (project === 'procurator') {
|
|
48
|
+
query.filter = filter
|
|
49
|
+
} else {
|
|
50
|
+
const filters = filter.split(',')
|
|
51
|
+
filters.forEach((item) => {
|
|
52
|
+
const [field, value] = item.split('.')
|
|
53
|
+
|
|
54
|
+
if (field && value) {
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
query[field] = value
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
}
|
|
42
61
|
|
|
43
62
|
const queryJson: string = JSON.stringify({ type: 'tasks', ...query })
|
|
44
63
|
const lastQuery: string = context.state.taskQuery || ''
|
|
@@ -63,7 +82,9 @@ export default {
|
|
|
63
82
|
value: true,
|
|
64
83
|
})
|
|
65
84
|
},
|
|
66
|
-
onResponse({
|
|
85
|
+
onResponse({
|
|
86
|
+
response,
|
|
87
|
+
}: API_UI_I_Response<API_UI_I_Task<string> | null>) {
|
|
67
88
|
const tasks = tasksConstructor(response._data)
|
|
68
89
|
|
|
69
90
|
context.commit('M_SET_TASKS_LIST', tasks)
|
|
@@ -140,10 +161,7 @@ export default {
|
|
|
140
161
|
payload: string
|
|
141
162
|
): Promise<void> {
|
|
142
163
|
// Скрываем кнопку cancel
|
|
143
|
-
context.commit(
|
|
144
|
-
'M_HIDE_CANCEL_RECENT_TASK_BY_ID',
|
|
145
|
-
payload
|
|
146
|
-
)
|
|
164
|
+
context.commit('M_HIDE_CANCEL_RECENT_TASK_BY_ID', payload)
|
|
147
165
|
const { error } = await useMyFetch<
|
|
148
166
|
API_UI_I_RecentTask<string>,
|
|
149
167
|
API_UI_I_Error
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="currentComponent"
|
|
4
|
-
:certificate-data="props.certificateData"
|
|
5
|
-
:valid-from="validFrom"
|
|
6
|
-
:valid-to="validTo"
|
|
7
|
-
:status-text="statusText"
|
|
8
|
-
/>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts" setup>
|
|
12
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
13
|
-
import type { UI_I_Certificate } from '~/components/common/certificate/lib/models/interfaces'
|
|
14
|
-
|
|
15
|
-
const props = defineProps<{
|
|
16
|
-
certificateData: UI_I_Certificate | {}
|
|
17
|
-
}>()
|
|
18
|
-
|
|
19
|
-
const { $store, $formattedDatetime }: any = useNuxtApp()
|
|
20
|
-
|
|
21
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
22
|
-
|
|
23
|
-
const currentComponent = computed(() =>
|
|
24
|
-
isNewView.value
|
|
25
|
-
? defineAsyncComponent(() => import('./new/New.vue'))
|
|
26
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
30
|
-
|
|
31
|
-
const updateTimeFormatAndInterfaceLang = computed<number>(
|
|
32
|
-
() => $store.getters['main/getUpdateTimeFormatAndInterfaceLang']
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
const validFrom = computed<string>(() =>
|
|
36
|
-
updateTimeFormatAndInterfaceLang.value
|
|
37
|
-
? $formattedDatetime(props.certificateData.valid_from, {
|
|
38
|
-
hasSeconds: true,
|
|
39
|
-
})
|
|
40
|
-
: ''
|
|
41
|
-
)
|
|
42
|
-
const validTo = computed<string>(() =>
|
|
43
|
-
updateTimeFormatAndInterfaceLang.value
|
|
44
|
-
? $formattedDatetime(props.certificateData.valid_to, {
|
|
45
|
-
hasSeconds: true,
|
|
46
|
-
})
|
|
47
|
-
: ''
|
|
48
|
-
)
|
|
49
|
-
|
|
50
|
-
const statusText = computed<string>(() =>
|
|
51
|
-
props.certificateData.status === 'good'
|
|
52
|
-
? localization.value.common.valid
|
|
53
|
-
: props.certificateData.status
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
onUnmounted(() => {
|
|
57
|
-
$store.dispatch('main/A_PAUSE_GLOBAL_REFRESH', 'hostCertificate')
|
|
58
|
-
})
|
|
59
|
-
</script>
|
|
60
|
-
|
|
61
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="certificate-info-page p-4 h-full">
|
|
3
|
-
<div class="certificate-info-item-box p-4">
|
|
4
|
-
<div class="flex justify-between items-center flex-wrap gap-4">
|
|
5
|
-
<div class="flex items-center gap-3">
|
|
6
|
-
<ui-icon
|
|
7
|
-
v-if="statusIconName"
|
|
8
|
-
:name="statusIconName"
|
|
9
|
-
width="38"
|
|
10
|
-
height="38"
|
|
11
|
-
/>
|
|
12
|
-
<div>
|
|
13
|
-
<p class="status-text mb-1">
|
|
14
|
-
{{ localization.common.status }}: {{ statusText }}
|
|
15
|
-
</p>
|
|
16
|
-
<p class="status-subtext">
|
|
17
|
-
{{ currentExpirationText }}
|
|
18
|
-
</p>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="elapsed-block">
|
|
22
|
-
<div class="flex justify-between items-center gap-2 mb-[10px]">
|
|
23
|
-
<p class="elapsed-text">
|
|
24
|
-
{{ localization.inventoryConfigure.elapsed }}
|
|
25
|
-
</p>
|
|
26
|
-
<p class="elapsed-value">{{ currentElapsedValue }}%</p>
|
|
27
|
-
</div>
|
|
28
|
-
<ui-progress-bar-linear
|
|
29
|
-
:percent="currentElapsedValue"
|
|
30
|
-
:color="elapsedProgressBarColor"
|
|
31
|
-
stroke-width="10"
|
|
32
|
-
border-radius="16"
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="grid cols-2 mt-3 gap-3">
|
|
38
|
-
<div class="certificate-info-item-box p-4">
|
|
39
|
-
<div class="flex items-center gap-3">
|
|
40
|
-
<div class="icon-box">
|
|
41
|
-
<ui-icon name="file" width="20" height="20" />
|
|
42
|
-
</div>
|
|
43
|
-
<p class="title-info-block">{{ localization.common.subject }}</p>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="grid gap-3 mt-4">
|
|
46
|
-
<div
|
|
47
|
-
v-for="(item, key) in subjectInfoItem"
|
|
48
|
-
:key="key"
|
|
49
|
-
class="flex justify-between items-center flex-wrap gap-2"
|
|
50
|
-
>
|
|
51
|
-
<p class="info-label">{{ localization.inventoryConfigure[key] }}</p>
|
|
52
|
-
<p class="info-value">{{ item }}</p>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="certificate-info-item-box p-4">
|
|
57
|
-
<div class="flex items-center gap-3">
|
|
58
|
-
<div class="icon-box">
|
|
59
|
-
<ui-icon name="permission" width="20" height="20" />
|
|
60
|
-
</div>
|
|
61
|
-
<p class="title-info-block">{{ localization.common.issuer }}</p>
|
|
62
|
-
</div>
|
|
63
|
-
<div class="grid gap-3 mt-4">
|
|
64
|
-
<div
|
|
65
|
-
v-for="(item, key) in issuerInfoItem"
|
|
66
|
-
:key="key"
|
|
67
|
-
class="flex justify-between items-center flex-wrap gap-2"
|
|
68
|
-
>
|
|
69
|
-
<p class="info-label">{{ localization.inventoryConfigure[key] }}</p>
|
|
70
|
-
<p class="info-value">{{ item }}</p>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<p class="valid-period-title mt-5 mb-4">
|
|
76
|
-
{{ localization.inventoryConfigure.validPeriod }}
|
|
77
|
-
</p>
|
|
78
|
-
<div class="certificate-info-item-box p-4">
|
|
79
|
-
<p class="active-dates-title mb-4">
|
|
80
|
-
{{ localization.inventoryConfigure.certificateActiveDates }}
|
|
81
|
-
</p>
|
|
82
|
-
<div class="grid-container-dates grid cols-2">
|
|
83
|
-
<div class="flex items-center gap-3">
|
|
84
|
-
<div class="icon-box">
|
|
85
|
-
<ui-icon name="icon-events" width="20" height="20" />
|
|
86
|
-
</div>
|
|
87
|
-
<div>
|
|
88
|
-
<p class="date-title-info mb-1">
|
|
89
|
-
{{ localization.common.validFrom }}
|
|
90
|
-
</p>
|
|
91
|
-
<p class="date-value-info">{{ props.validFrom }}</p>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
<div class="flex items-center gap-3">
|
|
95
|
-
<div class="icon-box">
|
|
96
|
-
<ui-icon name="icon-events" width="20" height="20" />
|
|
97
|
-
</div>
|
|
98
|
-
<div>
|
|
99
|
-
<p class="date-title-info mb-1">
|
|
100
|
-
{{ localization.common.validTo }}
|
|
101
|
-
</p>
|
|
102
|
-
<p class="date-value-info">{{ props.validTo }}</p>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
</template>
|
|
109
|
-
|
|
110
|
-
<script lang="ts" setup>
|
|
111
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
112
|
-
import type { UI_I_Certificate } from '~/components/common/certificate/lib/models/interfaces'
|
|
113
|
-
import type { UI_I_CertificateInfoItem } from '~/components/common/certificate/Info/new/lib/models/interfaces'
|
|
114
|
-
import {
|
|
115
|
-
statusIconNameFunc,
|
|
116
|
-
statusTextFunc,
|
|
117
|
-
expirationTextFunc,
|
|
118
|
-
expirationDaysFunc,
|
|
119
|
-
elapsedValueFunc,
|
|
120
|
-
elapsedProgressBarColorFunc,
|
|
121
|
-
} from '~/components/common/certificate/Info/new/lib/config'
|
|
122
|
-
import { certificateInfo } from '~/components/common/certificate/Info/new/lib/utils'
|
|
123
|
-
|
|
124
|
-
const props = defineProps<{
|
|
125
|
-
certificateData: UI_I_Certificate | {}
|
|
126
|
-
validFrom: string
|
|
127
|
-
validTo: string
|
|
128
|
-
statusText: string
|
|
129
|
-
}>()
|
|
130
|
-
|
|
131
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
132
|
-
|
|
133
|
-
const currentExpirationDays = computed<number>(() =>
|
|
134
|
-
expirationDaysFunc(props.certificateData)
|
|
135
|
-
)
|
|
136
|
-
const statusIconName = ref<string>(
|
|
137
|
-
statusIconNameFunc(currentExpirationDays.value)
|
|
138
|
-
)
|
|
139
|
-
const statusText = ref<string>(
|
|
140
|
-
statusTextFunc(currentExpirationDays.value, localization.value)
|
|
141
|
-
)
|
|
142
|
-
const currentExpirationText = computed<string>(() =>
|
|
143
|
-
expirationTextFunc(currentExpirationDays.value, localization.value)
|
|
144
|
-
)
|
|
145
|
-
const currentElapsedValue = computed<number>(() =>
|
|
146
|
-
elapsedValueFunc(props.certificateData)
|
|
147
|
-
)
|
|
148
|
-
const elapsedProgressBarColor = computed<string>(() =>
|
|
149
|
-
elapsedProgressBarColorFunc(currentExpirationDays.value)
|
|
150
|
-
)
|
|
151
|
-
|
|
152
|
-
const subjectInfoItem = computed<UI_I_CertificateInfoItem>(() =>
|
|
153
|
-
certificateInfo(props.certificateData, 'subject')
|
|
154
|
-
)
|
|
155
|
-
const issuerInfoItem = computed<UI_I_CertificateInfoItem>(() =>
|
|
156
|
-
certificateInfo(props.certificateData, 'issuer')
|
|
157
|
-
)
|
|
158
|
-
</script>
|
|
159
|
-
|
|
160
|
-
<style>
|
|
161
|
-
:root {
|
|
162
|
-
--certificate-info-page-bg: #ffffff;
|
|
163
|
-
--certificate-info-page-item-box-bg: #ffffff;
|
|
164
|
-
--certificate-info-page-item-box-border: #e9ebed;
|
|
165
|
-
--certificate-info-page-item-status-text: #4d5d69;
|
|
166
|
-
--certificate-info-page-item-status-subtext: #9da6ad;
|
|
167
|
-
--certificate-info-page-item-elapsed-value: #4d5d69;
|
|
168
|
-
--certificate-info-page-item-icon-box-bg: #008fd614;
|
|
169
|
-
--certificate-info-page-item-icon-box-icon: #008fd6;
|
|
170
|
-
--certificate-info-page-item-title-block: #4d5d69;
|
|
171
|
-
--certificate-info-page-item-label: #4d5d69;
|
|
172
|
-
--certificate-info-page-item-value: #182531;
|
|
173
|
-
--certificate-info-page-valid-period-title: #4d5d69;
|
|
174
|
-
--certificate-info-page-active-dates-title: #4d5d69;
|
|
175
|
-
--certificate-info-page-date-value-info: #182531;
|
|
176
|
-
}
|
|
177
|
-
:root.dark-theme {
|
|
178
|
-
--certificate-info-page-bg: #334453;
|
|
179
|
-
--certificate-info-page-item-box-bg: #1b2a371f;
|
|
180
|
-
--certificate-info-page-item-box-border: #e9ebed1f;
|
|
181
|
-
--certificate-info-page-item-status-text: #e9eaec;
|
|
182
|
-
--certificate-info-page-item-status-subtext: #9da6ad;
|
|
183
|
-
--certificate-info-page-item-elapsed-value: #e9eaec;
|
|
184
|
-
--certificate-info-page-item-icon-box-bg: #2ba2de29;
|
|
185
|
-
--certificate-info-page-item-icon-box-icon: #2ba2de;
|
|
186
|
-
--certificate-info-page-item-title-block: #e9eaec;
|
|
187
|
-
--certificate-info-page-item-label: #e9eaec;
|
|
188
|
-
--certificate-info-page-item-value: #e9eaec;
|
|
189
|
-
--certificate-info-page-valid-period-title: #e9eaec;
|
|
190
|
-
--certificate-info-page-active-dates-title: #e9eaec;
|
|
191
|
-
--certificate-info-page-date-value-info: #e9eaec;
|
|
192
|
-
}
|
|
193
|
-
</style>
|
|
194
|
-
|
|
195
|
-
<style lang="scss" scoped>
|
|
196
|
-
.certificate-info-page {
|
|
197
|
-
background-color: var(--certificate-info-page-bg);
|
|
198
|
-
box-shadow: 0 1px 4px 0 #00000014;
|
|
199
|
-
border-radius: 8px;
|
|
200
|
-
|
|
201
|
-
.certificate-info-item-box {
|
|
202
|
-
background-color: var(--certificate-info-page-item-box-bg);
|
|
203
|
-
border: 1px solid var(--certificate-info-page-item-box-border);
|
|
204
|
-
border-radius: 8px;
|
|
205
|
-
|
|
206
|
-
.status-text {
|
|
207
|
-
font-weight: 500;
|
|
208
|
-
font-size: 14px;
|
|
209
|
-
color: var(--certificate-info-page-item-status-text);
|
|
210
|
-
}
|
|
211
|
-
.status-subtext {
|
|
212
|
-
font-weight: 400;
|
|
213
|
-
font-size: 12px;
|
|
214
|
-
color: var(--certificate-info-page-item-status-subtext);
|
|
215
|
-
}
|
|
216
|
-
.elapsed-block {
|
|
217
|
-
min-width: 320px;
|
|
218
|
-
|
|
219
|
-
.elapsed-text {
|
|
220
|
-
font-weight: 400;
|
|
221
|
-
font-size: 13px;
|
|
222
|
-
color: #9da6ad;
|
|
223
|
-
}
|
|
224
|
-
.elapsed-value {
|
|
225
|
-
font-weight: 400;
|
|
226
|
-
font-size: 13px;
|
|
227
|
-
color: var(--certificate-info-page-item-elapsed-value);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
.icon-box {
|
|
231
|
-
width: 40px;
|
|
232
|
-
height: 40px;
|
|
233
|
-
background: var(--certificate-info-page-item-icon-box-bg);
|
|
234
|
-
border-radius: 8px;
|
|
235
|
-
display: flex;
|
|
236
|
-
align-items: center;
|
|
237
|
-
justify-content: center;
|
|
238
|
-
color: var(--certificate-info-page-item-icon-box-icon);
|
|
239
|
-
}
|
|
240
|
-
.title-info-block {
|
|
241
|
-
font-weight: 500;
|
|
242
|
-
font-size: 14px;
|
|
243
|
-
color: var(--certificate-info-page-item-title-block);
|
|
244
|
-
}
|
|
245
|
-
.info-label {
|
|
246
|
-
font-weight: 400;
|
|
247
|
-
font-size: 13px;
|
|
248
|
-
line-height: 18px;
|
|
249
|
-
color: var(--certificate-info-page-item-label);
|
|
250
|
-
}
|
|
251
|
-
.info-value {
|
|
252
|
-
font-weight: 400;
|
|
253
|
-
font-size: 13px;
|
|
254
|
-
line-height: 18px;
|
|
255
|
-
color: var(--certificate-info-page-item-value);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
.valid-period-title {
|
|
259
|
-
font-size: 16px;
|
|
260
|
-
font-weight: 500;
|
|
261
|
-
color: var(--certificate-info-page-valid-period-title);
|
|
262
|
-
}
|
|
263
|
-
.active-dates-title {
|
|
264
|
-
font-size: 14px;
|
|
265
|
-
font-weight: 500;
|
|
266
|
-
color: var(--certificate-info-page-active-dates-title);
|
|
267
|
-
}
|
|
268
|
-
.grid-container-dates {
|
|
269
|
-
grid-gap: 44px;
|
|
270
|
-
|
|
271
|
-
.date-title-info {
|
|
272
|
-
font-size: 13px;
|
|
273
|
-
font-weight: 400;
|
|
274
|
-
line-height: 18px;
|
|
275
|
-
color: #9da6ad;
|
|
276
|
-
}
|
|
277
|
-
.date-value-info {
|
|
278
|
-
font-size: 13px;
|
|
279
|
-
font-weight: 400;
|
|
280
|
-
line-height: 18px;
|
|
281
|
-
color: var(--certificate-info-page-date-value-info);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
</style>
|