bfg-common 1.4.579 → 1.4.580
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/img/icons/icons-sprite-dark-1.svg +407 -437
- package/assets/img/icons/icons-sprite-dark-2.svg +343 -347
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +255 -259
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
- package/assets/img/icons/icons-sprite-light-1.svg +407 -437
- package/assets/img/icons/icons-sprite-light-2.svg +343 -347
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +255 -259
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +94 -94
- package/assets/scss/common/icons/icons-6.scss +156 -156
- package/assets/scss/common/theme.scss +321 -321
- 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/Diagram.vue +377 -364
- package/components/common/diagramMain/DiagramMain.vue +894 -872
- package/components/common/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItem.vue +2 -0
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/adapter/Contents.vue +207 -189
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/config/positions.ts +194 -194
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- 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/ManagePhysicalAdaptersModal.vue +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- 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/TrafficShaping.vue +398 -398
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- 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/MigrateVmkernelAdapter.vue +537 -537
- 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/modals/viewSettings/info/InfoNew.vue +156 -155
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +68 -63
- package/components/common/diagramMain/network/Contents.vue +491 -488
- package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +1 -1
- package/components/common/diagramMain/port/Port.vue +2 -0
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/layout/theHeader/TheHeaderNew.vue +4 -10
- package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +4 -4
- package/components/common/layout/theHeader/userMenu/userMenuNew/lib/config/dropMenu.ts +1 -1
- package/components/common/pages/home/headline/HeadlineNew.vue +48 -71
- package/components/common/pages/home/resource/ResourceNew.vue +58 -63
- package/components/common/pages/home/widgets/WidgetsNew.vue +74 -79
- package/components/common/split/horizontal/HorizontalNew.vue +331 -354
- package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
- package/package.json +2 -2
|
@@ -1,189 +1,207 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<g data-title="adapter-block-contents">
|
|
3
|
-
<foreignObject
|
|
4
|
-
v-if="isShowArrow"
|
|
5
|
-
:data-id="`${props.testId}-adapters-toggle`"
|
|
6
|
-
data-title="adapter-toggle"
|
|
7
|
-
:width="positions.arrowIconSize"
|
|
8
|
-
:height="positions.arrowIconSize"
|
|
9
|
-
:x="positions.arrowIconX"
|
|
10
|
-
:y="arrawIconPosition"
|
|
11
|
-
:cursor="hasAdapters && 'pointer'"
|
|
12
|
-
@click="onToggleAdapters"
|
|
13
|
-
>
|
|
14
|
-
<div class="diagram-block__toggle">
|
|
15
|
-
<ui-icon
|
|
16
|
-
v-if="isNewView"
|
|
17
|
-
name="arrow"
|
|
18
|
-
width="20"
|
|
19
|
-
height="20"
|
|
20
|
-
:class="[
|
|
21
|
-
'virtual-switch__arrow-icon',
|
|
22
|
-
{
|
|
23
|
-
'is-new': isNewView,
|
|
24
|
-
open: hasAdapters ? props.adaptersWithPositions.toggle : false,
|
|
25
|
-
'without-adapters': !hasAdapters,
|
|
26
|
-
},
|
|
27
|
-
]"
|
|
28
|
-
/>
|
|
29
|
-
<atoms-the-icon
|
|
30
|
-
v-else
|
|
31
|
-
name="angle"
|
|
32
|
-
:class="[
|
|
33
|
-
'virtual-switch__arrow-icon',
|
|
34
|
-
{
|
|
35
|
-
open: props.adaptersWithPositions.toggle,
|
|
36
|
-
},
|
|
37
|
-
]"
|
|
38
|
-
/>
|
|
39
|
-
{{ hasAdapters }}
|
|
40
|
-
</div>
|
|
41
|
-
</foreignObject>
|
|
42
|
-
<text
|
|
43
|
-
data-title="adapter-main-text"
|
|
44
|
-
dy="14px"
|
|
45
|
-
font-size="14"
|
|
46
|
-
font-weight="500"
|
|
47
|
-
:x="positions.adapterTextX"
|
|
48
|
-
:y="props.adaptersWithPositions.titlePosition"
|
|
49
|
-
class="diagram__heading"
|
|
50
|
-
>
|
|
51
|
-
{{ headerText }}
|
|
52
|
-
</text>
|
|
53
|
-
|
|
54
|
-
<foreignObject
|
|
55
|
-
v-if="!isNewView && !hasAdapters"
|
|
56
|
-
data-title="no-adapter-text"
|
|
57
|
-
dy="11px"
|
|
58
|
-
height="20"
|
|
59
|
-
width="230"
|
|
60
|
-
x="462"
|
|
61
|
-
y="53"
|
|
62
|
-
>
|
|
63
|
-
<span
|
|
64
|
-
data-title="no-physical-adapters"
|
|
65
|
-
class="no-physical-adapters text-ellipsis"
|
|
66
|
-
>
|
|
67
|
-
{{ localization.common.noPhysicalNetworkAdapters }}
|
|
68
|
-
</span>
|
|
69
|
-
</foreignObject>
|
|
70
|
-
</g>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<script setup lang="ts">
|
|
74
|
-
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
75
|
-
import type {
|
|
76
|
-
UI_I_Localization,
|
|
77
|
-
UI_I_ArbitraryObject,
|
|
78
|
-
} from '~/lib/models/interfaces'
|
|
79
|
-
import { adapterContentPositionsFunc } from '~/components/common/diagramMain/lib/config'
|
|
80
|
-
|
|
81
|
-
const props = defineProps<{
|
|
82
|
-
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
83
|
-
testId?: string
|
|
84
|
-
}>()
|
|
85
|
-
const emits = defineEmits<{
|
|
86
|
-
(event: 'toggle-adapters', networkId: string, portId: string): void
|
|
87
|
-
}>()
|
|
88
|
-
|
|
89
|
-
const { $store }: any = useNuxtApp()
|
|
90
|
-
|
|
91
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
92
|
-
|
|
93
|
-
const positions = computed<UI_I_ArbitraryObject<number>>(() =>
|
|
94
|
-
adapterContentPositionsFunc(isNewView.value)
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
98
|
-
|
|
99
|
-
const hasAdapters = computed<boolean>(
|
|
100
|
-
() => props.adaptersWithPositions.adaptersCount > 0
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
const isShowArrow = computed<boolean>(() =>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
.text-ellipsis {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
&.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<g data-title="adapter-block-contents">
|
|
3
|
+
<foreignObject
|
|
4
|
+
v-if="isShowArrow"
|
|
5
|
+
:data-id="`${props.testId}-adapters-toggle`"
|
|
6
|
+
data-title="adapter-toggle"
|
|
7
|
+
:width="positions.arrowIconSize"
|
|
8
|
+
:height="positions.arrowIconSize"
|
|
9
|
+
:x="positions.arrowIconX"
|
|
10
|
+
:y="arrawIconPosition"
|
|
11
|
+
:cursor="hasAdapters && 'pointer'"
|
|
12
|
+
@click="onToggleAdapters"
|
|
13
|
+
>
|
|
14
|
+
<div class="diagram-block__toggle">
|
|
15
|
+
<ui-icon
|
|
16
|
+
v-if="isNewView"
|
|
17
|
+
name="arrow"
|
|
18
|
+
width="20"
|
|
19
|
+
height="20"
|
|
20
|
+
:class="[
|
|
21
|
+
'virtual-switch__arrow-icon',
|
|
22
|
+
{
|
|
23
|
+
'is-new': isNewView,
|
|
24
|
+
open: hasAdapters ? props.adaptersWithPositions.toggle : false,
|
|
25
|
+
'without-adapters': !hasAdapters,
|
|
26
|
+
},
|
|
27
|
+
]"
|
|
28
|
+
/>
|
|
29
|
+
<atoms-the-icon
|
|
30
|
+
v-else
|
|
31
|
+
name="angle"
|
|
32
|
+
:class="[
|
|
33
|
+
'virtual-switch__arrow-icon',
|
|
34
|
+
{
|
|
35
|
+
open: props.adaptersWithPositions.toggle,
|
|
36
|
+
},
|
|
37
|
+
]"
|
|
38
|
+
/>
|
|
39
|
+
{{ hasAdapters }}
|
|
40
|
+
</div>
|
|
41
|
+
</foreignObject>
|
|
42
|
+
<text
|
|
43
|
+
data-title="adapter-main-text"
|
|
44
|
+
dy="14px"
|
|
45
|
+
font-size="14"
|
|
46
|
+
font-weight="500"
|
|
47
|
+
:x="positions.adapterTextX"
|
|
48
|
+
:y="props.adaptersWithPositions.titlePosition"
|
|
49
|
+
:class="['diagram__heading', { 'is-new': isNewView }]"
|
|
50
|
+
>
|
|
51
|
+
{{ headerText }}
|
|
52
|
+
</text>
|
|
53
|
+
|
|
54
|
+
<foreignObject
|
|
55
|
+
v-if="!isNewView && !hasAdapters"
|
|
56
|
+
data-title="no-adapter-text"
|
|
57
|
+
dy="11px"
|
|
58
|
+
height="20"
|
|
59
|
+
width="230"
|
|
60
|
+
x="462"
|
|
61
|
+
y="53"
|
|
62
|
+
>
|
|
63
|
+
<span
|
|
64
|
+
data-title="no-physical-adapters"
|
|
65
|
+
class="no-physical-adapters text-ellipsis"
|
|
66
|
+
>
|
|
67
|
+
{{ localization.common.noPhysicalNetworkAdapters }}
|
|
68
|
+
</span>
|
|
69
|
+
</foreignObject>
|
|
70
|
+
</g>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<script setup lang="ts">
|
|
74
|
+
import type { UI_I_AdaptersWithPositions } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
75
|
+
import type {
|
|
76
|
+
UI_I_Localization,
|
|
77
|
+
UI_I_ArbitraryObject,
|
|
78
|
+
} from '~/lib/models/interfaces'
|
|
79
|
+
import { adapterContentPositionsFunc } from '~/components/common/diagramMain/lib/config'
|
|
80
|
+
|
|
81
|
+
const props = defineProps<{
|
|
82
|
+
adaptersWithPositions: UI_I_AdaptersWithPositions
|
|
83
|
+
testId?: string
|
|
84
|
+
}>()
|
|
85
|
+
const emits = defineEmits<{
|
|
86
|
+
(event: 'toggle-adapters', networkId: string, portId: string): void
|
|
87
|
+
}>()
|
|
88
|
+
|
|
89
|
+
const { $store }: any = useNuxtApp()
|
|
90
|
+
|
|
91
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
92
|
+
|
|
93
|
+
const positions = computed<UI_I_ArbitraryObject<number>>(() =>
|
|
94
|
+
adapterContentPositionsFunc(isNewView.value)
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
98
|
+
|
|
99
|
+
const hasAdapters = computed<boolean>(
|
|
100
|
+
() => props.adaptersWithPositions.adaptersCount > 0
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
const isShowArrow = computed<boolean>(() =>
|
|
104
|
+
isNewView.value ? true : hasAdapters.value
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
const headerText = computed<string>(() =>
|
|
108
|
+
isNewView.value
|
|
109
|
+
? `${localization.value.common.physicalAdapters} (${
|
|
110
|
+
props.adaptersWithPositions.adaptersCount || 0
|
|
111
|
+
})`
|
|
112
|
+
: localization.value.common.physicalAdapters
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
const arrawIconPosition = computed<number>(
|
|
116
|
+
() => props.adaptersWithPositions.titlePosition - 0.5
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
const onToggleAdapters = (networkId: string, portId: string): void => {
|
|
120
|
+
emits('toggle-adapters', networkId, portId)
|
|
121
|
+
}
|
|
122
|
+
</script>
|
|
123
|
+
|
|
124
|
+
<style scoped lang="scss">
|
|
125
|
+
@import '~/assets/scss/common/mixins.scss';
|
|
126
|
+
|
|
127
|
+
:root.dark-theme {
|
|
128
|
+
.diagram__heading {
|
|
129
|
+
fill: #c1cdd4;
|
|
130
|
+
&.is-new {
|
|
131
|
+
fill: var(--diagram-content-text);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.no-physical-adapters {
|
|
135
|
+
fill: #c1cdd4;
|
|
136
|
+
}
|
|
137
|
+
.text-ellipsis {
|
|
138
|
+
color: #c1cdd4;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.text-ellipsis {
|
|
143
|
+
display: block;
|
|
144
|
+
max-width: 230px;
|
|
145
|
+
text-overflow: ellipsis;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
white-space: nowrap;
|
|
148
|
+
font-weight: 400;
|
|
149
|
+
font-size: 12px;
|
|
150
|
+
color: #565656;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.virtual-switch__arrow-icon {
|
|
154
|
+
width: 16px;
|
|
155
|
+
height: 16px;
|
|
156
|
+
margin-right: 4px;
|
|
157
|
+
transform: rotate(90deg);
|
|
158
|
+
align-self: center;
|
|
159
|
+
fill: var(--triger-icon-color);
|
|
160
|
+
|
|
161
|
+
&.is-new {
|
|
162
|
+
width: 20px;
|
|
163
|
+
height: 20px;
|
|
164
|
+
fill: none;
|
|
165
|
+
color: var(--diagram-content-second-text);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.open:not(.without-adapters) {
|
|
169
|
+
transform: rotate(180deg);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.without-adapters {
|
|
173
|
+
color: var(--diagram-content-second-disabled-text);
|
|
174
|
+
fill: none;
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
.diagram__heading {
|
|
179
|
+
@include text($fs: 14px, $fw: 500);
|
|
180
|
+
fill: #565656;
|
|
181
|
+
letter-spacing: normal;
|
|
182
|
+
line-height: 1.2rem;
|
|
183
|
+
|
|
184
|
+
&.is-new {
|
|
185
|
+
line-height: 16.94px;
|
|
186
|
+
fill: var(--diagram-content-text);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
.no-physical-adapters {
|
|
190
|
+
fill: #565656;
|
|
191
|
+
font-size: 13px;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
line-height: normal;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:root.is-new-view {
|
|
197
|
+
.text-ellipsis {
|
|
198
|
+
color: var(--diagram-content-text);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:root.is-new-view.dark-theme {
|
|
203
|
+
.text-ellipsis {
|
|
204
|
+
color: var(--diagram-content-text);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
</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
|