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.
Files changed (298) hide show
  1. package/assets/img/icons/icons-sprite-dark-1.svg +3 -2
  2. package/assets/img/icons/icons-sprite-light-1.svg +4 -3
  3. package/assets/localization/local_be.json +27 -165
  4. package/assets/localization/local_en.json +27 -165
  5. package/assets/localization/local_hy.json +26 -164
  6. package/assets/localization/local_kk.json +26 -164
  7. package/assets/localization/local_ru.json +33 -171
  8. package/assets/localization/local_zh.json +26 -164
  9. package/assets/scss/common/global.scss +5 -5
  10. package/assets/scss/common/icons/icons-1.scss +1 -1
  11. package/assets/scss/common/icons/icons-2.scss +0 -18
  12. package/assets/scss/common/theme.scss +0 -2
  13. package/assets/scss/components/auth.scss +5 -32
  14. package/components/atoms/dropdown/tree/Tree.vue +0 -2
  15. package/components/atoms/nav/NavBar.vue +0 -1
  16. package/components/atoms/switch/Switch.vue +1 -7
  17. package/components/atoms/table/dataGrid/DataGrid.vue +20 -36
  18. package/components/atoms/wizard/Wizard.vue +1 -1
  19. package/components/common/backup/storage/actions/add/Old.vue +1 -22
  20. package/components/common/backup/storage/actions/add/lib/config/createDatastore.ts +1 -1
  21. package/components/common/backup/storage/actions/add/steps/typeMode/TypeModeOld.vue +48 -1
  22. package/components/common/backup/storage/actions/add/steps/typeMode/lib/config/typeOptions.ts +20 -20
  23. package/components/common/backup/storage/actions/delete/Delete.vue +15 -37
  24. package/components/common/diagramMain/Header.vue +0 -4
  25. package/components/common/diagramMain/lib/models/interfaces.ts +0 -2
  26. package/components/common/diagramMain/modals/viewSettings/info/Info.vue +1 -5
  27. package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +0 -16
  28. package/components/common/graph/graphNew/EmptyBlock.vue +1 -2
  29. package/components/common/help/navbar/left/lib/utils/constructAccordion.ts +1 -2
  30. package/components/common/help/navbar/right/Right.vue +23 -86
  31. package/components/common/layout/theHeader/TheHeader.vue +81 -44
  32. package/components/common/layout/theHeader/{New.vue → TheHeaderNew.vue} +26 -14
  33. package/components/common/layout/theHeader/{Old.vue → TheHeaderOld.vue} +21 -13
  34. package/components/common/layout/theHeader/ThemeSwitch.vue +18 -8
  35. package/components/common/layout/theHeader/feedback/new/email/Email.vue +2 -2
  36. package/components/common/layout/theHeader/helpMenu/{about/About.vue → About.vue} +22 -12
  37. package/components/common/layout/theHeader/helpMenu/HelpMenu.vue +8 -6
  38. package/components/common/layout/theHeader/helpMenu/{about/New.vue → aboutNew/AboutNew.vue} +4 -5
  39. package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -0
  40. package/components/common/layout/theHeader/helpMenu/{new/New.vue → helpMenuNew/HelpMenuNew.vue} +1 -1
  41. package/components/common/layout/theHeader/helpMenu/{new → helpMenuNew}/lib/config/dropMenu.ts +1 -1
  42. package/components/common/layout/theHeader/helpMenu/{old/Old.vue → helpMenuOld/HelpMenuOld.vue} +2 -2
  43. package/components/common/layout/theHeader/helpMenu/{old → helpMenuOld}/lib/config/dropMenu.ts +1 -1
  44. package/components/common/layout/theHeader/modals/reconnect/Reconnect.vue +11 -11
  45. package/components/common/layout/theHeader/modals/reconnect/{New.vue → ReconnectNew.vue} +1 -1
  46. package/components/common/layout/theHeader/modals/reconnect/{Old.vue → ReconnectOld.vue} +0 -2
  47. package/components/common/layout/theHeader/userMenu/UserMenu.vue +28 -21
  48. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +21 -12
  49. package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +43 -36
  50. package/components/common/layout/theHeader/userMenu/modals/changePassword/Old.vue +2 -0
  51. package/components/common/layout/theHeader/userMenu/modals/changePassword/lib/utils.ts +3 -3
  52. package/components/common/layout/theHeader/userMenu/modals/preferences/Preferences.vue +44 -19
  53. package/components/common/layout/theHeader/userMenu/modals/preferences/{New.vue → PreferencesNew.vue} +16 -24
  54. package/components/common/layout/theHeader/userMenu/modals/preferences/{Old.vue → PreferencesOld.vue} +18 -10
  55. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +18 -17
  56. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{New.vue → ChangeLanguageNew.vue} +30 -6
  57. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{Old.vue → ChangeLanguageOld.vue} +30 -5
  58. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +20 -8
  59. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{New.vue → DefaultConsoleNew.vue} +3 -3
  60. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{Old.vue → DefaultConsoleOld.vue} +2 -2
  61. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/Inventory.vue +21 -7
  62. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{New.vue → InventoryNew.vue} +2 -3
  63. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{Old.vue → InventoryOld.vue} +2 -2
  64. package/components/common/layout/theHeader/userMenu/modals/preferences/security/New.vue +12 -277
  65. package/components/common/layout/theHeader/userMenu/modals/preferences/security/Old.vue +56 -30
  66. package/components/common/layout/theHeader/userMenu/modals/preferences/security/Security.vue +6 -65
  67. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +22 -9
  68. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{New.vue → TimeFormatNew.vue} +3 -3
  69. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{Old.vue → TimeFormatOld.vue} +2 -2
  70. package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +22 -13
  71. package/components/common/layout/theHeader/userMenu/modals/preferences/view/{New.vue → ViewNew.vue} +38 -64
  72. package/components/common/layout/theHeader/userMenu/modals/preferences/view/{Old.vue → ViewOld.vue} +2 -21
  73. package/components/common/layout/theHeader/userMenu/{new/New.vue → userMenuNew/UserMenuNew.vue} +1 -1
  74. package/components/common/layout/theHeader/userMenu/{old/Old.vue → userMenuOld/UserMenuOld.vue} +2 -2
  75. package/components/common/layout/theHeader/userMenu/{old → userMenuOld}/lib/config/dropMenu.ts +1 -1
  76. package/components/common/monitor/advanced/graphView/GraphView.vue +0 -8
  77. package/components/common/monitor/advanced/tools/Tools.vue +1 -5
  78. package/components/common/monitor/overview/OverviewNew.vue +1 -1
  79. package/components/common/pages/backups/backupsNew/BackupsNew.vue +19 -107
  80. package/components/common/pages/backups/backupsNew/contextMenuView/ContextMenuView.vue +10 -16
  81. package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +10 -6
  82. package/components/common/pages/backups/modals/createBackup/New.vue +9 -22
  83. package/components/common/pages/backups/modals/createBackup/Old.vue +10 -8
  84. package/components/common/pages/backups/modals/createBackup/configuration/ConfigurationNew.vue +3 -17
  85. package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +0 -6
  86. package/components/common/pages/backups/modals/createBackup/datastores/DatastoresOld.vue +2 -22
  87. package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +8 -8
  88. package/components/common/pages/backups/modals/createBackup/disks/Disks.vue +0 -6
  89. package/components/common/pages/backups/modals/createBackup/disks/DisksOld.vue +1 -22
  90. package/components/common/pages/backups/modals/createBackup/disks/tableView/new/TableView.vue +1 -1
  91. package/components/common/pages/backups/modals/createBackup/disks/tableView/new/lib/config/table.ts +7 -7
  92. package/components/common/pages/backups/modals/createBackup/general/General.vue +1 -7
  93. package/components/common/pages/backups/modals/createBackup/general/GeneralNew.vue +1 -1
  94. package/components/common/pages/backups/modals/createBackup/general/GeneralOld.vue +0 -17
  95. package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts +5 -5
  96. package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +1 -1
  97. package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +2 -11
  98. package/components/common/pages/backups/modals/createBackup/lib/validation/validations.ts +14 -6
  99. package/components/common/pages/backups/modals/deleteBackup/DeleteBackup.vue +0 -1
  100. package/components/common/pages/backups/modals/lib/config/restore.ts +115 -116
  101. package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -187
  102. package/components/common/pages/backups/modals/restore/Restore.vue +303 -302
  103. package/components/common/pages/backups/modals/restore/{Old.vue → RestoreOld.vue} +0 -5
  104. package/components/common/pages/backups/modals/restore/disks/Disks.vue +32 -50
  105. package/components/common/pages/backups/modals/restore/disks/DisksNew.vue +2 -2
  106. package/components/common/pages/backups/modals/restore/disks/DisksOld.vue +2 -2
  107. package/components/common/pages/backups/modals/restore/lib/config/readyToCompleteOptions.ts +62 -94
  108. package/components/common/pages/backups/modals/restore/lib/config/restoreCodes.ts +1 -1
  109. package/components/common/pages/backups/modals/restore/lib/config/steps.ts +108 -130
  110. package/components/common/pages/backups/modals/restore/types/Types.vue +19 -31
  111. package/components/common/pages/backups/modals/restore/types/{New.vue → TypesNew.vue} +95 -95
  112. package/components/common/pages/backups/modals/restore/types/{Old.vue → TypesOld.vue} +61 -62
  113. package/components/common/pages/backups/modals/restore/types/lib/config/descriptions.ts +0 -1
  114. package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +2 -7
  115. package/components/common/pages/hardwareHealth/tableView/TableView.vue +0 -8
  116. package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +1 -13
  117. package/components/common/pages/hardwareHealth/toolsPanel/lib/config/actionsPanel.ts +4 -4
  118. package/components/common/pages/home/widgets/warnings/lib/config/config.ts +2 -2
  119. package/components/common/pages/home/widgets/warnings/table/lib/config/config.ts +2 -2
  120. package/components/common/pages/home/widgets/warnings/table/lib/models/enums.ts +12 -0
  121. package/components/common/pages/scheduledTasks/table/Table.vue +11 -3
  122. package/components/common/pages/scheduledTasks/table/{expandDetails/Old.vue → detailsList/DetailsList.vue} +4 -7
  123. package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun/HistoryRun.vue → detailsList/Table.vue} +5 -9
  124. package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/historyRunsTable.ts +2 -4
  125. package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/tableKeys.ts +1 -1
  126. package/components/common/pages/scheduledTasks/table/{expandDetails/lib/config/expandDetails.ts → detailsList/lib/config/tasksRowDetails.ts} +1 -3
  127. package/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable.ts +0 -3
  128. package/components/common/pages/tasks/Tasks.vue +122 -125
  129. package/components/common/pages/tasks/table/Table.vue +370 -373
  130. package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +1 -1
  131. package/components/common/pages/tasks/table/lib/config/config.ts +270 -279
  132. package/components/common/qrcode/Qrcode.vue +56 -0
  133. package/components/common/selectLanguage/SelectLanguage.vue +5 -5
  134. package/components/common/split/horizontal/New.vue +2 -0
  135. package/components/common/split/vertical/New.vue +1 -2
  136. package/components/common/vm/actions/add/New.vue +11 -13
  137. package/components/common/vm/actions/add/Old.vue +1 -1
  138. package/components/common/vm/actions/clone/old/Old.vue +0 -1
  139. package/components/common/vm/actions/common/customizeHardware/virtualHardware/New.vue +36 -12
  140. package/components/common/vm/actions/common/customizeHardware/virtualHardware/Old.vue +37 -15
  141. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +50 -50
  142. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocket.vue +3 -3
  143. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces.ts +1 -3
  144. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +7 -13
  145. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/New.vue +4 -7
  146. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +45 -52
  147. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/Old.vue +8 -5
  148. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +3 -1
  149. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/New.vue +2 -2
  150. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/Old.vue +2 -2
  151. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +1 -1
  152. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/New.vue +2 -1
  153. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/Old.vue +2 -1
  154. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/New.vue +1 -1
  155. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +1 -1
  156. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/Old.vue +1 -1
  157. package/components/common/vm/actions/common/customizeHardware/vmoptions/New.vue +2 -2
  158. package/components/common/vm/actions/common/select/compatibility/New.vue +1 -0
  159. package/components/common/vm/actions/common/select/options/Old.vue +2 -1
  160. package/components/common/vm/actions/common/select/storage/new/New.vue +1 -1
  161. package/components/common/wizards/common/compatibility/New.vue +1 -1
  162. package/components/common/wizards/common/compatibility/Old.vue +1 -1
  163. package/components/common/wizards/common/steps/computeResource/New.vue +1 -9
  164. package/components/common/wizards/datastore/add/Add.vue +228 -227
  165. package/components/common/wizards/datastore/add/Old.vue +0 -16
  166. package/components/common/wizards/datastore/add/lib/config/createDatastore.ts +0 -1
  167. package/components/common/wizards/datastore/add/lib/models/interfaces.ts +0 -1
  168. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +0 -5
  169. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +0 -5
  170. package/components/common/wizards/datastore/add/steps/nameAndDevice/table/old/Old.vue +3 -2
  171. package/components/common/wizards/datastore/add/steps/readyComplete/lib/config/propertiesDetails.ts +1 -8
  172. package/components/common/wizards/datastore/add/steps/typeMode/TypeModeOld.vue +48 -1
  173. package/components/common/wizards/network/add/Add.vue +5 -28
  174. package/components/common/wizards/network/add/lib/config/config.ts +1 -1
  175. package/components/common/wizards/network/add/lib/config/initialData.ts +3 -6
  176. package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +0 -1
  177. package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +192 -192
  178. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +1 -2
  179. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +6 -18
  180. package/components/common/wizards/vm/migrate/lib/models/enums.ts +2 -2
  181. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/old/lib/config/hostTable.ts +1 -1
  182. package/components/common/wizards/vm/migrate/steps/selectStorage/SelectStorage.vue +4 -4
  183. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +2 -6
  184. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +13 -29
  185. package/composables/deepCopy.ts +21 -0
  186. package/composables/useEnvLanguage.ts +8 -7
  187. package/composables/useUniqueId.ts +5 -0
  188. package/lib/config/regExp.ts +1 -1
  189. package/lib/models/enums.ts +0 -28
  190. package/lib/models/interfaces.ts +0 -2
  191. package/lib/models/types.ts +60 -59
  192. package/lib/utils/localizationMapper.ts +2 -1
  193. package/package.json +4 -3
  194. package/plugins/date.ts +37 -14
  195. package/plugins/validation.ts +6 -6
  196. package/store/main/getters.ts +2 -2
  197. package/store/tasks/actions.ts +1 -1
  198. package/store/tasks/mappers/tasks.ts +1 -8
  199. package/components/common/backup/storage/actions/add/steps/typeMode/tooltip/Tooltip.vue +0 -33
  200. package/components/common/certificate/Certificate.vue +0 -27
  201. package/components/common/certificate/CertificateInfo.vue +0 -139
  202. package/components/common/certificate/Tools.vue +0 -59
  203. package/components/common/certificate/lib/config/tabsPannel.ts +0 -22
  204. package/components/common/certificate/lib/models/interfaces.ts +0 -9
  205. package/components/common/certificate/lib/models/types.ts +0 -1
  206. package/components/common/certificate/modals/renew/New.vue +0 -64
  207. package/components/common/certificate/modals/renew/Old.vue +0 -122
  208. package/components/common/certificate/modals/renew/Renew.vue +0 -67
  209. package/components/common/configure/advancedSystemSettings/AdvancedSystemSettings.vue +0 -49
  210. package/components/common/configure/advancedSystemSettings/modals/edit/Edit.vue +0 -55
  211. package/components/common/configure/advancedSystemSettings/modals/edit/New.vue +0 -37
  212. package/components/common/configure/advancedSystemSettings/modals/edit/Old.vue +0 -46
  213. package/components/common/configure/advancedSystemSettings/tableView/TableView.vue +0 -30
  214. package/components/common/configure/advancedSystemSettings/tableView/new/New.vue +0 -193
  215. package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/hostTable.ts +0 -308
  216. package/components/common/configure/advancedSystemSettings/tableView/old/Old.vue +0 -128
  217. package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/table.ts +0 -93
  218. package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/tableKeys.ts +0 -9
  219. package/components/common/configure/advancedSystemSettings/tableView/old/lib/models/types.ts +0 -5
  220. package/components/common/configure/advancedSystemSettings/tools/New.vue +0 -5
  221. package/components/common/configure/advancedSystemSettings/tools/Old.vue +0 -28
  222. package/components/common/configure/advancedSystemSettings/tools/Tools.vue +0 -28
  223. package/components/common/configure/securityProfile/SecurityProfile.vue +0 -28
  224. package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +0 -112
  225. package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +0 -27
  226. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +0 -61
  227. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +0 -5
  228. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +0 -109
  229. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +0 -28
  230. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +0 -5
  231. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +0 -180
  232. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +0 -64
  233. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +0 -6
  234. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +0 -1
  235. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +0 -19
  236. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +0 -22
  237. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +0 -5
  238. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +0 -76
  239. package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +0 -5
  240. package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +0 -30
  241. package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +0 -29
  242. package/components/common/layout/console/Console.vue +0 -70
  243. package/components/common/layout/console/lib/models/interfaces.ts +0 -10
  244. package/components/common/layout/theHeader/helpMenu/about/Old.vue +0 -78
  245. package/components/common/pages/auth/TheFooter.vue +0 -104
  246. package/components/common/pages/backups/backupsNew/Skeleton.vue +0 -136
  247. package/components/common/pages/files/lib/models/enums.ts +0 -36
  248. package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +0 -30
  249. package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +0 -61
  250. package/components/common/pages/tasks/table/lib/models/interfaces.ts +0 -9
  251. package/components/common/qr/Qr.vue +0 -69
  252. package/components/common/vm/snapshots/DetailView.vue +0 -90
  253. package/components/common/vm/snapshots/Old.vue +0 -71
  254. package/components/common/vm/snapshots/Snapshots.vue +0 -82
  255. package/components/common/vm/snapshots/lib/models/interfaces.ts +0 -5
  256. package/components/common/vm/snapshots/lib/models/types.ts +0 -11
  257. package/components/common/vm/snapshots/modals/confirm/Confirm.vue +0 -48
  258. package/components/common/vm/snapshots/modals/confirm/New.vue +0 -128
  259. package/components/common/vm/snapshots/modals/confirm/Old.vue +0 -140
  260. package/components/common/vm/snapshots/modals/confirm/lib/models/enums.ts +0 -19
  261. package/components/common/vm/snapshots/modals/lib/config/modalTexts.ts +0 -30
  262. package/components/common/vm/snapshots/modals/takeOrEdit/Old.vue +0 -220
  263. package/components/common/vm/snapshots/modals/takeOrEdit/TakeOrEdit.vue +0 -51
  264. package/components/common/vm/snapshots/modals/takeOrEdit/new/New.vue +0 -184
  265. package/components/common/vm/snapshots/modals/takeOrEdit/new/lib/utils/getSnapshotsName.ts +0 -15
  266. package/components/common/vm/snapshots/new/New.vue +0 -471
  267. package/components/common/vm/snapshots/new/Skeleton.vue +0 -136
  268. package/components/common/vm/snapshots/new/contextMenuView/ContextMenuView.vue +0 -103
  269. package/components/common/vm/snapshots/new/contextMenuView/lib/config/contextMenuItems.ts +0 -34
  270. package/components/common/vm/snapshots/new/lib/models/interfaces.ts +0 -12
  271. package/components/common/vm/snapshots/new/lib/utils/contextMenu.ts +0 -29
  272. package/components/common/vm/snapshots/new/lib/utils/details.ts +0 -48
  273. package/components/common/vm/snapshots/tools/Tools.vue +0 -56
  274. package/components/common/vm/snapshots/tools/lib/config/tabsPannel.ts +0 -39
  275. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/AdvancedOptions.vue +0 -43
  276. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +0 -114
  277. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/Old.vue +0 -114
  278. package/components/common/wizards/datastore/add/steps/typeMode/tooltip/Tooltip.vue +0 -33
  279. package/composables/useBrowse.ts +0 -24
  280. package/lib/models/composables/useBrowse/interfaces.ts +0 -4
  281. package/store/inventory/modules/configure/advancedSystemSettings/actions.ts +0 -122
  282. package/store/inventory/modules/configure/advancedSystemSettings/getters.ts +0 -9
  283. package/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces.ts +0 -11
  284. package/store/inventory/modules/configure/advancedSystemSettings/mutations.ts +0 -12
  285. package/store/inventory/modules/configure/advancedSystemSettings/state.ts +0 -9
  286. package/store/inventory/modules/configure/advancedSystemSettings/store.ts +0 -12
  287. package/store/inventory/modules/configure/securityProfile/actions.ts +0 -58
  288. package/store/inventory/modules/configure/securityProfile/getters.ts +0 -10
  289. package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +0 -16
  290. package/store/inventory/modules/configure/securityProfile/mutations.ts +0 -13
  291. package/store/inventory/modules/configure/securityProfile/state.ts +0 -7
  292. package/store/inventory/modules/configure/securityProfile/store.ts +0 -12
  293. package/store/inventory/modules/snapshots/lib/models/interfaces.ts +0 -45
  294. /package/components/common/layout/theHeader/helpMenu/{old → helpMenuOld}/lib/models/types.ts +0 -0
  295. /package/components/common/layout/theHeader/userMenu/{new → userMenuNew}/lib/config/dropMenu.ts +0 -0
  296. /package/components/common/layout/theHeader/userMenu/{old → userMenuOld}/lib/models/types.ts +0 -0
  297. /package/components/common/pages/backups/modals/restore/{New.vue → RestoreNew.vue} +0 -0
  298. /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((disk: UI_I_StorageConfigurePerDiskItem, key: number) => {
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[disk[vmMigrateDiskTableItemKeys[4]]]
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: disk[vmMigrateDiskTableItemKeys[0]],
79
+ text: storage[vmMigrateDiskTableItemKeys[0]],
86
80
  id: key,
87
- testId: `disk-table-${key}`,
88
81
  },
89
82
  {
90
83
  key: 'col1',
91
- text: disk[vmMigrateDiskTableItemKeys[1]],
84
+ text: storage[vmMigrateDiskTableItemKeys[1]],
92
85
  id: key,
93
- testId: `disk-table-${key}`,
94
86
  },
95
87
  {
96
88
  key: 'col2',
97
- text: file,
89
+ text: storage[vmMigrateDiskTableItemKeys[2]],
98
90
  id: key,
99
- testId: `disk-table-${key}`,
100
91
  },
101
92
  {
102
93
  key: 'col3',
103
- text: disk[vmMigrateDiskTableItemKeys[3]],
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: disk.extra[vmMigrateDiskTableItemKeys[5]],
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: disk.extra[vmMigrateDiskTableItemKeys[6]],
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: disk.extra[vmMigrateDiskTableItemKeys[7]],
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: disk.extra[vmMigrateDiskTableItemKeys[8]],
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: disk.extra[vmMigrateDiskTableItemKeys[9]],
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: disk.extra[vmMigrateDiskTableItemKeys[10]],
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
- // const { $store }: any = useNuxtApp()
2
+ const { $store }: any = useNuxtApp()
3
3
 
4
- const localizationCode = ref<string>('en_US')
4
+ let localizationCode = 'en_US'
5
5
  const langFromLocalStorage =
6
- // $store.getters['main/getInterfaceLang'] || // Из $store для Сферы, но думаю нужно сделать одинаково из localStorage
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.value = langFromLocalStorage
16
+ localizationCode = langFromLocalStorage
16
17
  }
17
18
  }
18
19
 
19
- localizationCode.value = localizationCode.value.slice(0, 2).toUpperCase()
20
+ localizationCode = localizationCode.slice(0, 2).toUpperCase()
20
21
 
21
- return localizationCode.value
22
+ return localizationCode
22
23
  }
@@ -0,0 +1,5 @@
1
+ let id = 0
2
+ export const useUniqueId = (): number => {
3
+ id++
4
+ return id
5
+ }
@@ -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 allRegExp = {
11
+ export const RegExp = {
12
12
  ip,
13
13
  email,
14
14
  password,
@@ -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 {
@@ -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
@@ -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
- | 'h'
8
- // для Прокуратора и Сферы
9
- | 'v'
10
- | 's'
11
- | 'n'
12
- | 'b'
13
-
14
- export type UI_T_Binary = 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB' | 'ZB' | 'YB'
15
- export type UI_T_BinaryLower =
16
- | 'kb'
17
- | 'mb'
18
- | 'gb'
19
- | 'tb'
20
- | 'pb'
21
- | 'eb'
22
- | 'zb'
23
- | 'yb'
24
-
25
- export type UI_T_LangValue =
26
- | 'en_US'
27
- | 'ru_RU'
28
- | 'hy_AM'
29
- | 'zh_CHS'
30
- | 'kk_KZ'
31
- | 'be_BY'
32
- | 'BROWSER'
33
-
34
- export type UI_T_ProcuratorTypeNodes =
35
- | 'host'
36
- | 'vm'
37
- | 'datastore'
38
- | 'network'
39
- | 'folder'
40
- | 'file'
41
-
42
- export type UI_T_SphereTypeNodes =
43
- | UI_T_ProcuratorTypeNodes
44
- | 'zone'
45
- | 'datacenter'
46
- | 'cluster'
47
- | 'zone_dir'
48
- | 'dc_hc_dir'
49
- | 'dc_net_dir'
50
- | 'dc_ds_dir'
51
- | 'dc_vmt_dir'
52
- | 'dc_backup_dir'
53
- | 'IdentityProviders'
54
- | 'networks' // может быть это не нужный тип так как есть 'network' в UI_T_ProcuratorTypeNodes
55
- | 'backup_storage'
56
- | 'bucket'
57
- | 'vmtemplate' // TODO думаю нужно добавить в UI_T_ProcuratorTypeNodes
58
-
59
- export type UI_T_AllTypeNodes = UI_T_SphereTypeNodes
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 keyof typeof localization]
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.774",
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.539",
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
- return dateFormats[currentLanguage]
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
- getTimeFormat(localOptions.hasSeconds, localOptions.formatTime)
294
+ getTimeFormat(localOptions.hasSeconds, localOptions.formatTime)
295
+ )
286
296
 
287
- let formatDatetime = ''
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(dateObj, formatDatetime, localOptions.lang)
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 => {
@@ -1,4 +1,4 @@
1
- import { allRegExp } from '~/lib/config/regExp'
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 = allRegExp.ip.test(value)
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 ? allRegExp.password.test(value) : true
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 ? allRegExp.email.test(value) : true
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 ? allRegExp.url.test(value) : true
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 ? allRegExp.cron.test(value) : true
153
+ const isValid = value ? RegExp.cron.test(value) : true
154
154
 
155
155
  if (!isValid) {
156
156
  error = validation.errorText
@@ -1,7 +1,7 @@
1
- import type { UI_I_MainState } from '~/store/main/lib/interfaces'
1
+ import type {UI_I_MainState} from "~/store/main/lib/interfaces";
2
2
 
3
3
  export default {
4
4
  getIsMenuPined: (state: UI_I_MainState): boolean => {
5
5
  return state.isMenuPined
6
- },
6
+ }
7
7
  }
@@ -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> | null>) {
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> | null
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>