bfg-common 1.4.397 → 1.4.399
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/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +1 -1
- package/components/common/vm/actions/editSettings/EditSettingsNew.vue +1 -1
- package/package.json +1 -1
- package/components/common/vm/actions/common/_customizeHardware/CustomizeHardware.vue +0 -274
- package/components/common/vm/actions/common/_customizeHardware/lib/config/navItems.ts +0 -21
- package/components/common/vm/actions/common/_customizeHardware/lib/models/interfaces.ts +0 -7
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/VirtualHardware.vue +0 -702
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/browseView/BrowseView.vue +0 -203
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/browseView/lib/models/interfaces.ts +0 -8
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/bus/Bus.vue +0 -156
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/bus/lib/config/options.ts +0 -20
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/CdDvdDrive.vue +0 -270
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/config/fileTypes.ts +0 -9
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/config/options.ts +0 -11
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/lib/models/types.ts +0 -1
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +0 -57
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +0 -110
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Cpu.vue +0 -403
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CpuHotPlug.vue +0 -56
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/CpuModel.vue +0 -225
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Hv.vue +0 -99
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Iommu.vue +0 -55
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/MaxCpu.vue +0 -106
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Pc.vue +0 -55
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/Sa.vue +0 -106
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/lib/config/cpuOptions.ts +0 -21
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/shares/Shares.vue +0 -160
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +0 -28
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/cpu/tooltip/Tooltip.vue +0 -59
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/config/binaryOptions.ts +0 -12
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/config/dropdownItems.ts +0 -66
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/models/interfaces.ts +0 -118
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/lib/models/types.ts +0 -4
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/limit/Limit.vue +0 -236
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/limit/lib/config/options.ts +0 -28
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/Memory.vue +0 -329
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/MemoryHotPlug.vue +0 -54
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/memory/lib/config/memoryOptions.ts +0 -35
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/DiskFile.vue +0 -24
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/MaximumSize.vue +0 -27
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +0 -462
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +0 -81
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/cache/lib/config/options.ts +0 -7
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +0 -153
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/limitIops/lib/config/options.ts +0 -28
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/Location.vue +0 -172
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +0 -52
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/StorageModalNew.vue +0 -175
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/lib/config/table.ts +0 -167
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/mode/Mode.vue +0 -88
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/mode/lib/config/options.ts +0 -18
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/provisioning/Provisioning.vue +0 -88
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/provisioning/lib/config/options.ts +0 -15
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/sharing/Sharing.vue +0 -86
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newHardDisk/sharing/lib/config/options.ts +0 -12
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/Location.vue +0 -145
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +0 -305
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/adapterType/AdapterType.vue +0 -87
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/adapterType/lib/config/options.ts +0 -9
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +0 -148
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newNetwork/macAddress/lib/config/options.ts +0 -11
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +0 -168
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIo.vue +0 -48
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +0 -49
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/lib/config/options.ts +0 -10
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/lib/config/options.ts +0 -7
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/note/Note.vue +0 -27
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +0 -42
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelection.vue +0 -57
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +0 -82
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/newUsbController/lib/config/options.ts +0 -6
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/other/InputDevices.vue +0 -21
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/other/Other.vue +0 -32
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/reservation/Reservation.vue +0 -237
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/reservation/lib/config/options.ts +0 -33
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/Graphics.vue +0 -50
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/TotalVideoMemory.vue +0 -121
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/VideoCard.vue +0 -182
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/lib/config/options.ts +0 -11
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/model/Model.vue +0 -59
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/model/lib/config/options.ts +0 -10
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +0 -83
- package/components/common/vm/actions/common/_customizeHardware/virtualHardware/videoCard/numberDisplays/lib/config/options.ts +0 -14
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/Vmoptions.vue +0 -181
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/BootOptions.vue +0 -114
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Menu.vue +0 -50
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Secure.vue +0 -50
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/delay/Delay.vue +0 -54
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/delay/lib/config/config.ts +0 -14
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +0 -84
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/firmware/lib/config/config.ts +0 -11
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/order/Order.vue +0 -201
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces.ts +0 -9
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +0 -192
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/lib/models/interfaces.ts +0 -34
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +0 -52
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/FileTransfer.vue +0 -52
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/FolderSharing.vue +0 -51
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/PlaybackCompression.vue +0 -52
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/PowerControl.vue +0 -50
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +0 -254
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +0 -85
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/lib/config/config.ts +0 -14
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +0 -85
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/lib/config/config.ts +0 -12
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +0 -56
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/keymap/lib/config/config.ts +0 -6
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/MouseMode.vue +0 -57
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/lib/config/config.ts +0 -11
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +0 -142
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/lib/models/interfaces.ts +0 -5
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/password/lib/utils.ts +0 -12
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/SharePolicy.vue +0 -56
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/lib/config/config.ts +0 -11
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +0 -85
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/lib/config/config.ts +0 -12
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +0 -85
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/type/lib/config/config.ts +0 -7
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +0 -57
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/lib/config/config.ts +0 -14
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +0 -85
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/lib/config/config.ts +0 -12
- package/components/common/vm/actions/common/_customizeHardware/vmoptions/tools/Tools.vue +0 -72
package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Menu.vue
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.bootMenu }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="flex-align-center">
|
|
9
|
-
<input
|
|
10
|
-
id="boot-menu"
|
|
11
|
-
v-model="bootMenuLocal"
|
|
12
|
-
data-id="boot-menu-checkbox"
|
|
13
|
-
type="checkbox"
|
|
14
|
-
/>
|
|
15
|
-
<label for="boot-menu" class="label-text-normal">{{
|
|
16
|
-
localization.common.enable
|
|
17
|
-
}}</label>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
</atoms-stack-block>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
26
|
-
|
|
27
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
28
|
-
|
|
29
|
-
const props = defineProps<{
|
|
30
|
-
bootMenu: boolean
|
|
31
|
-
}>()
|
|
32
|
-
const emits = defineEmits<{
|
|
33
|
-
(event: 'update:boot-menu', value: boolean): void
|
|
34
|
-
}>()
|
|
35
|
-
|
|
36
|
-
const bootMenuLocal = computed<boolean>({
|
|
37
|
-
get() {
|
|
38
|
-
return props.bootMenu
|
|
39
|
-
},
|
|
40
|
-
set(newValue) {
|
|
41
|
-
emits('update:boot-menu', newValue)
|
|
42
|
-
},
|
|
43
|
-
})
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<style scoped>
|
|
47
|
-
#boot-menu {
|
|
48
|
-
margin: 0 4px 4px 0;
|
|
49
|
-
}
|
|
50
|
-
</style>
|
package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/Secure.vue
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.secureBoot }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="flex-align-center">
|
|
9
|
-
<input
|
|
10
|
-
id="secure-boot"
|
|
11
|
-
v-model="secureBootLocal"
|
|
12
|
-
data-id="secure-boot-checkbox"
|
|
13
|
-
type="checkbox"
|
|
14
|
-
/>
|
|
15
|
-
<label for="secure-boot" class="label-text-normal">{{
|
|
16
|
-
localization.common.enable
|
|
17
|
-
}}</label>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
</atoms-stack-block>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
26
|
-
|
|
27
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
28
|
-
|
|
29
|
-
const props = defineProps<{
|
|
30
|
-
secureBoot: boolean
|
|
31
|
-
}>()
|
|
32
|
-
const emits = defineEmits<{
|
|
33
|
-
(event: 'update:secure-boot', value: boolean): void
|
|
34
|
-
}>()
|
|
35
|
-
|
|
36
|
-
const secureBootLocal = computed<boolean>({
|
|
37
|
-
get() {
|
|
38
|
-
return props.secureBoot
|
|
39
|
-
},
|
|
40
|
-
set(newValue) {
|
|
41
|
-
emits('update:secure-boot', newValue)
|
|
42
|
-
},
|
|
43
|
-
})
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<style scoped>
|
|
47
|
-
#secure-boot {
|
|
48
|
-
margin: 0 4px 4px 0;
|
|
49
|
-
}
|
|
50
|
-
</style>
|
package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/delay/Delay.vue
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.bootDelay }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="select">
|
|
9
|
-
<select
|
|
10
|
-
id="boot-delay"
|
|
11
|
-
v-model="bootDelayLocal"
|
|
12
|
-
data-id="boot-delay-select"
|
|
13
|
-
>
|
|
14
|
-
<option
|
|
15
|
-
v-for="(item, key) in bootDelayOptions"
|
|
16
|
-
:key="key"
|
|
17
|
-
:value="item.value"
|
|
18
|
-
>
|
|
19
|
-
{{ item.text }}
|
|
20
|
-
</option>
|
|
21
|
-
</select>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
</atoms-stack-block>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<script setup lang="ts">
|
|
29
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
30
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
31
|
-
import { bootDelayOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/lib/config/config'
|
|
32
|
-
|
|
33
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
34
|
-
|
|
35
|
-
const props = defineProps<{
|
|
36
|
-
bootDelay: number
|
|
37
|
-
}>()
|
|
38
|
-
const emits = defineEmits<{
|
|
39
|
-
(event: 'update:boot-delay', value: number): void
|
|
40
|
-
}>()
|
|
41
|
-
|
|
42
|
-
const bootDelayOptions = ref<UI_I_OptionItem[]>(bootDelayOptionsConfig)
|
|
43
|
-
|
|
44
|
-
const bootDelayLocal = computed<number>({
|
|
45
|
-
get() {
|
|
46
|
-
return props.bootDelay
|
|
47
|
-
},
|
|
48
|
-
set(newValue) {
|
|
49
|
-
emits('update:boot-delay', newValue)
|
|
50
|
-
},
|
|
51
|
-
})
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<style scoped></style>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const bootDelayOptionsConfig: UI_I_OptionItem[] = [
|
|
4
|
-
{ text: '0', value: 0 },
|
|
5
|
-
{ text: '1', value: 1_000 },
|
|
6
|
-
{ text: '2', value: 2_000 },
|
|
7
|
-
{ text: '3', value: 3_000 },
|
|
8
|
-
{ text: '4', value: 4_000 },
|
|
9
|
-
{ text: '5', value: 5_000 },
|
|
10
|
-
{ text: '6', value: 6_000 },
|
|
11
|
-
{ text: '7', value: 7_000 },
|
|
12
|
-
{ text: '8', value: 8_000 },
|
|
13
|
-
{ text: '9', value: 9_000 },
|
|
14
|
-
]
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.firmware }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<atoms-tooltip-error
|
|
9
|
-
:has-error="!!apiError"
|
|
10
|
-
selector="#vm-wizard-firmware-field"
|
|
11
|
-
@remove="onRemoveValidationError"
|
|
12
|
-
>
|
|
13
|
-
<template #elem>
|
|
14
|
-
<div class="select">
|
|
15
|
-
<select
|
|
16
|
-
id="vm-wizard-firmware-field"
|
|
17
|
-
v-model="firmwareLocal"
|
|
18
|
-
data-id="vm-wizard-firmware-select"
|
|
19
|
-
>
|
|
20
|
-
<option
|
|
21
|
-
v-for="(item, key) in firmwareOptions"
|
|
22
|
-
:key="key"
|
|
23
|
-
:value="item.value"
|
|
24
|
-
>
|
|
25
|
-
{{ item.text }}
|
|
26
|
-
</option>
|
|
27
|
-
</select>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
<template #content>
|
|
31
|
-
{{ apiError }}
|
|
32
|
-
</template>
|
|
33
|
-
</atoms-tooltip-error>
|
|
34
|
-
</template>
|
|
35
|
-
</atoms-stack-block>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<script setup lang="ts">
|
|
40
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
41
|
-
import type { UI_I_ErrorValidationField } from '~/lib/models/store/interfaces'
|
|
42
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
43
|
-
import { firmwareOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/lib/config/config'
|
|
44
|
-
|
|
45
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
46
|
-
|
|
47
|
-
const props = defineProps<{
|
|
48
|
-
firmware: string
|
|
49
|
-
errorValidationFields: UI_I_ErrorValidationField[]
|
|
50
|
-
isEdit: boolean
|
|
51
|
-
}>()
|
|
52
|
-
const emits = defineEmits<{
|
|
53
|
-
(event: 'update:firmware', value: string): void
|
|
54
|
-
(event: 'remove-error-by-title', value: string): void
|
|
55
|
-
}>()
|
|
56
|
-
|
|
57
|
-
const firmwareOptions = ref<UI_I_OptionItem[]>(
|
|
58
|
-
firmwareOptionsFunc(localization.value)
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
const firmwareLocal = computed<string>({
|
|
62
|
-
get() {
|
|
63
|
-
return props.firmware
|
|
64
|
-
},
|
|
65
|
-
set(newValue) {
|
|
66
|
-
emits('update:firmware', newValue)
|
|
67
|
-
},
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
const typeError = 'options.boot_options.firmware'
|
|
71
|
-
|
|
72
|
-
const apiError = computed<string>(() => {
|
|
73
|
-
return (
|
|
74
|
-
props.errorValidationFields?.find((message) => message.field === typeError)
|
|
75
|
-
?.error_message || ''
|
|
76
|
-
)
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
const onRemoveValidationError = (): void => {
|
|
80
|
-
emits('remove-error-by-title', typeError)
|
|
81
|
-
}
|
|
82
|
-
</script>
|
|
83
|
-
|
|
84
|
-
<style scoped></style>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
-
|
|
4
|
-
export const firmwareOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
): UI_I_OptionItem[] => {
|
|
7
|
-
return [
|
|
8
|
-
{ text: `EFI (${localization.common.recommended})`, value: 'efi' },
|
|
9
|
-
{ text: 'BIOS', value: 'bios' },
|
|
10
|
-
]
|
|
11
|
-
}
|
package/components/common/vm/actions/common/_customizeHardware/vmoptions/bootOptions/order/Order.vue
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="boot-orders">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.bootOrder }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<atoms-list-drag-drop-list
|
|
9
|
-
:items="bootList"
|
|
10
|
-
grab-item-key="text"
|
|
11
|
-
@drop="onChangeOrder"
|
|
12
|
-
>
|
|
13
|
-
<template
|
|
14
|
-
v-for="(item, index) in bootList"
|
|
15
|
-
:key="index"
|
|
16
|
-
#[`leftSide${index}`]
|
|
17
|
-
>
|
|
18
|
-
<input
|
|
19
|
-
:id="`boot-order-${index}`"
|
|
20
|
-
v-model="item.isChecked"
|
|
21
|
-
:data-id="item.testId"
|
|
22
|
-
type="checkbox"
|
|
23
|
-
/>
|
|
24
|
-
</template>
|
|
25
|
-
<template
|
|
26
|
-
v-for="(item, index) in bootList"
|
|
27
|
-
:key="bootList.length + index"
|
|
28
|
-
#[`rightSide${index}`]
|
|
29
|
-
>
|
|
30
|
-
<div :class="['device-icon', item.iconClassName]" />
|
|
31
|
-
<span>{{ item.text }}</span>
|
|
32
|
-
</template>
|
|
33
|
-
</atoms-list-drag-drop-list>
|
|
34
|
-
</template>
|
|
35
|
-
</atoms-stack-block>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<script setup lang="ts">
|
|
40
|
-
import type { UI_I_BootItem } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/lib/models/interfaces'
|
|
41
|
-
import type {
|
|
42
|
-
UI_I_SendDataNewCdDvdDrive,
|
|
43
|
-
UI_I_SendDataNewHardDisk,
|
|
44
|
-
UI_I_SendDataNewNetwork,
|
|
45
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/models/interfaces'
|
|
46
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
47
|
-
import type { UI_I_DropEvent } from '~/components/atoms/list/dragDropList/lib/config/events'
|
|
48
|
-
|
|
49
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
50
|
-
|
|
51
|
-
const props = defineProps<{
|
|
52
|
-
hardDisks: UI_I_SendDataNewHardDisk[] | null
|
|
53
|
-
cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] | null
|
|
54
|
-
networks: UI_I_SendDataNewNetwork[] | null
|
|
55
|
-
}>()
|
|
56
|
-
const emits = defineEmits<{
|
|
57
|
-
(
|
|
58
|
-
event: 'change',
|
|
59
|
-
value: [
|
|
60
|
-
UI_I_SendDataNewHardDisk[],
|
|
61
|
-
UI_I_SendDataNewCdDvdDrive[],
|
|
62
|
-
UI_I_SendDataNewNetwork[]
|
|
63
|
-
]
|
|
64
|
-
): void
|
|
65
|
-
}>()
|
|
66
|
-
|
|
67
|
-
const bootList = ref<UI_I_BootItem[]>([])
|
|
68
|
-
|
|
69
|
-
const hardDisksAndNetworks = computed<
|
|
70
|
-
[
|
|
71
|
-
UI_I_SendDataNewHardDisk[] | null,
|
|
72
|
-
UI_I_SendDataNewCdDvdDrive[] | null,
|
|
73
|
-
UI_I_SendDataNewNetwork[] | null
|
|
74
|
-
]
|
|
75
|
-
>(() => [props.hardDisks, props.cdDvdDrives, props.networks])
|
|
76
|
-
watch(
|
|
77
|
-
hardDisksAndNetworks,
|
|
78
|
-
(
|
|
79
|
-
newValue: [
|
|
80
|
-
UI_I_SendDataNewHardDisk[] | null,
|
|
81
|
-
UI_I_SendDataNewCdDvdDrive[] | null,
|
|
82
|
-
UI_I_SendDataNewNetwork[] | null
|
|
83
|
-
]
|
|
84
|
-
) => {
|
|
85
|
-
const hardDisks: UI_I_BootItem[] =
|
|
86
|
-
newValue[0]?.map((item, index) => {
|
|
87
|
-
const order = item.boot_order || 0
|
|
88
|
-
return {
|
|
89
|
-
order,
|
|
90
|
-
isChecked: !!order,
|
|
91
|
-
text: `disk${index}`,
|
|
92
|
-
iconClassName: 'icon-disk',
|
|
93
|
-
type: 'disk',
|
|
94
|
-
name: item.source + index,
|
|
95
|
-
testId: `select-disk-value-${index + 1}`,
|
|
96
|
-
}
|
|
97
|
-
}) || []
|
|
98
|
-
const cdDvdDrives: UI_I_BootItem[] =
|
|
99
|
-
newValue[1]?.map((item, index) => {
|
|
100
|
-
const order = item.boot_order || 0
|
|
101
|
-
return {
|
|
102
|
-
order,
|
|
103
|
-
isChecked: !!order,
|
|
104
|
-
text: `cdrom${index}`,
|
|
105
|
-
iconClassName: 'icon-disk',
|
|
106
|
-
type: 'cdDvd',
|
|
107
|
-
name: item.source + index,
|
|
108
|
-
testId: `select-cd-dvd-value-${index + 1}`,
|
|
109
|
-
}
|
|
110
|
-
}) || []
|
|
111
|
-
const networks: UI_I_BootItem[] =
|
|
112
|
-
newValue[2]?.map((item, index) => {
|
|
113
|
-
const order = item.boot_order || 0
|
|
114
|
-
return {
|
|
115
|
-
order,
|
|
116
|
-
isChecked: !!order,
|
|
117
|
-
text: item.mac || 'undefined',
|
|
118
|
-
iconClassName: 'vsphere-icon-network',
|
|
119
|
-
type: 'nic',
|
|
120
|
-
name: item.network + index,
|
|
121
|
-
testId: `select-nic-value-${index + 1}`,
|
|
122
|
-
}
|
|
123
|
-
}) || []
|
|
124
|
-
|
|
125
|
-
bootList.value = [...hardDisks, ...cdDvdDrives, ...networks].sort(
|
|
126
|
-
(a, b) => a.order - b.order
|
|
127
|
-
)
|
|
128
|
-
},
|
|
129
|
-
{ deep: true, immediate: true }
|
|
130
|
-
)
|
|
131
|
-
|
|
132
|
-
const onChangeOrder = (event: UI_I_DropEvent): void => {
|
|
133
|
-
let order = -1
|
|
134
|
-
bootList.value = bootList.value
|
|
135
|
-
.map((item) => {
|
|
136
|
-
if (item === event.target) {
|
|
137
|
-
item.order = event.toPosition
|
|
138
|
-
return item
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
item.order = order + 1 === event.toPosition ? (order += 2) : order++
|
|
142
|
-
|
|
143
|
-
return item
|
|
144
|
-
})
|
|
145
|
-
.sort((a, b) => a.order - b.order)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
watch(
|
|
149
|
-
bootList,
|
|
150
|
-
(newValue) => {
|
|
151
|
-
const networks: UI_I_SendDataNewNetwork[] = []
|
|
152
|
-
const hardDisks: UI_I_SendDataNewHardDisk[] = []
|
|
153
|
-
const cdDvdDrives: UI_I_SendDataNewCdDvdDrive[] = []
|
|
154
|
-
let index = 0
|
|
155
|
-
newValue.forEach((boot) => {
|
|
156
|
-
if (boot.type === 'nic') {
|
|
157
|
-
const network = props.networks?.find(
|
|
158
|
-
(network, index2) => network.network + index2 === boot.name
|
|
159
|
-
)
|
|
160
|
-
if (network) {
|
|
161
|
-
networks.push({
|
|
162
|
-
...network,
|
|
163
|
-
boot_order: boot.isChecked ? ++index : 0,
|
|
164
|
-
})
|
|
165
|
-
}
|
|
166
|
-
} else if (boot.type === 'disk') {
|
|
167
|
-
const hardDisk = props.hardDisks?.find(
|
|
168
|
-
(hardDisk, index2) => hardDisk.source + index2 === boot.name
|
|
169
|
-
)
|
|
170
|
-
if (hardDisk) {
|
|
171
|
-
hardDisks.push({
|
|
172
|
-
...hardDisk,
|
|
173
|
-
boot_order: boot.isChecked ? ++index : 0,
|
|
174
|
-
})
|
|
175
|
-
}
|
|
176
|
-
} else {
|
|
177
|
-
const cdDvdDrive = props.cdDvdDrives?.find(
|
|
178
|
-
(cdDvdDrive, index2) => cdDvdDrive.source + index2 === boot.name
|
|
179
|
-
)
|
|
180
|
-
if (cdDvdDrive) {
|
|
181
|
-
cdDvdDrives.push({
|
|
182
|
-
...cdDvdDrive,
|
|
183
|
-
boot_order: boot.isChecked ? ++index : 0,
|
|
184
|
-
})
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
})
|
|
188
|
-
|
|
189
|
-
emits('change', [hardDisks, cdDvdDrives, networks])
|
|
190
|
-
},
|
|
191
|
-
{ deep: true, immediate: true }
|
|
192
|
-
)
|
|
193
|
-
</script>
|
|
194
|
-
|
|
195
|
-
<style scoped lang="scss">
|
|
196
|
-
.boot-orders {
|
|
197
|
-
.device-icon {
|
|
198
|
-
margin-right: 6px;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
</style>
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="general-options">
|
|
3
|
-
<atoms-stack-block
|
|
4
|
-
:has-children="true"
|
|
5
|
-
test-id="general-options-stack-block"
|
|
6
|
-
@toggle="blockIsOpen = $event"
|
|
7
|
-
>
|
|
8
|
-
<template #stackBlockKey>
|
|
9
|
-
<div
|
|
10
|
-
id="vm-wizard-toggle-block-general-options"
|
|
11
|
-
data-id="vm-wizard-toggle-block-general-options"
|
|
12
|
-
class="flex-align-center"
|
|
13
|
-
>
|
|
14
|
-
<span>{{ localization.common.generalOptions }}</span>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<template #stackBlockContent>
|
|
18
|
-
<div v-show="!blockIsOpen">
|
|
19
|
-
{{ localization.common.vmName }}: {{ vmNameLocal }}
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
<template #stackChildren>
|
|
23
|
-
<atoms-stack-block :has-children="false">
|
|
24
|
-
<template #stackBlockKey>
|
|
25
|
-
{{ localization.common.vmName }}
|
|
26
|
-
</template>
|
|
27
|
-
<template #stackBlockContent>
|
|
28
|
-
<span>{{ vmNameLocal }}</span>
|
|
29
|
-
<!-- <span v-if="!props.isEdit">{{ vmNameLocal }}</span>-->
|
|
30
|
-
<!-- <input-->
|
|
31
|
-
<!-- v-else-->
|
|
32
|
-
<!-- id="general-option-vm-name"-->
|
|
33
|
-
<!-- v-models="vmNameLocal"-->
|
|
34
|
-
<!-- type="text"-->
|
|
35
|
-
<!-- />-->
|
|
36
|
-
</template>
|
|
37
|
-
</atoms-stack-block>
|
|
38
|
-
|
|
39
|
-
<atoms-stack-block :has-children="false">
|
|
40
|
-
<template #stackBlockKey>
|
|
41
|
-
{{ localization.common.machineType }}
|
|
42
|
-
</template>
|
|
43
|
-
<template #stackBlockContent>
|
|
44
|
-
<select
|
|
45
|
-
v-if="props.guestMachineType"
|
|
46
|
-
id="guest-machine-type-select"
|
|
47
|
-
v-model="guestMachineTypeLocal"
|
|
48
|
-
:disabled="isDisabled"
|
|
49
|
-
data-id="guest-machine-type-select"
|
|
50
|
-
>
|
|
51
|
-
<option
|
|
52
|
-
v-for="item in machineTypeOptions"
|
|
53
|
-
:key="item.value"
|
|
54
|
-
:value="item"
|
|
55
|
-
>
|
|
56
|
-
{{ item.text }}
|
|
57
|
-
</option>
|
|
58
|
-
</select>
|
|
59
|
-
</template>
|
|
60
|
-
</atoms-stack-block>
|
|
61
|
-
|
|
62
|
-
<atoms-stack-block :has-children="false">
|
|
63
|
-
<template #stackBlockKey>
|
|
64
|
-
{{ localization.common.guestOsFamily }}
|
|
65
|
-
</template>
|
|
66
|
-
<template #stackBlockContent>
|
|
67
|
-
<select
|
|
68
|
-
v-if="props.guestOsFamily"
|
|
69
|
-
id="guest-os-family-select"
|
|
70
|
-
v-model="guestOsFamilyLocal"
|
|
71
|
-
data-id="guest-os-family-select"
|
|
72
|
-
:disabled="isDisabled"
|
|
73
|
-
@change="onChangeOS"
|
|
74
|
-
>
|
|
75
|
-
<option v-for="item in osOptions" :key="item.value" :value="item">
|
|
76
|
-
{{ item.text }}
|
|
77
|
-
</option>
|
|
78
|
-
</select>
|
|
79
|
-
</template>
|
|
80
|
-
</atoms-stack-block>
|
|
81
|
-
|
|
82
|
-
<atoms-stack-block :has-children="false">
|
|
83
|
-
<template #stackBlockKey>
|
|
84
|
-
{{ localization.common.guestOsVersion }}
|
|
85
|
-
</template>
|
|
86
|
-
<template #stackBlockContent>
|
|
87
|
-
<select
|
|
88
|
-
v-if="props.guestOsVersion"
|
|
89
|
-
id="guest-os-version-select"
|
|
90
|
-
v-model="guestOsVersionLocal"
|
|
91
|
-
data-id="guest-os-version-select"
|
|
92
|
-
:disabled="isDisabled"
|
|
93
|
-
>
|
|
94
|
-
<option
|
|
95
|
-
v-for="item in versionsOptions"
|
|
96
|
-
:key="item.value"
|
|
97
|
-
:value="item"
|
|
98
|
-
>
|
|
99
|
-
{{ item.text }}
|
|
100
|
-
</option>
|
|
101
|
-
</select>
|
|
102
|
-
</template>
|
|
103
|
-
</atoms-stack-block>
|
|
104
|
-
</template>
|
|
105
|
-
</atoms-stack-block>
|
|
106
|
-
</div>
|
|
107
|
-
</template>
|
|
108
|
-
|
|
109
|
-
<script setup lang="ts">
|
|
110
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
111
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
112
|
-
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
|
113
|
-
|
|
114
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
115
|
-
|
|
116
|
-
const props = defineProps<{
|
|
117
|
-
vmName: string
|
|
118
|
-
guestMachineType: UI_I_OptionItem | null
|
|
119
|
-
guestOsFamily: UI_I_OptionItem | null
|
|
120
|
-
guestOsVersion: UI_I_OptionItem | null
|
|
121
|
-
isEdit: boolean
|
|
122
|
-
isClone: boolean
|
|
123
|
-
state?: string | number
|
|
124
|
-
}>()
|
|
125
|
-
const emits = defineEmits<{
|
|
126
|
-
(event: 'update:vm-name', value: string): void
|
|
127
|
-
(event: 'update:guest-machine-type', value: UI_I_OptionItem | null): void
|
|
128
|
-
(event: 'update:guest-os-family', value: UI_I_OptionItem | null): void
|
|
129
|
-
(event: 'update:guest-os-version', value: UI_I_OptionItem | null): void
|
|
130
|
-
}>()
|
|
131
|
-
|
|
132
|
-
const isDisabled = computed<boolean>(
|
|
133
|
-
() => (!props.isEdit && !props.isClone) || (props.isEdit && props.state !== 1)
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
const vmNameLocal = computed<string>({
|
|
137
|
-
get() {
|
|
138
|
-
return props.vmName
|
|
139
|
-
},
|
|
140
|
-
set(newValue) {
|
|
141
|
-
emits('update:vm-name', newValue)
|
|
142
|
-
},
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
const guestMachineTypeLocal = computed<UI_I_OptionItem | null>({
|
|
146
|
-
get() {
|
|
147
|
-
return props.guestMachineType
|
|
148
|
-
},
|
|
149
|
-
set(newValue) {
|
|
150
|
-
emits('update:guest-machine-type', newValue)
|
|
151
|
-
},
|
|
152
|
-
})
|
|
153
|
-
const machineTypeOptions = ref<UI_I_OptionItem[]>(capabilities.machineTypes)
|
|
154
|
-
|
|
155
|
-
const guestOsFamilyLocal = computed<UI_I_OptionItem | null>({
|
|
156
|
-
get() {
|
|
157
|
-
return props.guestOsFamily
|
|
158
|
-
},
|
|
159
|
-
set(newValue) {
|
|
160
|
-
emits('update:guest-os-family', newValue)
|
|
161
|
-
},
|
|
162
|
-
})
|
|
163
|
-
const osOptions = ref<UI_I_OptionItem[]>(capabilities.guestOsFamilies)
|
|
164
|
-
const onChangeOS = (): void => {
|
|
165
|
-
guestOsVersionLocal.value = versionsOptions.value[0]
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
const guestOsVersionLocal = computed<UI_I_OptionItem | null>({
|
|
169
|
-
get() {
|
|
170
|
-
return props.guestOsVersion
|
|
171
|
-
},
|
|
172
|
-
set(newValue) {
|
|
173
|
-
emits('update:guest-os-version', newValue)
|
|
174
|
-
},
|
|
175
|
-
})
|
|
176
|
-
const versionsOptions = computed<UI_I_OptionItem[]>(() => {
|
|
177
|
-
if (!guestOsFamilyLocal.value) return []
|
|
178
|
-
|
|
179
|
-
return capabilities.guestOsVersions[guestOsFamilyLocal.value.value] || []
|
|
180
|
-
})
|
|
181
|
-
watch(
|
|
182
|
-
versionsOptions,
|
|
183
|
-
() => {
|
|
184
|
-
guestOsVersionLocal.value = versionsOptions.value[0]
|
|
185
|
-
}
|
|
186
|
-
// { immediate: true }
|
|
187
|
-
)
|
|
188
|
-
|
|
189
|
-
const blockIsOpen = ref<boolean>(false)
|
|
190
|
-
</script>
|
|
191
|
-
|
|
192
|
-
<style scoped lang="scss"></style>
|