bfg-common 1.5.211 → 1.5.213
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/backup/lib/utils/getBackupOrBackupStorageId.ts +29 -0
- package/components/common/backup/storage/actions/add/Add.vue +36 -0
- package/components/common/backup/storage/actions/add/temp/Add.vue +508 -0
- package/components/common/backup/storage/actions/add/temp/lib/config/stepItems.ts +203 -0
- package/components/common/backup/storage/actions/add/temp/lib/models/interfaces.ts +58 -0
- package/components/common/backup/storage/actions/add/temp/lib/models/types.ts +14 -0
- package/components/common/backup/storage/actions/add/temp/lib/utils.ts +70 -0
- package/components/common/backup/storage/actions/add/temp/local/Local.vue +65 -0
- package/components/common/backup/storage/actions/add/temp/local/createName/CreateName.vue +158 -0
- package/components/common/backup/storage/actions/add/temp/local/createName/lib/config/defaultForm.ts +15 -0
- package/components/common/backup/storage/actions/add/temp/nfs/Nfs.vue +106 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/Accessibility.vue +104 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/lib/config/tabsPannel.ts +25 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/lib/models/interfaces.ts +9 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/lib/models/types.ts +5 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/TablesView.vue +141 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +62 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +53 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/incompatibleTable.ts +68 -0
- package/components/common/backup/storage/actions/add/temp/nfs/accessibility/tablesView/lib/config/tableKeys.ts +15 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/Configuration.vue +469 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/lib/config/defaultForm.ts +51 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/lib/models/interfaces.ts +14 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/DeletePopover.vue +99 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/ServersList.vue +125 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/config/serversListConfig.ts +40 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/config/tableKeys.ts +3 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/models/interfaces.ts +13 -0
- package/components/common/backup/storage/actions/add/temp/nfs/configuration/serversList/lib/models/types.ts +1 -0
- package/components/common/backup/storage/actions/add/temp/nfs/kerberosAuthentication/KerberosAuthentication.vue +55 -0
- package/components/common/backup/storage/actions/add/temp/nfs/kerberosAuthentication/lib/config/radioOptions.ts +27 -0
- package/components/common/backup/storage/actions/add/temp/nfs/version/Version.vue +42 -0
- package/components/common/backup/storage/actions/add/temp/nfs/version/lib/config/versionOptions.ts +22 -0
- package/components/common/backup/storage/actions/add/temp/readyComplete/ReadyComplete.vue +85 -0
- package/components/common/backup/storage/actions/add/temp/readyComplete/lib/config/propertiesDetails.ts +139 -0
- package/components/common/backup/storage/actions/add/temp/readyComplete/lib/models/interfaces.ts +4 -0
- package/components/common/backup/storage/actions/add/temp/samba/Samba.vue +95 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/Accessibility.vue +104 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/lib/config/tabsPannel.ts +25 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/lib/models/interfaces.ts +9 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/lib/models/types.ts +5 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/TablesView.vue +141 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/compatibleTable.ts +62 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/hostsTableItems.ts +53 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/incompatibleTable.ts +68 -0
- package/components/common/backup/storage/actions/add/temp/samba/accessibility/tablesView/lib/config/tableKeys.ts +15 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/Configuration.vue +470 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/lib/config/defaultForm.ts +51 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/lib/models/interfaces.ts +14 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/DeletePopover.vue +99 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/ServersList.vue +124 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/config/serversListConfig.ts +40 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/config/tableKeys.ts +3 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/models/interfaces.ts +13 -0
- package/components/common/backup/storage/actions/add/temp/samba/configuration/serversList/lib/models/types.ts +1 -0
- package/components/common/backup/storage/actions/add/temp/samba/kerberosAuthentication/KerberosAuthentication.vue +55 -0
- package/components/common/backup/storage/actions/add/temp/samba/kerberosAuthentication/lib/config/radioOptions.ts +27 -0
- package/components/common/backup/storage/actions/add/temp/sharedStorm/SharedStorm.vue +80 -0
- package/components/common/backup/storage/actions/add/temp/sharedStorm/createName/CreateName.vue +156 -0
- package/components/common/backup/storage/actions/add/temp/sharedStorm/createName/lib/config/defaultForm.ts +15 -0
- package/components/common/backup/storage/actions/add/temp/sharedStorm/storage/Storage.vue +71 -0
- package/components/common/backup/storage/actions/add/temp/sharedStorm/storage/lib/config/defaultForm.ts +15 -0
- package/components/common/backup/storage/actions/add/temp/types/Types.vue +78 -0
- package/components/common/backup/storage/actions/add/temp/types/lib/config/typeOptions.ts +52 -0
- package/components/common/backup/storage/actions/delete/Delete.vue +65 -0
- package/components/common/backup/storage/actions/delete/lib/models/interfaces.ts +5 -0
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/pages/shortcuts/block/BlockNew.vue +2 -7
- package/package.json +2 -2
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
3
|
+
import type { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
|
|
4
|
+
|
|
5
|
+
export const datastoreTypesFunc = (
|
|
6
|
+
localization: UI_I_Localization,
|
|
7
|
+
project: UI_T_Project
|
|
8
|
+
): UI_I_RadioOption[] => {
|
|
9
|
+
const types = [
|
|
10
|
+
{
|
|
11
|
+
label: localization.common.nfs,
|
|
12
|
+
value: 'nfs',
|
|
13
|
+
disabled: false,
|
|
14
|
+
description: localization.common.nfsDesc,
|
|
15
|
+
isTooltip: false,
|
|
16
|
+
tooltipContent: localization.common.nfsHelpDesc,
|
|
17
|
+
testId: 'datastore-type-nfs',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: localization.common.samba,
|
|
21
|
+
value: 'samba',
|
|
22
|
+
disabled: false,
|
|
23
|
+
description: localization.common.sambaDesc,
|
|
24
|
+
isTooltip: false,
|
|
25
|
+
tooltipContent: localization.common.sambaHelpDesc,
|
|
26
|
+
testId: 'datastore-type-samba',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: localization.common.sharedStorm,
|
|
30
|
+
value: 'shared-storm',
|
|
31
|
+
disabled: false,
|
|
32
|
+
description: localization.common.sharedStormDesc,
|
|
33
|
+
isTooltip: false,
|
|
34
|
+
tooltipContent: localization.common.stormSharedStorageHelpDesc,
|
|
35
|
+
testId: 'datastore-type-shared-storm',
|
|
36
|
+
},
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
if (project === 'procurator') {
|
|
40
|
+
types.unshift({
|
|
41
|
+
label: localization.common.localStorage,
|
|
42
|
+
value: 'local',
|
|
43
|
+
disabled: false,
|
|
44
|
+
description: localization.common.localDesc,
|
|
45
|
+
isTooltip: false,
|
|
46
|
+
tooltipContent: localization.common.localStorageHelpDesc,
|
|
47
|
+
testId: 'datastore-type-local',
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return types
|
|
52
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<common-modals-confirm-by-input
|
|
3
|
+
:title="localization.common.confirmDeletionDatastoreTitle"
|
|
4
|
+
:sub-title="props.datastore?.name || ''"
|
|
5
|
+
test-id="datastore-delete"
|
|
6
|
+
width="576px"
|
|
7
|
+
@hide="onHide"
|
|
8
|
+
@confirm="onDelete"
|
|
9
|
+
>
|
|
10
|
+
<template #content>
|
|
11
|
+
<p class="delete-group__text">
|
|
12
|
+
{{ localization.common.confirmDeletionDatastoreBodyFirst }}
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p class="delete-group__text">
|
|
16
|
+
{{ localization.common.confirmDeletionDatastoreBodySecond }}
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p class="delete-group__text">
|
|
20
|
+
{{ localization.common.confirmDeletionDatastoreBodyThird }}
|
|
21
|
+
</p>
|
|
22
|
+
</template>
|
|
23
|
+
</common-modals-confirm-by-input>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script setup lang="ts">
|
|
27
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
28
|
+
import type { UI_I_DeleteItem } from '~/components/common/backup/storage/actions/delete/lib/models/interfaces'
|
|
29
|
+
import { sendTask } from '~/lib/utils/sendTask'
|
|
30
|
+
import { getBackupTreeNodeIdByTypeFromRoute } from '~/components/common/backup/lib/utils/getBackupOrBackupStorageId'
|
|
31
|
+
|
|
32
|
+
const props = defineProps<{
|
|
33
|
+
datastore: UI_I_DeleteItem | null
|
|
34
|
+
}>()
|
|
35
|
+
const emits = defineEmits<{
|
|
36
|
+
(event: 'delete', value: string): void
|
|
37
|
+
(event: 'hide'): void
|
|
38
|
+
}>()
|
|
39
|
+
|
|
40
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
41
|
+
|
|
42
|
+
const targetId = computed<string>(() =>
|
|
43
|
+
getBackupTreeNodeIdByTypeFromRoute('last')
|
|
44
|
+
)
|
|
45
|
+
const onDelete = (): void => {
|
|
46
|
+
emits('delete', targetId.value)
|
|
47
|
+
}
|
|
48
|
+
const onHide = (): void => {
|
|
49
|
+
emits('hide')
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style lang="scss" scoped>
|
|
54
|
+
@import 'bfg-common/assets/scss/common/mixins.scss';
|
|
55
|
+
.delete-group__text {
|
|
56
|
+
@include text($fs: 0.6rem);
|
|
57
|
+
font-size: 0.6rem;
|
|
58
|
+
letter-spacing: normal;
|
|
59
|
+
line-height: 1rem;
|
|
60
|
+
|
|
61
|
+
&:first-child {
|
|
62
|
+
margin-bottom: 1.2em;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type UI_T_BlocksWidth = [number, number, number]
|
|
1
|
+
export type UI_T_BlocksWidth = [number, number, number]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface UI_I_FileInfo {
|
|
2
|
-
type: string
|
|
3
|
-
title: string
|
|
4
|
-
value: string | number
|
|
5
|
-
}
|
|
1
|
+
export interface UI_I_FileInfo {
|
|
2
|
+
type: string
|
|
3
|
+
title: string
|
|
4
|
+
value: string | number
|
|
5
|
+
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g data-title="adapter-items-group">
|
|
3
|
-
<template v-if="props.adaptersWithPositions.toggle">
|
|
4
|
-
<template
|
|
5
|
-
v-for="(adapter, key) in props.adaptersWithPositions.adapters"
|
|
6
|
-
:key="adapter.id"
|
|
7
|
-
>
|
|
8
|
-
<common-diagram-main-adapter-item
|
|
9
|
-
:adapter="adapter"
|
|
10
|
-
:selected-port="props.selectedPort"
|
|
11
|
-
:selected-adapter="props.selectedAdapter"
|
|
12
|
-
:networks-count="props.networksCount"
|
|
13
|
-
:is-dark-mode="props.isDarkMode"
|
|
14
|
-
:networks-with-positions="props.networksWithPositions"
|
|
15
|
-
@select-adapter="onSelectAdapter"
|
|
16
|
-
@show-modal="onShowModal"
|
|
17
|
-
/>
|
|
18
|
-
</template>
|
|
19
|
-
</template>
|
|
20
|
-
</g>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script setup lang="ts">
|
|
24
|
-
import {
|
|
25
|
-
UI_I_AdaptersWithPositions,
|
|
26
|
-
UI_I_ModalsInitialData,
|
|
27
|
-
UI_I_SelectedAdapter,
|
|
28
|
-
UI_I_SelectedPort,
|
|
29
|
-
UI_I_NetworksWithPositions,
|
|
30
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
31
|
-
|
|
32
|
-
const props = defineProps<{
|
|
33
|
-
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
34
|
-
networksWithPositions: UI_I_NetworksWithPositions[]
|
|
35
|
-
selectedPort: UI_I_SelectedPort
|
|
36
|
-
selectedAdapter: UI_I_SelectedAdapter
|
|
37
|
-
networksCount: number
|
|
38
|
-
isDarkMode: boolean
|
|
39
|
-
}>()
|
|
40
|
-
|
|
41
|
-
const emits = defineEmits<{
|
|
42
|
-
(event: 'select-adapter', adapterId: string): void
|
|
43
|
-
(
|
|
44
|
-
event: 'show-modal',
|
|
45
|
-
value: string,
|
|
46
|
-
properties?: UI_I_ModalsInitialData
|
|
47
|
-
): void
|
|
48
|
-
}>()
|
|
49
|
-
|
|
50
|
-
const onSelectAdapter = (adapterId: string): void => {
|
|
51
|
-
emits('select-adapter', adapterId)
|
|
52
|
-
}
|
|
53
|
-
const onShowModal = (
|
|
54
|
-
value: string,
|
|
55
|
-
properties?: UI_I_ModalsInitialData
|
|
56
|
-
): void => {
|
|
57
|
-
emits('show-modal', value, properties)
|
|
58
|
-
}
|
|
59
|
-
</script>
|
|
60
|
-
|
|
61
|
-
<style scoped lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<g data-title="adapter-items-group">
|
|
3
|
+
<template v-if="props.adaptersWithPositions.toggle">
|
|
4
|
+
<template
|
|
5
|
+
v-for="(adapter, key) in props.adaptersWithPositions.adapters"
|
|
6
|
+
:key="adapter.id"
|
|
7
|
+
>
|
|
8
|
+
<common-diagram-main-adapter-item
|
|
9
|
+
:adapter="adapter"
|
|
10
|
+
:selected-port="props.selectedPort"
|
|
11
|
+
:selected-adapter="props.selectedAdapter"
|
|
12
|
+
:networks-count="props.networksCount"
|
|
13
|
+
:is-dark-mode="props.isDarkMode"
|
|
14
|
+
:networks-with-positions="props.networksWithPositions"
|
|
15
|
+
@select-adapter="onSelectAdapter"
|
|
16
|
+
@show-modal="onShowModal"
|
|
17
|
+
/>
|
|
18
|
+
</template>
|
|
19
|
+
</template>
|
|
20
|
+
</g>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import {
|
|
25
|
+
UI_I_AdaptersWithPositions,
|
|
26
|
+
UI_I_ModalsInitialData,
|
|
27
|
+
UI_I_SelectedAdapter,
|
|
28
|
+
UI_I_SelectedPort,
|
|
29
|
+
UI_I_NetworksWithPositions,
|
|
30
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
31
|
+
|
|
32
|
+
const props = defineProps<{
|
|
33
|
+
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
34
|
+
networksWithPositions: UI_I_NetworksWithPositions[]
|
|
35
|
+
selectedPort: UI_I_SelectedPort
|
|
36
|
+
selectedAdapter: UI_I_SelectedAdapter
|
|
37
|
+
networksCount: number
|
|
38
|
+
isDarkMode: boolean
|
|
39
|
+
}>()
|
|
40
|
+
|
|
41
|
+
const emits = defineEmits<{
|
|
42
|
+
(event: 'select-adapter', adapterId: string): void
|
|
43
|
+
(
|
|
44
|
+
event: 'show-modal',
|
|
45
|
+
value: string,
|
|
46
|
+
properties?: UI_I_ModalsInitialData
|
|
47
|
+
): void
|
|
48
|
+
}>()
|
|
49
|
+
|
|
50
|
+
const onSelectAdapter = (adapterId: string): void => {
|
|
51
|
+
emits('select-adapter', adapterId)
|
|
52
|
+
}
|
|
53
|
+
const onShowModal = (
|
|
54
|
+
value: string,
|
|
55
|
+
properties?: UI_I_ModalsInitialData
|
|
56
|
+
): void => {
|
|
57
|
+
emits('show-modal', value, properties)
|
|
58
|
+
}
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_AdapterStatus,
|
|
3
|
-
UI_I_MainRectHeights,
|
|
4
|
-
UI_I_SelectedAdapter,
|
|
5
|
-
UI_I_SelectedPort,
|
|
6
|
-
UI_I_SwitchLine,
|
|
7
|
-
UI_I_NetworkPositionsConst,
|
|
8
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
9
|
-
|
|
10
|
-
export const managePhysicalAdapterStatusInitial: UI_I_AdapterStatus = {
|
|
11
|
-
active: [],
|
|
12
|
-
standby: [],
|
|
13
|
-
unused: [],
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const mainRectHeightsInitial: UI_I_MainRectHeights = {
|
|
17
|
-
networksHeight: 0,
|
|
18
|
-
adaptersHeight: 0,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const switchLineInitial: UI_I_SwitchLine = {
|
|
22
|
-
y1: 0,
|
|
23
|
-
y2: 0,
|
|
24
|
-
ay: 0,
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const selectedPortInitial: UI_I_SelectedPort = {
|
|
28
|
-
networkId: '-1',
|
|
29
|
-
portId: '-1',
|
|
30
|
-
activeAdapters: [],
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const selectedAdapterInitial: UI_I_SelectedAdapter = {
|
|
34
|
-
adapterId: '-1',
|
|
35
|
-
connectedPorts: [],
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export const selectedSwitchLineYInitial: UI_I_SwitchLine = {
|
|
39
|
-
y1: 0,
|
|
40
|
-
y2: 0,
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const NETWORK_POSITIONS: UI_I_NetworkPositionsConst = {
|
|
44
|
-
EMPTY_PORTS_PADDING_BOTTOM: 7.5,
|
|
45
|
-
FROM_VLAN_ID_TO_GROUP_NAME: 22,
|
|
46
|
-
VMS_AND_PORTS_HEIGHT: 22,
|
|
47
|
-
V_CENTER_HEIGHT: 32,
|
|
48
|
-
BETWEEN_VMS_AND_PORTS: 7.5,
|
|
49
|
-
BETWEEN_V_CENTERS: 12.5,
|
|
50
|
-
} as const
|
|
1
|
+
import type {
|
|
2
|
+
UI_I_AdapterStatus,
|
|
3
|
+
UI_I_MainRectHeights,
|
|
4
|
+
UI_I_SelectedAdapter,
|
|
5
|
+
UI_I_SelectedPort,
|
|
6
|
+
UI_I_SwitchLine,
|
|
7
|
+
UI_I_NetworkPositionsConst,
|
|
8
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
9
|
+
|
|
10
|
+
export const managePhysicalAdapterStatusInitial: UI_I_AdapterStatus = {
|
|
11
|
+
active: [],
|
|
12
|
+
standby: [],
|
|
13
|
+
unused: [],
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const mainRectHeightsInitial: UI_I_MainRectHeights = {
|
|
17
|
+
networksHeight: 0,
|
|
18
|
+
adaptersHeight: 0,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const switchLineInitial: UI_I_SwitchLine = {
|
|
22
|
+
y1: 0,
|
|
23
|
+
y2: 0,
|
|
24
|
+
ay: 0,
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const selectedPortInitial: UI_I_SelectedPort = {
|
|
28
|
+
networkId: '-1',
|
|
29
|
+
portId: '-1',
|
|
30
|
+
activeAdapters: [],
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const selectedAdapterInitial: UI_I_SelectedAdapter = {
|
|
34
|
+
adapterId: '-1',
|
|
35
|
+
connectedPorts: [],
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const selectedSwitchLineYInitial: UI_I_SwitchLine = {
|
|
39
|
+
y1: 0,
|
|
40
|
+
y2: 0,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const NETWORK_POSITIONS: UI_I_NetworkPositionsConst = {
|
|
44
|
+
EMPTY_PORTS_PADDING_BOTTOM: 7.5,
|
|
45
|
+
FROM_VLAN_ID_TO_GROUP_NAME: 22,
|
|
46
|
+
VMS_AND_PORTS_HEIGHT: 22,
|
|
47
|
+
V_CENTER_HEIGHT: 32,
|
|
48
|
+
BETWEEN_VMS_AND_PORTS: 7.5,
|
|
49
|
+
BETWEEN_V_CENTERS: 12.5,
|
|
50
|
+
} as const
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
UI_I_Adapter,
|
|
3
|
-
UI_I_AdapterWithError,
|
|
4
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
5
|
-
|
|
6
|
-
export type UI_T_AdapterStatusNames = 'active' | 'standby' | 'unused'
|
|
7
|
-
export type UI_T_PropertiesFieldName = 'vlanId' | 'networkLabel'
|
|
8
|
-
export type UI_T_TrafficShapingFieldName = 'average' | 'peak' | 'burstSize'
|
|
9
|
-
export type UI_T_PortPropertiesFieldName = 'mtu'
|
|
10
|
-
|
|
11
|
-
export type UI_T_LoadBalancingMode =
|
|
12
|
-
| 'inherit'
|
|
13
|
-
| 'active-backup'
|
|
14
|
-
| 'balance-slb'
|
|
15
|
-
| 'balance-tcp'
|
|
16
|
-
export type UI_T_IYN = 'inherit' | 'yes' | 'no'
|
|
17
|
-
export type UI_T_Carier = 'inherit' | 'carier' | 'beakon'
|
|
18
|
-
|
|
19
|
-
export type UI_T_Adapters = (UI_I_Adapter | UI_I_AdapterWithError) & {
|
|
20
|
-
adapterPosition: number
|
|
21
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
UI_I_Adapter,
|
|
3
|
+
UI_I_AdapterWithError,
|
|
4
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
5
|
+
|
|
6
|
+
export type UI_T_AdapterStatusNames = 'active' | 'standby' | 'unused'
|
|
7
|
+
export type UI_T_PropertiesFieldName = 'vlanId' | 'networkLabel'
|
|
8
|
+
export type UI_T_TrafficShapingFieldName = 'average' | 'peak' | 'burstSize'
|
|
9
|
+
export type UI_T_PortPropertiesFieldName = 'mtu'
|
|
10
|
+
|
|
11
|
+
export type UI_T_LoadBalancingMode =
|
|
12
|
+
| 'inherit'
|
|
13
|
+
| 'active-backup'
|
|
14
|
+
| 'balance-slb'
|
|
15
|
+
| 'balance-tcp'
|
|
16
|
+
export type UI_T_IYN = 'inherit' | 'yes' | 'no'
|
|
17
|
+
export type UI_T_Carier = 'inherit' | 'carier' | 'beakon'
|
|
18
|
+
|
|
19
|
+
export type UI_T_Adapters = (UI_I_Adapter | UI_I_AdapterWithError) & {
|
|
20
|
+
adapterPosition: number
|
|
21
|
+
}
|