bfg-common 1.5.516 → 1.5.518
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 +2 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2 -1
- package/components/atoms/sortableView/SortableView.vue +2 -2
- package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +195 -195
- package/components/common/pages/backups/modals/createBackup/New.vue +267 -267
- package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +34 -34
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/TableView.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/TableView.vue +95 -95
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/keys.ts +14 -14
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +127 -127
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/models/types.ts +10 -10
- package/components/common/pages/backups/modals/createBackup/disks/Disks.vue +34 -34
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/TableView.vue +2 -2
- package/components/common/pages/backups/modals/createBackup/disks/tableView/old/TableView.vue +119 -119
- package/components/common/pages/backups/modals/createBackup/disks/tableView/old/lib/config/keys.ts +12 -12
- package/components/common/pages/backups/modals/createBackup/disks/tableView/old/lib/config/table.ts +125 -125
- package/components/common/pages/backups/modals/createBackup/disks/tableView/old/lib/models/types.ts +10 -10
- package/components/common/pages/backups/modals/createBackup/general/General.vue +33 -33
- package/components/common/pages/backups/modals/createBackup/general/GeneralNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +123 -123
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +13 -13
- package/components/common/pages/backups/modals/createBackup/lib/validation/validations.ts +1 -1
- package/package.json +1 -1
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
2
|
-
import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
|
|
3
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
4
|
-
import type { UI_I_DynamicSteps } from '~/components/common/pages/backups/modals/createBackup/lib/models/interfaces'
|
|
5
|
-
|
|
6
|
-
export const dynamicSteps: UI_I_DynamicSteps = {
|
|
7
|
-
schedulingOptions: 0,
|
|
8
|
-
general: 1,
|
|
9
|
-
disks: 2,
|
|
10
|
-
datastores: 3,
|
|
11
|
-
configuration: 4,
|
|
12
|
-
readyComplete: 5,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const stepsFunc = (
|
|
16
|
-
localization: UI_I_Localization,
|
|
17
|
-
): UI_I_WizardStep[] => {
|
|
18
|
-
return [
|
|
19
|
-
{
|
|
20
|
-
id: dynamicSteps.schedulingOptions,
|
|
21
|
-
stepName: '',
|
|
22
|
-
title: localization.common.schedulingOptions,
|
|
23
|
-
subTitle: '',
|
|
24
|
-
status: UI_E_WIZARD_STATUS.SELECTED,
|
|
25
|
-
isValid: true,
|
|
26
|
-
fields: {},
|
|
27
|
-
testId: 'new-roles-scheduling-options',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: dynamicSteps.general,
|
|
31
|
-
stepName: '',
|
|
32
|
-
title: localization.common.general,
|
|
33
|
-
subTitle: 'Specify a unique name and a description for the backup.',
|
|
34
|
-
status: UI_E_WIZARD_STATUS.SELECTED, // ??
|
|
35
|
-
isValid: true,
|
|
36
|
-
fields: {
|
|
37
|
-
name: {
|
|
38
|
-
field: '',
|
|
39
|
-
alert: '',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
testId: 'create-backup-general',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: dynamicSteps.disks,
|
|
46
|
-
stepName: '',
|
|
47
|
-
title: localization.common.disks,
|
|
48
|
-
subTitle: localization.common.selectDisksInvolvedBackup,
|
|
49
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
50
|
-
isValid: true,
|
|
51
|
-
fields: {
|
|
52
|
-
disk_devices: {
|
|
53
|
-
field: '',
|
|
54
|
-
alert: '',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
testId: 'create-backup-disks',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
id: dynamicSteps.datastores,
|
|
61
|
-
stepName: '',
|
|
62
|
-
title: localization.common.datastores,
|
|
63
|
-
|
|
64
|
-
subTitle: localization.common.selectStorageConfigurationDiskFiles2,
|
|
65
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
66
|
-
isValid: true,
|
|
67
|
-
fields: {
|
|
68
|
-
backup_storage: {
|
|
69
|
-
field: '',
|
|
70
|
-
alert: '',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
testId: 'create-backup-datastores',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: dynamicSteps.configuration,
|
|
77
|
-
stepName: '',
|
|
78
|
-
title: localization.common.configuration,
|
|
79
|
-
subTitle: localization.common.configureBackupStrategyAndBandwidth,
|
|
80
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
81
|
-
isValid: true,
|
|
82
|
-
fields: {
|
|
83
|
-
bandWidth: {
|
|
84
|
-
field: '',
|
|
85
|
-
alert: '',
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
testId: 'create-backup-configuration',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
id: dynamicSteps.readyComplete,
|
|
92
|
-
stepName: '',
|
|
93
|
-
title: localization.common.readyComplete,
|
|
94
|
-
subTitle: localization.backup.backupCreationReview,
|
|
95
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
96
|
-
isValid: true,
|
|
97
|
-
testId: 'datastore-ready-complete',
|
|
98
|
-
fields: {},
|
|
99
|
-
},
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export const stepsSchemeInitial = (isScheduledTasks: boolean): number[][] => {
|
|
104
|
-
const resultWithOutScheduledTasks = [
|
|
105
|
-
dynamicSteps.general,
|
|
106
|
-
dynamicSteps.disks,
|
|
107
|
-
dynamicSteps.datastores,
|
|
108
|
-
dynamicSteps.configuration,
|
|
109
|
-
dynamicSteps.readyComplete,
|
|
110
|
-
]
|
|
111
|
-
const resultWithScheduledTasks = [
|
|
112
|
-
dynamicSteps.schedulingOptions,
|
|
113
|
-
dynamicSteps.general,
|
|
114
|
-
dynamicSteps.disks,
|
|
115
|
-
dynamicSteps.datastores,
|
|
116
|
-
dynamicSteps.configuration,
|
|
117
|
-
dynamicSteps.readyComplete,
|
|
118
|
-
]
|
|
119
|
-
|
|
120
|
-
return isScheduledTasks
|
|
121
|
-
? [resultWithScheduledTasks]
|
|
122
|
-
: [resultWithOutScheduledTasks]
|
|
123
|
-
}
|
|
1
|
+
import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
2
|
+
import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
|
|
3
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
4
|
+
import type { UI_I_DynamicSteps } from '~/components/common/pages/backups/modals/createBackup/lib/models/interfaces'
|
|
5
|
+
|
|
6
|
+
export const dynamicSteps: UI_I_DynamicSteps = {
|
|
7
|
+
schedulingOptions: 0,
|
|
8
|
+
general: 1,
|
|
9
|
+
disks: 2,
|
|
10
|
+
datastores: 3,
|
|
11
|
+
configuration: 4,
|
|
12
|
+
readyComplete: 5,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const stepsFunc = (
|
|
16
|
+
localization: UI_I_Localization,
|
|
17
|
+
): UI_I_WizardStep[] => {
|
|
18
|
+
return [
|
|
19
|
+
{
|
|
20
|
+
id: dynamicSteps.schedulingOptions,
|
|
21
|
+
stepName: '',
|
|
22
|
+
title: localization.common.schedulingOptions,
|
|
23
|
+
subTitle: '',
|
|
24
|
+
status: UI_E_WIZARD_STATUS.SELECTED,
|
|
25
|
+
isValid: true,
|
|
26
|
+
fields: {},
|
|
27
|
+
testId: 'new-roles-scheduling-options',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: dynamicSteps.general,
|
|
31
|
+
stepName: '',
|
|
32
|
+
title: localization.common.general,
|
|
33
|
+
subTitle: 'Specify a unique name and a description for the backup.',
|
|
34
|
+
status: UI_E_WIZARD_STATUS.SELECTED, // ??
|
|
35
|
+
isValid: true,
|
|
36
|
+
fields: {
|
|
37
|
+
name: {
|
|
38
|
+
field: '',
|
|
39
|
+
alert: '',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
testId: 'create-backup-general',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: dynamicSteps.disks,
|
|
46
|
+
stepName: '',
|
|
47
|
+
title: localization.common.disks,
|
|
48
|
+
subTitle: localization.common.selectDisksInvolvedBackup,
|
|
49
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
50
|
+
isValid: true,
|
|
51
|
+
fields: {
|
|
52
|
+
disk_devices: {
|
|
53
|
+
field: '',
|
|
54
|
+
alert: '',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
testId: 'create-backup-disks',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: dynamicSteps.datastores,
|
|
61
|
+
stepName: '',
|
|
62
|
+
title: localization.common.datastores,
|
|
63
|
+
|
|
64
|
+
subTitle: localization.common.selectStorageConfigurationDiskFiles2,
|
|
65
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
66
|
+
isValid: true,
|
|
67
|
+
fields: {
|
|
68
|
+
backup_storage: {
|
|
69
|
+
field: '',
|
|
70
|
+
alert: '',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
testId: 'create-backup-datastores',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: dynamicSteps.configuration,
|
|
77
|
+
stepName: '',
|
|
78
|
+
title: localization.common.configuration,
|
|
79
|
+
subTitle: localization.common.configureBackupStrategyAndBandwidth,
|
|
80
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
81
|
+
isValid: true,
|
|
82
|
+
fields: {
|
|
83
|
+
bandWidth: {
|
|
84
|
+
field: '',
|
|
85
|
+
alert: '',
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
testId: 'create-backup-configuration',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: dynamicSteps.readyComplete,
|
|
92
|
+
stepName: '',
|
|
93
|
+
title: localization.common.readyComplete,
|
|
94
|
+
subTitle: localization.backup.backupCreationReview,
|
|
95
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
96
|
+
isValid: true,
|
|
97
|
+
testId: 'datastore-ready-complete',
|
|
98
|
+
fields: {},
|
|
99
|
+
},
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const stepsSchemeInitial = (isScheduledTasks: boolean): number[][] => {
|
|
104
|
+
const resultWithOutScheduledTasks = [
|
|
105
|
+
dynamicSteps.general,
|
|
106
|
+
dynamicSteps.disks,
|
|
107
|
+
dynamicSteps.datastores,
|
|
108
|
+
dynamicSteps.configuration,
|
|
109
|
+
dynamicSteps.readyComplete,
|
|
110
|
+
]
|
|
111
|
+
const resultWithScheduledTasks = [
|
|
112
|
+
dynamicSteps.schedulingOptions,
|
|
113
|
+
dynamicSteps.general,
|
|
114
|
+
dynamicSteps.disks,
|
|
115
|
+
dynamicSteps.datastores,
|
|
116
|
+
dynamicSteps.configuration,
|
|
117
|
+
dynamicSteps.readyComplete,
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
return isScheduledTasks
|
|
121
|
+
? [resultWithScheduledTasks]
|
|
122
|
+
: [resultWithOutScheduledTasks]
|
|
123
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
|
|
3
|
-
|
|
4
|
-
export const strategyOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
): UI_I_SelectInputItem[] => {
|
|
7
|
-
return [
|
|
8
|
-
{ label: localization.common.fullBackup, value: 0 },
|
|
9
|
-
{ label: localization.common.incrementalBackup, value: 1 },
|
|
10
|
-
{ label: localization.common.differentialBackup, value: 2 },
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
|
|
3
|
+
|
|
4
|
+
export const strategyOptionsFunc = (
|
|
5
|
+
localization: UI_I_Localization
|
|
6
|
+
): UI_I_SelectInputItem[] => {
|
|
7
|
+
return [
|
|
8
|
+
{ label: localization.common.fullBackup, value: 0 },
|
|
9
|
+
{ label: localization.common.incrementalBackup, value: 1 },
|
|
10
|
+
{ label: localization.common.differentialBackup, value: 2 },
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { UI_I_WizardStep, UI_I_ValidationReturn } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
2
2
|
import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
|
|
3
|
+
import type {UI_I_Localization} from "~/lib/models/interfaces";
|
|
3
4
|
import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
4
5
|
import { dynamicSteps } from '~/components/common/pages/backups/modals/createBackup/lib/config/steps'
|
|
5
|
-
import type {UI_I_Localization} from "~/lib/models/interfaces";
|
|
6
6
|
import type {UI_I_NameCheck} from "~/components/common/pages/backups/modals/restore/name/lib/models/interfaces";
|
|
7
7
|
|
|
8
8
|
export const checkName = async (
|