bfg-common 1.5.517 → 1.5.519
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/monitor/overview/OverviewNew.vue +3 -0
- package/components/common/monitor/overview/filters/Filters.vue +4 -1
- package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +7 -1
- 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/configuration/backupWindow/BackupWindow.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +69 -69
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +38 -38
- package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +34 -34
- 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/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/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/models/interfaces.ts +8 -8
- package/components/common/wizards/datastore/add/steps/hostAccessibility/table/new/lib/config/compatibleTable.ts +5 -4
- package/package.json +1 -1
package/components/common/pages/backups/modals/createBackup/disks/tableView/old/lib/config/table.ts
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import type {
|
|
3
|
-
UI_I_HeadItem,
|
|
4
|
-
UI_I_ColumnKey,
|
|
5
|
-
UI_I_BodyItem,
|
|
6
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
7
|
-
import type { UI_I_Pvm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
8
|
-
import {
|
|
9
|
-
constructHeadItem,
|
|
10
|
-
constructColumnKey,
|
|
11
|
-
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
12
|
-
import { tableKeys } from '~/components/common/pages/backups/modals/createBackup/disks/tableView/old/lib/config/keys'
|
|
13
|
-
|
|
14
|
-
const getItems = (
|
|
15
|
-
localization: UI_I_Localization
|
|
16
|
-
): [string, boolean, string, string][] => {
|
|
17
|
-
return [
|
|
18
|
-
[localization.common.source, true, '180px', tableKeys[0]],
|
|
19
|
-
[localization.common.deviceType, true, '180px', tableKeys[1]],
|
|
20
|
-
[localization.common.bus, true, '180px', tableKeys[2]],
|
|
21
|
-
[localization.common.target, true, '180px', tableKeys[3]],
|
|
22
|
-
[localization.common.capacity, true, '180px', tableKeys[4]],
|
|
23
|
-
[localization.common.used, true, '180px', tableKeys[5]],
|
|
24
|
-
[localization.common.free, true, '180px', tableKeys[6]],
|
|
25
|
-
[localization.common.volumePath, true, '180px', tableKeys[7]],
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
export const columnKeys = (
|
|
29
|
-
localization: UI_I_Localization
|
|
30
|
-
): UI_I_ColumnKey[] => {
|
|
31
|
-
const result: UI_I_ColumnKey[] = []
|
|
32
|
-
getItems(localization).forEach((item, i) => {
|
|
33
|
-
result.push(
|
|
34
|
-
constructColumnKey(`col${i}`, item[0], item[1], `show-column-${item[3]}`)
|
|
35
|
-
)
|
|
36
|
-
})
|
|
37
|
-
return result
|
|
38
|
-
}
|
|
39
|
-
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
40
|
-
const result: UI_I_HeadItem[] = []
|
|
41
|
-
getItems(localization).forEach((item, i) => {
|
|
42
|
-
result.push(
|
|
43
|
-
constructHeadItem(
|
|
44
|
-
`col${i}`,
|
|
45
|
-
item[0],
|
|
46
|
-
item[3],
|
|
47
|
-
true,
|
|
48
|
-
item[2],
|
|
49
|
-
undefined,
|
|
50
|
-
item[3]
|
|
51
|
-
)
|
|
52
|
-
)
|
|
53
|
-
})
|
|
54
|
-
return result
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export const bodyItems = (
|
|
58
|
-
data: UI_I_Pvm['disk_devices']
|
|
59
|
-
): UI_I_BodyItem[][] => {
|
|
60
|
-
const { $binary }: any = useNuxtApp()
|
|
61
|
-
const lang = useLocalStorage('lang') === 'ru_RU' ? 'ru' : 'en'
|
|
62
|
-
|
|
63
|
-
const bodyItems: UI_I_BodyItem[][] = []
|
|
64
|
-
data.forEach((disk: UI_I_Pvm['disk_devices'][0], key) => {
|
|
65
|
-
bodyItems.push([
|
|
66
|
-
{
|
|
67
|
-
key: 'col0',
|
|
68
|
-
text: disk[tableKeys[0]],
|
|
69
|
-
id: disk.source,
|
|
70
|
-
data: {
|
|
71
|
-
location: disk.source,
|
|
72
|
-
target: disk.target,
|
|
73
|
-
},
|
|
74
|
-
testId: `disk-table-item-${key}`,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
key: 'col1',
|
|
78
|
-
text: disk[tableKeys[1]],
|
|
79
|
-
id: disk.source,
|
|
80
|
-
testId: `disk-table-item-${key}`,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
key: 'col2',
|
|
84
|
-
text: disk[tableKeys[2]],
|
|
85
|
-
id: disk.source,
|
|
86
|
-
testId: `disk-table-item-${key}`,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
key: 'col3',
|
|
90
|
-
text: disk[tableKeys[3]],
|
|
91
|
-
id: disk.source,
|
|
92
|
-
testId: `disk-table-item-${key}`,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
key: 'col4',
|
|
96
|
-
text: $binary.round(disk[tableKeys[4]], false, lang),
|
|
97
|
-
id: disk.source,
|
|
98
|
-
testId: `disk-table-item-${key}`,
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
key: 'col5',
|
|
102
|
-
text: $binary.round(
|
|
103
|
-
disk[tableKeys[4]] - disk[tableKeys[6]],
|
|
104
|
-
false,
|
|
105
|
-
lang
|
|
106
|
-
),
|
|
107
|
-
id: disk.source,
|
|
108
|
-
testId: `disk-table-item-${key}`,
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
key: 'col6',
|
|
112
|
-
text: $binary.round(disk[tableKeys[6]], false, lang),
|
|
113
|
-
id: disk.source,
|
|
114
|
-
testId: `disk-table-item-${key}`,
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
key: 'col7',
|
|
118
|
-
text: disk[tableKeys[7]],
|
|
119
|
-
id: disk.source,
|
|
120
|
-
testId: `disk-table-item-${key}`,
|
|
121
|
-
},
|
|
122
|
-
])
|
|
123
|
-
})
|
|
124
|
-
return bodyItems
|
|
125
|
-
}
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type {
|
|
3
|
+
UI_I_HeadItem,
|
|
4
|
+
UI_I_ColumnKey,
|
|
5
|
+
UI_I_BodyItem,
|
|
6
|
+
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
7
|
+
import type { UI_I_Pvm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
8
|
+
import {
|
|
9
|
+
constructHeadItem,
|
|
10
|
+
constructColumnKey,
|
|
11
|
+
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
12
|
+
import { tableKeys } from '~/components/common/pages/backups/modals/createBackup/disks/tableView/old/lib/config/keys'
|
|
13
|
+
|
|
14
|
+
const getItems = (
|
|
15
|
+
localization: UI_I_Localization
|
|
16
|
+
): [string, boolean, string, string][] => {
|
|
17
|
+
return [
|
|
18
|
+
[localization.common.source, true, '180px', tableKeys[0]],
|
|
19
|
+
[localization.common.deviceType, true, '180px', tableKeys[1]],
|
|
20
|
+
[localization.common.bus, true, '180px', tableKeys[2]],
|
|
21
|
+
[localization.common.target, true, '180px', tableKeys[3]],
|
|
22
|
+
[localization.common.capacity, true, '180px', tableKeys[4]],
|
|
23
|
+
[localization.common.used, true, '180px', tableKeys[5]],
|
|
24
|
+
[localization.common.free, true, '180px', tableKeys[6]],
|
|
25
|
+
[localization.common.volumePath, true, '180px', tableKeys[7]],
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
export const columnKeys = (
|
|
29
|
+
localization: UI_I_Localization
|
|
30
|
+
): UI_I_ColumnKey[] => {
|
|
31
|
+
const result: UI_I_ColumnKey[] = []
|
|
32
|
+
getItems(localization).forEach((item, i) => {
|
|
33
|
+
result.push(
|
|
34
|
+
constructColumnKey(`col${i}`, item[0], item[1], `show-column-${item[3]}`)
|
|
35
|
+
)
|
|
36
|
+
})
|
|
37
|
+
return result
|
|
38
|
+
}
|
|
39
|
+
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
40
|
+
const result: UI_I_HeadItem[] = []
|
|
41
|
+
getItems(localization).forEach((item, i) => {
|
|
42
|
+
result.push(
|
|
43
|
+
constructHeadItem(
|
|
44
|
+
`col${i}`,
|
|
45
|
+
item[0],
|
|
46
|
+
item[3],
|
|
47
|
+
true,
|
|
48
|
+
item[2],
|
|
49
|
+
undefined,
|
|
50
|
+
item[3]
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
})
|
|
54
|
+
return result
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const bodyItems = (
|
|
58
|
+
data: UI_I_Pvm['disk_devices']
|
|
59
|
+
): UI_I_BodyItem[][] => {
|
|
60
|
+
const { $binary }: any = useNuxtApp()
|
|
61
|
+
const lang = useLocalStorage('lang') === 'ru_RU' ? 'ru' : 'en'
|
|
62
|
+
|
|
63
|
+
const bodyItems: UI_I_BodyItem[][] = []
|
|
64
|
+
data.forEach((disk: UI_I_Pvm['disk_devices'][0], key) => {
|
|
65
|
+
bodyItems.push([
|
|
66
|
+
{
|
|
67
|
+
key: 'col0',
|
|
68
|
+
text: disk[tableKeys[0]],
|
|
69
|
+
id: disk.source,
|
|
70
|
+
data: {
|
|
71
|
+
location: disk.source,
|
|
72
|
+
target: disk.target,
|
|
73
|
+
},
|
|
74
|
+
testId: `disk-table-item-${key}`,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: 'col1',
|
|
78
|
+
text: disk[tableKeys[1]],
|
|
79
|
+
id: disk.source,
|
|
80
|
+
testId: `disk-table-item-${key}`,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: 'col2',
|
|
84
|
+
text: disk[tableKeys[2]],
|
|
85
|
+
id: disk.source,
|
|
86
|
+
testId: `disk-table-item-${key}`,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: 'col3',
|
|
90
|
+
text: disk[tableKeys[3]],
|
|
91
|
+
id: disk.source,
|
|
92
|
+
testId: `disk-table-item-${key}`,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: 'col4',
|
|
96
|
+
text: $binary.round(disk[tableKeys[4]], false, lang),
|
|
97
|
+
id: disk.source,
|
|
98
|
+
testId: `disk-table-item-${key}`,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key: 'col5',
|
|
102
|
+
text: $binary.round(
|
|
103
|
+
disk[tableKeys[4]] - disk[tableKeys[6]],
|
|
104
|
+
false,
|
|
105
|
+
lang
|
|
106
|
+
),
|
|
107
|
+
id: disk.source,
|
|
108
|
+
testId: `disk-table-item-${key}`,
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: 'col6',
|
|
112
|
+
text: $binary.round(disk[tableKeys[6]], false, lang),
|
|
113
|
+
id: disk.source,
|
|
114
|
+
testId: `disk-table-item-${key}`,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: 'col7',
|
|
118
|
+
text: disk[tableKeys[7]],
|
|
119
|
+
id: disk.source,
|
|
120
|
+
testId: `disk-table-item-${key}`,
|
|
121
|
+
},
|
|
122
|
+
])
|
|
123
|
+
})
|
|
124
|
+
return bodyItems
|
|
125
|
+
}
|
package/components/common/pages/backups/modals/createBackup/disks/tableView/old/lib/models/types.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type UI_T_DiskTableKeysTuple = [
|
|
2
|
-
'source',
|
|
3
|
-
'device_type',
|
|
4
|
-
'bus',
|
|
5
|
-
'target',
|
|
6
|
-
'capacity_mb',
|
|
7
|
-
'used_mb',
|
|
8
|
-
'free_mb',
|
|
9
|
-
'volume_path',
|
|
10
|
-
]
|
|
1
|
+
export type UI_T_DiskTableKeysTuple = [
|
|
2
|
+
'source',
|
|
3
|
+
'device_type',
|
|
4
|
+
'bus',
|
|
5
|
+
'target',
|
|
6
|
+
'capacity_mb',
|
|
7
|
+
'used_mb',
|
|
8
|
+
'free_mb',
|
|
9
|
+
'volume_path',
|
|
10
|
+
]
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-pages-backups-modals-create-backup-general-new
|
|
3
|
-
v-if="isNewView"
|
|
4
|
-
v-model="model"
|
|
5
|
-
:messages-fields="props.messagesFields"
|
|
6
|
-
/>
|
|
7
|
-
|
|
8
|
-
<common-pages-backups-modals-create-backup-general-old
|
|
9
|
-
v-else
|
|
10
|
-
v-model="model"
|
|
11
|
-
:show="props.show"
|
|
12
|
-
/>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script lang="ts" setup>
|
|
16
|
-
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
17
|
-
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
18
|
-
import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
19
|
-
|
|
20
|
-
const model = defineModel<UI_I_CreateBackupForm>({ required: true })
|
|
21
|
-
|
|
22
|
-
const props = defineProps<{
|
|
23
|
-
show: boolean
|
|
24
|
-
messagesFields?: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
25
|
-
}>()
|
|
26
|
-
|
|
27
|
-
const { $store }: any = useNuxtApp()
|
|
28
|
-
|
|
29
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<style lang="scss" scoped>
|
|
33
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-pages-backups-modals-create-backup-general-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model="model"
|
|
5
|
+
:messages-fields="props.messagesFields"
|
|
6
|
+
/>
|
|
7
|
+
|
|
8
|
+
<common-pages-backups-modals-create-backup-general-old
|
|
9
|
+
v-else
|
|
10
|
+
v-model="model"
|
|
11
|
+
:show="props.show"
|
|
12
|
+
/>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts" setup>
|
|
16
|
+
import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
|
|
17
|
+
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
18
|
+
import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
19
|
+
|
|
20
|
+
const model = defineModel<UI_I_CreateBackupForm>({ required: true })
|
|
21
|
+
|
|
22
|
+
const props = defineProps<{
|
|
23
|
+
show: boolean
|
|
24
|
+
messagesFields?: UI_I_ArbitraryObject<UI_I_ErrorFields>
|
|
25
|
+
}>()
|
|
26
|
+
|
|
27
|
+
const { $store }: any = useNuxtApp()
|
|
28
|
+
|
|
29
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<style lang="scss" scoped>
|
|
33
|
+
</style>
|
|
@@ -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
|
-
export interface UI_I_DynamicSteps {
|
|
2
|
-
general: number
|
|
3
|
-
disks: number
|
|
4
|
-
datastores: number
|
|
5
|
-
configuration: number
|
|
6
|
-
readyComplete: number
|
|
7
|
-
schedulingOptions: number
|
|
8
|
-
}
|
|
1
|
+
export interface UI_I_DynamicSteps {
|
|
2
|
+
general: number
|
|
3
|
+
disks: number
|
|
4
|
+
datastores: number
|
|
5
|
+
configuration: number
|
|
6
|
+
readyComplete: number
|
|
7
|
+
schedulingOptions: number
|
|
8
|
+
}
|
|
@@ -21,7 +21,7 @@ export const getHeaderDataFunc = (
|
|
|
21
21
|
sort: 'asc',
|
|
22
22
|
width: '50%',
|
|
23
23
|
show: true,
|
|
24
|
-
filter:
|
|
24
|
+
filter: true,
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
col: 'col1',
|
|
@@ -31,7 +31,7 @@ export const getHeaderDataFunc = (
|
|
|
31
31
|
sort: 'asc',
|
|
32
32
|
width: '50%',
|
|
33
33
|
show: true,
|
|
34
|
-
filter:
|
|
34
|
+
filter: true,
|
|
35
35
|
},
|
|
36
36
|
]
|
|
37
37
|
export const options: UI_I_DataTableOptions = {
|
|
@@ -41,12 +41,13 @@ export const options: UI_I_DataTableOptions = {
|
|
|
41
41
|
showPagination: false,
|
|
42
42
|
showPageInfo: false,
|
|
43
43
|
isSortable: true,
|
|
44
|
-
server:
|
|
44
|
+
server: false,
|
|
45
45
|
isResizable: true,
|
|
46
46
|
showSelectedRows: true,
|
|
47
47
|
showColumnManager: true,
|
|
48
48
|
inBlock: false,
|
|
49
|
-
inModal: true
|
|
49
|
+
inModal: true,
|
|
50
|
+
autoWidth: true
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
export const getBodyDataFunc = (
|