bfg-common 1.4.198 → 1.4.199
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 -407
- package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +83 -83
- package/assets/img/icons/icons-sprite-light-1.svg +407 -407
- package/assets/img/icons/icons-sprite-light-2.svg +343 -343
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +255 -255
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +83 -83
- package/components/atoms/DiagramIcon.vue +29 -0
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/common/browse/blocks/Title.vue +91 -91
- package/components/common/browse/blocks/info/Date.vue +21 -21
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +199 -199
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/diagramMain/adapter/AdapterItem.vue +17 -4
- package/components/common/diagramMain/lib/models/interfaces.ts +24 -1
- package/components/common/diagramMain/lib/models/types.ts +7 -2
- package/components/common/diagramMain/lib/utils/utils.ts +331 -278
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +1 -1
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +1 -1
- package/components/common/vm/actions/add/Add.vue +609 -609
- package/components/common/vm/actions/clone/Clone.vue +522 -522
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
- package/components/common/wizards/network/add/Add.vue +18 -7
- package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
- package/components/common/wizards/network/add/modals/SelectNetwork.vue +1 -1
- package/components/common/wizards/network/add/modals/SelectStandardSwitch.vue +1 -1
- package/components/common/wizards/network/add/modals/SelectSwitch.vue +1 -1
- package/components/common/wizards/network/add/steps/ConnectionSettings.vue +1 -1
- package/components/common/wizards/network/add/steps/PortProperties.vue +1 -1
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/store/tasks/mappers/recentTasks.ts +45 -45
- /package/components/common/wizards/network/add/lib/config/{index.ts → config.ts} +0 -0
- /package/components/common/wizards/network/add/lib/utils/{index.ts → utils.ts} +0 -0
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.streamingMode }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<atoms-tooltip-error
|
|
9
|
-
:has-error="!!apiError"
|
|
10
|
-
selector="#vm-wizard-streaming-mode-field"
|
|
11
|
-
@remove="onRemoveValidationError"
|
|
12
|
-
>
|
|
13
|
-
<template #elem>
|
|
14
|
-
<div class="select">
|
|
15
|
-
<select
|
|
16
|
-
id="vm-wizard-streaming-mode-field"
|
|
17
|
-
v-model="streamingModeLocal"
|
|
18
|
-
data-id="vm-wizard-streaming-mode-select"
|
|
19
|
-
:disabled="props.disabled"
|
|
20
|
-
>
|
|
21
|
-
<option
|
|
22
|
-
v-for="(item, key) in streamingModeOptions"
|
|
23
|
-
:key="key"
|
|
24
|
-
:value="item.value"
|
|
25
|
-
>
|
|
26
|
-
{{ item.text }}
|
|
27
|
-
</option>
|
|
28
|
-
</select>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
<template #content>
|
|
32
|
-
{{ apiError }}
|
|
33
|
-
</template>
|
|
34
|
-
</atoms-tooltip-error>
|
|
35
|
-
</template>
|
|
36
|
-
</atoms-stack-block>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script setup lang="ts">
|
|
41
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
42
|
-
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
43
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
44
|
-
import { streamingModeOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/lib/config/config'
|
|
45
|
-
|
|
46
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
47
|
-
|
|
48
|
-
const props = defineProps<{
|
|
49
|
-
streamingMode: string
|
|
50
|
-
errorValidationFields: UI_I_ErrorValidationField[]
|
|
51
|
-
disabled: boolean
|
|
52
|
-
}>()
|
|
53
|
-
const emits = defineEmits<{
|
|
54
|
-
(event: 'update:streaming-mode', value: string): void
|
|
55
|
-
(event: 'remove-error-by-title', value: string): void
|
|
56
|
-
}>()
|
|
57
|
-
|
|
58
|
-
const streamingModeOptions = ref<UI_I_OptionItem[]>(
|
|
59
|
-
streamingModeOptionsFunc(localization.value)
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
const streamingModeLocal = computed<string>({
|
|
63
|
-
get() {
|
|
64
|
-
return props.streamingMode
|
|
65
|
-
},
|
|
66
|
-
set(newValue) {
|
|
67
|
-
emits('update:streaming-mode', newValue)
|
|
68
|
-
},
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
const typeError = 'options.remote_console.spice.streaming_mode'
|
|
72
|
-
|
|
73
|
-
const apiError = computed<string>(() => {
|
|
74
|
-
return (
|
|
75
|
-
props.errorValidationFields?.find((message) => message.field === typeError)
|
|
76
|
-
?.error_message || ''
|
|
77
|
-
)
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
const onRemoveValidationError = (): void => {
|
|
81
|
-
emits('remove-error-by-title', typeError)
|
|
82
|
-
}
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<atoms-stack-block :has-children="false">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
{{ localization.common.streamingMode }}
|
|
6
|
+
</template>
|
|
7
|
+
<template #stackBlockContent>
|
|
8
|
+
<atoms-tooltip-error
|
|
9
|
+
:has-error="!!apiError"
|
|
10
|
+
selector="#vm-wizard-streaming-mode-field"
|
|
11
|
+
@remove="onRemoveValidationError"
|
|
12
|
+
>
|
|
13
|
+
<template #elem>
|
|
14
|
+
<div class="select">
|
|
15
|
+
<select
|
|
16
|
+
id="vm-wizard-streaming-mode-field"
|
|
17
|
+
v-model="streamingModeLocal"
|
|
18
|
+
data-id="vm-wizard-streaming-mode-select"
|
|
19
|
+
:disabled="props.disabled"
|
|
20
|
+
>
|
|
21
|
+
<option
|
|
22
|
+
v-for="(item, key) in streamingModeOptions"
|
|
23
|
+
:key="key"
|
|
24
|
+
:value="item.value"
|
|
25
|
+
>
|
|
26
|
+
{{ item.text }}
|
|
27
|
+
</option>
|
|
28
|
+
</select>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
<template #content>
|
|
32
|
+
{{ apiError }}
|
|
33
|
+
</template>
|
|
34
|
+
</atoms-tooltip-error>
|
|
35
|
+
</template>
|
|
36
|
+
</atoms-stack-block>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
42
|
+
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
43
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
44
|
+
import { streamingModeOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/lib/config/config'
|
|
45
|
+
|
|
46
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
47
|
+
|
|
48
|
+
const props = defineProps<{
|
|
49
|
+
streamingMode: string
|
|
50
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
51
|
+
disabled: boolean
|
|
52
|
+
}>()
|
|
53
|
+
const emits = defineEmits<{
|
|
54
|
+
(event: 'update:streaming-mode', value: string): void
|
|
55
|
+
(event: 'remove-error-by-title', value: string): void
|
|
56
|
+
}>()
|
|
57
|
+
|
|
58
|
+
const streamingModeOptions = ref<UI_I_OptionItem[]>(
|
|
59
|
+
streamingModeOptionsFunc(localization.value)
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
const streamingModeLocal = computed<string>({
|
|
63
|
+
get() {
|
|
64
|
+
return props.streamingMode
|
|
65
|
+
},
|
|
66
|
+
set(newValue) {
|
|
67
|
+
emits('update:streaming-mode', newValue)
|
|
68
|
+
},
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
const typeError = 'options.remote_console.spice.streaming_mode'
|
|
72
|
+
|
|
73
|
+
const apiError = computed<string>(() => {
|
|
74
|
+
return (
|
|
75
|
+
props.errorValidationFields?.find((message) => message.field === typeError)
|
|
76
|
+
?.error_message || ''
|
|
77
|
+
)
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
const onRemoveValidationError = (): void => {
|
|
81
|
+
emits('remove-error-by-title', typeError)
|
|
82
|
+
}
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
<style scoped></style>
|
|
@@ -128,14 +128,16 @@ import {
|
|
|
128
128
|
UI_I_SwitchAdapterItem,
|
|
129
129
|
UI_I_DiagramData,
|
|
130
130
|
API_UI_I_SwitchItem,
|
|
131
|
+
UI_I_AvailableAdapters,
|
|
131
132
|
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
133
|
+
import { getAvailableAdapters } from '~/components/common/diagramMain/lib/utils/utils'
|
|
132
134
|
import {
|
|
133
135
|
UI_I_ValidationReturn,
|
|
134
136
|
UI_I_WizardStep,
|
|
135
137
|
UI_I_WizardStepNavigation,
|
|
136
138
|
} from '~/components/atoms/wizard/lib/models/interfaces'
|
|
137
139
|
import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
|
|
138
|
-
import { getVlanId } from '~/components/common/wizards/network/add/lib/utils'
|
|
140
|
+
import { getVlanId } from '~/components/common/wizards/network/add/lib/utils/utils'
|
|
139
141
|
import Wizard from '~/components/atoms/wizard/lib/utils/utils'
|
|
140
142
|
import {
|
|
141
143
|
createZeroSchemeReadyCompleteFunc,
|
|
@@ -152,7 +154,7 @@ import {
|
|
|
152
154
|
addNetworkingZeroOrFirstSchemeDataFunc,
|
|
153
155
|
addNetworkingSecondOrThirdSchemeDataFunc,
|
|
154
156
|
addNetworkingFourthOrFifthSchemeDataFunc,
|
|
155
|
-
} from '~/components/common/wizards/network/add/lib/config'
|
|
157
|
+
} from '~/components/common/wizards/network/add/lib/config/config'
|
|
156
158
|
import {
|
|
157
159
|
checkTargetDeviceSync,
|
|
158
160
|
checkAdaptersSync,
|
|
@@ -310,7 +312,10 @@ let flagSwitch = ''
|
|
|
310
312
|
// Choosing Scheme
|
|
311
313
|
watch(
|
|
312
314
|
[connectionTypeLocal, targetDevice],
|
|
313
|
-
(
|
|
315
|
+
(
|
|
316
|
+
newValues: [string, UI_I_TargetDevice],
|
|
317
|
+
oldValues: [string, UI_I_TargetDevice]
|
|
318
|
+
) => {
|
|
314
319
|
const newCT = newValues[0] // -> newConnectionType
|
|
315
320
|
const oldCT = oldValues[0] // -> oldConnectionType
|
|
316
321
|
const newTD = newValues[1] // -> newTargetDevice
|
|
@@ -366,14 +371,20 @@ watch(
|
|
|
366
371
|
onGetTcpStacks()
|
|
367
372
|
}
|
|
368
373
|
if (newSelectedStep === 6 && flagSwitch !== targetDevice.value.switch) {
|
|
369
|
-
const nics = props.standardSwitchesInitial.find(
|
|
374
|
+
const nics: UI_I_AdapterStatus = props.standardSwitchesInitial.find(
|
|
370
375
|
(currentSwitch: UI_I_Switch) =>
|
|
371
376
|
currentSwitch.id === targetDevice.value.switch
|
|
372
377
|
).nics
|
|
378
|
+
|
|
379
|
+
const availableAdapters: UI_I_AvailableAdapters = getAvailableAdapters(
|
|
380
|
+
props.adapters,
|
|
381
|
+
nics
|
|
382
|
+
)
|
|
383
|
+
|
|
373
384
|
adapterStatus.value = {
|
|
374
|
-
active:
|
|
375
|
-
standby:
|
|
376
|
-
unused:
|
|
385
|
+
active: availableAdapters.activeAdapters || [],
|
|
386
|
+
standby: availableAdapters.standbyAdapters || [],
|
|
387
|
+
unused: availableAdapters.unusedAdapters || [],
|
|
377
388
|
}
|
|
378
389
|
coreAdapters.value = [
|
|
379
390
|
...adapterStatus.value.active,
|