bfg-common 1.5.774 → 1.5.775
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/img/icons/icons-sprite-dark-1.svg +3 -2
- package/assets/img/icons/icons-sprite-light-1.svg +4 -3
- package/assets/localization/local_be.json +27 -165
- package/assets/localization/local_en.json +27 -165
- package/assets/localization/local_hy.json +26 -164
- package/assets/localization/local_kk.json +26 -164
- package/assets/localization/local_ru.json +33 -171
- package/assets/localization/local_zh.json +26 -164
- package/assets/scss/common/global.scss +5 -5
- package/assets/scss/common/icons/icons-1.scss +1 -1
- package/assets/scss/common/icons/icons-2.scss +0 -18
- package/assets/scss/common/theme.scss +0 -2
- package/assets/scss/components/auth.scss +5 -32
- package/components/atoms/dropdown/tree/Tree.vue +0 -2
- package/components/atoms/nav/NavBar.vue +0 -1
- package/components/atoms/switch/Switch.vue +1 -7
- package/components/atoms/table/dataGrid/DataGrid.vue +20 -36
- package/components/atoms/wizard/Wizard.vue +1 -1
- package/components/common/backup/storage/actions/add/Old.vue +1 -22
- package/components/common/backup/storage/actions/add/lib/config/createDatastore.ts +1 -1
- package/components/common/backup/storage/actions/add/steps/typeMode/TypeModeOld.vue +48 -1
- package/components/common/backup/storage/actions/add/steps/typeMode/lib/config/typeOptions.ts +20 -20
- package/components/common/backup/storage/actions/delete/Delete.vue +15 -37
- package/components/common/diagramMain/Header.vue +0 -4
- package/components/common/diagramMain/lib/models/interfaces.ts +0 -2
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +1 -5
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +0 -16
- package/components/common/graph/graphNew/EmptyBlock.vue +1 -2
- package/components/common/help/navbar/left/lib/utils/constructAccordion.ts +1 -2
- package/components/common/help/navbar/right/Right.vue +23 -86
- package/components/common/layout/theHeader/TheHeader.vue +81 -44
- package/components/common/layout/theHeader/{New.vue → TheHeaderNew.vue} +26 -14
- package/components/common/layout/theHeader/{Old.vue → TheHeaderOld.vue} +21 -13
- package/components/common/layout/theHeader/ThemeSwitch.vue +18 -8
- package/components/common/layout/theHeader/feedback/new/email/Email.vue +2 -2
- package/components/common/layout/theHeader/helpMenu/{about/About.vue → About.vue} +22 -12
- package/components/common/layout/theHeader/helpMenu/HelpMenu.vue +8 -6
- package/components/common/layout/theHeader/helpMenu/{about/New.vue → aboutNew/AboutNew.vue} +4 -5
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -0
- package/components/common/layout/theHeader/helpMenu/{new/New.vue → helpMenuNew/HelpMenuNew.vue} +1 -1
- package/components/common/layout/theHeader/helpMenu/{new → helpMenuNew}/lib/config/dropMenu.ts +1 -1
- package/components/common/layout/theHeader/helpMenu/{old/Old.vue → helpMenuOld/HelpMenuOld.vue} +2 -2
- package/components/common/layout/theHeader/helpMenu/{old → helpMenuOld}/lib/config/dropMenu.ts +1 -1
- package/components/common/layout/theHeader/modals/reconnect/Reconnect.vue +11 -11
- package/components/common/layout/theHeader/modals/reconnect/{New.vue → ReconnectNew.vue} +1 -1
- package/components/common/layout/theHeader/modals/reconnect/{Old.vue → ReconnectOld.vue} +0 -2
- package/components/common/layout/theHeader/userMenu/UserMenu.vue +28 -21
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +21 -12
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +43 -36
- package/components/common/layout/theHeader/userMenu/modals/changePassword/Old.vue +2 -0
- package/components/common/layout/theHeader/userMenu/modals/changePassword/lib/utils.ts +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/Preferences.vue +44 -19
- package/components/common/layout/theHeader/userMenu/modals/preferences/{New.vue → PreferencesNew.vue} +16 -24
- package/components/common/layout/theHeader/userMenu/modals/preferences/{Old.vue → PreferencesOld.vue} +18 -10
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +18 -17
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{New.vue → ChangeLanguageNew.vue} +30 -6
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{Old.vue → ChangeLanguageOld.vue} +30 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +20 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{New.vue → DefaultConsoleNew.vue} +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{Old.vue → DefaultConsoleOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/Inventory.vue +21 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{New.vue → InventoryNew.vue} +2 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{Old.vue → InventoryOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/New.vue +12 -277
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Old.vue +56 -30
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Security.vue +6 -65
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +22 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{New.vue → TimeFormatNew.vue} +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{Old.vue → TimeFormatOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +22 -13
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/{New.vue → ViewNew.vue} +38 -64
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/{Old.vue → ViewOld.vue} +2 -21
- package/components/common/layout/theHeader/userMenu/{new/New.vue → userMenuNew/UserMenuNew.vue} +1 -1
- package/components/common/layout/theHeader/userMenu/{old/Old.vue → userMenuOld/UserMenuOld.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/{old → userMenuOld}/lib/config/dropMenu.ts +1 -1
- package/components/common/monitor/advanced/graphView/GraphView.vue +0 -8
- package/components/common/monitor/advanced/tools/Tools.vue +1 -5
- package/components/common/monitor/overview/OverviewNew.vue +1 -1
- package/components/common/pages/backups/backupsNew/BackupsNew.vue +19 -107
- package/components/common/pages/backups/backupsNew/contextMenuView/ContextMenuView.vue +10 -16
- package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +10 -6
- package/components/common/pages/backups/modals/createBackup/New.vue +9 -22
- package/components/common/pages/backups/modals/createBackup/Old.vue +10 -8
- package/components/common/pages/backups/modals/createBackup/configuration/ConfigurationNew.vue +3 -17
- package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +0 -6
- package/components/common/pages/backups/modals/createBackup/datastores/DatastoresOld.vue +2 -22
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +8 -8
- package/components/common/pages/backups/modals/createBackup/disks/Disks.vue +0 -6
- package/components/common/pages/backups/modals/createBackup/disks/DisksOld.vue +1 -22
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/TableView.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/lib/config/table.ts +7 -7
- package/components/common/pages/backups/modals/createBackup/general/General.vue +1 -7
- package/components/common/pages/backups/modals/createBackup/general/GeneralNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/general/GeneralOld.vue +0 -17
- package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts +5 -5
- package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +1 -1
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +2 -11
- package/components/common/pages/backups/modals/createBackup/lib/validation/validations.ts +14 -6
- package/components/common/pages/backups/modals/deleteBackup/DeleteBackup.vue +0 -1
- package/components/common/pages/backups/modals/lib/config/restore.ts +115 -116
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -187
- package/components/common/pages/backups/modals/restore/Restore.vue +303 -302
- package/components/common/pages/backups/modals/restore/{Old.vue → RestoreOld.vue} +0 -5
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +32 -50
- package/components/common/pages/backups/modals/restore/disks/DisksNew.vue +2 -2
- package/components/common/pages/backups/modals/restore/disks/DisksOld.vue +2 -2
- package/components/common/pages/backups/modals/restore/lib/config/readyToCompleteOptions.ts +62 -94
- package/components/common/pages/backups/modals/restore/lib/config/restoreCodes.ts +1 -1
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +108 -130
- package/components/common/pages/backups/modals/restore/types/Types.vue +19 -31
- package/components/common/pages/backups/modals/restore/types/{New.vue → TypesNew.vue} +95 -95
- package/components/common/pages/backups/modals/restore/types/{Old.vue → TypesOld.vue} +61 -62
- package/components/common/pages/backups/modals/restore/types/lib/config/descriptions.ts +0 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -7
- package/components/common/pages/hardwareHealth/tableView/TableView.vue +0 -8
- package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +1 -13
- package/components/common/pages/hardwareHealth/toolsPanel/lib/config/actionsPanel.ts +4 -4
- package/components/common/pages/home/widgets/warnings/lib/config/config.ts +2 -2
- package/components/common/pages/home/widgets/warnings/table/lib/config/config.ts +2 -2
- package/components/common/pages/home/widgets/warnings/table/lib/models/enums.ts +12 -0
- package/components/common/pages/scheduledTasks/table/Table.vue +11 -3
- package/components/common/pages/scheduledTasks/table/{expandDetails/Old.vue → detailsList/DetailsList.vue} +4 -7
- package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun/HistoryRun.vue → detailsList/Table.vue} +5 -9
- package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/historyRunsTable.ts +2 -4
- package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/tableKeys.ts +1 -1
- package/components/common/pages/scheduledTasks/table/{expandDetails/lib/config/expandDetails.ts → detailsList/lib/config/tasksRowDetails.ts} +1 -3
- package/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable.ts +0 -3
- package/components/common/pages/tasks/Tasks.vue +122 -125
- package/components/common/pages/tasks/table/Table.vue +370 -373
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +1 -1
- package/components/common/pages/tasks/table/lib/config/config.ts +270 -279
- package/components/common/qrcode/Qrcode.vue +56 -0
- package/components/common/selectLanguage/SelectLanguage.vue +5 -5
- package/components/common/split/horizontal/New.vue +2 -0
- package/components/common/split/vertical/New.vue +1 -2
- package/components/common/vm/actions/add/New.vue +11 -13
- package/components/common/vm/actions/add/Old.vue +1 -1
- package/components/common/vm/actions/clone/old/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/New.vue +36 -12
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/Old.vue +37 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocket.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces.ts +1 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +7 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/New.vue +4 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +45 -52
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/Old.vue +8 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +3 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/New.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/Old.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/New.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/Old.vue +2 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/New.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/Old.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/New.vue +2 -2
- package/components/common/vm/actions/common/select/compatibility/New.vue +1 -0
- package/components/common/vm/actions/common/select/options/Old.vue +2 -1
- package/components/common/vm/actions/common/select/storage/new/New.vue +1 -1
- package/components/common/wizards/common/compatibility/New.vue +1 -1
- package/components/common/wizards/common/compatibility/Old.vue +1 -1
- package/components/common/wizards/common/steps/computeResource/New.vue +1 -9
- package/components/common/wizards/datastore/add/Add.vue +228 -227
- package/components/common/wizards/datastore/add/Old.vue +0 -16
- package/components/common/wizards/datastore/add/lib/config/createDatastore.ts +0 -1
- package/components/common/wizards/datastore/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +0 -5
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +0 -5
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/old/Old.vue +3 -2
- package/components/common/wizards/datastore/add/steps/readyComplete/lib/config/propertiesDetails.ts +1 -8
- package/components/common/wizards/datastore/add/steps/typeMode/TypeModeOld.vue +48 -1
- package/components/common/wizards/network/add/Add.vue +5 -28
- package/components/common/wizards/network/add/lib/config/config.ts +1 -1
- package/components/common/wizards/network/add/lib/config/initialData.ts +3 -6
- package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +0 -1
- package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +192 -192
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +1 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +6 -18
- package/components/common/wizards/vm/migrate/lib/models/enums.ts +2 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/old/lib/config/hostTable.ts +1 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/SelectStorage.vue +4 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +2 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +13 -29
- package/composables/deepCopy.ts +21 -0
- package/composables/useEnvLanguage.ts +8 -7
- package/composables/useUniqueId.ts +5 -0
- package/lib/config/regExp.ts +1 -1
- package/lib/models/enums.ts +0 -28
- package/lib/models/interfaces.ts +0 -2
- package/lib/models/types.ts +60 -59
- package/lib/utils/localizationMapper.ts +2 -1
- package/package.json +4 -3
- package/plugins/date.ts +37 -14
- package/plugins/validation.ts +6 -6
- package/store/main/getters.ts +2 -2
- package/store/tasks/actions.ts +1 -1
- package/store/tasks/mappers/tasks.ts +1 -8
- package/components/common/backup/storage/actions/add/steps/typeMode/tooltip/Tooltip.vue +0 -33
- package/components/common/certificate/Certificate.vue +0 -27
- package/components/common/certificate/CertificateInfo.vue +0 -139
- package/components/common/certificate/Tools.vue +0 -59
- package/components/common/certificate/lib/config/tabsPannel.ts +0 -22
- package/components/common/certificate/lib/models/interfaces.ts +0 -9
- package/components/common/certificate/lib/models/types.ts +0 -1
- package/components/common/certificate/modals/renew/New.vue +0 -64
- package/components/common/certificate/modals/renew/Old.vue +0 -122
- package/components/common/certificate/modals/renew/Renew.vue +0 -67
- package/components/common/configure/advancedSystemSettings/AdvancedSystemSettings.vue +0 -49
- package/components/common/configure/advancedSystemSettings/modals/edit/Edit.vue +0 -55
- package/components/common/configure/advancedSystemSettings/modals/edit/New.vue +0 -37
- package/components/common/configure/advancedSystemSettings/modals/edit/Old.vue +0 -46
- package/components/common/configure/advancedSystemSettings/tableView/TableView.vue +0 -30
- package/components/common/configure/advancedSystemSettings/tableView/new/New.vue +0 -193
- package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/hostTable.ts +0 -308
- package/components/common/configure/advancedSystemSettings/tableView/old/Old.vue +0 -128
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/table.ts +0 -93
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/tableKeys.ts +0 -9
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/models/types.ts +0 -5
- package/components/common/configure/advancedSystemSettings/tools/New.vue +0 -5
- package/components/common/configure/advancedSystemSettings/tools/Old.vue +0 -28
- package/components/common/configure/advancedSystemSettings/tools/Tools.vue +0 -28
- package/components/common/configure/securityProfile/SecurityProfile.vue +0 -28
- package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +0 -112
- package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +0 -27
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +0 -61
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +0 -109
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +0 -28
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +0 -180
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +0 -64
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +0 -6
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +0 -1
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +0 -19
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +0 -22
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +0 -76
- package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +0 -5
- package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +0 -30
- package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +0 -29
- package/components/common/layout/console/Console.vue +0 -70
- package/components/common/layout/console/lib/models/interfaces.ts +0 -10
- package/components/common/layout/theHeader/helpMenu/about/Old.vue +0 -78
- package/components/common/pages/auth/TheFooter.vue +0 -104
- package/components/common/pages/backups/backupsNew/Skeleton.vue +0 -136
- package/components/common/pages/files/lib/models/enums.ts +0 -36
- package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +0 -30
- package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +0 -61
- package/components/common/pages/tasks/table/lib/models/interfaces.ts +0 -9
- package/components/common/qr/Qr.vue +0 -69
- package/components/common/vm/snapshots/DetailView.vue +0 -90
- package/components/common/vm/snapshots/Old.vue +0 -71
- package/components/common/vm/snapshots/Snapshots.vue +0 -82
- package/components/common/vm/snapshots/lib/models/interfaces.ts +0 -5
- package/components/common/vm/snapshots/lib/models/types.ts +0 -11
- package/components/common/vm/snapshots/modals/confirm/Confirm.vue +0 -48
- package/components/common/vm/snapshots/modals/confirm/New.vue +0 -128
- package/components/common/vm/snapshots/modals/confirm/Old.vue +0 -140
- package/components/common/vm/snapshots/modals/confirm/lib/models/enums.ts +0 -19
- package/components/common/vm/snapshots/modals/lib/config/modalTexts.ts +0 -30
- package/components/common/vm/snapshots/modals/takeOrEdit/Old.vue +0 -220
- package/components/common/vm/snapshots/modals/takeOrEdit/TakeOrEdit.vue +0 -51
- package/components/common/vm/snapshots/modals/takeOrEdit/new/New.vue +0 -184
- package/components/common/vm/snapshots/modals/takeOrEdit/new/lib/utils/getSnapshotsName.ts +0 -15
- package/components/common/vm/snapshots/new/New.vue +0 -471
- package/components/common/vm/snapshots/new/Skeleton.vue +0 -136
- package/components/common/vm/snapshots/new/contextMenuView/ContextMenuView.vue +0 -103
- package/components/common/vm/snapshots/new/contextMenuView/lib/config/contextMenuItems.ts +0 -34
- package/components/common/vm/snapshots/new/lib/models/interfaces.ts +0 -12
- package/components/common/vm/snapshots/new/lib/utils/contextMenu.ts +0 -29
- package/components/common/vm/snapshots/new/lib/utils/details.ts +0 -48
- package/components/common/vm/snapshots/tools/Tools.vue +0 -56
- package/components/common/vm/snapshots/tools/lib/config/tabsPannel.ts +0 -39
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/AdvancedOptions.vue +0 -43
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +0 -114
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/Old.vue +0 -114
- package/components/common/wizards/datastore/add/steps/typeMode/tooltip/Tooltip.vue +0 -33
- package/composables/useBrowse.ts +0 -24
- package/lib/models/composables/useBrowse/interfaces.ts +0 -4
- package/store/inventory/modules/configure/advancedSystemSettings/actions.ts +0 -122
- package/store/inventory/modules/configure/advancedSystemSettings/getters.ts +0 -9
- package/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces.ts +0 -11
- package/store/inventory/modules/configure/advancedSystemSettings/mutations.ts +0 -12
- package/store/inventory/modules/configure/advancedSystemSettings/state.ts +0 -9
- package/store/inventory/modules/configure/advancedSystemSettings/store.ts +0 -12
- package/store/inventory/modules/configure/securityProfile/actions.ts +0 -58
- package/store/inventory/modules/configure/securityProfile/getters.ts +0 -10
- package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +0 -16
- package/store/inventory/modules/configure/securityProfile/mutations.ts +0 -13
- package/store/inventory/modules/configure/securityProfile/state.ts +0 -7
- package/store/inventory/modules/configure/securityProfile/store.ts +0 -12
- package/store/inventory/modules/snapshots/lib/models/interfaces.ts +0 -45
- /package/components/common/layout/theHeader/helpMenu/{old → helpMenuOld}/lib/models/types.ts +0 -0
- /package/components/common/layout/theHeader/userMenu/{new → userMenuNew}/lib/config/dropMenu.ts +0 -0
- /package/components/common/layout/theHeader/userMenu/{old → userMenuOld}/lib/models/types.ts +0 -0
- /package/components/common/pages/backups/modals/restore/{New.vue → RestoreNew.vue} +0 -0
- /package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/models/types.ts +0 -0
|
@@ -66,85 +66,69 @@ export const bodyItems = (
|
|
|
66
66
|
data: UI_I_StorageConfigurePerDiskItem[]
|
|
67
67
|
): UI_I_BodyItem[][] => {
|
|
68
68
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
69
|
-
const localization = useLocal()
|
|
70
69
|
|
|
71
|
-
data.forEach((
|
|
70
|
+
data.forEach((storage: UI_I_StorageConfigurePerDiskItem, key: number) => {
|
|
72
71
|
const diskFormat =
|
|
73
72
|
key === 0
|
|
74
73
|
? 'N/A'
|
|
75
|
-
: UI_E_SelectStorageDiskFormat[
|
|
76
|
-
|
|
77
|
-
const file =
|
|
78
|
-
disk.extra.disk_source === 'meta'
|
|
79
|
-
? disk[vmMigrateDiskTableItemKeys[2]]
|
|
80
|
-
: `${disk.extra.disk_source} (${disk.extra.disk_size} ${localization.common.mb} )`
|
|
74
|
+
: UI_E_SelectStorageDiskFormat[storage[vmMigrateDiskTableItemKeys[4]]]
|
|
81
75
|
|
|
82
76
|
bodyItems.push([
|
|
83
77
|
{
|
|
84
78
|
key: 'col0',
|
|
85
|
-
text:
|
|
79
|
+
text: storage[vmMigrateDiskTableItemKeys[0]],
|
|
86
80
|
id: key,
|
|
87
|
-
testId: `disk-table-${key}`,
|
|
88
81
|
},
|
|
89
82
|
{
|
|
90
83
|
key: 'col1',
|
|
91
|
-
text:
|
|
84
|
+
text: storage[vmMigrateDiskTableItemKeys[1]],
|
|
92
85
|
id: key,
|
|
93
|
-
testId: `disk-table-${key}`,
|
|
94
86
|
},
|
|
95
87
|
{
|
|
96
88
|
key: 'col2',
|
|
97
|
-
text:
|
|
89
|
+
text: storage[vmMigrateDiskTableItemKeys[2]],
|
|
98
90
|
id: key,
|
|
99
|
-
testId: `disk-table-${key}`,
|
|
100
91
|
},
|
|
101
92
|
{
|
|
102
93
|
key: 'col3',
|
|
103
|
-
text:
|
|
94
|
+
text: storage[vmMigrateDiskTableItemKeys[3]],
|
|
104
95
|
id: key,
|
|
105
|
-
testId: `disk-table-${key}`,
|
|
106
96
|
},
|
|
107
97
|
{
|
|
108
98
|
key: 'col4',
|
|
109
99
|
text: diskFormat,
|
|
110
100
|
id: key,
|
|
111
|
-
testId: `disk-table-${key}`,
|
|
112
101
|
},
|
|
113
102
|
{
|
|
114
103
|
key: 'col5',
|
|
115
|
-
text:
|
|
104
|
+
text: storage.extra[vmMigrateDiskTableItemKeys[5]],
|
|
116
105
|
id: key,
|
|
117
|
-
testId: `disk-table-${key}`,
|
|
118
106
|
},
|
|
107
|
+
|
|
119
108
|
{
|
|
120
109
|
key: 'col6',
|
|
121
|
-
text:
|
|
110
|
+
text: storage.extra[vmMigrateDiskTableItemKeys[6]],
|
|
122
111
|
id: key,
|
|
123
|
-
testId: `disk-table-${key}`,
|
|
124
112
|
},
|
|
125
113
|
{
|
|
126
114
|
key: 'col7',
|
|
127
|
-
text:
|
|
115
|
+
text: storage.extra[vmMigrateDiskTableItemKeys[7]],
|
|
128
116
|
id: key,
|
|
129
|
-
testId: `disk-table-${key}`,
|
|
130
117
|
},
|
|
131
118
|
{
|
|
132
119
|
key: 'col8',
|
|
133
|
-
text:
|
|
120
|
+
text: storage.extra[vmMigrateDiskTableItemKeys[8]],
|
|
134
121
|
id: key,
|
|
135
|
-
testId: `disk-table-${key}`,
|
|
136
122
|
},
|
|
137
123
|
{
|
|
138
124
|
key: 'col9',
|
|
139
|
-
text:
|
|
125
|
+
text: storage.extra[vmMigrateDiskTableItemKeys[9]],
|
|
140
126
|
id: key,
|
|
141
|
-
testId: `disk-table-${key}`,
|
|
142
127
|
},
|
|
143
128
|
{
|
|
144
129
|
key: 'col10',
|
|
145
|
-
text:
|
|
130
|
+
text: storage.extra[vmMigrateDiskTableItemKeys[10]],
|
|
146
131
|
id: key,
|
|
147
|
-
testId: `disk-table-${key}`,
|
|
148
132
|
},
|
|
149
133
|
])
|
|
150
134
|
})
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
let exists: any = []
|
|
2
|
+
export const useDeepCopy = (obj: any, is = false) => {
|
|
3
|
+
if (!is) exists = []
|
|
4
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
5
|
+
return obj
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const res: any = Array.isArray(obj) ? [] : {}
|
|
9
|
+
for (const i in obj) {
|
|
10
|
+
const item = obj[i]
|
|
11
|
+
if (exists.includes(item)) {
|
|
12
|
+
res[i] = item
|
|
13
|
+
continue
|
|
14
|
+
}
|
|
15
|
+
exists.push(item)
|
|
16
|
+
|
|
17
|
+
res[i] = useDeepCopy(item, true)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return res
|
|
21
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export function useEnvLanguage(): string {
|
|
2
|
-
|
|
2
|
+
const { $store }: any = useNuxtApp()
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
let localizationCode = 'en_US'
|
|
5
5
|
const langFromLocalStorage =
|
|
6
|
-
|
|
7
|
-
useLocalStorage('lang')
|
|
6
|
+
$store.getters['main/getInterfaceLang'] || // Из $store для Сферы, но думаю нужно сделать одинаково из localStorage
|
|
7
|
+
useLocalStorage('lang') ||
|
|
8
|
+
useLocalStorage('languageType')
|
|
8
9
|
|
|
9
10
|
if (langFromLocalStorage) {
|
|
10
11
|
if (
|
|
@@ -12,11 +13,11 @@ export function useEnvLanguage(): string {
|
|
|
12
13
|
langFromLocalStorage === 'ru_RU' ||
|
|
13
14
|
langFromLocalStorage === 'hy_AM'
|
|
14
15
|
) {
|
|
15
|
-
localizationCode
|
|
16
|
+
localizationCode = langFromLocalStorage
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
localizationCode
|
|
20
|
+
localizationCode = localizationCode.slice(0, 2).toUpperCase()
|
|
20
21
|
|
|
21
|
-
return localizationCode
|
|
22
|
+
return localizationCode
|
|
22
23
|
}
|
package/lib/config/regExp.ts
CHANGED
|
@@ -8,7 +8,7 @@ const url = /https?:\/\/([a-zA-Zа-яА-Я0-9.-]+\.[a-zA-Zа-яА-Я]{2,6})\b/
|
|
|
8
8
|
const specialChar = /[!@#$%^&*(),.?":{}|<>]/
|
|
9
9
|
const specialCharWidthSpace = /[!@#$%^&*(),?":{}|<>]|(\s)|\.$/
|
|
10
10
|
const cron = /^(\*|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])|\*\/([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])) (\*|([0-9]|1[0-9]|2[0-3])|\*\/([0-9]|1[0-9]|2[0-3])) (\*|([1-9]|1[0-9]|2[0-9]|3[0-1])|\*\/([1-9]|1[0-9]|2[0-9]|3[0-1])) (\*|([1-9]|1[0-2])|\*\/([1-9]|1[0-2])) (\*|([0-6])|\*\/([0-6]))$/
|
|
11
|
-
export const
|
|
11
|
+
export const RegExp = {
|
|
12
12
|
ip,
|
|
13
13
|
email,
|
|
14
14
|
password,
|
package/lib/models/enums.ts
CHANGED
|
@@ -18,34 +18,6 @@ export enum UI_E_NodeIconsByState {
|
|
|
18
18
|
'network_Error' = 'vsphere-icon-network-error',
|
|
19
19
|
'network_Warning' = 'vsphere-icon-network-warning',
|
|
20
20
|
'network_connected' = 'vsphere-icon-network',
|
|
21
|
-
|
|
22
|
-
'network-error' = 'vsphere-icon-network-error',
|
|
23
|
-
'network' = 'vsphere-icon-network',
|
|
24
|
-
'network-warning' = 'vsphere-icon-network-warning',
|
|
25
|
-
|
|
26
|
-
'folder_Normal' = 'vsphere-icon-folder',
|
|
27
|
-
'folder_Error' = 'vsphere-icon-folder-error',
|
|
28
|
-
'folder_Warning' = 'vsphere-icon-folder-warning',
|
|
29
|
-
'folder_connected' = 'vsphere-icon-folder',
|
|
30
|
-
|
|
31
|
-
'file_Normal' = 'vsphere-icon-file',
|
|
32
|
-
'file_Error' = 'vsphere-icon-file-error',
|
|
33
|
-
'file_Warning' = 'vsphere-icon-file-warning',
|
|
34
|
-
'file_connected' = 'vsphere-icon-file',
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export enum UI_E_TabsByType {
|
|
38
|
-
'zone' = 'h',
|
|
39
|
-
'datacenter' = 'h',
|
|
40
|
-
'folder' = 'h',
|
|
41
|
-
'cluster' = 'h',
|
|
42
|
-
'zonedir' = 'h', // TODO ??
|
|
43
|
-
'zone_dir' = 'h',
|
|
44
|
-
// для прокуратор
|
|
45
|
-
'host' = 'h',
|
|
46
|
-
'vm' = 'v',
|
|
47
|
-
'datastore' = 's',
|
|
48
|
-
'network' = 'n',
|
|
49
21
|
}
|
|
50
22
|
|
|
51
23
|
export enum UI_E_State {
|
package/lib/models/interfaces.ts
CHANGED
|
@@ -60,8 +60,6 @@ export interface UI_I_Localization {
|
|
|
60
60
|
registerVm: UI_I_ArbitraryObject<string>
|
|
61
61
|
files: UI_I_ArbitraryObject<string>
|
|
62
62
|
myPreferences: UI_I_ArbitraryObject<string>
|
|
63
|
-
cacheConfiguration: UI_I_ArbitraryObject<string>
|
|
64
|
-
configureSecurityProfile: UI_I_ArbitraryObject<string>
|
|
65
63
|
}
|
|
66
64
|
export interface UI_I_SendTaskParams {
|
|
67
65
|
method: string
|
package/lib/models/types.ts
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
export type UI_T_Project = 'sphere' | 'procurator'
|
|
2
|
-
|
|
3
|
-
export type UI_T_Lang = 'ru' | 'en' | 'be' | 'hy' | 'kk' | 'zh'
|
|
4
|
-
|
|
5
|
-
export type UI_T_NavNodes =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
| '
|
|
10
|
-
| '
|
|
11
|
-
| '
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export type
|
|
15
|
-
|
|
16
|
-
| '
|
|
17
|
-
| '
|
|
18
|
-
| '
|
|
19
|
-
| '
|
|
20
|
-
| '
|
|
21
|
-
| '
|
|
22
|
-
| '
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
| '
|
|
27
|
-
| '
|
|
28
|
-
| '
|
|
29
|
-
| '
|
|
30
|
-
| '
|
|
31
|
-
| '
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
| '
|
|
36
|
-
| '
|
|
37
|
-
| '
|
|
38
|
-
| '
|
|
39
|
-
| '
|
|
40
|
-
| '
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
|
44
|
-
| '
|
|
45
|
-
| '
|
|
46
|
-
| '
|
|
47
|
-
| '
|
|
48
|
-
| '
|
|
49
|
-
| '
|
|
50
|
-
| '
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
| '
|
|
54
|
-
| '
|
|
55
|
-
| '
|
|
56
|
-
| '
|
|
57
|
-
| '
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
export type UI_T_Project = 'sphere' | 'procurator'
|
|
2
|
+
|
|
3
|
+
export type UI_T_Lang = 'ru' | 'en' | 'be' | 'hy' | 'kk' | 'zh'
|
|
4
|
+
|
|
5
|
+
export type UI_T_NavNodes =
|
|
6
|
+
| 'h'
|
|
7
|
+
// для прокуратор
|
|
8
|
+
| 'v'
|
|
9
|
+
| 's'
|
|
10
|
+
| 'n'
|
|
11
|
+
| 'b'
|
|
12
|
+
|
|
13
|
+
export type UI_T_Binary = 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB' | 'ZB' | 'YB'
|
|
14
|
+
export type UI_T_BinaryLower =
|
|
15
|
+
| 'kb'
|
|
16
|
+
| 'mb'
|
|
17
|
+
| 'gb'
|
|
18
|
+
| 'tb'
|
|
19
|
+
| 'pb'
|
|
20
|
+
| 'eb'
|
|
21
|
+
| 'zb'
|
|
22
|
+
| 'yb'
|
|
23
|
+
|
|
24
|
+
export type UI_T_LangValue =
|
|
25
|
+
| 'en_US'
|
|
26
|
+
| 'ru_RU'
|
|
27
|
+
| 'hy_AM'
|
|
28
|
+
| 'zh_CHS'
|
|
29
|
+
| 'kk_KZ'
|
|
30
|
+
| 'be_BY'
|
|
31
|
+
| 'BROWSER'
|
|
32
|
+
|
|
33
|
+
export type UI_T_LanguageKey =
|
|
34
|
+
| 'common'
|
|
35
|
+
| 'auth'
|
|
36
|
+
| 'home'
|
|
37
|
+
| 'tasks'
|
|
38
|
+
| 'layout'
|
|
39
|
+
| 'mainNavigation'
|
|
40
|
+
| 'administration'
|
|
41
|
+
| 'inventoryConfigure'
|
|
42
|
+
| 'vmOverrides'
|
|
43
|
+
| 'datastoreWizard'
|
|
44
|
+
| 'inventorySummary'
|
|
45
|
+
| 'contextMenu'
|
|
46
|
+
| 'networks'
|
|
47
|
+
| 'inventory'
|
|
48
|
+
| 'inventoryMonitor'
|
|
49
|
+
| 'inventoryTabs'
|
|
50
|
+
| 'bottomPanel'
|
|
51
|
+
|
|
52
|
+
export type UI_T_ProcuratorTypeNodes =
|
|
53
|
+
| 'host'
|
|
54
|
+
| 'vm'
|
|
55
|
+
| 'datastore'
|
|
56
|
+
| 'network'
|
|
57
|
+
| 'folder'
|
|
58
|
+
| 'file'
|
|
59
|
+
|
|
60
|
+
export type UI_T_SphereTypeNodes = UI_T_ProcuratorTypeNodes // TODO добавить осталиные типи те что исползуется в сфере
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_T_LanguageKey } from '~/lib/models/types'
|
|
2
3
|
|
|
3
4
|
const replaceProductNameRecursion = (
|
|
4
5
|
localization: UI_I_Localization,
|
|
5
6
|
productName: any
|
|
6
7
|
): UI_I_Localization => {
|
|
7
8
|
for (const key of Object.keys(localization)) {
|
|
8
|
-
let item = localization[key as
|
|
9
|
+
let item = localization[key as UI_T_LanguageKey]
|
|
9
10
|
|
|
10
11
|
for (const key2 of Object.keys(item)) {
|
|
11
12
|
item[key2] = item[key2].replaceAll('{productName}', productName)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.775",
|
|
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.27",
|
|
21
|
-
"bfg-uikit": "1.0.
|
|
21
|
+
"bfg-uikit": "1.0.533",
|
|
22
22
|
"eslint-config-prettier": "^8.5.0",
|
|
23
23
|
"eslint-plugin-myrules": "file:./eslint",
|
|
24
24
|
"nuxt": "3.11.2",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
|
39
39
|
"@vueuse/components": "^10.1.2",
|
|
40
40
|
"html2canvas": "^1.4.1",
|
|
41
|
-
"prettier-eslint": "^15.0.1"
|
|
41
|
+
"prettier-eslint": "^15.0.1",
|
|
42
|
+
"qrcode": "^1.5.4"
|
|
42
43
|
}
|
|
43
44
|
}
|
package/plugins/date.ts
CHANGED
|
@@ -135,7 +135,15 @@ export default defineNuxtPlugin(() => {
|
|
|
135
135
|
zh_CHS: 'yyyy-MM-dd',
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
const dateFormat = ref(dateFormats[currentLanguage])
|
|
139
|
+
|
|
140
|
+
window.addEventListener('timeFormatStorageChanged', function handler() {
|
|
141
|
+
dateFormat.value = dateFormats[lang || useLocalStorage('lang') || 'en_US'] // TODO нужно проверить когда будем работать без useLocalStorage
|
|
142
|
+
|
|
143
|
+
window.removeEventListener('timeFormatStorageChanged', handler)
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
return dateFormat.value
|
|
139
147
|
}
|
|
140
148
|
|
|
141
149
|
// Получаем формат времени
|
|
@@ -277,45 +285,60 @@ export default defineNuxtPlugin(() => {
|
|
|
277
285
|
|
|
278
286
|
const dateObj: Date = new Date(date)
|
|
279
287
|
|
|
280
|
-
const formatDateLocal =
|
|
288
|
+
const formatDateLocal = ref(
|
|
281
289
|
localOptions.formatDate || getDateFormat(localOptions.lang)
|
|
290
|
+
)
|
|
282
291
|
|
|
283
|
-
const formatTimeLocal =
|
|
292
|
+
const formatTimeLocal = ref(
|
|
284
293
|
localOptions.formatTime ||
|
|
285
|
-
|
|
294
|
+
getTimeFormat(localOptions.hasSeconds, localOptions.formatTime)
|
|
295
|
+
)
|
|
286
296
|
|
|
287
|
-
|
|
297
|
+
const formatDatetime = ref('')
|
|
288
298
|
|
|
289
299
|
if (localOptions.onlyDate) {
|
|
290
|
-
formatDatetime = formatDateLocal
|
|
300
|
+
formatDatetime.value = formatDateLocal.value
|
|
291
301
|
}
|
|
292
302
|
|
|
293
303
|
if (localOptions.onlyTime) {
|
|
294
|
-
formatDatetime = formatTimeLocal
|
|
304
|
+
formatDatetime.value = formatTimeLocal.value
|
|
295
305
|
}
|
|
296
306
|
|
|
297
307
|
if (!localOptions.onlyDate && !localOptions.onlyTime) {
|
|
298
|
-
formatDatetime =
|
|
299
|
-
formatDateLocal +
|
|
308
|
+
formatDatetime.value =
|
|
309
|
+
formatDateLocal.value +
|
|
300
310
|
(localOptions.separator ? localOptions.separator : ' ') +
|
|
301
|
-
formatTimeLocal
|
|
311
|
+
formatTimeLocal.value
|
|
302
312
|
}
|
|
303
313
|
|
|
314
|
+
window.addEventListener('timeFormatStorageChanged', function handler() {
|
|
315
|
+
formatDatetime.value =
|
|
316
|
+
formatDateLocal.value +
|
|
317
|
+
' ' +
|
|
318
|
+
getTimeFormat(localOptions.hasSeconds, localOptions.formatTime)
|
|
319
|
+
|
|
320
|
+
window.removeEventListener('timeFormatStorageChanged', handler)
|
|
321
|
+
})
|
|
322
|
+
|
|
304
323
|
if (!localOptions.onlyTime) {
|
|
305
|
-
formatDatetime = formattedDate(
|
|
324
|
+
formatDatetime.value = formattedDate(
|
|
325
|
+
dateObj,
|
|
326
|
+
formatDatetime.value,
|
|
327
|
+
localOptions.lang
|
|
328
|
+
)
|
|
306
329
|
}
|
|
307
330
|
|
|
308
331
|
if (!localOptions.onlyDate) {
|
|
309
|
-
formatDatetime = formattedTime(
|
|
332
|
+
formatDatetime.value = formattedTime(
|
|
310
333
|
dateObj,
|
|
311
|
-
formatDatetime,
|
|
334
|
+
formatDatetime.value,
|
|
312
335
|
localOptions.hasSeconds,
|
|
313
336
|
localOptions.formatTime,
|
|
314
337
|
localOptions.lang
|
|
315
338
|
)
|
|
316
339
|
}
|
|
317
340
|
|
|
318
|
-
return formatDatetime
|
|
341
|
+
return formatDatetime.value
|
|
319
342
|
}
|
|
320
343
|
|
|
321
344
|
const correctRuUnit = (value: number, type: string): string => {
|
package/plugins/validation.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RegExp } from '~/lib/config/regExp'
|
|
2
2
|
import type {
|
|
3
3
|
UI_I_Validation,
|
|
4
4
|
UI_I_ValidationOption,
|
|
@@ -127,30 +127,30 @@ export default defineNuxtPlugin(() => {
|
|
|
127
127
|
error = validation.errorText
|
|
128
128
|
}
|
|
129
129
|
} else if (validation.value === 'ip') {
|
|
130
|
-
const isValid =
|
|
130
|
+
const isValid = RegExp.ip.test(value)
|
|
131
131
|
if (!isValid) {
|
|
132
132
|
error = validation.errorText
|
|
133
133
|
}
|
|
134
134
|
} else if (validation.value === 'password') {
|
|
135
|
-
const isValid = value ?
|
|
135
|
+
const isValid = value ? RegExp.password.test(value) : true
|
|
136
136
|
|
|
137
137
|
if (!isValid) {
|
|
138
138
|
error = validation.errorText
|
|
139
139
|
}
|
|
140
140
|
} else if (validation.value === 'email') {
|
|
141
|
-
const isValid = value ?
|
|
141
|
+
const isValid = value ? RegExp.email.test(value) : true
|
|
142
142
|
|
|
143
143
|
if (!isValid) {
|
|
144
144
|
error = validation.errorText
|
|
145
145
|
}
|
|
146
146
|
} else if (validation.value === 'url') {
|
|
147
|
-
const isValid = value ?
|
|
147
|
+
const isValid = value ? RegExp.url.test(value) : true
|
|
148
148
|
|
|
149
149
|
if (!isValid) {
|
|
150
150
|
error = validation.errorText
|
|
151
151
|
}
|
|
152
152
|
} else if (validation.value === 'cron') {
|
|
153
|
-
const isValid = value ?
|
|
153
|
+
const isValid = value ? RegExp.cron.test(value) : true
|
|
154
154
|
|
|
155
155
|
if (!isValid) {
|
|
156
156
|
error = validation.errorText
|
package/store/main/getters.ts
CHANGED
package/store/tasks/actions.ts
CHANGED
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
value: true,
|
|
64
64
|
})
|
|
65
65
|
},
|
|
66
|
-
onResponse({ response }: API_UI_I_Response<API_UI_I_Task<string
|
|
66
|
+
onResponse({ response }: API_UI_I_Response<API_UI_I_Task<string>>) {
|
|
67
67
|
const tasks = tasksConstructor(response._data)
|
|
68
68
|
|
|
69
69
|
context.commit('M_SET_TASKS_LIST', tasks)
|
|
@@ -10,15 +10,8 @@ import {
|
|
|
10
10
|
} from '~/lib/models/store/tasks/enums'
|
|
11
11
|
|
|
12
12
|
export const tasksConstructor = (
|
|
13
|
-
data: API_UI_I_Task<string>
|
|
13
|
+
data: API_UI_I_Task<string>
|
|
14
14
|
): UI_I_Task<string> => {
|
|
15
|
-
if (!data) {
|
|
16
|
-
return {
|
|
17
|
-
total_items: 1,
|
|
18
|
-
total_pages: 1,
|
|
19
|
-
items: []
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
15
|
const items: UI_I_TaskItem<string>[] =
|
|
23
16
|
data.items?.map((task: API_UI_I_TaskItem<string>) => {
|
|
24
17
|
return {
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
id="type-select-help-icon"
|
|
4
|
-
class="signpost-container relative flex cursor-pointer"
|
|
5
|
-
>
|
|
6
|
-
<atoms-the-icon
|
|
7
|
-
data-id="toggle-type-select-help-icon"
|
|
8
|
-
fill="#0072a3"
|
|
9
|
-
width="24px"
|
|
10
|
-
height="24px"
|
|
11
|
-
name="info-circle"
|
|
12
|
-
@click="isShowTypeHelp = !isShowTypeHelp"
|
|
13
|
-
/>
|
|
14
|
-
<atoms-tooltip-signpost
|
|
15
|
-
v-if="isShowTypeHelp"
|
|
16
|
-
elem-id="type-select-help-icon"
|
|
17
|
-
test-id="select-datastore-type"
|
|
18
|
-
@hide="isShowTypeHelp = false"
|
|
19
|
-
>
|
|
20
|
-
<p class="help-desc">
|
|
21
|
-
{{ localization.common.datastoreTypeHelpDesc }}
|
|
22
|
-
</p>
|
|
23
|
-
</atoms-tooltip-signpost>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
<script setup lang="ts">
|
|
27
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
28
|
-
|
|
29
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
30
|
-
|
|
31
|
-
const isShowTypeHelp = ref<boolean>(false)
|
|
32
|
-
</script>
|
|
33
|
-
<style scoped lang="scss"></style>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<atoms-loader v-show="props.loading" test-id="certificate-spinner" />
|
|
3
|
-
<div class="certificate flex flex-col h-full">
|
|
4
|
-
<common-certificate-tools @renew-certificate="emits('renew-certificate')" />
|
|
5
|
-
|
|
6
|
-
<common-certificate-info :certificate-data="props.certificateData" />
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script lang="ts" setup>
|
|
11
|
-
import type { UI_I_Certificate } from '~/components/common/certificate/lib/models/interfaces'
|
|
12
|
-
|
|
13
|
-
const props = defineProps<{
|
|
14
|
-
loading: boolean
|
|
15
|
-
certificateData: UI_I_Certificate | {}
|
|
16
|
-
}>()
|
|
17
|
-
|
|
18
|
-
const emits = defineEmits<{
|
|
19
|
-
(event: 'renew-certificate'): void
|
|
20
|
-
}>()
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style lang="scss" scoped>
|
|
24
|
-
.certificate {
|
|
25
|
-
padding-left: 10px;
|
|
26
|
-
}
|
|
27
|
-
</style>
|