bfg-common 1.6.74 → 1.6.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/localization/local_be.json +272 -11
- package/assets/localization/local_en.json +291 -29
- package/assets/localization/local_hy.json +274 -13
- package/assets/localization/local_kk.json +272 -11
- package/assets/localization/local_ru.json +286 -25
- package/assets/localization/local_zh.json +273 -12
- package/assets/scss/common/global.scss +11 -0
- package/assets/scss/common/normalize.scss +3 -0
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +3 -0
- package/components/common/adapterManager/AdapterManagerNew.vue +86 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
- package/components/common/certificate/CertificateInfo.vue +7 -1
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +12 -5
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
- package/components/common/diagramMain/Diagram.vue +169 -85
- package/components/common/diagramMain/DiagramMain.vue +40 -10
- package/components/common/diagramMain/header/Header.vue +49 -0
- package/components/common/diagramMain/header/HeaderNew.vue +155 -0
- package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
- package/components/common/diagramMain/modals/Modals.vue +4 -0
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
- package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
- package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -113
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{SwitchProperties.vue → switchProperties/SwitchPropertiesOld.vue} +12 -89
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
- package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/diagramMain/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/modals/Rename.vue +3 -1
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +184 -253
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +25 -23
- package/components/common/readyToComplete/New.vue +1 -0
- package/components/common/split/vertical/New.vue +42 -8
- package/components/common/split/vertical/Old.vue +31 -2
- package/components/common/split/vertical/Vertical.vue +4 -0
- package/components/common/tools/Actions.vue +7 -3
- package/components/common/tools/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/select/options/New.vue +14 -12
- package/components/common/vm/actions/common/select/options/Old.vue +16 -15
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
- package/components/common/vm/actions/confirm/Confirm.vue +3 -0
- package/components/common/vm/actions/rename/Old.vue +1 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +6 -0
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +13 -2
- package/components/common/wizards/network/add/AddNew.vue +22 -26
- package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +13 -3
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/package.json +2 -2
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/agent.js +18 -17
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UI_I_Button } from '~/node_modules/bfg-common/components/common/tools/lib/models/interfaces'
|
|
1
2
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
3
|
import type { UI_I_NavigationItem } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
3
4
|
|
|
@@ -9,7 +10,7 @@ export const switchMainNavigationFunc = (
|
|
|
9
10
|
text: localization.common.migrateVmKernelAdapter,
|
|
10
11
|
value: 'migrate-vmkernel-adapter',
|
|
11
12
|
testId: `${testId}-migrate-vm-kernel-adapter`,
|
|
12
|
-
development: true
|
|
13
|
+
development: true,
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
text: localization.common.viewSettings,
|
|
@@ -20,6 +21,46 @@ export const switchMainNavigationFunc = (
|
|
|
20
21
|
text: localization.common.remove,
|
|
21
22
|
value: 'switch-remove',
|
|
22
23
|
testId: `${testId}-remove`,
|
|
23
|
-
permission: 'Networks.RemoveSwitch'
|
|
24
|
+
permission: 'Networks.RemoveSwitch',
|
|
25
|
+
},
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
export const switchMainNavigationNewFunc = (
|
|
29
|
+
localization: UI_I_Localization,
|
|
30
|
+
testId: string
|
|
31
|
+
): UI_I_Button[] => [
|
|
32
|
+
{
|
|
33
|
+
text: localization.common.addNetworking,
|
|
34
|
+
value: 'add-networking',
|
|
35
|
+
iconName: 'network',
|
|
36
|
+
testId: `${testId}-add-networking-button`,
|
|
37
|
+
permission:
|
|
38
|
+
'Networks.CreateSysx Networks.CreatePortGroup Networks.UpdateSwitch Networks.CreateSwitch',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: localization.common.edit,
|
|
42
|
+
value: 'switch-edit',
|
|
43
|
+
iconName: 'edit',
|
|
44
|
+
testId: `${testId}-edit-button`,
|
|
45
|
+
permission: 'Networks.UpdateSwitch',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
text: localization.common.managePhysicalAdapters,
|
|
49
|
+
value: 'switch-manage-physical-adapters',
|
|
50
|
+
iconName: 'settings',
|
|
51
|
+
testId: `${testId}-manage-physical-adapters-button`,
|
|
52
|
+
permission: 'Networks.UpdateSwitch',
|
|
53
|
+
},
|
|
54
|
+
// {
|
|
55
|
+
// text: localization.common.migrateVmKernelAdapter,
|
|
56
|
+
// value: 'migrate-vmkernel-adapter',
|
|
57
|
+
// testId: `${testId}-migrate-vm-kernel-adapter`,
|
|
58
|
+
// development: true,
|
|
59
|
+
// },
|
|
60
|
+
{
|
|
61
|
+
text: localization.common.viewSettings,
|
|
62
|
+
value: 'switch-view-settings',
|
|
63
|
+
iconName: 'password-hide',
|
|
64
|
+
testId: `${testId}-view-settings`,
|
|
24
65
|
},
|
|
25
66
|
]
|
|
@@ -52,4 +52,5 @@ export const {
|
|
|
52
52
|
vmKernelAdapterViewSettingsFunc,
|
|
53
53
|
} = vmKernelAdapterData
|
|
54
54
|
// export const { managePhysicalAdapterTableData } = temporaryData
|
|
55
|
-
export const { switchMainNavigationFunc } =
|
|
55
|
+
export const { switchMainNavigationFunc, switchMainNavigationNewFunc } =
|
|
56
|
+
diagramConfig
|
|
@@ -18,7 +18,7 @@ export const vmKernelAdapterViewSettingsFunc = (
|
|
|
18
18
|
type: 0,
|
|
19
19
|
rows: [
|
|
20
20
|
{ name: localization.common.networkLabel, value: '' },
|
|
21
|
-
{ name: localization.common.vlanId, value: `${localization.common.
|
|
21
|
+
{ name: localization.common.vlanId, value: `${localization.common.none2} (0)` },
|
|
22
22
|
{ name: localization.common.tcpIpStack, value: 'Default' },
|
|
23
23
|
{ name: localization.common.enabledServices },
|
|
24
24
|
],
|
|
@@ -2,12 +2,42 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
2
2
|
import type { UI_I_EditSettingsErrorMessage } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const validationMessagesArrayFunc = (
|
|
5
|
-
|
|
5
|
+
keyArray: (keyof UI_I_EditSettingsErrorMessage)[],
|
|
6
6
|
errorMessages: UI_I_EditSettingsErrorMessage
|
|
7
7
|
) =>
|
|
8
|
-
|
|
9
|
-
.map(
|
|
10
|
-
|
|
8
|
+
keyArray
|
|
9
|
+
.map(
|
|
10
|
+
(key: keyof UI_I_EditSettingsErrorMessage): string | undefined =>
|
|
11
|
+
errorMessages[key]
|
|
12
|
+
)
|
|
13
|
+
.filter((message: string | undefined): boolean => message !== '')
|
|
14
|
+
|
|
15
|
+
export const validationMessagesArrayNewFunc = (
|
|
16
|
+
keyArray: (keyof UI_I_EditSettingsErrorMessage)[],
|
|
17
|
+
errorMessages: UI_I_EditSettingsErrorMessage
|
|
18
|
+
) =>
|
|
19
|
+
keyArray
|
|
20
|
+
.map(
|
|
21
|
+
(
|
|
22
|
+
key: keyof UI_I_EditSettingsErrorMessage
|
|
23
|
+
):
|
|
24
|
+
| {
|
|
25
|
+
key: keyof UI_I_EditSettingsErrorMessage
|
|
26
|
+
message: string | undefined
|
|
27
|
+
}
|
|
28
|
+
| undefined =>
|
|
29
|
+
errorMessages[key] ? { key, message: errorMessages[key] } : undefined
|
|
30
|
+
)
|
|
31
|
+
.filter(
|
|
32
|
+
(
|
|
33
|
+
messageObject:
|
|
34
|
+
| {
|
|
35
|
+
key: keyof UI_I_EditSettingsErrorMessage
|
|
36
|
+
message: string | undefined
|
|
37
|
+
}
|
|
38
|
+
| undefined
|
|
39
|
+
): boolean => !!messageObject
|
|
40
|
+
)
|
|
11
41
|
|
|
12
42
|
export const getNicSpeed = (
|
|
13
43
|
speedInitial: number = 0,
|
package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue
CHANGED
|
@@ -112,7 +112,7 @@ const title = computed<string>(
|
|
|
112
112
|
|
|
113
113
|
const connectionSettings = ref<UI_I_ConnectionSettings>({
|
|
114
114
|
networkLabel: 'VM Network',
|
|
115
|
-
vlanId: `${localization.value.common.
|
|
115
|
+
vlanId: `${localization.value.common.none2} (0)`,
|
|
116
116
|
})
|
|
117
117
|
|
|
118
118
|
const vmkernelAdapter = ref<UI_I_SelectVmkernelAdapter>({
|
|
@@ -262,7 +262,7 @@ const reset = (): void => {
|
|
|
262
262
|
wizard.reset()
|
|
263
263
|
connectionSettings.value = {
|
|
264
264
|
networkLabel: 'VM Network',
|
|
265
|
-
vlanId: `${localization.value.common.
|
|
265
|
+
vlanId: `${localization.value.common.none2} (0)`,
|
|
266
266
|
}
|
|
267
267
|
vmkernelAdapter.value = {
|
|
268
268
|
vm: '',
|
|
@@ -14,6 +14,6 @@ export const checkVlanId = (
|
|
|
14
14
|
vlanId: string,
|
|
15
15
|
localization: UI_I_Localization
|
|
16
16
|
): boolean =>
|
|
17
|
-
vlanId !== `${localization.common.
|
|
17
|
+
vlanId !== `${localization.common.none2} (0)` &&
|
|
18
18
|
vlanId !== `${localization.common.all} (4095)` &&
|
|
19
19
|
(isIntegerNumberInRange(vlanId, 0, 4095) || vlanId === '')
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="diagram-header-skeleton">
|
|
3
|
+
<div class="diagram-header-skeleton-title">
|
|
4
|
+
<ui-skeleton-item width="160" height="22" />
|
|
5
|
+
</div>
|
|
6
|
+
<div class="diagram-header-skeleton-buttons">
|
|
7
|
+
<ui-skeleton-item width="112" height="36" border-radius="8" />
|
|
8
|
+
<ui-skeleton-item width="160" height="36" border-radius="8" />
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup lang="ts"></script>
|
|
14
|
+
|
|
15
|
+
<style scoped lang="scss">
|
|
16
|
+
.diagram-header-skeleton {
|
|
17
|
+
padding: 16px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
row-gap: 24px;
|
|
23
|
+
column-gap: 24px;
|
|
24
|
+
|
|
25
|
+
&-buttons {
|
|
26
|
+
display: flex;
|
|
27
|
+
column-gap: 16px;
|
|
28
|
+
margin-left: auto;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="diagram-skeleton">
|
|
3
|
+
<div class="diagram-skeleton-item-header">
|
|
4
|
+
<div class="diagram-skeleton-item-header-icon">
|
|
5
|
+
<ui-icon
|
|
6
|
+
class="diagram-skeleton-item-header-icon-arrow"
|
|
7
|
+
name="arrow"
|
|
8
|
+
width="20"
|
|
9
|
+
height="20"
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
<ui-skeleton-item width="160" height="20" />
|
|
13
|
+
<div class="diagram-skeleton-item-header-line"></div>
|
|
14
|
+
<ui-skeleton-item width="400" height="20" />
|
|
15
|
+
</div>
|
|
16
|
+
<div class="diagram-skeleton-container">
|
|
17
|
+
<ui-skeleton-switch width="712" />
|
|
18
|
+
</div>
|
|
19
|
+
<div class="diagram-skeleton-footer">
|
|
20
|
+
<ui-skeleton-item width="80" height="20" />
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script setup lang="ts"></script>
|
|
26
|
+
|
|
27
|
+
<style scoped lang="scss">
|
|
28
|
+
.diagram-skeleton {
|
|
29
|
+
margin: 0 16px 16px;
|
|
30
|
+
border-radius: 8px;
|
|
31
|
+
background: var(--diagram-container-bg);
|
|
32
|
+
box-shadow: 0 1px 4px 0 #00000014;
|
|
33
|
+
padding: 16px;
|
|
34
|
+
overflow-clip-margin: content-box;
|
|
35
|
+
overflow: clip;
|
|
36
|
+
|
|
37
|
+
&-item-header {
|
|
38
|
+
display: flex;
|
|
39
|
+
column-gap: 16px;
|
|
40
|
+
|
|
41
|
+
&-icon {
|
|
42
|
+
width: 20px;
|
|
43
|
+
height: 20px;
|
|
44
|
+
color: var(--select-arrow);
|
|
45
|
+
|
|
46
|
+
&-arrow {
|
|
47
|
+
transform: rotate(180deg);
|
|
48
|
+
margin-right: -4px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-line {
|
|
53
|
+
height: 20px;
|
|
54
|
+
border-left: 1px solid var(--horizontal-line);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&-container {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
min-width: 759px;
|
|
62
|
+
padding: 48px 23.5px 24px 23.5px;
|
|
63
|
+
|
|
64
|
+
//:deep(svg) {
|
|
65
|
+
// padding: 22px 14.5px;
|
|
66
|
+
//}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-footer {
|
|
70
|
+
padding-top: 16px;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: flex-end;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
<div class="
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
<div class="reconnect-modal-container">
|
|
3
|
+
<ui-modal
|
|
4
|
+
:title="props.title"
|
|
5
|
+
:texts="modalTexts"
|
|
6
|
+
test-id="reconnect-modal"
|
|
7
|
+
size="sm"
|
|
8
|
+
width="560px"
|
|
9
|
+
show
|
|
10
|
+
@hide="emits('logout')"
|
|
11
|
+
@submit="emits('reconnect')"
|
|
12
|
+
>
|
|
13
|
+
<template #content>
|
|
14
|
+
<div class="reconnect-content">
|
|
15
|
+
<div class="icon-content flex items-center gap-2">
|
|
16
|
+
<span class="icon-sessions"></span>
|
|
17
|
+
<span class="description-text">{{
|
|
18
|
+
localization.common.reconnectDesc
|
|
19
|
+
}}</span>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="timer-block mt-4">
|
|
22
|
+
<common-countdown-timer
|
|
23
|
+
:timer="props.timer"
|
|
24
|
+
:total-time="props.totalTime"
|
|
25
|
+
is-hide-seconds-text
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
19
28
|
</div>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
<template #footerLeftContent>
|
|
30
|
-
<span></span>
|
|
31
|
-
</template>
|
|
32
|
-
</ui-modal>
|
|
29
|
+
</template>
|
|
30
|
+
<template #footerLeftContent>
|
|
31
|
+
<span></span>
|
|
32
|
+
</template>
|
|
33
|
+
</ui-modal>
|
|
34
|
+
</div>
|
|
33
35
|
</template>
|
|
34
36
|
|
|
35
37
|
<script lang="ts" setup>
|
|
@@ -56,6 +58,12 @@ const modalTexts = ref<UI_I_ModalTexts>({
|
|
|
56
58
|
</script>
|
|
57
59
|
|
|
58
60
|
<style lang="scss" scoped>
|
|
61
|
+
.reconnect-modal-container {
|
|
62
|
+
:deep(.modal), :deep(.modal-background) {
|
|
63
|
+
z-index: calc(var(--z-modal) + 3);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
59
67
|
.reconnect-content {
|
|
60
68
|
padding: 8px 32px 8px 32px;
|
|
61
69
|
|
|
@@ -107,24 +107,23 @@ const passwordErrorText = computed<string>(() => {
|
|
|
107
107
|
const newPasswordErrorText = computed<string>(() => {
|
|
108
108
|
if (!initValidationFields.value.newPassword) return ''
|
|
109
109
|
|
|
110
|
-
const { current_password, new_password, confirm_password } = modelLocal.value
|
|
110
|
+
// const { current_password, new_password, confirm_password } = modelLocal.value
|
|
111
|
+
const { current_password, new_password } = modelLocal.value
|
|
111
112
|
|
|
112
113
|
const validateText = validateField(
|
|
113
114
|
localization.value,
|
|
114
115
|
current_password,
|
|
115
116
|
new_password
|
|
116
117
|
)
|
|
117
|
-
const mismatchError = getPasswordMismatchError(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
)
|
|
118
|
+
// const mismatchError = getPasswordMismatchError(
|
|
119
|
+
// localization.value,
|
|
120
|
+
// new_password,
|
|
121
|
+
// confirm_password
|
|
122
|
+
// )
|
|
122
123
|
if (!new_password) {
|
|
123
124
|
return localization.value.common.fieldRequired
|
|
124
125
|
} else if (validateText) {
|
|
125
126
|
return validateText
|
|
126
|
-
} else if (mismatchError) {
|
|
127
|
-
return mismatchError
|
|
128
127
|
} else return ''
|
|
129
128
|
})
|
|
130
129
|
const confirmPasswordErrorText = computed<string>(() => {
|
|
@@ -166,7 +165,7 @@ const onHideModal = (): void => {
|
|
|
166
165
|
color: #9da6ad;
|
|
167
166
|
font-size: 12px;
|
|
168
167
|
font-weight: 400;
|
|
169
|
-
line-height:
|
|
168
|
+
line-height: 18px;
|
|
170
169
|
margin-bottom: 20px;
|
|
171
170
|
}
|
|
172
171
|
&__alert {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<common-layout-the-header-user-menu-modals-preferences-time-format
|
|
16
16
|
v-model:time-format="timeFormat"
|
|
17
17
|
:new-view="props.newView"
|
|
18
|
+
:project="props.project"
|
|
18
19
|
/>
|
|
19
20
|
</ui-modal-block-form-standard>
|
|
20
21
|
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
:new-view="props.newView"
|
|
24
25
|
:selected-type="props.selectedLanguageType"
|
|
25
26
|
:selected-language="props.selectedLanguage"
|
|
27
|
+
:project="props.project"
|
|
26
28
|
@update-language="emits('update-language', $event)"
|
|
27
29
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
28
30
|
/>
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
<common-layout-the-header-user-menu-modals-preferences-default-console
|
|
33
35
|
v-model="consoleValue"
|
|
34
36
|
:new-view="props.newView"
|
|
37
|
+
:project="props.project"
|
|
35
38
|
/>
|
|
36
39
|
</ui-modal-block-form-standard>
|
|
37
40
|
|
|
@@ -55,6 +58,7 @@
|
|
|
55
58
|
v-model:new-view-local="newViewLocal"
|
|
56
59
|
v-model:is-show-notification="isShowNotification"
|
|
57
60
|
:new-view="props.newView"
|
|
61
|
+
:project="props.project"
|
|
58
62
|
/>
|
|
59
63
|
</ui-modal-block-form-standard>
|
|
60
64
|
</ui-modal-block-standard>
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
v-if="selectedTab === 'time-tab'"
|
|
20
20
|
v-model:time-format="timeFormat"
|
|
21
21
|
:new-view="props.newView"
|
|
22
|
+
:project="props.project"
|
|
22
23
|
/>
|
|
23
24
|
|
|
24
25
|
<common-layout-the-header-user-menu-modals-preferences-change-language
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
:new-view="props.newView"
|
|
27
28
|
:selected-type="props.selectedLanguageType"
|
|
28
29
|
:selected-language="props.selectedLanguage"
|
|
30
|
+
:project="props.project"
|
|
29
31
|
@update-language="emits('update-language', $event)"
|
|
30
32
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
31
33
|
/>
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
v-if="selectedTab === 'console-tab' && isSphere"
|
|
41
43
|
v-model="consoleValue"
|
|
42
44
|
:new-view="props.newView"
|
|
45
|
+
:project="props.project"
|
|
43
46
|
/>
|
|
44
47
|
|
|
45
48
|
<common-layout-the-header-user-menu-modals-preferences-security
|
|
@@ -146,8 +149,12 @@ const isOn2FaImportant = ref<boolean>(false)
|
|
|
146
149
|
watch(
|
|
147
150
|
topNotifications,
|
|
148
151
|
(newValue) => {
|
|
149
|
-
if (
|
|
150
|
-
|
|
152
|
+
if (
|
|
153
|
+
newValue === UI_E_TopNotificationActionId.on2Fa ||
|
|
154
|
+
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
155
|
+
) {
|
|
156
|
+
isOn2FaImportant.value =
|
|
157
|
+
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
151
158
|
selectedTab.value = 'security-tab'
|
|
152
159
|
$store.dispatch('main/A_SET_TOP_NOTIFICATION_ACTION_ID', -1)
|
|
153
160
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
13
|
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
14
|
-
import type { UI_T_LangValue } from '~/lib/models/types'
|
|
14
|
+
import type { UI_T_LangValue, UI_T_Project } from '~/lib/models/types'
|
|
15
15
|
import type { UI_T_SelectedRadio } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/types'
|
|
16
16
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
17
|
import type { UI_I_RadioItemLang } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/interfaces'
|
|
@@ -24,6 +24,7 @@ import { defineBrowserLangFunc } from '~/components/common/layout/theHeader/lib/
|
|
|
24
24
|
const props = defineProps<{
|
|
25
25
|
newView: boolean
|
|
26
26
|
selectedType: UI_T_LangValue
|
|
27
|
+
project: UI_T_Project
|
|
27
28
|
selectedLanguage: UI_I_Dropdown | UI_T_LangValue
|
|
28
29
|
}>()
|
|
29
30
|
|
|
@@ -41,12 +42,15 @@ const currentComponent = computed(() =>
|
|
|
41
42
|
: defineAsyncComponent(() => import('./Old.vue'))
|
|
42
43
|
)
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
45
|
+
/* TODO SC-2104 */
|
|
46
|
+
const description = computed<string>(() =>
|
|
47
|
+
props.project === 'sphere'
|
|
48
|
+
? localization.value.common.languageDesc1
|
|
49
|
+
: localization.value.common.languageDesc.replaceAll(
|
|
50
|
+
'{trademark}',
|
|
51
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
52
|
+
)
|
|
53
|
+
)
|
|
50
54
|
|
|
51
55
|
const radioOptions = readonly<UI_I_RadioItemLang[]>(
|
|
52
56
|
radioOptionsFunc(localization.value)
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
10
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
11
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
11
12
|
import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
|
|
12
13
|
import { consoleOptionsFunc } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions'
|
|
13
14
|
|
|
14
15
|
const consoleValue = defineModel<string>()
|
|
15
16
|
const props = defineProps<{
|
|
17
|
+
project: UI_T_Project
|
|
16
18
|
newView: boolean
|
|
17
19
|
}>()
|
|
18
20
|
|
|
@@ -24,7 +26,11 @@ const currentComponent = computed(() =>
|
|
|
24
26
|
|
|
25
27
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
26
28
|
|
|
29
|
+
/* TODO SC-2104 */
|
|
27
30
|
const consoleOptions = readonly<UI_I_RadioItemConsole[]>(
|
|
28
|
-
consoleOptionsFunc(
|
|
31
|
+
consoleOptionsFunc(
|
|
32
|
+
localization.value,
|
|
33
|
+
props.newView && props.project === 'sphere'
|
|
34
|
+
)
|
|
29
35
|
)
|
|
30
36
|
</script>
|
|
@@ -2,14 +2,17 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
2
2
|
import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const consoleOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
5
|
+
localization: UI_I_Localization,
|
|
6
|
+
isSphereNewView: boolean
|
|
6
7
|
): UI_I_RadioItemConsole[] => {
|
|
7
8
|
const config = useRuntimeConfig()
|
|
8
9
|
|
|
9
|
-
const remoteConsole =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const remoteConsole = isSphereNewView
|
|
11
|
+
? localization.common.remoteConsoleVmrc1
|
|
12
|
+
: localization.common.remoteConsoleVmrc.replaceAll(
|
|
13
|
+
'{trademark}',
|
|
14
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
15
|
+
)
|
|
13
16
|
|
|
14
17
|
return [
|
|
15
18
|
{
|
package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue
CHANGED
|
@@ -12,12 +12,13 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
12
12
|
import type { UI_I_RadioItem } from '~/components/common/layout/theHeader/userMenu/lib/models/interfaces'
|
|
13
13
|
import type { UI_T_TimeValue } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/models/types'
|
|
14
14
|
import { formatOptionsFunc } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions'
|
|
15
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
15
16
|
|
|
16
17
|
const timeFormat = defineModel<UI_T_TimeValue>('timeFormat')
|
|
17
18
|
const props = defineProps<{
|
|
19
|
+
project: UI_T_Project
|
|
18
20
|
newView: boolean
|
|
19
21
|
}>()
|
|
20
|
-
|
|
21
22
|
const currentComponent = computed(() =>
|
|
22
23
|
props.newView
|
|
23
24
|
? defineAsyncComponent(() => import('./New.vue'))
|
|
@@ -28,11 +29,14 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
28
29
|
|
|
29
30
|
const config = useRuntimeConfig()
|
|
30
31
|
|
|
32
|
+
/* TODO SC-2104 */
|
|
31
33
|
const description = computed<string>(() =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
props.project === 'sphere'
|
|
35
|
+
? localization.value.common.timeFormatDesc1
|
|
36
|
+
: localization.value.common.timeFormatDesc.replaceAll(
|
|
37
|
+
'{trademark}',
|
|
38
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
39
|
+
)
|
|
36
40
|
)
|
|
37
41
|
|
|
38
42
|
const formatOptions = readonly<UI_I_RadioItem[]>(
|
|
@@ -15,13 +15,9 @@
|
|
|
15
15
|
/>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<div class="
|
|
19
|
-
{{ localization.myPreferences.showNotificationDescription }}
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div class="flex-align-center">
|
|
18
|
+
<div class="flex-align-center second-description">
|
|
23
19
|
<label for="show-notification">{{
|
|
24
|
-
localization.myPreferences.
|
|
20
|
+
localization.myPreferences.showNotificationDescription
|
|
25
21
|
}}</label>
|
|
26
22
|
<input
|
|
27
23
|
id="show-notification"
|
|
@@ -63,10 +59,10 @@ window.tools = new Proxy(
|
|
|
63
59
|
<style lang="scss" scoped>
|
|
64
60
|
.description {
|
|
65
61
|
margin-bottom: 10px;
|
|
62
|
+
}
|
|
66
63
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
64
|
+
.second-description {
|
|
65
|
+
margin-top: 20px;
|
|
70
66
|
}
|
|
71
67
|
|
|
72
68
|
label {
|
|
@@ -30,10 +30,13 @@ const currentComponent = computed(() =>
|
|
|
30
30
|
|
|
31
31
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
33
|
+
/* TODO SC-2104 */
|
|
34
|
+
const description = computed<string>(() =>
|
|
35
|
+
props.project === 'sphere'
|
|
36
|
+
? localization.value.common.viewDesc1
|
|
37
|
+
: localization.value.common.viewDesc.replaceAll(
|
|
38
|
+
'{trademark}',
|
|
39
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
40
|
+
)
|
|
41
|
+
)
|
|
39
42
|
</script>
|