bfg-common 1.5.554 → 1.5.555
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 +4 -20
- package/assets/localization/local_en.json +4 -20
- package/assets/localization/local_hy.json +4 -20
- package/assets/localization/local_kk.json +4 -20
- package/assets/localization/local_ru.json +4 -20
- package/assets/localization/local_zh.json +5 -21
- package/components/common/modals/confirmByInput/ConfirmByInput.vue +1 -9
- package/components/common/modals/confirmByInput/ConfirmByInputNew.vue +2 -7
- package/components/common/pages/backups/modals/createBackup/New.vue +2 -8
- package/components/common/pages/backups/modals/restore/Restore.vue +5 -9
- package/components/common/pages/backups/modals/restore/RestoreNew.vue +3 -13
- package/components/common/pages/backups/modals/restore/RestoreOld.vue +18 -6
- package/components/common/vm/actions/add/Add.vue +46 -119
- package/components/common/vm/actions/add/New.vue +16 -54
- package/components/common/vm/actions/add/Old.vue +16 -55
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +13 -78
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +7 -52
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +8 -52
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +62 -96
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareNew.vue +13 -24
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardwareOld.vue +14 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +139 -159
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuNew.vue +8 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuOld.vue +8 -13
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +62 -75
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +6 -17
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerOld.vue +6 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +17 -39
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +6 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/lib/config/options.ts +4 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +6 -93
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +8 -62
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +8 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +5 -69
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +12 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsOld.vue +12 -33
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +114 -132
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +41 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderOld.vue +44 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +8 -23
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +21 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +26 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +28 -34
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/Old.vue +24 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +8 -112
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapNew.vue → New.vue} +6 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/{KeymapOld.vue → Old.vue} +5 -5
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +6 -7
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +26 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +7 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsOld.vue +60 -86
- package/components/common/vm/actions/common/lib/models/interfaces.ts +57 -25
- package/components/common/vm/actions/editSettings/EditSettings.vue +10 -33
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +2 -30
- package/components/common/vm/actions/editSettings/new/New.vue +2 -30
- package/components/common/vm/actions/lib/models/interfaces.ts +4 -29
- package/components/common/vm/actions/lib/utils.ts +37 -32
- package/package.json +1 -3
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordNew.vue → New.vue} +0 -0
- /package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/{PasswordOld.vue → Old.vue} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="">
|
|
3
3
|
<atoms-stack-block
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
:has-children="false"
|
|
5
|
+
test-id="remote-console-keymap-stack-block"
|
|
6
6
|
>
|
|
7
7
|
<template #stackBlockKey>
|
|
8
8
|
{{ localization.common.keymap }}
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
<div class="select">
|
|
12
12
|
<select
|
|
13
13
|
id="keymap-select"
|
|
14
|
-
v-model="
|
|
14
|
+
v-model="model"
|
|
15
15
|
:disabled="props.disabled"
|
|
16
|
-
:data-value="
|
|
16
|
+
:data-value="model"
|
|
17
17
|
data-id="keymap-select"
|
|
18
18
|
>
|
|
19
19
|
<option
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
35
35
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
36
36
|
|
|
37
|
-
const
|
|
37
|
+
const model = defineModel<string>({ required: true })
|
|
38
38
|
|
|
39
39
|
const props = defineProps<{
|
|
40
40
|
disabled: boolean
|
|
@@ -26,7 +26,7 @@ import type { UI_I_DefaultForm } from '~/components/common/vm/actions/common/cus
|
|
|
26
26
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
27
27
|
import { generatePassword } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/lib/utils'
|
|
28
28
|
|
|
29
|
-
const
|
|
29
|
+
const model = defineModel<string>({ required: true })
|
|
30
30
|
|
|
31
31
|
const props = defineProps<{
|
|
32
32
|
disabled: boolean
|
|
@@ -43,7 +43,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
43
43
|
const validation = $validation.call({})
|
|
44
44
|
const defaultForm: UI_I_DefaultForm = {
|
|
45
45
|
password: {
|
|
46
|
-
value:
|
|
46
|
+
value: model.value,
|
|
47
47
|
validations: [
|
|
48
48
|
{
|
|
49
49
|
value: 'password',
|
|
@@ -61,7 +61,6 @@ setForm()
|
|
|
61
61
|
|
|
62
62
|
const showValidationErrors = (): void => {
|
|
63
63
|
const valid = validation.touch()
|
|
64
|
-
console.log(valid, 111)
|
|
65
64
|
passwordErrorText.value = !valid.isValid ? valid.errors.password[0] : ''
|
|
66
65
|
emits('valid', valid.isValid)
|
|
67
66
|
}
|
|
@@ -77,24 +76,24 @@ const setPasswordDisable = (): void => {
|
|
|
77
76
|
|
|
78
77
|
removeValidationErrors()
|
|
79
78
|
setForm()
|
|
80
|
-
|
|
79
|
+
model.value = ''
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
const passwordErrorText = ref<string>('')
|
|
84
83
|
|
|
85
84
|
const changePassword = (value: string): void => {
|
|
86
|
-
|
|
85
|
+
model.value = value
|
|
87
86
|
|
|
88
87
|
showValidationErrors()
|
|
89
88
|
}
|
|
90
89
|
|
|
91
|
-
const isEnabledPassword = ref<boolean>(!!
|
|
90
|
+
const isEnabledPassword = ref<boolean>(!!model.value)
|
|
92
91
|
|
|
93
92
|
const onGeneratePassword = (): void => {
|
|
94
93
|
const generatedPassword = generatePassword()
|
|
95
94
|
|
|
96
95
|
form.value.password.value = generatedPassword
|
|
97
|
-
|
|
96
|
+
model.value = generatedPassword
|
|
98
97
|
|
|
99
98
|
showValidationErrors()
|
|
100
99
|
}
|
|
@@ -1,60 +1,26 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<common-vm-actions-common-customize-hardware-vmoptions-tools-new
|
|
3
|
-
v-if="isNewView"
|
|
4
|
-
v-model:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
v-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
state: undefined,
|
|
28
|
-
}
|
|
29
|
-
)
|
|
30
|
-
const emits = defineEmits<{
|
|
31
|
-
(event: 'send-data', value: UI_I_SendDataTools): void
|
|
32
|
-
}>()
|
|
33
|
-
|
|
34
|
-
const toolsLocal = ref<boolean>(props.tools)
|
|
35
|
-
const balloonLocal = ref<boolean>(props.balloon)
|
|
36
|
-
|
|
37
|
-
const isDisabled = computed<boolean>(() => props.isEdit && props.state !== 1)
|
|
38
|
-
|
|
39
|
-
watch(
|
|
40
|
-
balloonLocal,
|
|
41
|
-
() => {
|
|
42
|
-
emits('send-data', {
|
|
43
|
-
enabled: toolsLocal.value,
|
|
44
|
-
synchronized_time: toolsLocal.value,
|
|
45
|
-
balloon: balloonLocal.value,
|
|
46
|
-
})
|
|
47
|
-
},
|
|
48
|
-
{ immediate: true }
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
const { $store }: any = useNuxtApp()
|
|
52
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
53
|
-
</script>
|
|
54
|
-
|
|
55
|
-
<style scoped lang="scss">
|
|
56
|
-
#tools-1,
|
|
57
|
-
#tools-2 {
|
|
58
|
-
margin: 0 4px 4px 0;
|
|
59
|
-
}
|
|
60
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<common-vm-actions-common-customize-hardware-vmoptions-tools-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
v-model:tools="model.enabled"
|
|
5
|
+
/>
|
|
6
|
+
<common-vm-actions-common-customize-hardware-vmoptions-tools-old
|
|
7
|
+
v-else
|
|
8
|
+
v-model:tools="model.enabled"
|
|
9
|
+
/>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup lang="ts">
|
|
13
|
+
import type { UI_I_CreateVmData } from '~/components/common/vm/actions/common/lib/models/interfaces'
|
|
14
|
+
|
|
15
|
+
const model = defineModel<UI_I_CreateVmData['options']['guest_tools']>({ required: true })
|
|
16
|
+
|
|
17
|
+
const { $store }: any = useNuxtApp()
|
|
18
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<style scoped lang="scss">
|
|
22
|
+
#tools-1,
|
|
23
|
+
#tools-2 {
|
|
24
|
+
margin: 0 4px 4px 0;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<!-- TODO 700-->
|
|
2
3
|
<ui-stack-block
|
|
4
|
+
v-show="false"
|
|
3
5
|
test-id="tools-stack-block"
|
|
4
6
|
has-children
|
|
5
7
|
is-toggle-on-stack-view-key
|
|
@@ -14,32 +16,16 @@
|
|
|
14
16
|
</div>
|
|
15
17
|
</template>
|
|
16
18
|
<template #stackChildren>
|
|
17
|
-
<!-- TODO 700-->
|
|
18
|
-
<!-- <ui-stack-block :has-children="false">-->
|
|
19
|
-
<!-- <template #stackBlockKey>-->
|
|
20
|
-
<!-- <span class="mt-2">{{ localization.common.toolsEnable }}</span>-->
|
|
21
|
-
<!-- </template>-->
|
|
22
|
-
<!-- <template #stackBlockContent>-->
|
|
23
|
-
<!-- <ui-checkbox-->
|
|
24
|
-
<!-- id="tools-2"-->
|
|
25
|
-
<!-- v-model="tools"-->
|
|
26
|
-
<!-- :label-text="localization.common.enable"-->
|
|
27
|
-
<!-- test-id="tools-2-checkbox"-->
|
|
28
|
-
<!-- size="md"-->
|
|
29
|
-
<!-- />-->
|
|
30
|
-
<!-- </template>-->
|
|
31
|
-
<!-- </ui-stack-block>-->
|
|
32
19
|
<ui-stack-block :has-children="false">
|
|
33
20
|
<template #stackBlockKey>
|
|
34
|
-
<span class="mt-2">{{ localization.common.
|
|
21
|
+
<span class="mt-2">{{ localization.common.toolsEnable }}</span>
|
|
35
22
|
</template>
|
|
36
23
|
<template #stackBlockContent>
|
|
37
24
|
<ui-checkbox
|
|
38
|
-
id="
|
|
39
|
-
v-model="
|
|
25
|
+
id="tools-2"
|
|
26
|
+
v-model="tools"
|
|
40
27
|
:label-text="localization.common.enable"
|
|
41
|
-
|
|
42
|
-
test-id="balloon-checkbox"
|
|
28
|
+
test-id="tools-2-checkbox"
|
|
43
29
|
size="md"
|
|
44
30
|
/>
|
|
45
31
|
</template>
|
|
@@ -51,12 +37,7 @@
|
|
|
51
37
|
<script setup lang="ts">
|
|
52
38
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
53
39
|
|
|
54
|
-
|
|
55
|
-
const balloon = defineModel<boolean>('balloon', { required: true })
|
|
56
|
-
|
|
57
|
-
const props = defineProps<{
|
|
58
|
-
disabled: boolean
|
|
59
|
-
}>()
|
|
40
|
+
const tools = defineModel<boolean>('tools', { required: true })
|
|
60
41
|
|
|
61
42
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
62
43
|
</script>
|
|
@@ -1,86 +1,60 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</atoms-stack-block>
|
|
62
|
-
</template>
|
|
63
|
-
</atoms-stack-block>
|
|
64
|
-
</div>
|
|
65
|
-
</template>
|
|
66
|
-
|
|
67
|
-
<script setup lang="ts">
|
|
68
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
69
|
-
|
|
70
|
-
// const tools = defineModel<boolean>('tools', { required: true })
|
|
71
|
-
const balloon = defineModel<boolean>('balloon', { required: true })
|
|
72
|
-
|
|
73
|
-
const props = defineProps<{
|
|
74
|
-
disabled: boolean
|
|
75
|
-
}>()
|
|
76
|
-
|
|
77
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
78
|
-
</script>
|
|
79
|
-
|
|
80
|
-
<style scoped lang="scss">
|
|
81
|
-
#tools-1,
|
|
82
|
-
#tools-2,
|
|
83
|
-
#balloon {
|
|
84
|
-
margin: 0 4px 4px 0;
|
|
85
|
-
}
|
|
86
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<!-- TODO 700-->
|
|
3
|
+
<div v-show="false" class="hardware-tools">
|
|
4
|
+
<atoms-stack-block test-id="tools-stack-block" has-children>
|
|
5
|
+
<template #stackBlockKey>
|
|
6
|
+
<div
|
|
7
|
+
id="vm-wizard-toggle-block-tools"
|
|
8
|
+
data-id="vm-wizard-toggle-block-tools"
|
|
9
|
+
class="flex-align-center"
|
|
10
|
+
>
|
|
11
|
+
<span>{{ localization.common.tools }}</span>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<template #stackChildren>
|
|
15
|
+
<atoms-stack-block
|
|
16
|
+
:has-children="false"
|
|
17
|
+
test-id="tools-stack-block-children"
|
|
18
|
+
>
|
|
19
|
+
<template #stackBlockKey>
|
|
20
|
+
{{ localization.common.toolsEnable }}
|
|
21
|
+
</template>
|
|
22
|
+
<template #stackBlockContent>
|
|
23
|
+
<div
|
|
24
|
+
:title="localization.common.inDevelopment"
|
|
25
|
+
class="cursor-not-allowed"
|
|
26
|
+
>
|
|
27
|
+
<input
|
|
28
|
+
id="tools-2"
|
|
29
|
+
v-model="tools"
|
|
30
|
+
disabled
|
|
31
|
+
data-id="tools-2-checkbox"
|
|
32
|
+
type="checkbox"
|
|
33
|
+
/>
|
|
34
|
+
<label
|
|
35
|
+
for="tools-2"
|
|
36
|
+
class="label-text-normal cursor-not-allowed"
|
|
37
|
+
>{{ localization.common.enable }}</label
|
|
38
|
+
>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
</atoms-stack-block>
|
|
42
|
+
</template>
|
|
43
|
+
</atoms-stack-block>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script setup lang="ts">
|
|
48
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
49
|
+
|
|
50
|
+
const tools = defineModel<boolean>('tools', { required: true })
|
|
51
|
+
|
|
52
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<style scoped lang="scss">
|
|
56
|
+
#tools-1,
|
|
57
|
+
#tools-2 {
|
|
58
|
+
margin: 0 4px 4px 0;
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -5,7 +5,13 @@ import type {
|
|
|
5
5
|
UI_I_SendDataNewPciDevice,
|
|
6
6
|
UI_I_SendDataVideoCard,
|
|
7
7
|
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
8
|
-
import type {
|
|
8
|
+
import type {
|
|
9
|
+
UI_I_SendDataBootOptions,
|
|
10
|
+
UI_I_SendDataRemoteConsoleOptions,
|
|
11
|
+
UI_I_SendDataRemoteConsoleOptionsSpice,
|
|
12
|
+
UI_I_SendDataTools,
|
|
13
|
+
UI_I_SendDataVmoptions,
|
|
14
|
+
} from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
|
|
9
15
|
import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
|
|
10
16
|
import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
|
|
11
17
|
|
|
@@ -47,25 +53,6 @@ export interface UI_I_ErrorMessage {
|
|
|
47
53
|
descriptions: string[]
|
|
48
54
|
}
|
|
49
55
|
|
|
50
|
-
interface UI_I_CreateVmDataStorage {
|
|
51
|
-
id: string
|
|
52
|
-
}
|
|
53
|
-
interface UI_I_CreateVmDataCpu {
|
|
54
|
-
vcpus: number
|
|
55
|
-
max_vcpus: number
|
|
56
|
-
core_per_socket: number
|
|
57
|
-
model: string
|
|
58
|
-
reservation_mhz: number
|
|
59
|
-
limit_mhz: number
|
|
60
|
-
shares: number
|
|
61
|
-
hotplug: boolean
|
|
62
|
-
}
|
|
63
|
-
interface UI_I_CreateVmDataMemory {
|
|
64
|
-
size_mb: number
|
|
65
|
-
hotplug: boolean
|
|
66
|
-
reservation_mb: number
|
|
67
|
-
limit_mb: number
|
|
68
|
-
}
|
|
69
56
|
export interface UI_I_CreateVmDataUsbController {
|
|
70
57
|
type: string
|
|
71
58
|
}
|
|
@@ -148,10 +135,55 @@ export interface UI_I_CreateVmData {
|
|
|
148
135
|
)[]
|
|
149
136
|
network_devices: UI_I_SendDataNewNetwork[]
|
|
150
137
|
passthrough_pci_devices: UI_I_SendDataNewPciDevice[]
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
memory: UI_I_CreateVmDataMemory
|
|
155
|
-
usb_controllers: UI_I_CreateVmDataUsbController[]
|
|
138
|
+
usb_controllers: {
|
|
139
|
+
type: string
|
|
140
|
+
}[]
|
|
156
141
|
input_devices: UI_I_CreateVmDataInputDevices[]
|
|
142
|
+
cpu: {
|
|
143
|
+
vcpus: number
|
|
144
|
+
max_vcpus: number
|
|
145
|
+
core_per_socket: number
|
|
146
|
+
model: string
|
|
147
|
+
reservation_mhz: number
|
|
148
|
+
limit_mhz: number
|
|
149
|
+
shares: number
|
|
150
|
+
hotplug: boolean
|
|
151
|
+
}
|
|
152
|
+
memory: {
|
|
153
|
+
size_mb: number
|
|
154
|
+
hotplug: boolean
|
|
155
|
+
reservation_mb: number
|
|
156
|
+
limit_mb: number
|
|
157
|
+
}
|
|
158
|
+
storage: {
|
|
159
|
+
id: string
|
|
160
|
+
} | null
|
|
161
|
+
options: {
|
|
162
|
+
remote_console: {
|
|
163
|
+
type: string
|
|
164
|
+
port: number
|
|
165
|
+
keymap: string
|
|
166
|
+
password: string
|
|
167
|
+
guest_os_lock: boolean
|
|
168
|
+
limit_sessions: number
|
|
169
|
+
spice: {
|
|
170
|
+
img_compression: string
|
|
171
|
+
jpeg_compression: string
|
|
172
|
+
zlib_glz_compression: string
|
|
173
|
+
streaming_mode: string
|
|
174
|
+
playback_compression: boolean
|
|
175
|
+
file_transfer: boolean
|
|
176
|
+
clipboard: boolean
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
guest_tools: {
|
|
180
|
+
enabled: boolean
|
|
181
|
+
synchronized_time: boolean
|
|
182
|
+
}
|
|
183
|
+
boot_options: {
|
|
184
|
+
firmware: string
|
|
185
|
+
boot_delay_ms: number
|
|
186
|
+
boot_menu: boolean
|
|
187
|
+
}
|
|
188
|
+
}
|
|
157
189
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<common-vm-actions-edit-settings-new
|
|
3
3
|
v-if="isNewView"
|
|
4
|
-
v-model:vm-name="vmName"
|
|
5
4
|
v-model:vm-settings="vmSettingsLocal"
|
|
6
5
|
:nodes="props.nodes"
|
|
7
6
|
:files="props.files"
|
|
@@ -13,9 +12,6 @@
|
|
|
13
12
|
:selected-nav-item="selectedNavItem"
|
|
14
13
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
15
14
|
:error-validation-fields="props.errorValidationFields"
|
|
16
|
-
:virtual-hardware-networks="virtualHardwareNetworksLocal"
|
|
17
|
-
:virtual-hardware-hard-disks="virtualHardwareHardDisksLocal"
|
|
18
|
-
:virtual-hardware-cd-dvd-drives="virtualHardwareCdDvdDrivesLocal"
|
|
19
15
|
:state="props.state"
|
|
20
16
|
:vm-name-old="props.vmSettings?.name"
|
|
21
17
|
:passthrough-devices="props.passthroughDevices"
|
|
@@ -25,19 +21,15 @@
|
|
|
25
21
|
:is-vmt="props.isVmt"
|
|
26
22
|
@hide="emits('hide')"
|
|
27
23
|
@validate="validateSendData"
|
|
28
|
-
@update-vm="emits('update-vm')"
|
|
29
24
|
@get-storage="emits('get-storage', $event)"
|
|
30
25
|
@get-pci-devices="emits('get-pci-devices')"
|
|
31
|
-
@change-boot-order="onChangeBootOrder"
|
|
32
26
|
@get-networks-table="emits('get-networks-table', $event)"
|
|
33
27
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
34
28
|
@show-datastore-child="emits('show-datastore-child', $event)"
|
|
35
29
|
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
36
|
-
@change-customize-hardware="onChangeCustomizeHardware"
|
|
37
30
|
/>
|
|
38
31
|
<common-vm-actions-edit-settings-old
|
|
39
32
|
v-else
|
|
40
|
-
v-model:vm-name="vmName"
|
|
41
33
|
v-model:vm-settings="vmSettingsLocal"
|
|
42
34
|
:nodes="props.nodes"
|
|
43
35
|
:files="props.files"
|
|
@@ -49,9 +41,6 @@
|
|
|
49
41
|
:selected-nav-item="selectedNavItem"
|
|
50
42
|
:vm-cpu-help-text-second="props.vmCpuHelpTextSecond"
|
|
51
43
|
:error-validation-fields="props.errorValidationFields"
|
|
52
|
-
:virtual-hardware-networks="virtualHardwareNetworksLocal"
|
|
53
|
-
:virtual-hardware-hard-disks="virtualHardwareHardDisksLocal"
|
|
54
|
-
:virtual-hardware-cd-dvd-drives="virtualHardwareCdDvdDrivesLocal"
|
|
55
44
|
:state="props.state"
|
|
56
45
|
:vm-name-old="props.vmSettings?.name"
|
|
57
46
|
:passthrough-devices="props.passthroughDevices"
|
|
@@ -61,15 +50,12 @@
|
|
|
61
50
|
:is-vmt="props.isVmt"
|
|
62
51
|
@hide="emits('hide')"
|
|
63
52
|
@validate="validateSendData"
|
|
64
|
-
@update-vm="emits('update-vm')"
|
|
65
53
|
@get-storage="emits('get-storage', $event)"
|
|
66
54
|
@get-pci-devices="emits('get-pci-devices')"
|
|
67
|
-
@change-boot-order="onChangeBootOrder"
|
|
68
55
|
@get-networks-table="emits('get-networks-table', $event)"
|
|
69
56
|
@get-folders-or-files="emits('get-folders-or-files', $event)"
|
|
70
57
|
@show-datastore-child="emits('show-datastore-child', $event)"
|
|
71
58
|
@get-active-device-child="emits('get-active-device-child', $event)"
|
|
72
|
-
@change-customize-hardware="onChangeCustomizeHardware"
|
|
73
59
|
/>
|
|
74
60
|
</template>
|
|
75
61
|
|
|
@@ -181,27 +167,18 @@ const virtualHardwareCdDvdDrives = ref<UI_I_SendDataNewCdDvdDrive[] | null>(
|
|
|
181
167
|
null
|
|
182
168
|
)
|
|
183
169
|
const virtualHardwareNetworks = ref<UI_I_SendDataNewNetwork[] | null>(null)
|
|
184
|
-
const onChangeBootOrder = (data: UI_T_ChangeBootOrder): void => {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
170
|
+
// const onChangeBootOrder = (data: UI_T_ChangeBootOrder): void => {
|
|
171
|
+
// virtualHardwareHardDisks.value = data[0]
|
|
172
|
+
// virtualHardwareCdDvdDrives.value = data[1]
|
|
173
|
+
// virtualHardwareNetworks.value = data[2]
|
|
174
|
+
// }
|
|
189
175
|
|
|
190
176
|
const customizeHardware = ref<UI_I_SendDataCustomizeHardware | null>(null)
|
|
191
|
-
const onChangeCustomizeHardware = (
|
|
192
|
-
|
|
193
|
-
): void => {
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
const virtualHardwareHardDisksLocal = computed<
|
|
197
|
-
UI_I_SendDataNewHardDisk[] | null
|
|
198
|
-
>(() => customizeHardware.value?.virtualHardware?.hardDisks || null)
|
|
199
|
-
const virtualHardwareNetworksLocal = computed<UI_I_SendDataNewNetwork[] | null>(
|
|
200
|
-
() => customizeHardware.value?.virtualHardware?.networks || null
|
|
201
|
-
)
|
|
202
|
-
const virtualHardwareCdDvdDrivesLocal = computed<
|
|
203
|
-
UI_I_SendDataNewCdDvdDrive[] | null
|
|
204
|
-
>(() => customizeHardware.value?.virtualHardware?.cdDvdDrives || null)
|
|
177
|
+
// const onChangeCustomizeHardware = (
|
|
178
|
+
// data: UI_I_SendDataCustomizeHardware
|
|
179
|
+
// ): void => {
|
|
180
|
+
// customizeHardware.value = data
|
|
181
|
+
// }
|
|
205
182
|
|
|
206
183
|
const virtualHardwareCpu = computed<UI_I_SendDataCpu | null>(
|
|
207
184
|
() => customizeHardware.value?.virtualHardware?.cpu || null
|
|
@@ -17,23 +17,15 @@
|
|
|
17
17
|
/>
|
|
18
18
|
<div v-if="vmSettings" class="vm-context">
|
|
19
19
|
<common-vm-actions-common-customize-hardware
|
|
20
|
-
v-model
|
|
21
|
-
v-model:guest-machine-type="vmSettings.guestMachineType"
|
|
22
|
-
v-model:guest-os-family="vmSettings.guestOsFamily"
|
|
23
|
-
v-model:guest-os-version="vmSettings.guestOsVersion"
|
|
20
|
+
v-model="vmSettings"
|
|
24
21
|
:project="props.project"
|
|
25
22
|
:storage="vmSettings.storage"
|
|
26
|
-
:hard-disks-for-boot-options="props.virtualHardwareHardDisks"
|
|
27
|
-
:cd-dvd-drives-for-boot-options="props.virtualHardwareCdDvdDrives"
|
|
28
|
-
:networks-for-boot-options="props.virtualHardwareNetworks"
|
|
29
23
|
:cd-dvd-drives="vmSettings.cdDvdDrives"
|
|
30
24
|
:hard-disks="vmSettings.hardDisks"
|
|
31
25
|
:networks="vmSettings.networks"
|
|
32
26
|
:max-cpus="vmSettings.maxCpus"
|
|
33
27
|
:max-memory="vmSettings.maxMemory"
|
|
34
28
|
:cpu-models="vmSettings.cpuModels"
|
|
35
|
-
:cpu="vmSettings.cpu"
|
|
36
|
-
:memory="vmSettings.memory"
|
|
37
29
|
:video-card="vmSettings.videoCard"
|
|
38
30
|
:usb-controller="vmSettings.usbController"
|
|
39
31
|
:pci-devices="vmSettings.pciDevices"
|
|
@@ -60,8 +52,6 @@
|
|
|
60
52
|
@show-datastore-child="emits('show-datastore-child', $event)"
|
|
61
53
|
@get-networks-table="emits('get-networks-table', $event)"
|
|
62
54
|
@get-pci-devices="emits('get-pci-devices')"
|
|
63
|
-
@change-boot-order="emits('change-boot-order', $event)"
|
|
64
|
-
@send-data="emits('change-customize-hardware', $event)"
|
|
65
55
|
/>
|
|
66
56
|
</div>
|
|
67
57
|
</template>
|
|
@@ -78,12 +68,6 @@ import type {
|
|
|
78
68
|
UI_I_VmSettings,
|
|
79
69
|
} from '~/lib/models/store/vm/interfaces'
|
|
80
70
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
81
|
-
import type { UI_I_SendDataCustomizeHardware } from '~/components/common/vm/actions/common/customizeHardware/lib/models/interfaces'
|
|
82
|
-
import type {
|
|
83
|
-
UI_I_SendDataNewCdDvdDrive,
|
|
84
|
-
UI_I_SendDataNewHardDisk,
|
|
85
|
-
UI_I_SendDataNewNetwork,
|
|
86
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
87
71
|
import type { UI_T_SelectedNavItem } from '~/components/common/vm/actions/common/lib/models/types'
|
|
88
72
|
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
89
73
|
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
|
@@ -91,9 +75,6 @@ import type {
|
|
|
91
75
|
UI_I_DatastoreTableItem,
|
|
92
76
|
UI_I_FolderOrFileTreePayload,
|
|
93
77
|
} from '~/lib/models/store/storage/interfaces'
|
|
94
|
-
import type { UI_T_ChangeBootOrder } from '~/components/common/vm/actions/lib/models/types'
|
|
95
|
-
|
|
96
|
-
const vmName = defineModel<string>('vmName', { required: true })
|
|
97
78
|
|
|
98
79
|
const vmSettings = defineModel<UI_I_VmSettings | null>('vmSettings', {
|
|
99
80
|
required: true,
|
|
@@ -110,10 +91,7 @@ const props = withDefaults(
|
|
|
110
91
|
networksTable: UI_I_NetworkTableItem[]
|
|
111
92
|
selectedNavItem: UI_T_SelectedNavItem
|
|
112
93
|
vmCpuHelpTextSecond: string
|
|
113
|
-
errorValidationFields: UI_I_ErrorValidationField
|
|
114
|
-
virtualHardwareNetworks: UI_I_SendDataNewNetwork[] | null
|
|
115
|
-
virtualHardwareHardDisks: UI_I_SendDataNewHardDisk[] | null
|
|
116
|
-
virtualHardwareCdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
|
|
94
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
117
95
|
state?: string | number
|
|
118
96
|
vmNameOld?: string
|
|
119
97
|
passthroughDevices?: UI_I_PciDevice[]
|
|
@@ -136,18 +114,12 @@ const props = withDefaults(
|
|
|
136
114
|
const emits = defineEmits<{
|
|
137
115
|
(event: 'hide'): void
|
|
138
116
|
(event: 'validate'): void
|
|
139
|
-
(event: 'update-vm'): void
|
|
140
117
|
(event: 'get-storage', value: UI_I_TablePayload): void
|
|
141
118
|
(event: 'get-pci-devices'): void
|
|
142
|
-
(event: 'change-boot-order', value: UI_T_ChangeBootOrder): void
|
|
143
119
|
(event: 'get-networks-table', value: UI_I_TablePayload): void
|
|
144
120
|
(event: 'get-folders-or-files', value: UI_I_FolderOrFileTreePayload): void
|
|
145
121
|
(event: 'show-datastore-child', value: UI_I_FileTreeNode): void
|
|
146
122
|
(event: 'get-active-device-child', value: UI_I_FileTreeNode): void
|
|
147
|
-
(
|
|
148
|
-
event: 'change-customize-hardware',
|
|
149
|
-
value: UI_I_SendDataCustomizeHardware
|
|
150
|
-
): void
|
|
151
123
|
}>()
|
|
152
124
|
|
|
153
125
|
const localization = computed<UI_I_Localization>(() => useLocal())
|