bfg-common 1.4.58 → 1.4.60
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 +232 -362
- package/components/common/wizards/{datastoreNew → datastore}/add/lib/config/steps.ts +3 -0
- package/components/common/wizards/datastore/add/lib/models/interfaces.ts +11 -30
- package/components/common/wizards/datastore/add/lib/models/types.ts +0 -7
- package/components/common/wizards/datastore/add/lib/utils.ts +14 -54
- package/components/common/wizards/{datastoreNew → datastore}/add/lib/validations.ts +2 -2
- package/components/common/wizards/datastore/add/local/Local.vue +19 -45
- package/components/common/wizards/datastore/add/local/createName/CreateName.vue +31 -81
- package/components/common/wizards/datastore/add/nfs/Nfs.vue +25 -74
- package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +15 -56
- package/components/common/wizards/datastore/add/nfs/accessibility/lib/models/interfaces.ts +0 -4
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/TablesView.vue +9 -66
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +1 -1
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +57 -214
- package/components/common/wizards/datastore/add/nfs/configuration/lib/models/interfaces.ts +4 -11
- package/components/common/wizards/datastore/add/nfs/version/Version.vue +3 -19
- package/components/common/wizards/datastore/add/nfs/version/lib/config/versionOptions.ts +4 -4
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +3 -10
- package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts +37 -95
- package/components/common/wizards/datastore/add/sharedStorm/SharedStorm.vue +32 -45
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +64 -267
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/config/selectOptions.ts +5 -5
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces.ts +1 -11
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/types.ts +1 -14
- package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/Table.vue +2 -2
- package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/lib/config/lunDiskTable.ts +1 -1
- package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/lib/config/tableKeys.ts +1 -1
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +13 -13
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/lib/config/selectOptions.ts +8 -8
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/sizeGraphic/sizeGraphic.vue +2 -2
- package/components/common/wizards/datastore/add/types/Types.vue +18 -17
- package/components/common/wizards/datastore/add/types/lib/config/typeOptions.ts +7 -16
- package/lib/models/enums.ts +1 -0
- package/package.json +1 -1
- package/components/common/wizards/datastore/add/lib/config/stepItems.ts +0 -225
- package/components/common/wizards/datastore/add/local/createName/lib/config/defaultForm.ts +0 -15
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +0 -53
- package/components/common/wizards/datastore/add/nfs/configuration/lib/config/defaultForm.ts +0 -33
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/DeletePopover.vue +0 -100
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +0 -124
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/config/serversListConfig.ts +0 -40
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/config/tableKeys.ts +0 -3
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/lib/models/interfaces.ts +0 -11
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +0 -55
- package/components/common/wizards/datastore/add/readyComplete/lib/models/interfaces.ts +0 -4
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +0 -144
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/lib/config/hostsTable.ts +0 -87
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/lib/config/tableKeys.ts +0 -11
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/config/defaultForm.ts +0 -18
- package/components/common/wizards/datastore/add/sharedStorm/version/Version.vue +0 -39
- package/components/common/wizards/datastoreNew/add/Add.vue +0 -307
- package/components/common/wizards/datastoreNew/add/lib/models/interfaces.ts +0 -19
- package/components/common/wizards/datastoreNew/add/lib/models/types.ts +0 -7
- package/components/common/wizards/datastoreNew/add/lib/utils.ts +0 -64
- package/components/common/wizards/datastoreNew/add/local/Local.vue +0 -45
- package/components/common/wizards/datastoreNew/add/local/createName/CreateName.vue +0 -116
- package/components/common/wizards/datastoreNew/add/nfs/Nfs.vue +0 -63
- package/components/common/wizards/datastoreNew/add/nfs/_kerberosAuthentication/lib/config/radioOptions.ts +0 -27
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/Accessibility.vue +0 -63
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/lib/config/tabsPannel.ts +0 -24
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/lib/models/interfaces.ts +0 -9
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/lib/models/types.ts +0 -5
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/TablesView.vue +0 -85
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +0 -62
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/lib/config/incompatibleTable.ts +0 -68
- package/components/common/wizards/datastoreNew/add/nfs/accessibility/tablesView/lib/config/tableKeys.ts +0 -15
- package/components/common/wizards/datastoreNew/add/nfs/configuration/Configuration.vue +0 -236
- package/components/common/wizards/datastoreNew/add/nfs/configuration/_serversList/lib/models/types.ts +0 -1
- package/components/common/wizards/datastoreNew/add/nfs/configuration/lib/models/interfaces.ts +0 -5
- package/components/common/wizards/datastoreNew/add/nfs/version/Version.vue +0 -26
- package/components/common/wizards/datastoreNew/add/nfs/version/lib/config/versionOptions.ts +0 -22
- package/components/common/wizards/datastoreNew/add/readyComplete/ReadyComplete.vue +0 -88
- package/components/common/wizards/datastoreNew/add/readyComplete/lib/config/propertiesDetails.ts +0 -140
- package/components/common/wizards/datastoreNew/add/sharedStorm/SharedStorm.vue +0 -84
- package/components/common/wizards/datastoreNew/add/sharedStorm/_version/lib/config/versionOptions.ts +0 -21
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/DeviceSelection.vue +0 -276
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/lib/config/selectOptions.ts +0 -23
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/lib/models/interfaces.ts +0 -48
- package/components/common/wizards/datastoreNew/add/sharedStorm/deviceSelection/lib/models/types.ts +0 -1
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +0 -236
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/graphicTooltip/graphicTooltip.vue +0 -64
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/lib/config/selectOptions.ts +0 -46
- package/components/common/wizards/datastoreNew/add/sharedStorm/partitionConfiguration/sizeGraphic/sizeGraphic.vue +0 -225
- package/components/common/wizards/datastoreNew/add/types/Types.vue +0 -83
- package/components/common/wizards/datastoreNew/add/types/lib/config/typeOptions.ts +0 -41
- /package/components/common/wizards/{datastoreNew → datastore}/add/lib/models/enums.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/_kerberosAuthentication/KerberosAuthentication.vue +0 -0
- /package/components/common/wizards/datastore/add/nfs/{kerberosAuthentication → _kerberosAuthentication}/lib/config/radioOptions.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/accessibility/tablesView/lib/models/interfaces.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/DeletePopover.vue +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/ServersList.vue +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/lib/config/serversListConfig.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/lib/config/tableKeys.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/nfs/configuration/_serversList/lib/models/interfaces.ts +0 -0
- /package/components/common/wizards/datastore/add/nfs/configuration/{serversList → _serversList}/lib/models/types.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/_version/Version.vue +0 -0
- /package/components/common/wizards/datastore/add/sharedStorm/{version → _version}/lib/config/versionOptions.ts +0 -0
- /package/components/common/wizards/{datastoreNew → datastore}/add/sharedStorm/deviceSelection/table/lib/models/types.ts +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import { UI_I_SelectHostOptions } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const partitionConfigurationFunc = (
|
|
5
5
|
localization: UI_I_Localization
|
|
6
6
|
): UI_I_SelectHostOptions[] => {
|
|
7
7
|
return [
|
|
8
|
-
{ text: localization.
|
|
9
|
-
{ text: localization.
|
|
8
|
+
{ text: localization.selectConfiguration, value: '', disabled: true },
|
|
9
|
+
{ text: localization.useAllAvailablePartitions, value: 'all-partitions' },
|
|
10
10
|
]
|
|
11
11
|
}
|
|
12
12
|
export const blockSizeFunc = (
|
|
@@ -14,7 +14,7 @@ export const blockSizeFunc = (
|
|
|
14
14
|
): UI_I_SelectHostOptions[] => {
|
|
15
15
|
return [
|
|
16
16
|
{
|
|
17
|
-
text: `1 ${localization.
|
|
17
|
+
text: `1 ${localization.mb}`,
|
|
18
18
|
value: '1',
|
|
19
19
|
},
|
|
20
20
|
]
|
|
@@ -25,7 +25,7 @@ export const spaceGranularityFunc = (
|
|
|
25
25
|
): UI_I_SelectHostOptions[] => {
|
|
26
26
|
return [
|
|
27
27
|
{
|
|
28
|
-
text: `1 ${localization.
|
|
28
|
+
text: `1 ${localization.mb}`,
|
|
29
29
|
value: '1',
|
|
30
30
|
},
|
|
31
31
|
]
|
|
@@ -35,11 +35,11 @@ export const spacePriorityFunc = (
|
|
|
35
35
|
): UI_I_SelectHostOptions[] => {
|
|
36
36
|
return [
|
|
37
37
|
{
|
|
38
|
-
text: localization.
|
|
38
|
+
text: localization.low,
|
|
39
39
|
value: 'low',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
text: localization.
|
|
42
|
+
text: localization.none,
|
|
43
43
|
value: 'none',
|
|
44
44
|
},
|
|
45
45
|
]
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
</template>
|
|
190
190
|
|
|
191
191
|
<script lang="ts" setup>
|
|
192
|
-
import
|
|
192
|
+
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
193
193
|
|
|
194
194
|
const props = defineProps<{
|
|
195
195
|
selectedSize: number | null
|
|
@@ -205,7 +205,7 @@ const setProgress = computed<number>(() => {
|
|
|
205
205
|
})
|
|
206
206
|
|
|
207
207
|
const emptySizeText = computed<string>(() => {
|
|
208
|
-
const { empty, gb } = localization.value
|
|
208
|
+
const { empty, gb } = localization.value
|
|
209
209
|
|
|
210
210
|
return `${empty}: ${props.capacity} ${gb}`
|
|
211
211
|
})
|
|
@@ -19,46 +19,47 @@
|
|
|
19
19
|
test-id="select-datastore-type"
|
|
20
20
|
@hide="isShowTypeHelp = false"
|
|
21
21
|
>
|
|
22
|
-
<p class="help-desc">
|
|
22
|
+
<p class="help-desc">
|
|
23
|
+
{{ localization.common.datastoreTypeHelpDesc }}
|
|
24
|
+
</p>
|
|
23
25
|
</atoms-tooltip-signpost>
|
|
24
26
|
</div>
|
|
25
27
|
</div>
|
|
26
28
|
|
|
27
29
|
<common-select-radio-group
|
|
28
|
-
v-model="
|
|
30
|
+
v-model="selectedDatastoreTypeLocal"
|
|
29
31
|
:options="datastoreTypes"
|
|
32
|
+
@change="onChangeType"
|
|
30
33
|
/>
|
|
31
34
|
</section>
|
|
32
35
|
</template>
|
|
33
36
|
|
|
34
37
|
<script lang="ts" setup>
|
|
35
38
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
36
|
-
|
|
39
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
37
40
|
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
|
41
|
+
import type { UI_T_DatastoreType } from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
42
|
+
import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
|
|
43
|
+
import { E_DatastoreTypeKode } from '~/components/common/wizards/datastore/add/lib/models/enums'
|
|
38
44
|
import { datastoreTypesFunc } from '~/components/common/wizards/datastore/add/types/lib/config/typeOptions'
|
|
39
45
|
|
|
40
46
|
const props = defineProps<{
|
|
41
|
-
|
|
42
|
-
type: string
|
|
43
|
-
}>()
|
|
44
|
-
const emits = defineEmits<{
|
|
45
|
-
(event: 'update:type', value: string): void
|
|
47
|
+
project: UI_T_Project
|
|
46
48
|
}>()
|
|
49
|
+
const selectedDatastoreTypeLocal =
|
|
50
|
+
defineModel<UI_T_DatastoreType>('datastoreType')
|
|
51
|
+
const model = defineModel<UI_I_CreateDatastoreForm>({ required: true })
|
|
52
|
+
|
|
47
53
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
48
54
|
|
|
49
55
|
const datastoreTypes = ref<UI_I_RadioOption[]>(
|
|
50
|
-
// datastoreTypesFunc(localization.value, props.project)
|
|
51
56
|
datastoreTypesFunc(localization.value)
|
|
52
57
|
)
|
|
58
|
+
const onChangeType = (): void => {
|
|
59
|
+
model.value.type_code = E_DatastoreTypeKode[selectedDatastoreTypeLocal.value]
|
|
53
60
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return props.type
|
|
57
|
-
},
|
|
58
|
-
set(newValue) {
|
|
59
|
-
emits('update:type', newValue)
|
|
60
|
-
},
|
|
61
|
-
})
|
|
61
|
+
model.value.name = 'Datastore' // default value is 'Datastore' every time
|
|
62
|
+
}
|
|
62
63
|
|
|
63
64
|
const isShowTypeHelp = ref<boolean>(false)
|
|
64
65
|
</script>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import { UI_T_Project } from '~/lib/models/types'
|
|
3
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
|
4
4
|
|
|
5
5
|
export const datastoreTypesFunc = (
|
|
6
6
|
localization: UI_I_Localization,
|
|
7
|
-
|
|
7
|
+
_project?: UI_T_Project
|
|
8
8
|
): UI_I_RadioOption[] => {
|
|
9
|
-
// const types = [
|
|
10
9
|
return [
|
|
11
10
|
{
|
|
12
11
|
label: localization.common.stormSharedStorage,
|
|
@@ -26,25 +25,17 @@ export const datastoreTypesFunc = (
|
|
|
26
25
|
tooltipContent: localization.common.nfsHelpDesc,
|
|
27
26
|
testId: 'datastore-type-nfs',
|
|
28
27
|
},
|
|
29
|
-
// {
|
|
30
|
-
// label: localization.vVol,
|
|
31
|
-
// value: 'vVol',
|
|
32
|
-
// disabled: true,
|
|
33
|
-
// desc: localization.vVolDesc,
|
|
34
|
-
// },
|
|
35
28
|
]
|
|
36
29
|
|
|
37
30
|
// if (project === 'procurator') {
|
|
38
31
|
// types.unshift({
|
|
39
|
-
// label: localization.localStorage,
|
|
32
|
+
// label: localization.common.localStorage,
|
|
40
33
|
// value: 'local',
|
|
41
34
|
// disabled: false,
|
|
42
|
-
// description: localization.localDesc,
|
|
35
|
+
// description: localization.common.localDesc,
|
|
43
36
|
// isTooltip: false,
|
|
44
|
-
// tooltipContent: localization.localStorageHelpDesc,
|
|
37
|
+
// tooltipContent: localization.common.localStorageHelpDesc,
|
|
45
38
|
// testId: 'datastore-type-local',
|
|
46
39
|
// })
|
|
47
40
|
// }
|
|
48
|
-
|
|
49
|
-
// return types
|
|
50
41
|
}
|
package/lib/models/enums.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import type { UI_I_VerticalStepItem } from '~/components/atoms/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
-
import type {
|
|
4
|
-
UI_T_WizardDatastoreMode,
|
|
5
|
-
UI_T_DatastoreType,
|
|
6
|
-
UI_T_NfsType,
|
|
7
|
-
} from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
8
|
-
|
|
9
|
-
const stepFromSharedStorm = (
|
|
10
|
-
localization: UI_I_Localization,
|
|
11
|
-
mode: UI_T_WizardDatastoreMode
|
|
12
|
-
): UI_I_VerticalStepItem[] => {
|
|
13
|
-
const steps = [
|
|
14
|
-
{
|
|
15
|
-
text: localization.common.type,
|
|
16
|
-
disabled: false,
|
|
17
|
-
complete: false,
|
|
18
|
-
testId: 'create-datastore-select-type',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
text: localization.common.nameAndDeviceSelection,
|
|
22
|
-
disabled: true,
|
|
23
|
-
complete: false,
|
|
24
|
-
testId: 'create-datastore-name-and-device-selection',
|
|
25
|
-
},
|
|
26
|
-
// {
|
|
27
|
-
// text: localization.vmfsVersion,
|
|
28
|
-
// disabled: true,
|
|
29
|
-
// complete: false,
|
|
30
|
-
// }, <!-- TODO в shared-storm пока верси не будет -->
|
|
31
|
-
// {
|
|
32
|
-
// text: localization.partitionConfiguration,
|
|
33
|
-
// disabled: true,
|
|
34
|
-
// complete: false,
|
|
35
|
-
// },
|
|
36
|
-
]
|
|
37
|
-
// TODO refactoring
|
|
38
|
-
if (mode === 'procurator') {
|
|
39
|
-
steps.push({
|
|
40
|
-
text: localization.common.partitionConfiguration,
|
|
41
|
-
disabled: true,
|
|
42
|
-
complete: false,
|
|
43
|
-
testId: 'create-datastore-partition-configuration',
|
|
44
|
-
})
|
|
45
|
-
}
|
|
46
|
-
steps.push({
|
|
47
|
-
text: localization.common.readyComplete,
|
|
48
|
-
disabled: true,
|
|
49
|
-
complete: false,
|
|
50
|
-
testId: 'create-datastore-storm-ready-complete',
|
|
51
|
-
})
|
|
52
|
-
return steps
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const stepFromNfs = (
|
|
56
|
-
localization: UI_I_Localization,
|
|
57
|
-
mode: UI_T_WizardDatastoreMode
|
|
58
|
-
): UI_I_VerticalStepItem[] => {
|
|
59
|
-
const steps = [
|
|
60
|
-
{
|
|
61
|
-
text: localization.common.type,
|
|
62
|
-
disabled: false,
|
|
63
|
-
complete: false,
|
|
64
|
-
testId: 'create-datastore-select-type',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
text: localization.common.nfsVersion,
|
|
68
|
-
disabled: true,
|
|
69
|
-
complete: false,
|
|
70
|
-
testId: 'create-datastore-select-nfs-version',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
text: localization.common.nameAndConfiguration,
|
|
74
|
-
disabled: true,
|
|
75
|
-
complete: false,
|
|
76
|
-
testId: 'create-datastore-name-and-configuration',
|
|
77
|
-
},
|
|
78
|
-
// {
|
|
79
|
-
// text: localization.kerberosAuthentication,
|
|
80
|
-
// disabled: true,
|
|
81
|
-
// complete: false,
|
|
82
|
-
// permissions: ['nfs-4.1'],
|
|
83
|
-
// },// TODO Пока что не будет чут попоже
|
|
84
|
-
// { text: localization.hostsAccessibility, disabled: true, complete: false }, // Он будет когда будем делать групповое
|
|
85
|
-
// { text: localization.readyComplete, disabled: true, complete: false },
|
|
86
|
-
]
|
|
87
|
-
|
|
88
|
-
if (mode === 'sphere') {
|
|
89
|
-
steps.push({
|
|
90
|
-
text: localization.common.hostsAccessibility,
|
|
91
|
-
disabled: true,
|
|
92
|
-
complete: false,
|
|
93
|
-
testId: 'create-datastore-hosts-accessibility',
|
|
94
|
-
})
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
steps.push({
|
|
98
|
-
text: localization.common.readyComplete,
|
|
99
|
-
disabled: true,
|
|
100
|
-
complete: false,
|
|
101
|
-
testId: 'create-datastore-nfs-ready-complete',
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
return steps
|
|
105
|
-
|
|
106
|
-
// console.log(position, 'position')
|
|
107
|
-
|
|
108
|
-
// nfsItems = nfsItems.filter((item) => {
|
|
109
|
-
// // return item.permissions
|
|
110
|
-
// // ? type !== null
|
|
111
|
-
// // ? item.permissions.includes(type)
|
|
112
|
-
// // : true
|
|
113
|
-
// // : false
|
|
114
|
-
// return item.permissions ? item.permissions.includes(type) : true
|
|
115
|
-
// })
|
|
116
|
-
// nfsItems.forEach((x, key) => {
|
|
117
|
-
// if (key <= position) {
|
|
118
|
-
// // console.log(key, 'key')
|
|
119
|
-
// x.complete = true
|
|
120
|
-
// x.disabled = false
|
|
121
|
-
// }
|
|
122
|
-
// })
|
|
123
|
-
|
|
124
|
-
// console.log(type, 'typeeeeee')
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// const stemFromVvol = (localization: UI_I_Localization): UI_I_VerticalStepItem[] => {
|
|
128
|
-
// return [
|
|
129
|
-
// { text: localization.common.type, disabled: false, complete: false },
|
|
130
|
-
// {
|
|
131
|
-
// text: localization.nameAndContainerSelection,
|
|
132
|
-
// disabled: true,
|
|
133
|
-
// complete: false,
|
|
134
|
-
// },
|
|
135
|
-
// { text: localization.hostsAccessibility, disabled: true, complete: false },
|
|
136
|
-
// { text: localization.readyComplete, disabled: true, complete: false },
|
|
137
|
-
// ]
|
|
138
|
-
// }
|
|
139
|
-
const stemFromLocal = (
|
|
140
|
-
localization: UI_I_Localization,
|
|
141
|
-
mode: UI_T_WizardDatastoreMode
|
|
142
|
-
): UI_I_VerticalStepItem[] => {
|
|
143
|
-
const isModeProcurator = mode === 'procurator'
|
|
144
|
-
return [
|
|
145
|
-
{
|
|
146
|
-
text: localization.common.type,
|
|
147
|
-
disabled: false,
|
|
148
|
-
complete: false,
|
|
149
|
-
testId: 'create-datastore-select-type',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
text: localization.common[
|
|
153
|
-
isModeProcurator ? 'selectDatastoreName' : 'nameAndDeviceSelection'
|
|
154
|
-
],
|
|
155
|
-
disabled: true,
|
|
156
|
-
complete: false,
|
|
157
|
-
testId: `create-datastore-${
|
|
158
|
-
isModeProcurator ? 'select-datastore-name' : 'name-and-device-selection'
|
|
159
|
-
}`,
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
text: localization.common.readyComplete,
|
|
163
|
-
disabled: true,
|
|
164
|
-
complete: false,
|
|
165
|
-
testId: 'create-datastore-local-ready-complete',
|
|
166
|
-
},
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export const stepItemsFunc = (
|
|
171
|
-
localization: UI_I_Localization,
|
|
172
|
-
type: UI_T_DatastoreType,
|
|
173
|
-
mode: UI_T_WizardDatastoreMode
|
|
174
|
-
): UI_I_VerticalStepItem[] => {
|
|
175
|
-
const handlers = {
|
|
176
|
-
'shared-storm': stepFromSharedStorm,
|
|
177
|
-
nfs: stepFromNfs,
|
|
178
|
-
local: stemFromLocal,
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return handlers[type](localization, mode)
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
interface SubTitles {
|
|
185
|
-
'shared-storm': string[]
|
|
186
|
-
nfs: string[]
|
|
187
|
-
local: string[]
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export const subTitleFunc = (
|
|
191
|
-
localization: UI_I_Localization,
|
|
192
|
-
type: UI_T_DatastoreType,
|
|
193
|
-
position: number,
|
|
194
|
-
version?: UI_T_NfsType
|
|
195
|
-
): string => {
|
|
196
|
-
position = position - 1
|
|
197
|
-
|
|
198
|
-
if (type === 'nfs' && version === 'nfs-3' && position === 2) {
|
|
199
|
-
position = position + 1
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
const description: string[] = [
|
|
203
|
-
localization.common.selectNfsVersion,
|
|
204
|
-
localization.common.nameAndConfigurationDesc,
|
|
205
|
-
// localization.kerberosAuthenticationDesc.replace(
|
|
206
|
-
// '{0}',
|
|
207
|
-
// version?.toUpperCase() || ''
|
|
208
|
-
// ),
|
|
209
|
-
// localization.hostsAccessibilityDesc,
|
|
210
|
-
]
|
|
211
|
-
|
|
212
|
-
const sharedStormDesc: string[] = [
|
|
213
|
-
localization.common.nameAndDeviceSelectionDesc,
|
|
214
|
-
// localization.vmfsVersionDesc,
|
|
215
|
-
localization.common.partitionConfigurationDesc,
|
|
216
|
-
]
|
|
217
|
-
|
|
218
|
-
const subTitles: SubTitles = {
|
|
219
|
-
nfs: description,
|
|
220
|
-
'shared-storm': sharedStormDesc,
|
|
221
|
-
local: [],
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return subTitles[type][position]
|
|
225
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const defaultFormFunc = (localization: UI_I_Localization): any => {
|
|
4
|
-
return {
|
|
5
|
-
name: {
|
|
6
|
-
value: '',
|
|
7
|
-
validations: [
|
|
8
|
-
{
|
|
9
|
-
value: 'required',
|
|
10
|
-
errorText: localization.common.specifyDatastoreName,
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
},
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
I_CompatibleHostsTable,
|
|
3
|
-
I_IncompatibleHostsTable,
|
|
4
|
-
} from '~/components/common/wizards/datastore/add/nfs/accessibility/lib/models/interfaces'
|
|
5
|
-
import type { T_HostsAccessibilityTab } from '~/components/common/wizards/datastore/add/nfs/accessibility/lib/models/types'
|
|
6
|
-
import type { API_UI_I_DataTable } from '~/lib/models/table/interfaces'
|
|
7
|
-
|
|
8
|
-
const compatibleHostsTable: API_UI_I_DataTable<I_CompatibleHostsTable[]> = {
|
|
9
|
-
items: [
|
|
10
|
-
{
|
|
11
|
-
id: 1,
|
|
12
|
-
host: 'esxi0.иридиум',
|
|
13
|
-
cluster: 'Cluster00',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 2,
|
|
17
|
-
host: ' esxi0.иридиум',
|
|
18
|
-
cluster: 'Cluster00',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: 3,
|
|
22
|
-
host: 'esxi3.иридиум',
|
|
23
|
-
cluster: 'Cluster00',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: 4,
|
|
27
|
-
host: 'esxi4.иридиум',
|
|
28
|
-
cluster: 'Cluster00',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: 5,
|
|
32
|
-
host: 'esxi1.иридиум',
|
|
33
|
-
cluster: 'Cluster01',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
total_items: 5,
|
|
37
|
-
total_pages: 1,
|
|
38
|
-
}
|
|
39
|
-
const incompatibleHostsTable: API_UI_I_DataTable<I_IncompatibleHostsTable[]> = {
|
|
40
|
-
items: [],
|
|
41
|
-
total_items: 0,
|
|
42
|
-
total_pages: 1,
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { incompatibleHostsTable, compatibleHostsTable }
|
|
46
|
-
export const hostsAccessibilityTablesFunc = (type: T_HostsAccessibilityTab) => {
|
|
47
|
-
const hostItems = {
|
|
48
|
-
'compatible-hosts': compatibleHostsTable,
|
|
49
|
-
'incompatible-hosts': incompatibleHostsTable,
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return hostItems[type]
|
|
53
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const defaultFormFunc = (localization: UI_I_Localization): any => {
|
|
4
|
-
return {
|
|
5
|
-
name: {
|
|
6
|
-
value: 'Datastore',
|
|
7
|
-
validations: [
|
|
8
|
-
{
|
|
9
|
-
value: 'required',
|
|
10
|
-
errorText: localization.common.specifyDatastoreName,
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
},
|
|
14
|
-
folder: {
|
|
15
|
-
value: '',
|
|
16
|
-
validations: [
|
|
17
|
-
{
|
|
18
|
-
value: 'required',
|
|
19
|
-
errorText: localization.common.specifyFolderName,
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
server: {
|
|
24
|
-
value: '',
|
|
25
|
-
validations: [
|
|
26
|
-
{
|
|
27
|
-
value: 'required',
|
|
28
|
-
errorText: localization.common.specifyServerName,
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
}
|
package/components/common/wizards/datastore/add/nfs/configuration/serversList/DeletePopover.vue
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="popover">
|
|
3
|
-
<slot>
|
|
4
|
-
<span
|
|
5
|
-
class="popover__item"
|
|
6
|
-
data-id="delete-popover-text"
|
|
7
|
-
@click="onClickItem"
|
|
8
|
-
>{{ localization.common.removeMember }}</span
|
|
9
|
-
>
|
|
10
|
-
</slot>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script lang="ts" setup>
|
|
15
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
16
|
-
|
|
17
|
-
const emits = defineEmits<{
|
|
18
|
-
(event: 'hide'): void
|
|
19
|
-
(event: 'click-item'): void
|
|
20
|
-
}>()
|
|
21
|
-
|
|
22
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
23
|
-
const onClickItem = (): void => {
|
|
24
|
-
emits('click-item')
|
|
25
|
-
}
|
|
26
|
-
const hide = (): void => {
|
|
27
|
-
emits('hide')
|
|
28
|
-
}
|
|
29
|
-
const windowClick = (): void => {
|
|
30
|
-
hide()
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
onMounted(() => {
|
|
34
|
-
setTimeout(() => {
|
|
35
|
-
window.addEventListener('click', windowClick)
|
|
36
|
-
})
|
|
37
|
-
})
|
|
38
|
-
onUnmounted(() => {
|
|
39
|
-
window.removeEventListener('click', windowClick)
|
|
40
|
-
})
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style lang="scss" scoped>
|
|
44
|
-
@import '~/assets/scss/common/mixins.scss';
|
|
45
|
-
|
|
46
|
-
.popover {
|
|
47
|
-
@include flex($align: center, $just: space-between);
|
|
48
|
-
height: 38px;
|
|
49
|
-
background: var(--block-view-bg-color2);
|
|
50
|
-
padding: 0.3rem;
|
|
51
|
-
margin-left: 0.3rem;
|
|
52
|
-
border: 0.05rem solid var(--block-border-color);
|
|
53
|
-
box-shadow: 0 0.05rem 0.15rem hsl(0deg 0% 55% / 25%);
|
|
54
|
-
transform: translateY(-50%);
|
|
55
|
-
border-radius: 0.15rem;
|
|
56
|
-
font-weight: 400;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
z-index: 600;
|
|
59
|
-
&:before,
|
|
60
|
-
&:after {
|
|
61
|
-
content: '';
|
|
62
|
-
position: absolute;
|
|
63
|
-
top: 50%;
|
|
64
|
-
right: 100%;
|
|
65
|
-
width: 0;
|
|
66
|
-
height: 0;
|
|
67
|
-
}
|
|
68
|
-
&:before {
|
|
69
|
-
margin-top: -0.3rem;
|
|
70
|
-
border-bottom: 0.3rem solid transparent;
|
|
71
|
-
border-top: 0.3rem solid transparent;
|
|
72
|
-
border-left: 0;
|
|
73
|
-
border-right: 0.3rem solid var(--block-border-color);
|
|
74
|
-
}
|
|
75
|
-
&:after {
|
|
76
|
-
margin-top: -0.25rem;
|
|
77
|
-
border-right: 0.25rem solid var(--block-view-bg-color2);
|
|
78
|
-
border-top: 0.25rem solid transparent;
|
|
79
|
-
border-bottom: 0.25rem solid transparent;
|
|
80
|
-
}
|
|
81
|
-
&__item {
|
|
82
|
-
@include text($fs: 14px, $c: var(--global-font-color3));
|
|
83
|
-
line-height: 1.15rem;
|
|
84
|
-
padding: 0.05rem 1.2rem 0;
|
|
85
|
-
&:hover {
|
|
86
|
-
background-color: var(--popover-hover-bg-color);
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
</style>
|
|
92
|
-
|
|
93
|
-
<style>
|
|
94
|
-
:root {
|
|
95
|
-
--popover-hover-bg-color: #e8e8e8;
|
|
96
|
-
}
|
|
97
|
-
:root.dark-theme {
|
|
98
|
-
--popover-hover-bg-color: #28404d;
|
|
99
|
-
}
|
|
100
|
-
</style>
|