bfg-common 1.5.76 → 1.5.78
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/components/common/wizards/datastore/add/Add.vue +11 -20
- package/components/common/wizards/datastore/add/New.vue +24 -45
- package/components/common/wizards/datastore/add/Old.vue +29 -16
- package/components/common/wizards/datastore/add/lib/config/steps.ts +18 -15
- package/components/common/wizards/datastore/add/lib/validations.ts +29 -13
- package/components/common/wizards/datastore/add/nfs/Nfs.vue +0 -5
- package/components/common/wizards/datastore/add/{nfs/version/Version.vue → steps/_nfsVersion/NfsVersion.vue} +1 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/HostAccessibility.vue +60 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/HostAccessibilityNew.vue +27 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/HostAccessibilityOld.vue +60 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/lib/config/tabsPannel.ts +31 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/lib/models/interfaces.ts +9 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/lib/models/types.ts +5 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/tablesView/TablesView.vue +85 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/tablesView/lib/config/compatibleTable.ts +62 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/tablesView/lib/config/incompatibleTable.ts +68 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/tablesView/lib/config/tableKeys.ts +15 -0
- package/components/common/wizards/datastore/add/steps/hostAccessibility/tablesView/lib/models/interfaces.ts +11 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigure.vue +95 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +123 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue +234 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/DeletePopover.vue +100 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/ServersList.vue +123 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/config/serversListConfig.ts +40 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/config/tableKeys.ts +3 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/models/interfaces.ts +3 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/_serversList/lib/models/types.ts +1 -0
- package/components/common/wizards/datastore/add/steps/nameAndConfigure/lib/models/interfaces.ts +5 -0
- package/package.json +1 -1
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +0 -92
- package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts +0 -142
- /package/components/common/wizards/datastore/add/{nfs/version → steps/_nfsVersion}/lib/config/versionOptions.ts +0 -0
package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_DetailsItem } from '~/components/common/details/lib/models/interfaces'
|
|
3
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
|
4
|
-
import type { UI_I_CreateStorageLunDiskItem } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
5
|
-
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
|
6
|
-
import type { UI_I_CreateDatastoreHosts } from '~/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/models/interfaces'
|
|
7
|
-
const constructLunDiskItems = (
|
|
8
|
-
disks: UI_I_CreateStorageLunDiskItem[]
|
|
9
|
-
): string => {
|
|
10
|
-
const { $binary } = useNuxtApp() as any
|
|
11
|
-
|
|
12
|
-
let result = ''
|
|
13
|
-
disks.forEach((disk: UI_I_CreateStorageLunDiskItem) => {
|
|
14
|
-
const capacity = $binary.round(disk.capacity_mb)
|
|
15
|
-
result += `${disk.name} - ${capacity} \n`
|
|
16
|
-
})
|
|
17
|
-
return result
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const nfsDetailsFunc = (
|
|
21
|
-
localization: UI_I_Localization,
|
|
22
|
-
data: UI_I_CreateDatastoreForm,
|
|
23
|
-
project: UI_T_Project,
|
|
24
|
-
nfsHosts: UI_I_CreateDatastoreHosts
|
|
25
|
-
): UI_I_DetailsItem[] => {
|
|
26
|
-
const { name, server, folder, nfsVersion, hosts } = data
|
|
27
|
-
// const accessMode = readonly ? 'Read-only' : 'Read-write'
|
|
28
|
-
|
|
29
|
-
const details: UI_I_DetailsItem[] = [
|
|
30
|
-
{
|
|
31
|
-
label: localization.common.nfsVersion,
|
|
32
|
-
value: '',
|
|
33
|
-
items: [
|
|
34
|
-
{
|
|
35
|
-
label: localization.common.version,
|
|
36
|
-
value: nfsVersion.toUpperCase(),
|
|
37
|
-
items: [],
|
|
38
|
-
testId: 'view-selected-nfs-version-in-complete',
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
actions: [],
|
|
42
|
-
testId: 'view-selected-nfs-version',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: localization.common.nameAndConfiguration,
|
|
46
|
-
value: '',
|
|
47
|
-
items: [
|
|
48
|
-
{
|
|
49
|
-
label: localization.common.datastoreName,
|
|
50
|
-
value: name,
|
|
51
|
-
items: [],
|
|
52
|
-
testId: 'view-storage-name-in-complete',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
label: localization.common.server,
|
|
56
|
-
value: server,
|
|
57
|
-
items: [],
|
|
58
|
-
testId: 'view-server-name-in-complete',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: localization.common.folder,
|
|
62
|
-
value: folder,
|
|
63
|
-
items: [],
|
|
64
|
-
testId: 'view-folder-name-in-complete',
|
|
65
|
-
},
|
|
66
|
-
// {
|
|
67
|
-
// label: localization.accessMode,
|
|
68
|
-
// value: accessMode,
|
|
69
|
-
// items: [],
|
|
70
|
-
// },
|
|
71
|
-
],
|
|
72
|
-
actions: [],
|
|
73
|
-
testId: 'view-selected-name-configuration',
|
|
74
|
-
},
|
|
75
|
-
]
|
|
76
|
-
|
|
77
|
-
if (project === 'sphere') {
|
|
78
|
-
const hostsNames = nfsHosts
|
|
79
|
-
? nfsHosts.items
|
|
80
|
-
.filter((host) => data.hosts.includes(host.id))
|
|
81
|
-
.map((host) => host.host)
|
|
82
|
-
: []
|
|
83
|
-
details.push({
|
|
84
|
-
label: localization.common.hostsAccessibility,
|
|
85
|
-
value: '',
|
|
86
|
-
items: [
|
|
87
|
-
{
|
|
88
|
-
label: localization.common.hosts,
|
|
89
|
-
value: '',
|
|
90
|
-
data: hostsNames,
|
|
91
|
-
items: [],
|
|
92
|
-
testId: 'view-hosts-name-in-complete',
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
actions: [],
|
|
96
|
-
})
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return details
|
|
100
|
-
}
|
|
101
|
-
const sharedStormDetailsFunc = (
|
|
102
|
-
localization: UI_I_Localization,
|
|
103
|
-
data: UI_I_CreateDatastoreForm
|
|
104
|
-
): UI_I_DetailsItem[] => {
|
|
105
|
-
const { name, lunDisk } = data
|
|
106
|
-
|
|
107
|
-
return [
|
|
108
|
-
{
|
|
109
|
-
label: localization.common.nameAndDeviceSelection,
|
|
110
|
-
value: '',
|
|
111
|
-
items: [
|
|
112
|
-
{
|
|
113
|
-
label: localization.common.datastoreName,
|
|
114
|
-
value: name,
|
|
115
|
-
items: [],
|
|
116
|
-
testId: 'view-storage-name-in-complete',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
label: localization.common.diskLun,
|
|
120
|
-
value: constructLunDiskItems(lunDisk),
|
|
121
|
-
items: [],
|
|
122
|
-
testId: 'view-selected-lun-disks-in-complete',
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
actions: [],
|
|
126
|
-
},
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export const constructDataReadyViewFunc = (
|
|
131
|
-
localization: UI_I_Localization,
|
|
132
|
-
data: UI_I_CreateDatastoreForm,
|
|
133
|
-
project: UI_T_Project,
|
|
134
|
-
nfsHosts: UI_I_CreateDatastoreHosts
|
|
135
|
-
): UI_I_DetailsItem[] => {
|
|
136
|
-
const details = {
|
|
137
|
-
2: sharedStormDetailsFunc,
|
|
138
|
-
4: nfsDetailsFunc,
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return details[data.type_code as 2 | 4](localization, data, project, nfsHosts)
|
|
142
|
-
}
|
|
File without changes
|