bfg-common 1.5.53 → 1.5.54
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 +1 -4
- package/assets/localization/local_en.json +1 -4
- package/assets/localization/local_hy.json +1 -4
- package/assets/localization/local_kk.json +1 -4
- package/assets/localization/local_ru.json +4 -9
- package/assets/localization/local_zh.json +1 -4
- package/assets/scss/clarity/local_ar.json +1 -1
- package/assets/scss/common/global.scss +14 -12
- 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/editSettings/tabs/port/PortProperties.vue +205 -205
- 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/mainNavigationPanel/MainNavigationPanelNew.vue +0 -9
- package/components/common/pages/home/StatusContent.vue +1 -4
- package/components/common/pages/home/lib/config/configResourceMeterBlock.ts +34 -20
- package/components/common/pages/home/resource/ResourceOld.vue +116 -122
- package/components/common/tools/Actions.vue +22 -8
- package/components/common/vm/actions/common/select/compatibility/Compatibility.vue +11 -4
- package/lib/models/interfaces.ts +79 -80
- package/lib/models/types.ts +0 -1
- package/package.json +2 -2
|
@@ -2883,7 +2883,7 @@
|
|
|
2883
2883
|
},
|
|
2884
2884
|
"zabbix": {
|
|
2885
2885
|
"zabbixVersions": "Zabbix версіі",
|
|
2886
|
-
"zabbixVersionsDesc": "Калі ласка, абярыце версію сервера Zabbix, на якой вы хочаце ўвайсці: 5.
|
|
2886
|
+
"zabbixVersionsDesc": "Калі ласка, абярыце версію сервера Zabbix, на якой вы хочаце ўвайсці: 5.x або 6.x.",
|
|
2887
2887
|
"logoutConfirmation": "Пацвярджэнне выхаду",
|
|
2888
2888
|
"logoutDescription": "Вы ўпэўнены, што хочаце выйсці з Zabbix Server?",
|
|
2889
2889
|
"vmDisk": "Дыск ВМ",
|
|
@@ -3041,8 +3041,5 @@
|
|
|
3041
3041
|
},
|
|
3042
3042
|
"adapter": {
|
|
3043
3043
|
"disable": "Адключаць"
|
|
3044
|
-
},
|
|
3045
|
-
"bottomPanel": {
|
|
3046
|
-
"failed": "Няўдалы"
|
|
3047
3044
|
}
|
|
3048
3045
|
}
|
|
@@ -2887,7 +2887,7 @@
|
|
|
2887
2887
|
},
|
|
2888
2888
|
"zabbix": {
|
|
2889
2889
|
"zabbixVersions": "Zabbix Versions",
|
|
2890
|
-
"zabbixVersionsDesc": "Please choose the Zabbix server version you would like to log in to: 5.
|
|
2890
|
+
"zabbixVersionsDesc": "Please choose the Zabbix server version you would like to log in to: 5.x or 6.x.",
|
|
2891
2891
|
"logoutConfirmation": "Logout Confirmation",
|
|
2892
2892
|
"logoutDescription": "Are you sure you want to log out from Zabbix Server?",
|
|
2893
2893
|
"vmDisk": "VM Disk",
|
|
@@ -3045,8 +3045,5 @@
|
|
|
3045
3045
|
},
|
|
3046
3046
|
"adapter": {
|
|
3047
3047
|
"disable": "Disable"
|
|
3048
|
-
},
|
|
3049
|
-
"bottomPanel": {
|
|
3050
|
-
"failed": "Failed"
|
|
3051
3048
|
}
|
|
3052
3049
|
}
|
|
@@ -2887,7 +2887,7 @@
|
|
|
2887
2887
|
},
|
|
2888
2888
|
"zabbix": {
|
|
2889
2889
|
"zabbixVersions": "Zabbix տարբերակները",
|
|
2890
|
-
"zabbixVersionsDesc": "Խնդրում ենք ընտրել Zabbix սերվերի տարբերակը, որում ցանկանում եք մուտք գործել՝ 5.
|
|
2890
|
+
"zabbixVersionsDesc": "Խնդրում ենք ընտրել Zabbix սերվերի տարբերակը, որում ցանկանում եք մուտք գործել՝ 5.x կամ 6.x:",
|
|
2891
2891
|
"logoutConfirmation": "Դուրս գալու հաստատում",
|
|
2892
2892
|
"logoutDescription": "Վստա՞հ եք, որ ցանկանում եք դուրս գալ Zabbix սերվերից:",
|
|
2893
2893
|
"vmDisk": "VM սկավառակ",
|
|
@@ -3045,8 +3045,5 @@
|
|
|
3045
3045
|
},
|
|
3046
3046
|
"adapter": {
|
|
3047
3047
|
"disable": "Անջատել"
|
|
3048
|
-
},
|
|
3049
|
-
"bottomPanel": {
|
|
3050
|
-
"failed": "Անհաջող"
|
|
3051
3048
|
}
|
|
3052
3049
|
}
|
|
@@ -2886,7 +2886,7 @@
|
|
|
2886
2886
|
},
|
|
2887
2887
|
"zabbix": {
|
|
2888
2888
|
"zabbixVersions": "Zabbix нұсқалары",
|
|
2889
|
-
"zabbixVersionsDesc": "Жүйеге кіргіңіз келетін Zabbix сервер нұсқасын таңдаңыз: 5.
|
|
2889
|
+
"zabbixVersionsDesc": "Жүйеге кіргіңіз келетін Zabbix сервер нұсқасын таңдаңыз: 5.x немесе 6.x.",
|
|
2890
2890
|
"logoutConfirmation": "Шығуды растау",
|
|
2891
2891
|
"logoutDescription": "Zabbix серверінен шынымен шыққыңыз келе ме?",
|
|
2892
2892
|
"vmDisk": "VM дискі",
|
|
@@ -3044,8 +3044,5 @@
|
|
|
3044
3044
|
},
|
|
3045
3045
|
"adapter": {
|
|
3046
3046
|
"disable": "Өшіру"
|
|
3047
|
-
},
|
|
3048
|
-
"bottomPanel": {
|
|
3049
|
-
"failed": "Сәтсіз"
|
|
3050
3047
|
}
|
|
3051
3048
|
}
|
|
@@ -2410,9 +2410,7 @@
|
|
|
2410
2410
|
"leaveAd": "Оставить объявление",
|
|
2411
2411
|
"joinActiveDirectoryDomain": "Присоединиться к домену Active Directory",
|
|
2412
2412
|
"accessControl": "Контроль доступа",
|
|
2413
|
-
"activeDirectoryDomain": "Домен Active Directory"
|
|
2414
|
-
"selected": "Выбрано",
|
|
2415
|
-
"unselected": "Не выбрано"
|
|
2413
|
+
"activeDirectoryDomain": "Домен Active Directory"
|
|
2416
2414
|
},
|
|
2417
2415
|
"inventoryConfigure": {
|
|
2418
2416
|
"acceptanceLevel": "Уровень приемлемости",
|
|
@@ -2533,7 +2531,7 @@
|
|
|
2533
2531
|
},
|
|
2534
2532
|
"inventoryMonitor": {
|
|
2535
2533
|
"temperature": "Температура",
|
|
2536
|
-
"advancedPerformance": "
|
|
2534
|
+
"advancedPerformance": "Повышенная производительность",
|
|
2537
2535
|
"emptyAdvancedGraphText": "Данные о производительности в настоящее время недоступны для этой записи",
|
|
2538
2536
|
"noPerformanceCurrentlySelectedMetrics": "Данные о производительности по выбранным в данный момент показателям недоступны",
|
|
2539
2537
|
"retrievingData": "Извлечение данных",
|
|
@@ -2889,8 +2887,8 @@
|
|
|
2889
2887
|
"itMustNotBeLogs": "Не должно быть в логах"
|
|
2890
2888
|
},
|
|
2891
2889
|
"zabbix": {
|
|
2892
|
-
"zabbixVersions": "
|
|
2893
|
-
"zabbixVersionsDesc": "Пожалуйста, выберите версию сервера Zabbix, на которую вы хотите войти: 5.
|
|
2890
|
+
"zabbixVersions": "Версия Zabbix",
|
|
2891
|
+
"zabbixVersionsDesc": "Пожалуйста, выберите версию сервера Zabbix, на которую вы хотите войти: 5.x или 6.x.",
|
|
2894
2892
|
"logoutConfirmation": "Подтверждение выхода из системы",
|
|
2895
2893
|
"logoutDescription": "Вы уверены, что хотите выйти из Zabbix Server?",
|
|
2896
2894
|
"vmDisk": "Диск ВМ",
|
|
@@ -3048,8 +3046,5 @@
|
|
|
3048
3046
|
},
|
|
3049
3047
|
"adapter": {
|
|
3050
3048
|
"disable": "Отключить"
|
|
3051
|
-
},
|
|
3052
|
-
"bottomPanel": {
|
|
3053
|
-
"failed": "Неудавшиеся"
|
|
3054
3049
|
}
|
|
3055
3050
|
}
|
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
},
|
|
2885
2885
|
"zabbix": {
|
|
2886
2886
|
"zabbixVersions": "Zabbix 版本",
|
|
2887
|
-
"zabbixVersionsDesc": "请选择您要登录的Zabbix服务器版本:5.
|
|
2887
|
+
"zabbixVersionsDesc": "请选择您要登录的Zabbix服务器版本:5.x或6.x。",
|
|
2888
2888
|
"logoutConfirmation": "退出确认",
|
|
2889
2889
|
"logoutDescription": "您确定要从 Zabbix Server 注销吗?",
|
|
2890
2890
|
"vmDisk": "虚拟机磁盘",
|
|
@@ -3042,8 +3042,5 @@
|
|
|
3042
3042
|
},
|
|
3043
3043
|
"adapter": {
|
|
3044
3044
|
"disable": "禁用"
|
|
3045
|
-
},
|
|
3046
|
-
"bottomPanel": {
|
|
3047
|
-
"failed": "失败的"
|
|
3048
3045
|
}
|
|
3049
3046
|
}
|
|
@@ -2824,7 +2824,7 @@
|
|
|
2824
2824
|
},
|
|
2825
2825
|
"zabbix": {
|
|
2826
2826
|
"zabbixVersions": "إصدارات Zabbix",
|
|
2827
|
-
"zabbixVersionsDesc": "يرجى اختيار إصدار خادم Zabbix الذي تريد تسجيل الدخول إليه: 5.
|
|
2827
|
+
"zabbixVersionsDesc": "يرجى اختيار إصدار خادم Zabbix الذي تريد تسجيل الدخول إليه: 5.x أو 6.x.",
|
|
2828
2828
|
"logoutConfirmation": "تأكيد تسجيل الخروج",
|
|
2829
2829
|
"logoutDescription": "هل تريد بالتأكيد تسجيل الخروج من خادم Zabbix؟",
|
|
2830
2830
|
"vmDisk": "قرص الآلة الافتراضية",
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
@import 'mixins';
|
|
2
2
|
/* _____SCROLLBAR_____ */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
::-webkit-scrollbar-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
:root:not(.is-new-view) {
|
|
4
|
+
::-webkit-scrollbar {
|
|
5
|
+
width: auto;
|
|
6
|
+
height: auto;
|
|
7
|
+
}
|
|
8
|
+
::-webkit-scrollbar-track,
|
|
9
|
+
::-webkit-scrollbar-corner {
|
|
10
|
+
background: var(--scrollbar-track);
|
|
11
|
+
}
|
|
12
|
+
::-webkit-scrollbar-thumb {
|
|
13
|
+
background: var(--scrollbar-thumb);
|
|
14
|
+
border-radius: 20px;
|
|
15
|
+
border: solid 3px var(--scrollbar-track);
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
/* _____BUTTON DARK AND LIGHT MODE STYLES_____ */
|
|
@@ -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
|
+
}
|