bfg-common 1.5.708 → 1.5.710

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 (105) hide show
  1. package/assets/img/icons/icons-sprite-dark-1.svg +2 -3
  2. package/assets/img/icons/icons-sprite-light-1.svg +3 -4
  3. package/assets/localization/local_be.json +47 -3
  4. package/assets/localization/local_en.json +47 -3
  5. package/assets/localization/local_hy.json +47 -3
  6. package/assets/localization/local_kk.json +47 -3
  7. package/assets/localization/local_ru.json +49 -5
  8. package/assets/localization/local_zh.json +47 -3
  9. package/assets/scss/common/icons/icons-1.scss +1 -1
  10. package/assets/scss/common/icons/icons-2.scss +18 -0
  11. package/assets/scss/common/theme.scss +2 -0
  12. package/assets/scss/components/auth.scss +32 -5
  13. package/components/atoms/dropdown/tree/Tree.vue +2 -0
  14. package/components/atoms/switch/Switch.vue +7 -1
  15. package/components/atoms/wizard/Wizard.vue +1 -1
  16. package/components/common/certificate/Certificate.vue +27 -0
  17. package/components/common/certificate/CertificateInfo.vue +139 -0
  18. package/components/common/certificate/Tools.vue +59 -0
  19. package/components/common/certificate/lib/config/tabsPannel.ts +22 -0
  20. package/components/common/certificate/lib/models/interfaces.ts +9 -0
  21. package/components/common/certificate/lib/models/types.ts +1 -0
  22. package/components/common/certificate/modals/renew/New.vue +64 -0
  23. package/components/common/certificate/modals/renew/Old.vue +122 -0
  24. package/components/common/certificate/modals/renew/Renew.vue +67 -0
  25. package/components/common/help/navbar/left/lib/utils/constructAccordion.ts +2 -1
  26. package/components/common/help/navbar/right/Right.vue +86 -23
  27. package/components/common/layout/theHeader/modals/reconnect/ReconnectOld.vue +2 -0
  28. package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +12 -21
  29. package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +36 -43
  30. package/components/common/layout/theHeader/userMenu/modals/changePassword/Old.vue +0 -2
  31. package/components/common/layout/theHeader/userMenu/modals/changePassword/lib/utils.ts +1 -1
  32. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +13 -0
  33. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +8 -15
  34. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{ChangeLanguageNew.vue → New.vue} +1 -2
  35. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{ChangeLanguageOld.vue → Old.vue} +0 -2
  36. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +8 -7
  37. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{DefaultConsoleNew.vue → New.vue} +3 -3
  38. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{DefaultConsoleOld.vue → Old.vue} +2 -2
  39. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/Inventory.vue +7 -8
  40. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{InventoryNew.vue → New.vue} +3 -2
  41. package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{InventoryOld.vue → Old.vue} +2 -2
  42. package/components/common/layout/theHeader/userMenu/modals/preferences/security/New.vue +277 -12
  43. package/components/common/layout/theHeader/userMenu/modals/preferences/security/Old.vue +30 -56
  44. package/components/common/layout/theHeader/userMenu/modals/preferences/security/Security.vue +65 -6
  45. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{TimeFormatNew.vue → New.vue} +3 -3
  46. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{TimeFormatOld.vue → Old.vue} +2 -2
  47. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +8 -8
  48. package/components/common/layout/theHeader/userMenu/modals/preferences/view/{ViewNew.vue → New.vue} +12 -3
  49. package/components/common/layout/theHeader/userMenu/modals/preferences/view/{ViewOld.vue → Old.vue} +2 -2
  50. package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +8 -7
  51. package/components/common/monitor/advanced/graphView/GraphView.vue +8 -0
  52. package/components/common/monitor/advanced/tools/Tools.vue +5 -1
  53. package/components/common/pages/auth/TheFooter.vue +104 -0
  54. package/components/common/pages/files/lib/models/enums.ts +10 -0
  55. package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +7 -2
  56. package/components/common/pages/hardwareHealth/tableView/TableView.vue +8 -0
  57. package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +13 -1
  58. package/components/common/pages/hardwareHealth/toolsPanel/lib/config/actionsPanel.ts +4 -4
  59. package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +1 -1
  60. package/components/common/qr/Qr.vue +69 -0
  61. package/components/common/split/horizontal/New.vue +0 -2
  62. package/components/common/split/vertical/New.vue +2 -1
  63. package/components/common/vm/actions/add/New.vue +1 -1
  64. package/components/common/vm/actions/add/Old.vue +1 -1
  65. package/components/common/vm/actions/clone/old/Old.vue +1 -0
  66. package/components/common/vm/actions/common/customizeHardware/virtualHardware/New.vue +10 -34
  67. package/components/common/vm/actions/common/customizeHardware/virtualHardware/Old.vue +15 -37
  68. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +49 -50
  69. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocket.vue +1 -1
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces.ts +3 -1
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +13 -7
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/New.vue +7 -4
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +52 -45
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/Old.vue +5 -8
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +1 -3
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/New.vue +2 -2
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/Old.vue +2 -2
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +1 -1
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/New.vue +1 -2
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/Old.vue +1 -2
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/New.vue +1 -1
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +1 -1
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/Old.vue +1 -1
  84. package/components/common/vm/actions/common/select/options/Old.vue +1 -2
  85. package/components/common/wizards/common/compatibility/New.vue +1 -1
  86. package/components/common/wizards/common/compatibility/Old.vue +1 -1
  87. package/components/common/wizards/datastore/add/lib/config/createDatastore.ts +1 -0
  88. package/components/common/wizards/datastore/add/lib/models/interfaces.ts +1 -0
  89. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +5 -0
  90. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +5 -0
  91. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/AdvancedOptions.vue +43 -0
  92. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +114 -0
  93. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/Old.vue +114 -0
  94. package/components/common/wizards/datastore/add/steps/nameAndDevice/table/old/Old.vue +2 -3
  95. package/components/common/wizards/datastore/add/steps/readyComplete/lib/config/propertiesDetails.ts +8 -1
  96. package/components/common/wizards/vm/migrate/lib/models/enums.ts +2 -2
  97. package/components/common/wizards/vm/migrate/steps/selectStorage/SelectStorage.vue +4 -4
  98. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +6 -2
  99. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +18 -12
  100. package/composables/useEnvLanguage.ts +7 -8
  101. package/lib/models/interfaces.ts +1 -0
  102. package/package.json +3 -4
  103. package/plugins/date.ts +14 -37
  104. package/store/main/getters.ts +2 -2
  105. package/components/common/qrcode/Qrcode.vue +0 -56
package/plugins/date.ts CHANGED
@@ -135,15 +135,7 @@ export default defineNuxtPlugin(() => {
135
135
  zh_CHS: 'yyyy-MM-dd',
136
136
  }
137
137
 
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
138
+ return dateFormats[currentLanguage]
147
139
  }
148
140
 
149
141
  // Получаем формат времени
@@ -285,60 +277,45 @@ export default defineNuxtPlugin(() => {
285
277
 
286
278
  const dateObj: Date = new Date(date)
287
279
 
288
- const formatDateLocal = ref(
280
+ const formatDateLocal =
289
281
  localOptions.formatDate || getDateFormat(localOptions.lang)
290
- )
291
282
 
292
- const formatTimeLocal = ref(
283
+ const formatTimeLocal =
293
284
  localOptions.formatTime ||
294
- getTimeFormat(localOptions.hasSeconds, localOptions.formatTime)
295
- )
285
+ getTimeFormat(localOptions.hasSeconds, localOptions.formatTime)
296
286
 
297
- const formatDatetime = ref('')
287
+ let formatDatetime = ''
298
288
 
299
289
  if (localOptions.onlyDate) {
300
- formatDatetime.value = formatDateLocal.value
290
+ formatDatetime = formatDateLocal
301
291
  }
302
292
 
303
293
  if (localOptions.onlyTime) {
304
- formatDatetime.value = formatTimeLocal.value
294
+ formatDatetime = formatTimeLocal
305
295
  }
306
296
 
307
297
  if (!localOptions.onlyDate && !localOptions.onlyTime) {
308
- formatDatetime.value =
309
- formatDateLocal.value +
298
+ formatDatetime =
299
+ formatDateLocal +
310
300
  (localOptions.separator ? localOptions.separator : ' ') +
311
- formatTimeLocal.value
301
+ formatTimeLocal
312
302
  }
313
303
 
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
-
323
304
  if (!localOptions.onlyTime) {
324
- formatDatetime.value = formattedDate(
325
- dateObj,
326
- formatDatetime.value,
327
- localOptions.lang
328
- )
305
+ formatDatetime = formattedDate(dateObj, formatDatetime, localOptions.lang)
329
306
  }
330
307
 
331
308
  if (!localOptions.onlyDate) {
332
- formatDatetime.value = formattedTime(
309
+ formatDatetime = formattedTime(
333
310
  dateObj,
334
- formatDatetime.value,
311
+ formatDatetime,
335
312
  localOptions.hasSeconds,
336
313
  localOptions.formatTime,
337
314
  localOptions.lang
338
315
  )
339
316
  }
340
317
 
341
- return formatDatetime.value
318
+ return formatDatetime
342
319
  }
343
320
 
344
321
  const correctRuUnit = (value: number, type: string): string => {
@@ -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
  }
@@ -1,56 +0,0 @@
1
- <template>
2
- <div class="qrcode">
3
- <img v-if="qrDataUrl" :src="qrDataUrl" alt="QR Code" class="qr-image" />
4
- </div>
5
- </template>
6
-
7
- <script setup lang="ts">
8
- import QRCode from 'qrcode'
9
-
10
- const props = defineProps<{
11
- qrCodeUrl: string
12
- }>()
13
-
14
- const qrDataUrl = ref<string>('')
15
- const generateQRCode = async (): Promise<void> => {
16
- try {
17
- qrDataUrl.value = await QRCode.toDataURL(props.qrCodeUrl, {
18
- width: 150,
19
- margin: 2,
20
- })
21
- } catch (error) {
22
- console.error('Error generating QR code:', error)
23
- }
24
- }
25
-
26
- watch(
27
- () => props.qrCodeUrl,
28
- (newValue) => {
29
- newValue && generateQRCode()
30
- },
31
- { immediate: true }
32
- )
33
- </script>
34
-
35
- <style scoped lang="scss">
36
- .qr-code-display {
37
- text-align: center;
38
- max-width: 400px;
39
- margin: 0 auto;
40
- }
41
-
42
- .qr-wrapper {
43
- margin: 20px 0;
44
- padding: 20px;
45
- background: white;
46
- border-radius: 12px;
47
- border: 1px solid #e0e0e0;
48
- display: inline-block;
49
- }
50
-
51
- .qr-canvas,
52
- .qr-image {
53
- width: 150px;
54
- height: 150px;
55
- }
56
- </style>