bfg-common 1.0.16 → 1.0.18
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/adapterManager/AdapterManager.vue +9 -9
- package/components/common/adapterManager/ui/table/Table.vue +2 -2
- package/components/common/addNetworking/AddNetworking.vue +2 -2
- package/components/common/addNetworking/config/sendData.ts +1 -1
- package/components/common/addNetworking/mappers/mappers.ts +1 -1
- package/components/common/diagramMain/DiagramMain.vue +2 -2
- package/components/common/diagramMain/config/initial.ts +1 -1
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +236 -236
- package/components/common/diagramMain/modals/config/initial.ts +31 -45
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +6 -5
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +183 -178
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +2 -1
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +393 -392
- package/components/common/diagramMain/models/interfaces.ts +53 -74
- package/components/common/diagramMain/models/types.ts +1 -1
- package/components/common/monitor/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +371 -371
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/MaxCpu.vue +105 -105
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Sa.vue +102 -102
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/shares/Shares.vue +155 -155
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +214 -214
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +282 -282
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +451 -451
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +151 -151
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +230 -230
- package/components/common/vm/actions/add/select/compatibility/Compatibility.vue +151 -151
- package/package.json +1 -1
- package/public/spice-console/network/spicechannel.js +1 -1
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.maxCpu }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="flex-align-center">
|
|
9
|
-
<atoms-tooltip-error
|
|
10
|
-
:has-error="!!maxVcpusLocalAndApiErrorsTexts"
|
|
11
|
-
selector="#vm-wizard-max-vcpus-field input"
|
|
12
|
-
@remove="emits('remove-error-by-title', 'cpu.max_vcpus')"
|
|
13
|
-
>
|
|
14
|
-
<template #elem>
|
|
15
|
-
<atoms-combobox
|
|
16
|
-
id="vm-wizard-max-vcpus-field"
|
|
17
|
-
v-model.number="selectedMaxCpuLocal"
|
|
18
|
-
:items="cpuOptions"
|
|
19
|
-
:disabled="props.disabled"
|
|
20
|
-
@click.stop
|
|
21
|
-
/>
|
|
22
|
-
</template>
|
|
23
|
-
<template #content>{{ maxVcpusLocalAndApiErrorsTexts }}</template>
|
|
24
|
-
</atoms-tooltip-error>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
</atoms-stack-block>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script setup lang="ts">
|
|
32
|
-
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
33
|
-
import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
|
|
34
|
-
import { UI_I_Localization } from '~/models/interfaces'
|
|
35
|
-
|
|
36
|
-
const props = defineProps<{
|
|
37
|
-
cpuOptions: UI_I_OptionItem[]
|
|
38
|
-
selectedMaxCpu: number
|
|
39
|
-
disabled: boolean
|
|
40
|
-
errorValidationFields: UI_I_ErrorValidationField<string>[]
|
|
41
|
-
}>()
|
|
42
|
-
const emits = defineEmits<{
|
|
43
|
-
(event: 'update:selected-max-cpu', value: number): void
|
|
44
|
-
(event: 'invalid', value: boolean): void
|
|
45
|
-
(event: 'remove-error-by-title', value: string): void
|
|
46
|
-
}>()
|
|
47
|
-
|
|
48
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
49
|
-
|
|
50
|
-
const selectedMaxCpuLocal = computed<number>({
|
|
51
|
-
get() {
|
|
52
|
-
return props.selectedMaxCpu
|
|
53
|
-
},
|
|
54
|
-
set(newValue) {
|
|
55
|
-
emits('update:selected-max-cpu', newValue)
|
|
56
|
-
},
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
const apiErrorLocal = computed<string>(() => {
|
|
60
|
-
return (
|
|
61
|
-
props.errorValidationFields?.find(
|
|
62
|
-
(message) => message.field === 'cpu.max_vcpus'
|
|
63
|
-
)?.error_message || ''
|
|
64
|
-
)
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
const errorTextLocal = computed<string>(() => {
|
|
68
|
-
const validValue = /^\d+(\.\d+)?$/.test(selectedMaxCpuLocal.value + '')
|
|
69
|
-
if (!validValue) {
|
|
70
|
-
return localization.value.inputContainsInvalidCharacters
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const min = props.cpuOptions[0].value
|
|
74
|
-
const max = props.cpuOptions[1].value
|
|
75
|
-
if (selectedMaxCpuLocal.value < min || selectedMaxCpuLocal.value > max) {
|
|
76
|
-
return localization.value.memoryMustBe
|
|
77
|
-
.replace('{0}', min)
|
|
78
|
-
.replace('{1}', max)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return ''
|
|
82
|
-
})
|
|
83
|
-
const maxVcpusLocalAndApiErrorsTexts = computed<string>(() => {
|
|
84
|
-
const localError = errorTextLocal.value
|
|
85
|
-
const apiError = apiErrorLocal.value
|
|
86
|
-
|
|
87
|
-
let result = ''
|
|
88
|
-
if (localError && !apiError) result = localError
|
|
89
|
-
if (!localError && !apiError) result = apiError
|
|
90
|
-
if (localError && apiError) result = localError + ', ' + apiError
|
|
91
|
-
if (!localError && apiError) result = apiError
|
|
92
|
-
|
|
93
|
-
return result
|
|
94
|
-
})
|
|
95
|
-
const isInvalid = computed<boolean>(() => !!errorTextLocal.value)
|
|
96
|
-
watch(
|
|
97
|
-
isInvalid,
|
|
98
|
-
(newValue) => {
|
|
99
|
-
emits('invalid', newValue)
|
|
100
|
-
},
|
|
101
|
-
{ immediate: true }
|
|
102
|
-
)
|
|
103
|
-
</script>
|
|
104
|
-
|
|
105
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<atoms-stack-block :has-children="false">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
{{ localization.maxCpu }}
|
|
6
|
+
</template>
|
|
7
|
+
<template #stackBlockContent>
|
|
8
|
+
<div class="flex-align-center">
|
|
9
|
+
<atoms-tooltip-error
|
|
10
|
+
:has-error="!!maxVcpusLocalAndApiErrorsTexts"
|
|
11
|
+
selector="#vm-wizard-max-vcpus-field input"
|
|
12
|
+
@remove="emits('remove-error-by-title', 'cpu.max_vcpus')"
|
|
13
|
+
>
|
|
14
|
+
<template #elem>
|
|
15
|
+
<atoms-combobox
|
|
16
|
+
id="vm-wizard-max-vcpus-field"
|
|
17
|
+
v-model.number="selectedMaxCpuLocal"
|
|
18
|
+
:items="cpuOptions"
|
|
19
|
+
:disabled="props.disabled"
|
|
20
|
+
@click.stop
|
|
21
|
+
/>
|
|
22
|
+
</template>
|
|
23
|
+
<template #content>{{ maxVcpusLocalAndApiErrorsTexts }}</template>
|
|
24
|
+
</atoms-tooltip-error>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
</atoms-stack-block>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup lang="ts">
|
|
32
|
+
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
33
|
+
import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
|
|
34
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
35
|
+
|
|
36
|
+
const props = defineProps<{
|
|
37
|
+
cpuOptions: UI_I_OptionItem[]
|
|
38
|
+
selectedMaxCpu: number
|
|
39
|
+
disabled: boolean
|
|
40
|
+
errorValidationFields: UI_I_ErrorValidationField<string>[]
|
|
41
|
+
}>()
|
|
42
|
+
const emits = defineEmits<{
|
|
43
|
+
(event: 'update:selected-max-cpu', value: number): void
|
|
44
|
+
(event: 'invalid', value: boolean): void
|
|
45
|
+
(event: 'remove-error-by-title', value: string): void
|
|
46
|
+
}>()
|
|
47
|
+
|
|
48
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
49
|
+
|
|
50
|
+
const selectedMaxCpuLocal = computed<number>({
|
|
51
|
+
get() {
|
|
52
|
+
return props.selectedMaxCpu
|
|
53
|
+
},
|
|
54
|
+
set(newValue) {
|
|
55
|
+
emits('update:selected-max-cpu', newValue)
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
const apiErrorLocal = computed<string>(() => {
|
|
60
|
+
return (
|
|
61
|
+
props.errorValidationFields?.find(
|
|
62
|
+
(message) => message.field === 'cpu.max_vcpus'
|
|
63
|
+
)?.error_message || ''
|
|
64
|
+
)
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
const errorTextLocal = computed<string>(() => {
|
|
68
|
+
const validValue = /^\d+(\.\d+)?$/.test(selectedMaxCpuLocal.value + '')
|
|
69
|
+
if (!validValue) {
|
|
70
|
+
return localization.value.inputContainsInvalidCharacters
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const min = props.cpuOptions[0].value
|
|
74
|
+
const max = props.cpuOptions[1].value
|
|
75
|
+
if (selectedMaxCpuLocal.value < min || selectedMaxCpuLocal.value > max) {
|
|
76
|
+
return localization.value.memoryMustBe
|
|
77
|
+
.replace('{0}', min)
|
|
78
|
+
.replace('{1}', max)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return ''
|
|
82
|
+
})
|
|
83
|
+
const maxVcpusLocalAndApiErrorsTexts = computed<string>(() => {
|
|
84
|
+
const localError = errorTextLocal.value
|
|
85
|
+
const apiError = apiErrorLocal.value
|
|
86
|
+
|
|
87
|
+
let result = ''
|
|
88
|
+
if (localError && !apiError) result = localError
|
|
89
|
+
if (!localError && !apiError) result = apiError
|
|
90
|
+
if (localError && apiError) result = localError + ', ' + apiError
|
|
91
|
+
if (!localError && apiError) result = apiError
|
|
92
|
+
|
|
93
|
+
return result
|
|
94
|
+
})
|
|
95
|
+
const isInvalid = computed<boolean>(() => !!errorTextLocal.value)
|
|
96
|
+
watch(
|
|
97
|
+
isInvalid,
|
|
98
|
+
(newValue) => {
|
|
99
|
+
emits('invalid', newValue)
|
|
100
|
+
},
|
|
101
|
+
{ immediate: true }
|
|
102
|
+
)
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<style scoped></style>
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.schedulingAffinity }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="flex-space-between">
|
|
9
|
-
<div class="flex-align-center">
|
|
10
|
-
<input
|
|
11
|
-
id="sa-edit-setting-input"
|
|
12
|
-
v-model="schedulingAffinityLocal"
|
|
13
|
-
type="text"
|
|
14
|
-
class="edit-setting-input"
|
|
15
|
-
disabled
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div id="sa-help-icon">
|
|
20
|
-
<atoms-the-icon
|
|
21
|
-
fill="#0072a3"
|
|
22
|
-
width="24px"
|
|
23
|
-
height="24px"
|
|
24
|
-
name="info-circle"
|
|
25
|
-
@click.stop="isShowSaHelp = !isShowSaHelp"
|
|
26
|
-
/>
|
|
27
|
-
<Teleport to="body">
|
|
28
|
-
<atoms-tooltip-signpost
|
|
29
|
-
v-if="isShowSaHelp"
|
|
30
|
-
elem-id="sa-help-icon"
|
|
31
|
-
@hide="isShowSaHelp = false"
|
|
32
|
-
>
|
|
33
|
-
<h3 class="sa-help-title">
|
|
34
|
-
{{ localization.help }}
|
|
35
|
-
</h3>
|
|
36
|
-
|
|
37
|
-
<p class="sa-help-text">
|
|
38
|
-
{{ localization.schedulingAffinityHelpDescription1 }}
|
|
39
|
-
</p>
|
|
40
|
-
<p class="sa-help-text">
|
|
41
|
-
{{ localization.schedulingAffinityHelpDescription2 }}
|
|
42
|
-
</p>
|
|
43
|
-
<p class="sa-help-text">
|
|
44
|
-
{{ localization.schedulingAffinityHelpDescription3 }}
|
|
45
|
-
</p>
|
|
46
|
-
<p class="sa-help-text">
|
|
47
|
-
<strong>{{ localization.hyperthreadingStatus }}: </strong>
|
|
48
|
-
{{ localization.inactive }}
|
|
49
|
-
</p>
|
|
50
|
-
<p class="sa-help-text">
|
|
51
|
-
<strong>{{ localization.availableCpus }}: </strong>
|
|
52
|
-
8({{ localization.physicalCpus }})
|
|
53
|
-
</p>
|
|
54
|
-
</atoms-tooltip-signpost>
|
|
55
|
-
</Teleport>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
</atoms-stack-block>
|
|
60
|
-
</div>
|
|
61
|
-
</template>
|
|
62
|
-
|
|
63
|
-
<script setup lang="ts">
|
|
64
|
-
const localization = computed(() => useLocal())
|
|
65
|
-
|
|
66
|
-
const props = defineProps<{
|
|
67
|
-
schedulingAffinity: string
|
|
68
|
-
}>()
|
|
69
|
-
const emits = defineEmits<{
|
|
70
|
-
(event: 'update:scheduling-affinity', value: string): void
|
|
71
|
-
}>()
|
|
72
|
-
|
|
73
|
-
const schedulingAffinityLocal = computed<string>({
|
|
74
|
-
get() {
|
|
75
|
-
return props.schedulingAffinity
|
|
76
|
-
},
|
|
77
|
-
set(newValue) {
|
|
78
|
-
emits('update:scheduling-affinity', newValue)
|
|
79
|
-
},
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
const isShowSaHelp = ref<boolean>(false)
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped lang="scss">
|
|
86
|
-
h3.sa-help-title {
|
|
87
|
-
margin-top: 7px;
|
|
88
|
-
font-size: 22px;
|
|
89
|
-
color: #565656;
|
|
90
|
-
}
|
|
91
|
-
p.sa-help-text {
|
|
92
|
-
width: 310px;
|
|
93
|
-
margin-top: 24px;
|
|
94
|
-
font-size: 14px;
|
|
95
|
-
color: #565656;
|
|
96
|
-
}
|
|
97
|
-
p.sa-help-text strong {
|
|
98
|
-
font-size: 14px;
|
|
99
|
-
font-weight: bold;
|
|
100
|
-
color: #565656;
|
|
101
|
-
}
|
|
102
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<atoms-stack-block :has-children="false">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
{{ localization.schedulingAffinity }}
|
|
6
|
+
</template>
|
|
7
|
+
<template #stackBlockContent>
|
|
8
|
+
<div class="flex-space-between">
|
|
9
|
+
<div class="flex-align-center">
|
|
10
|
+
<input
|
|
11
|
+
id="sa-edit-setting-input"
|
|
12
|
+
v-model="schedulingAffinityLocal"
|
|
13
|
+
type="text"
|
|
14
|
+
class="edit-setting-input"
|
|
15
|
+
disabled
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div id="sa-help-icon">
|
|
20
|
+
<atoms-the-icon
|
|
21
|
+
fill="#0072a3"
|
|
22
|
+
width="24px"
|
|
23
|
+
height="24px"
|
|
24
|
+
name="info-circle"
|
|
25
|
+
@click.stop="isShowSaHelp = !isShowSaHelp"
|
|
26
|
+
/>
|
|
27
|
+
<Teleport to="body">
|
|
28
|
+
<atoms-tooltip-signpost
|
|
29
|
+
v-if="isShowSaHelp"
|
|
30
|
+
elem-id="sa-help-icon"
|
|
31
|
+
@hide="isShowSaHelp = false"
|
|
32
|
+
>
|
|
33
|
+
<h3 class="sa-help-title">
|
|
34
|
+
{{ localization.help }}
|
|
35
|
+
</h3>
|
|
36
|
+
|
|
37
|
+
<p class="sa-help-text">
|
|
38
|
+
{{ localization.schedulingAffinityHelpDescription1 }}
|
|
39
|
+
</p>
|
|
40
|
+
<p class="sa-help-text">
|
|
41
|
+
{{ localization.schedulingAffinityHelpDescription2 }}
|
|
42
|
+
</p>
|
|
43
|
+
<p class="sa-help-text">
|
|
44
|
+
{{ localization.schedulingAffinityHelpDescription3 }}
|
|
45
|
+
</p>
|
|
46
|
+
<p class="sa-help-text">
|
|
47
|
+
<strong>{{ localization.hyperthreadingStatus }}: </strong>
|
|
48
|
+
{{ localization.inactive }}
|
|
49
|
+
</p>
|
|
50
|
+
<p class="sa-help-text">
|
|
51
|
+
<strong>{{ localization.availableCpus }}: </strong>
|
|
52
|
+
8({{ localization.physicalCpus }})
|
|
53
|
+
</p>
|
|
54
|
+
</atoms-tooltip-signpost>
|
|
55
|
+
</Teleport>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
</atoms-stack-block>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script setup lang="ts">
|
|
64
|
+
const localization = computed(() => useLocal())
|
|
65
|
+
|
|
66
|
+
const props = defineProps<{
|
|
67
|
+
schedulingAffinity: string
|
|
68
|
+
}>()
|
|
69
|
+
const emits = defineEmits<{
|
|
70
|
+
(event: 'update:scheduling-affinity', value: string): void
|
|
71
|
+
}>()
|
|
72
|
+
|
|
73
|
+
const schedulingAffinityLocal = computed<string>({
|
|
74
|
+
get() {
|
|
75
|
+
return props.schedulingAffinity
|
|
76
|
+
},
|
|
77
|
+
set(newValue) {
|
|
78
|
+
emits('update:scheduling-affinity', newValue)
|
|
79
|
+
},
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
const isShowSaHelp = ref<boolean>(false)
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style scoped lang="scss">
|
|
86
|
+
h3.sa-help-title {
|
|
87
|
+
margin-top: 7px;
|
|
88
|
+
font-size: 22px;
|
|
89
|
+
color: #565656;
|
|
90
|
+
}
|
|
91
|
+
p.sa-help-text {
|
|
92
|
+
width: 310px;
|
|
93
|
+
margin-top: 24px;
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
color: #565656;
|
|
96
|
+
}
|
|
97
|
+
p.sa-help-text strong {
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
font-weight: bold;
|
|
100
|
+
color: #565656;
|
|
101
|
+
}
|
|
102
|
+
</style>
|