bfg-common 1.6.63 → 1.6.64
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 +5 -1
- package/assets/localization/local_en.json +15 -11
- package/assets/localization/local_hy.json +5 -1
- package/assets/localization/local_kk.json +5 -1
- package/assets/localization/local_ru.json +5 -1
- package/assets/localization/local_zh.json +5 -1
- package/components/atoms/dropdown/dropdown/Dropdown.vue +8 -10
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +0 -1
- package/components/common/adapterManager/AdapterManager.vue +473 -473
- package/components/common/adapterManager/AdapterManagerNew.vue +86 -0
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -498
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -70
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +110 -110
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalOld.vue +531 -531
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -32
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +37 -37
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalOld.vue +73 -73
- package/components/common/adapterManager/lib/config/index.ts +19 -19
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +34 -34
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +41 -41
- package/components/common/adapterManager/ui/actions/VerticalSeparator.vue +10 -10
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
- package/components/common/adapterManager/ui/actions/bar/BarOld.vue +95 -95
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +76 -76
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +77 -77
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -24
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +18 -18
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterOld.vue +38 -38
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -31
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +51 -51
- package/components/common/adapterManager/ui/secondTitle/SecondTitleOld.vue +35 -35
- package/components/common/adapterManager/ui/table/Table.vue +88 -88
- package/components/common/adapterManager/ui/table/TableNew.vue +137 -137
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -141
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -44
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +187 -187
- package/components/common/adapterManager/ui/table/adapters/AdaptersOld.vue +87 -87
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -57
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +81 -81
- package/components/common/adapterManager/ui/table/header/HeaderOld.vue +79 -79
- package/components/common/adapterManager/ui/table/lib/models/types.ts +1 -1
- package/components/common/diagramMain/Diagram.vue +459 -459
- package/components/common/diagramMain/DiagramMain.vue +929 -929
- package/components/common/diagramMain/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/AdapterItem.vue +438 -438
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/adapter/Contents.vue +212 -212
- package/components/common/diagramMain/adapter/Lines.vue +81 -81
- package/components/common/diagramMain/adapter/block/Block.vue +27 -27
- package/components/common/diagramMain/adapter/block/BlockNew.vue +58 -58
- package/components/common/diagramMain/adapter/block/BlockOld.vue +50 -50
- package/components/common/diagramMain/adapter/secondBlock/SecondBlock.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockNew.vue +60 -60
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockOld.vue +51 -51
- package/components/common/diagramMain/header/Header.vue +49 -49
- package/components/common/diagramMain/header/HeaderNew.vue +155 -155
- package/components/common/diagramMain/header/HeaderOld.vue +234 -234
- package/components/common/diagramMain/highlights/Highlights.vue +151 -151
- package/components/common/diagramMain/highlights/HighlightsNew.vue +124 -124
- package/components/common/diagramMain/highlights/HighlightsOld.vue +107 -107
- package/components/common/diagramMain/lib/config/index.ts +81 -81
- 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/interfaces.ts +760 -760
- 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 +331 -331
- package/components/common/diagramMain/modals/Modals.vue +483 -483
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
- package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
- package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -113
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +87 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +147 -147
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +66 -66
- package/components/common/diagramMain/modals/lib/config/index.ts +56 -56
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +405 -405
- package/components/common/diagramMain/modals/lib/config/portModal.ts +253 -253
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +245 -245
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +88 -88
- package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +541 -541
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +170 -170
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/VmkernelAdapterReadyComplete.vue +49 -49
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
- 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/remove/RemoveModal.vue +82 -82
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -106
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +241 -241
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +57 -57
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +174 -174
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +141 -141
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +45 -45
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +323 -323
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +203 -203
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModal.vue +60 -60
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +50 -50
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalOld.vue +70 -70
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/lib/models/interfaces.ts +48 -48
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/diagramMain/network/Lines.vue +107 -107
- package/components/common/diagramMain/network/Network.vue +141 -141
- package/components/common/diagramMain/network/block/Block.vue +37 -37
- package/components/common/diagramMain/network/block/BlockNew.vue +68 -68
- package/components/common/diagramMain/network/block/BlockOld.vue +64 -64
- package/components/common/diagramMain/network/noNetwork/NoNetwork.vue +12 -12
- package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +89 -89
- package/components/common/diagramMain/network/noNetwork/NoNetworkOld.vue +61 -61
- package/components/common/diagramMain/network/secondBlock/SecondBlock.vue +41 -41
- package/components/common/diagramMain/network/secondBlock/SecondBlockNew.vue +64 -64
- package/components/common/diagramMain/network/secondBlock/SecondBlockOld.vue +60 -60
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/diagramMain/skeleton/Header.vue +31 -31
- package/components/common/diagramMain/skeleton/Switch.vue +75 -75
- package/components/common/diagramMain/switch/Switch.vue +180 -180
- package/components/common/diagramMain/switch/SwitchSelected.vue +111 -111
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/New.vue +5 -0
- package/components/common/monitor/utilization/Old.vue +24 -65
- package/components/common/monitor/utilization/Utilization.vue +14 -22
- package/components/common/monitor/utilization/infoBlock/InfoBlock.vue +2 -125
- package/components/common/monitor/utilization/infoBlock/New.vue +3 -183
- package/components/common/monitor/utilization/infoBlock/Old.vue +66 -71
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- package/components/common/monitor/utilization/lib/models/interfaces.ts +12 -14
- package/components/common/monitor/utilization/lib/utils/index.ts +6 -64
- package/package.json +2 -2
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
- package/components/common/monitor/utilization/infoBlock/progressBar/New.vue +0 -64
- package/components/common/monitor/utilization/infoBlock/progressBar/Old.vue +0 -65
- package/components/common/monitor/utilization/infoBlock/progressBar/ProgressBar.vue +0 -84
- package/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces.ts +0 -10
- package/components/common/monitor/utilization/lib/models/types.ts +0 -1
- package/components/common/monitor/utilization/new/New.vue +0 -167
- package/components/common/monitor/utilization/new/Portlet.vue +0 -42
- package/components/common/monitor/utilization/new/Skeleton.vue +0 -120
- package/components/common/monitor/utilization/new/lib/utils/newPortlet.ts +0 -7
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="wizard-content__container">
|
|
3
|
-
<div class="wizard-content">
|
|
4
|
-
<atoms-alert
|
|
5
|
-
v-if="isShowErrorMessage"
|
|
6
|
-
:items="validationMessagesArray"
|
|
7
|
-
status="alert-danger"
|
|
8
|
-
test-id="switch-properties-alert"
|
|
9
|
-
@remove="onHideErrorMessageAlert"
|
|
10
|
-
/>
|
|
11
|
-
<form id="switch-properties-form">
|
|
12
|
-
<div class="horizontal-flex-container">
|
|
13
|
-
<label class="property-label-group" for="network-label">
|
|
14
|
-
{{ localization.common.numberOfPorts }}
|
|
15
|
-
</label>
|
|
16
|
-
<div class="margin-left-property-value-group">
|
|
17
|
-
<div class="property-value-group">
|
|
18
|
-
<fieldset>
|
|
19
|
-
{{ props.initialData.num_ports }}
|
|
20
|
-
</fieldset>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="horizontal-flex-container">
|
|
25
|
-
<label class="property-label-group">
|
|
26
|
-
{{ localization.common.mtuBytes }}
|
|
27
|
-
</label>
|
|
28
|
-
<div class="margin-left-property-value-group">
|
|
29
|
-
<div class="property-value-group tooltip-field-container">
|
|
30
|
-
<fieldset>
|
|
31
|
-
<atoms-tooltip-error :has-error="!!props.errorMessages.mtu">
|
|
32
|
-
<template #elem>
|
|
33
|
-
<input
|
|
34
|
-
id="mtu"
|
|
35
|
-
v-model="fieldsValues.mtu"
|
|
36
|
-
:class="[
|
|
37
|
-
'tooltip-field',
|
|
38
|
-
{
|
|
39
|
-
'danger-not-valid': props.errorMessages.mtu,
|
|
40
|
-
},
|
|
41
|
-
]"
|
|
42
|
-
data-id="mtu-input"
|
|
43
|
-
type="number"
|
|
44
|
-
name="mtu"
|
|
45
|
-
@click.stop
|
|
46
|
-
/>
|
|
47
|
-
</template>
|
|
48
|
-
<template #content>
|
|
49
|
-
{{ props.errorMessages.mtu }}
|
|
50
|
-
</template>
|
|
51
|
-
</atoms-tooltip-error>
|
|
52
|
-
</fieldset>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</form>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</template>
|
|
60
|
-
|
|
61
|
-
<script setup lang="ts">
|
|
62
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
63
|
-
import type {
|
|
64
|
-
UI_I_SwitchPropertiesFields,
|
|
65
|
-
UI_I_EditSettingsErrorMessage,
|
|
66
|
-
UI_I_ModalsInitialData,
|
|
67
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
68
|
-
import type { UI_T_PortPropertiesFieldName } from '~/components/common/diagramMain/lib/models/types'
|
|
69
|
-
import { validationMessagesArrayFunc } from '~/components/common/diagramMain/modals/lib/utils'
|
|
70
|
-
|
|
71
|
-
// Props from up
|
|
72
|
-
const props = withDefaults(
|
|
73
|
-
defineProps<{
|
|
74
|
-
isShowErrorMessageAlert: boolean
|
|
75
|
-
errorMessages: UI_I_EditSettingsErrorMessage
|
|
76
|
-
initialData?: UI_I_ModalsInitialData
|
|
77
|
-
hasErrorMessages?: boolean
|
|
78
|
-
}>(),
|
|
79
|
-
{
|
|
80
|
-
initialData: () => ({}),
|
|
81
|
-
hasErrorMessages: undefined,
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
|
|
85
|
-
// Validation
|
|
86
|
-
const emits = defineEmits<{
|
|
87
|
-
(
|
|
88
|
-
event: 'change-error-messages',
|
|
89
|
-
errorMessage: string,
|
|
90
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
91
|
-
): void
|
|
92
|
-
(event: 'hide-error-message-alert'): void
|
|
93
|
-
(
|
|
94
|
-
event: 'change-edit-properties-data',
|
|
95
|
-
switchPropertiesData: UI_I_SwitchPropertiesFields
|
|
96
|
-
): void
|
|
97
|
-
}>()
|
|
98
|
-
|
|
99
|
-
const validationMessagesArray = computed(() =>
|
|
100
|
-
validationMessagesArrayFunc(['mtu'], props.errorMessages)
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
// UI_I_Localization
|
|
104
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
105
|
-
|
|
106
|
-
// For showing component validation errors on the top of modal
|
|
107
|
-
const isShowErrorMessage = computed<boolean>(
|
|
108
|
-
() => props.isShowErrorMessageAlert && props.hasErrorMessages
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
const fieldsValues = ref<UI_I_SwitchPropertiesFields>({
|
|
112
|
-
mtu: props.initialData.mtu || 0,
|
|
113
|
-
num_ports: props.initialData.num_ports || '',
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
const onHideErrorMessageAlert = () => emits('hide-error-message-alert')
|
|
117
|
-
const onChangeData = (data: UI_I_SwitchPropertiesFields) =>
|
|
118
|
-
emits('change-edit-properties-data', data)
|
|
119
|
-
|
|
120
|
-
const changeErrorMessage = (
|
|
121
|
-
errorMessage: string,
|
|
122
|
-
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
123
|
-
) => emits('change-error-messages', errorMessage, fieldName)
|
|
124
|
-
|
|
125
|
-
const messageTexts = (local: UI_I_Localization) => ({
|
|
126
|
-
mtu: local.common.mtuInvalidMessage,
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
const setMessageOnChangedField = (
|
|
130
|
-
values: number,
|
|
131
|
-
name: UI_T_PortPropertiesFieldName,
|
|
132
|
-
text: string
|
|
133
|
-
) => {
|
|
134
|
-
if (values < 1280 || values > 65535) {
|
|
135
|
-
changeErrorMessage(text, name)
|
|
136
|
-
return
|
|
137
|
-
}
|
|
138
|
-
changeErrorMessage('', name)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
watch(
|
|
142
|
-
fieldsValues,
|
|
143
|
-
(newValues: UI_I_SwitchPropertiesFields) => {
|
|
144
|
-
setMessageOnChangedField(
|
|
145
|
-
newValues.mtu,
|
|
146
|
-
'mtu',
|
|
147
|
-
messageTexts(localization.value).mtu
|
|
148
|
-
)
|
|
149
|
-
onChangeData(newValues)
|
|
150
|
-
!props.hasErrorMessages && onHideErrorMessageAlert()
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
deep: true,
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
|
|
157
|
-
onMounted(() => {
|
|
158
|
-
onChangeData(fieldsValues.value)
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
onUnmounted(() => {
|
|
162
|
-
onHideErrorMessageAlert()
|
|
163
|
-
})
|
|
164
|
-
</script>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="progress-line">
|
|
3
|
-
<div class="bg w-full">
|
|
4
|
-
<div
|
|
5
|
-
v-if="props.percent !== 0"
|
|
6
|
-
:style="props.innerFillContainerStyles"
|
|
7
|
-
class="inner-fill-container"
|
|
8
|
-
></div>
|
|
9
|
-
<div class="cutted-container-block">
|
|
10
|
-
<div
|
|
11
|
-
v-for="(item, key) in props.itemsForPrint"
|
|
12
|
-
:key="key"
|
|
13
|
-
:style="`width: ${item.width}%;background-color: ${item.color}; left: ${item.left}%`"
|
|
14
|
-
:class="[
|
|
15
|
-
'inner-fill-container',
|
|
16
|
-
{ one: props.itemsForPrint.length === 1 },
|
|
17
|
-
]"
|
|
18
|
-
></div>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import type {
|
|
26
|
-
UI_I_UtilizationProgressInnerFillStyles,
|
|
27
|
-
UI_I_UtilizationProgressItemForPrint,
|
|
28
|
-
} from '~/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces'
|
|
29
|
-
|
|
30
|
-
const props = defineProps<{
|
|
31
|
-
percent: number | string
|
|
32
|
-
innerFillContainerStyles: UI_I_UtilizationProgressInnerFillStyles
|
|
33
|
-
itemsForPrint: UI_I_UtilizationProgressItemForPrint[]
|
|
34
|
-
}>()
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style scoped lang="scss">
|
|
38
|
-
.progress-line {
|
|
39
|
-
.bg {
|
|
40
|
-
background: var(--progress-bar-bg);
|
|
41
|
-
height: 20px;
|
|
42
|
-
border-radius: 20px;
|
|
43
|
-
|
|
44
|
-
.inner-fill-container {
|
|
45
|
-
position: absolute;
|
|
46
|
-
height: 20px;
|
|
47
|
-
border-radius: 16px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.cutted-container-block {
|
|
51
|
-
.inner-fill-container:not(.one) {
|
|
52
|
-
border-radius: 0;
|
|
53
|
-
|
|
54
|
-
&:first-child {
|
|
55
|
-
border-radius: 16px 0 0 16px;
|
|
56
|
-
}
|
|
57
|
-
&:last-child {
|
|
58
|
-
border-radius: 0 16px 16px 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
</style>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bg w-full">
|
|
3
|
-
<div
|
|
4
|
-
v-if="props.percent !== 0"
|
|
5
|
-
:style="props.innerFillContainerStyles"
|
|
6
|
-
class="inner-fill-container"
|
|
7
|
-
></div>
|
|
8
|
-
<div class="cutted-container-block">
|
|
9
|
-
<div
|
|
10
|
-
v-for="(item, key) in props.itemsForPrint"
|
|
11
|
-
:key="key"
|
|
12
|
-
:style="`width: ${item.width}%;background-color: ${item.color}; left: ${item.left}%`"
|
|
13
|
-
:class="[
|
|
14
|
-
'inner-fill-container',
|
|
15
|
-
{ one: props.itemsForPrint.length === 1 },
|
|
16
|
-
]"
|
|
17
|
-
></div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script setup lang="ts">
|
|
23
|
-
import type {
|
|
24
|
-
UI_I_UtilizationProgressInnerFillStyles,
|
|
25
|
-
UI_I_UtilizationProgressItemForPrint,
|
|
26
|
-
} from '~/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces'
|
|
27
|
-
|
|
28
|
-
const props = defineProps<{
|
|
29
|
-
percent: number | string
|
|
30
|
-
innerFillContainerStyles: UI_I_UtilizationProgressInnerFillStyles
|
|
31
|
-
itemsForPrint: UI_I_UtilizationProgressItemForPrint[]
|
|
32
|
-
}>()
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style scoped lang="scss">
|
|
36
|
-
.bg {
|
|
37
|
-
background: #ffffff;
|
|
38
|
-
border: 1px solid #666666;
|
|
39
|
-
height: 20px;
|
|
40
|
-
border-radius: 5px;
|
|
41
|
-
|
|
42
|
-
.inner-fill-container {
|
|
43
|
-
position: absolute;
|
|
44
|
-
height: 20px;
|
|
45
|
-
border-radius: 5px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.cutted-container-block {
|
|
49
|
-
.inner-fill-container:not(.one) {
|
|
50
|
-
border-radius: 0;
|
|
51
|
-
|
|
52
|
-
&:first-child {
|
|
53
|
-
border-radius: 5px 0 0 5px;
|
|
54
|
-
}
|
|
55
|
-
&:not(:first-child):not(:last-child) {
|
|
56
|
-
border-left: 1px solid #ffffff;
|
|
57
|
-
border-right: 1px solid #ffffff;
|
|
58
|
-
}
|
|
59
|
-
&:last-child {
|
|
60
|
-
border-radius: 0 5px 5px 0;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
</style>
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="currentComponent"
|
|
4
|
-
:percent="percent"
|
|
5
|
-
:inner-fill-container-styles="innerFillContainerStyles"
|
|
6
|
-
:items-for-print="itemsForPrint"
|
|
7
|
-
/>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
import type { UI_I_UtilizationDataItem } from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
12
|
-
import type {
|
|
13
|
-
UI_I_UtilizationProgressInnerFillStyles,
|
|
14
|
-
UI_I_UtilizationProgressItemForPrint,
|
|
15
|
-
} from '~/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces'
|
|
16
|
-
|
|
17
|
-
const props = defineProps<{
|
|
18
|
-
infoData: UI_I_UtilizationDataItem | null
|
|
19
|
-
maxItem: UI_I_UtilizationDataItem['data'][0] | null
|
|
20
|
-
percent: number | string
|
|
21
|
-
color: string
|
|
22
|
-
}>()
|
|
23
|
-
|
|
24
|
-
const { $store }: any = useNuxtApp()
|
|
25
|
-
|
|
26
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
27
|
-
const currentComponent = computed(() =>
|
|
28
|
-
isNewView.value
|
|
29
|
-
? defineAsyncComponent(() => import('./New.vue'))
|
|
30
|
-
: defineAsyncComponent(() => import('./Old.vue'))
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
const percent = computed<number>(() => Number(props.percent))
|
|
34
|
-
|
|
35
|
-
const itemsForPrint = ref<UI_I_UtilizationProgressItemForPrint[]>([])
|
|
36
|
-
|
|
37
|
-
const innerFillContainerStyles =
|
|
38
|
-
computed<UI_I_UtilizationProgressInnerFillStyles>(() => ({
|
|
39
|
-
width: `${percent.value}%`,
|
|
40
|
-
backgroundColor: `${props.color}`,
|
|
41
|
-
}))
|
|
42
|
-
|
|
43
|
-
watch(
|
|
44
|
-
() => props.infoData,
|
|
45
|
-
(newValue) => {
|
|
46
|
-
if (!newValue) return
|
|
47
|
-
|
|
48
|
-
newValue.data.forEach((item) => {
|
|
49
|
-
if (
|
|
50
|
-
item.color &&
|
|
51
|
-
!['consumed'].find((item2) =>
|
|
52
|
-
item.labelKey.toLowerCase().includes(item2)
|
|
53
|
-
) &&
|
|
54
|
-
parseFloat(item.value.replace(/[^\d.-]/g, '')) !== 0
|
|
55
|
-
)
|
|
56
|
-
itemsForPrint.value.push(item)
|
|
57
|
-
})
|
|
58
|
-
itemsForPrint.value = itemsForPrint.value.filter((item) =>
|
|
59
|
-
item.value ? parseFloat(item.value.replace(/[^\d.-]/g, '')) !== 0 : false
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
let currentLeft = 0
|
|
63
|
-
|
|
64
|
-
const total = parseFloat(props.maxItem.value.replace(/[^\d.-]/g, ''))
|
|
65
|
-
|
|
66
|
-
itemsForPrint.value = itemsForPrint.value.map((item) => {
|
|
67
|
-
const width = item.value
|
|
68
|
-
? (parseFloat(item.value.replace(/[^\d.-]/g, '')) / total) * 100
|
|
69
|
-
: 0
|
|
70
|
-
|
|
71
|
-
const segment = {
|
|
72
|
-
left: currentLeft,
|
|
73
|
-
width: width,
|
|
74
|
-
color: item.colorKey ? `var(${item.colorKey})` : item.color,
|
|
75
|
-
}
|
|
76
|
-
currentLeft += width
|
|
77
|
-
return segment
|
|
78
|
-
})
|
|
79
|
-
},
|
|
80
|
-
{ immediate: true, deep: true }
|
|
81
|
-
)
|
|
82
|
-
</script>
|
|
83
|
-
|
|
84
|
-
<style scoped lang="scss"></style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type UI_T_UtilizationDataItemType = 'cpu' | 'memory'
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="utilization flex flex-col h-full overflow-hidden">
|
|
3
|
-
<common-monitor-utilization-new-skeleton v-if="props.isLoading" />
|
|
4
|
-
<template v-else>
|
|
5
|
-
<div class="flex flex-wrap justify-between gap-4 mb-4 px-[6px]">
|
|
6
|
-
<h3 class="utilization-title text-[18px] font-[500]">
|
|
7
|
-
{{ localization.common.utilization }}
|
|
8
|
-
</h3>
|
|
9
|
-
|
|
10
|
-
<ui-button
|
|
11
|
-
id="utilization-settings-edit-button"
|
|
12
|
-
test-id="utilization-settings-edit-button"
|
|
13
|
-
variant="text"
|
|
14
|
-
class="utilization-settings-edit-button"
|
|
15
|
-
is-without-sizes
|
|
16
|
-
is-without-height
|
|
17
|
-
@click="isShowShowSettings = !isShowShowSettings"
|
|
18
|
-
>
|
|
19
|
-
<ui-icon name="settings" width="18px" height="18px" />
|
|
20
|
-
</ui-button>
|
|
21
|
-
<ui-popup-window
|
|
22
|
-
v-model="isShowShowSettings"
|
|
23
|
-
test-id="utilization-settings-select"
|
|
24
|
-
elem-id="utilization-settings-edit-button"
|
|
25
|
-
:margin-between-trigger="4"
|
|
26
|
-
width="144px"
|
|
27
|
-
left
|
|
28
|
-
>
|
|
29
|
-
<ul class="utilization-settings-items grid gap-2 p-2">
|
|
30
|
-
<li v-for="item in allDataLocal" :key="item.id" class="list-item">
|
|
31
|
-
<ui-checkbox
|
|
32
|
-
v-model="item.isShow"
|
|
33
|
-
:test-id="`utilization-settings-${item.id}`"
|
|
34
|
-
:label-text="item.title"
|
|
35
|
-
size="md"
|
|
36
|
-
/>
|
|
37
|
-
</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</ui-popup-window>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div class="utilization-info-block-flex-container overflow-auto">
|
|
43
|
-
<ui-portlet-sortable-view
|
|
44
|
-
:portlets="portlets"
|
|
45
|
-
:name="portletsPageName"
|
|
46
|
-
@change-container-size="onChangeContainerSize"
|
|
47
|
-
>
|
|
48
|
-
<template
|
|
49
|
-
#default="{ portletId, dragged, isOpen, draggedAny, isLast }"
|
|
50
|
-
>
|
|
51
|
-
<common-monitor-utilization-new-portlet
|
|
52
|
-
:all-data="allDataLocal"
|
|
53
|
-
:portlet-id="portletId"
|
|
54
|
-
:dragged="dragged"
|
|
55
|
-
:dragged-any="draggedAny"
|
|
56
|
-
:is-open="isOpen"
|
|
57
|
-
:is-last="isLast"
|
|
58
|
-
:not-single-column-block="notSingleColumnBlock"
|
|
59
|
-
@toggle-portlet="onTogglePortlet"
|
|
60
|
-
/>
|
|
61
|
-
</template>
|
|
62
|
-
</ui-portlet-sortable-view>
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
</div>
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<script setup lang="ts">
|
|
69
|
-
import type { UI_I_Portlet } from '~/node_modules/bfg-uikit/components/ui/portlet/lib/models/interfaces'
|
|
70
|
-
import { togglePortletFunc } from '~/node_modules/bfg-uikit/components/ui/portlet/lib/utils/utils'
|
|
71
|
-
import type { UI_I_UtilizationDataItem } from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
72
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
73
|
-
import { getPortletsLocal } from '~/components/common/monitor/utilization/new/lib/utils/newPortlet'
|
|
74
|
-
|
|
75
|
-
const allDataLocal = defineModel<UI_I_UtilizationDataItem[]>('all-data', {
|
|
76
|
-
required: true,
|
|
77
|
-
})
|
|
78
|
-
const props = defineProps<{
|
|
79
|
-
isLoading: boolean
|
|
80
|
-
}>()
|
|
81
|
-
const emits = defineEmits<{
|
|
82
|
-
(event: 'set-items-show-settings'): void
|
|
83
|
-
}>()
|
|
84
|
-
|
|
85
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
86
|
-
|
|
87
|
-
const isShowShowSettings = ref<boolean>(false)
|
|
88
|
-
|
|
89
|
-
const portletsPageName = 'utilization'
|
|
90
|
-
|
|
91
|
-
const portlets = ref<UI_I_Portlet[]>([])
|
|
92
|
-
|
|
93
|
-
const initialPortlets: UI_I_Portlet[] = []
|
|
94
|
-
|
|
95
|
-
const containerWidth = ref<number>(0)
|
|
96
|
-
|
|
97
|
-
const notSingleColumnBlock = computed<boolean>(
|
|
98
|
-
() =>
|
|
99
|
-
containerWidth.value > 1150 ||
|
|
100
|
-
(containerWidth.value < 720 && containerWidth.value > 500)
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
const onChangeContainerSize = (width: number): void => {
|
|
104
|
-
containerWidth.value = width
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
const getPortletData = (): void => {
|
|
108
|
-
portlets.value = getPortletsLocal(portletsPageName, initialPortlets)
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const onTogglePortlet = (id: string): void => {
|
|
112
|
-
togglePortletFunc(id, portletsPageName, initialPortlets, getPortletData)
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
watch(
|
|
116
|
-
allDataLocal,
|
|
117
|
-
(newValue) => {
|
|
118
|
-
if (newValue.length) {
|
|
119
|
-
newValue.forEach((item) => {
|
|
120
|
-
initialPortlets.push({
|
|
121
|
-
id: item.id,
|
|
122
|
-
list: 1,
|
|
123
|
-
isOpen: true,
|
|
124
|
-
})
|
|
125
|
-
})
|
|
126
|
-
getPortletData()
|
|
127
|
-
emits('set-items-show-settings')
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{ immediate: true, deep: true }
|
|
131
|
-
)
|
|
132
|
-
</script>
|
|
133
|
-
|
|
134
|
-
<style>
|
|
135
|
-
:root {
|
|
136
|
-
--utilization-settings-trigger-btn-bg-color: #f6f7f8;
|
|
137
|
-
}
|
|
138
|
-
:root.dark-theme {
|
|
139
|
-
--utilization-settings-trigger-btn-bg-color: #283948;
|
|
140
|
-
}
|
|
141
|
-
</style>
|
|
142
|
-
|
|
143
|
-
<style scoped lang="scss">
|
|
144
|
-
.utilization {
|
|
145
|
-
padding-top: 16px;
|
|
146
|
-
|
|
147
|
-
&-title {
|
|
148
|
-
color: var(--title-form-first-color);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.utilization-settings-edit-button {
|
|
152
|
-
width: 34px;
|
|
153
|
-
height: 34px;
|
|
154
|
-
border: 1px solid var(--line-color);
|
|
155
|
-
color: var(--modal-icon);
|
|
156
|
-
background-color: var(--btn-default-outline-bg-color);
|
|
157
|
-
&:hover {
|
|
158
|
-
background-color: var(--utilization-settings-trigger-btn-bg-color);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
.utilization-settings-items {
|
|
162
|
-
.list-item {
|
|
163
|
-
padding: 7px 9px;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
</style>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-portlet
|
|
3
|
-
v-if="selectedItem?.isShow"
|
|
4
|
-
:title="selectedItem.title"
|
|
5
|
-
:dragged="props.dragged"
|
|
6
|
-
:dragged-any="props.draggedAny"
|
|
7
|
-
:is-open="props.isOpen"
|
|
8
|
-
:portlet-id="props.portletId"
|
|
9
|
-
:is-last="props.isLast"
|
|
10
|
-
:not-single="!props.notSingleColumnBlock"
|
|
11
|
-
:test-id="`utilization-portlet-${props.portletId}`"
|
|
12
|
-
@toggle="emits('toggle-portlet', $event)"
|
|
13
|
-
>
|
|
14
|
-
<template #portletBody>
|
|
15
|
-
<common-monitor-utilization-info-block :info-data="selectedItem" />
|
|
16
|
-
</template>
|
|
17
|
-
</ui-portlet>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script setup lang="ts">
|
|
21
|
-
import type { UI_I_UtilizationDataItem } from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
22
|
-
|
|
23
|
-
const props = defineProps<{
|
|
24
|
-
allData: UI_I_UtilizationDataItem[]
|
|
25
|
-
portletId: string
|
|
26
|
-
dragged: boolean
|
|
27
|
-
isOpen: boolean
|
|
28
|
-
isLast: boolean
|
|
29
|
-
draggedAny: boolean
|
|
30
|
-
notSingleColumnBlock: boolean
|
|
31
|
-
}>()
|
|
32
|
-
|
|
33
|
-
const emits = defineEmits<{
|
|
34
|
-
(event: 'toggle-portlet', id: string): void
|
|
35
|
-
}>()
|
|
36
|
-
|
|
37
|
-
const selectedItem = computed<UI_I_UtilizationDataItem | null>(
|
|
38
|
-
() => props.allData.find((item) => item.id === props.portletId) || null
|
|
39
|
-
)
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<style scoped lang="scss"></style>
|