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.
- package/assets/img/icons/icons-sprite-dark-1.svg +2 -3
- package/assets/img/icons/icons-sprite-light-1.svg +3 -4
- package/assets/localization/local_be.json +47 -3
- package/assets/localization/local_en.json +47 -3
- package/assets/localization/local_hy.json +47 -3
- package/assets/localization/local_kk.json +47 -3
- package/assets/localization/local_ru.json +49 -5
- package/assets/localization/local_zh.json +47 -3
- package/assets/scss/common/icons/icons-1.scss +1 -1
- package/assets/scss/common/icons/icons-2.scss +18 -0
- package/assets/scss/common/theme.scss +2 -0
- package/assets/scss/components/auth.scss +32 -5
- package/components/atoms/dropdown/tree/Tree.vue +2 -0
- package/components/atoms/switch/Switch.vue +7 -1
- package/components/atoms/wizard/Wizard.vue +1 -1
- package/components/common/certificate/Certificate.vue +27 -0
- package/components/common/certificate/CertificateInfo.vue +139 -0
- package/components/common/certificate/Tools.vue +59 -0
- package/components/common/certificate/lib/config/tabsPannel.ts +22 -0
- package/components/common/certificate/lib/models/interfaces.ts +9 -0
- package/components/common/certificate/lib/models/types.ts +1 -0
- package/components/common/certificate/modals/renew/New.vue +64 -0
- package/components/common/certificate/modals/renew/Old.vue +122 -0
- package/components/common/certificate/modals/renew/Renew.vue +67 -0
- package/components/common/help/navbar/left/lib/utils/constructAccordion.ts +2 -1
- package/components/common/help/navbar/right/Right.vue +86 -23
- package/components/common/layout/theHeader/modals/reconnect/ReconnectOld.vue +2 -0
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePassword.vue +12 -21
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +36 -43
- package/components/common/layout/theHeader/userMenu/modals/changePassword/Old.vue +0 -2
- package/components/common/layout/theHeader/userMenu/modals/changePassword/lib/utils.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +13 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +8 -15
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{ChangeLanguageNew.vue → New.vue} +1 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/{ChangeLanguageOld.vue → Old.vue} +0 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +8 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{DefaultConsoleNew.vue → New.vue} +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/{DefaultConsoleOld.vue → Old.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/Inventory.vue +7 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{InventoryNew.vue → New.vue} +3 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/{InventoryOld.vue → Old.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/New.vue +277 -12
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Old.vue +30 -56
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Security.vue +65 -6
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{TimeFormatNew.vue → New.vue} +3 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/{TimeFormatOld.vue → Old.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +8 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/{ViewNew.vue → New.vue} +12 -3
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/{ViewOld.vue → Old.vue} +2 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +8 -7
- package/components/common/monitor/advanced/graphView/GraphView.vue +8 -0
- package/components/common/monitor/advanced/tools/Tools.vue +5 -1
- package/components/common/pages/auth/TheFooter.vue +104 -0
- package/components/common/pages/files/lib/models/enums.ts +10 -0
- package/components/common/pages/hardwareHealth/historyTestimony/tools/Tools.vue +7 -2
- package/components/common/pages/hardwareHealth/tableView/TableView.vue +8 -0
- package/components/common/pages/hardwareHealth/tableView/lib/config/sensorTable.ts +13 -1
- package/components/common/pages/hardwareHealth/toolsPanel/lib/config/actionsPanel.ts +4 -4
- package/components/common/pages/tasks/table/expandDetails/ExpandDetails.vue +1 -1
- package/components/common/qr/Qr.vue +69 -0
- package/components/common/split/horizontal/New.vue +0 -2
- package/components/common/split/vertical/New.vue +2 -1
- package/components/common/vm/actions/add/New.vue +1 -1
- package/components/common/vm/actions/add/Old.vue +1 -1
- package/components/common/vm/actions/clone/old/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/New.vue +10 -34
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/Old.vue +15 -37
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +49 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocket.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces.ts +3 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +13 -7
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/New.vue +7 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +52 -45
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/Old.vue +5 -8
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +1 -3
- 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 +1 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/Old.vue +1 -2
- 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/select/options/Old.vue +1 -2
- package/components/common/wizards/common/compatibility/New.vue +1 -1
- package/components/common/wizards/common/compatibility/Old.vue +1 -1
- package/components/common/wizards/datastore/add/lib/config/createDatastore.ts +1 -0
- package/components/common/wizards/datastore/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +5 -0
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +5 -0
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/AdvancedOptions.vue +43 -0
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +114 -0
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/Old.vue +114 -0
- package/components/common/wizards/datastore/add/steps/nameAndDevice/table/old/Old.vue +2 -3
- package/components/common/wizards/datastore/add/steps/readyComplete/lib/config/propertiesDetails.ts +8 -1
- package/components/common/wizards/vm/migrate/lib/models/enums.ts +2 -2
- 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 +6 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +18 -12
- package/composables/useEnvLanguage.ts +7 -8
- package/lib/models/interfaces.ts +1 -0
- package/package.json +3 -4
- package/plugins/date.ts +14 -37
- package/store/main/getters.ts +2 -2
- 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
|
-
|
|
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 =
|
|
280
|
+
const formatDateLocal =
|
|
289
281
|
localOptions.formatDate || getDateFormat(localOptions.lang)
|
|
290
|
-
)
|
|
291
282
|
|
|
292
|
-
const formatTimeLocal =
|
|
283
|
+
const formatTimeLocal =
|
|
293
284
|
localOptions.formatTime ||
|
|
294
|
-
|
|
295
|
-
)
|
|
285
|
+
getTimeFormat(localOptions.hasSeconds, localOptions.formatTime)
|
|
296
286
|
|
|
297
|
-
|
|
287
|
+
let formatDatetime = ''
|
|
298
288
|
|
|
299
289
|
if (localOptions.onlyDate) {
|
|
300
|
-
formatDatetime
|
|
290
|
+
formatDatetime = formatDateLocal
|
|
301
291
|
}
|
|
302
292
|
|
|
303
293
|
if (localOptions.onlyTime) {
|
|
304
|
-
formatDatetime
|
|
294
|
+
formatDatetime = formatTimeLocal
|
|
305
295
|
}
|
|
306
296
|
|
|
307
297
|
if (!localOptions.onlyDate && !localOptions.onlyTime) {
|
|
308
|
-
formatDatetime
|
|
309
|
-
formatDateLocal
|
|
298
|
+
formatDatetime =
|
|
299
|
+
formatDateLocal +
|
|
310
300
|
(localOptions.separator ? localOptions.separator : ' ') +
|
|
311
|
-
formatTimeLocal
|
|
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
|
|
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
|
|
309
|
+
formatDatetime = formattedTime(
|
|
333
310
|
dateObj,
|
|
334
|
-
formatDatetime
|
|
311
|
+
formatDatetime,
|
|
335
312
|
localOptions.hasSeconds,
|
|
336
313
|
localOptions.formatTime,
|
|
337
314
|
localOptions.lang
|
|
338
315
|
)
|
|
339
316
|
}
|
|
340
317
|
|
|
341
|
-
return formatDatetime
|
|
318
|
+
return formatDatetime
|
|
342
319
|
}
|
|
343
320
|
|
|
344
321
|
const correctRuUnit = (value: number, type: string): string => {
|
package/store/main/getters.ts
CHANGED
|
@@ -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>
|