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
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.jpegCompression }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<atoms-tooltip-error
|
|
9
|
-
:has-error="!!apiError"
|
|
10
|
-
selector="#vm-wizard-jpeg-compression-field"
|
|
11
|
-
@remove="onRemoveValidationError"
|
|
12
|
-
>
|
|
13
|
-
<template #elem>
|
|
14
|
-
<div class="select">
|
|
15
|
-
<select
|
|
16
|
-
id="vm-wizard-jpeg-compression-field"
|
|
17
|
-
v-model="jpegCompressionLocal"
|
|
18
|
-
data-id="vm-wizard-jpeg-compression-select"
|
|
19
|
-
:disabled="props.disabled"
|
|
20
|
-
>
|
|
21
|
-
<option
|
|
22
|
-
v-for="(item, key) in jpegCompressionOptions"
|
|
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 { jpegCompressionOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/lib/config/config'
|
|
45
|
-
|
|
46
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
47
|
-
|
|
48
|
-
const props = defineProps<{
|
|
49
|
-
jpegCompression: string
|
|
50
|
-
errorValidationFields: UI_I_ErrorValidationField[]
|
|
51
|
-
disabled: boolean
|
|
52
|
-
}>()
|
|
53
|
-
const emits = defineEmits<{
|
|
54
|
-
(event: 'update:jpeg-compression', value: string): void
|
|
55
|
-
(event: 'remove-error-by-title', value: string): void
|
|
56
|
-
}>()
|
|
57
|
-
|
|
58
|
-
const jpegCompressionOptions = ref<UI_I_OptionItem[]>(
|
|
59
|
-
jpegCompressionOptionsFunc(localization.value)
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
const jpegCompressionLocal = computed<string>({
|
|
63
|
-
get() {
|
|
64
|
-
return props.jpegCompression
|
|
65
|
-
},
|
|
66
|
-
set(newValue) {
|
|
67
|
-
emits('update:jpeg-compression', newValue)
|
|
68
|
-
},
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
const typeError = 'options.remote_console.spice.jpeg_compression'
|
|
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,12 +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 jpegCompressionOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
): UI_I_OptionItem[] => {
|
|
7
|
-
return [
|
|
8
|
-
{ text: localization.common.auto, value: 'auto' },
|
|
9
|
-
{ text: localization.common.always, value: 'always' },
|
|
10
|
-
{ text: localization.common.never, value: 'never' },
|
|
11
|
-
]
|
|
12
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.keymap }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="select">
|
|
9
|
-
<select
|
|
10
|
-
id="keymap-select"
|
|
11
|
-
v-model="remoteConsoleTypeLocal"
|
|
12
|
-
data-id="keymap-select"
|
|
13
|
-
:disabled="props.disabled"
|
|
14
|
-
>
|
|
15
|
-
<option
|
|
16
|
-
v-for="(item, key) in keymapOptions"
|
|
17
|
-
:key="key"
|
|
18
|
-
:value="item.value"
|
|
19
|
-
>
|
|
20
|
-
{{ item.text }}
|
|
21
|
-
</option>
|
|
22
|
-
</select>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
</atoms-stack-block>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script setup lang="ts">
|
|
30
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
31
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
32
|
-
import { keymapOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/lib/config/config'
|
|
33
|
-
|
|
34
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
35
|
-
|
|
36
|
-
const props = defineProps<{
|
|
37
|
-
keymap: string
|
|
38
|
-
disabled: boolean
|
|
39
|
-
}>()
|
|
40
|
-
const emits = defineEmits<{
|
|
41
|
-
(event: 'update:keymap', value: string): void
|
|
42
|
-
}>()
|
|
43
|
-
|
|
44
|
-
const keymapOptions = ref<UI_I_OptionItem[]>(keymapOptionsConfig)
|
|
45
|
-
|
|
46
|
-
const remoteConsoleTypeLocal = computed<string>({
|
|
47
|
-
get() {
|
|
48
|
-
return props.keymap
|
|
49
|
-
},
|
|
50
|
-
set(newValue) {
|
|
51
|
-
emits('update:keymap', newValue)
|
|
52
|
-
},
|
|
53
|
-
})
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style scoped></style>
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.mouseMode }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="select">
|
|
9
|
-
<select
|
|
10
|
-
id="mouse-mode-select"
|
|
11
|
-
v-model="mouseModeLocal"
|
|
12
|
-
data-id="mouse-mode-select"
|
|
13
|
-
disabled
|
|
14
|
-
>
|
|
15
|
-
<option
|
|
16
|
-
v-for="(item, key) in mouseModeOptions"
|
|
17
|
-
:key="key"
|
|
18
|
-
:value="item.value"
|
|
19
|
-
>
|
|
20
|
-
{{ item.text }}
|
|
21
|
-
</option>
|
|
22
|
-
</select>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
</atoms-stack-block>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script setup lang="ts">
|
|
30
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
31
|
-
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
32
|
-
import { mouseModeOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/lib/config/config'
|
|
33
|
-
|
|
34
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
35
|
-
|
|
36
|
-
const props = defineProps<{
|
|
37
|
-
mouseMode: string
|
|
38
|
-
}>()
|
|
39
|
-
const emits = defineEmits<{
|
|
40
|
-
(event: 'update:mouse-mode', value: string): void
|
|
41
|
-
}>()
|
|
42
|
-
|
|
43
|
-
const mouseModeOptions = ref<UI_I_OptionItem[]>(
|
|
44
|
-
mouseModeOptionsFunc(localization.value)
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
const mouseModeLocal = computed<string>({
|
|
48
|
-
get() {
|
|
49
|
-
return props.mouseMode
|
|
50
|
-
},
|
|
51
|
-
set(newValue) {
|
|
52
|
-
emits('update:mouse-mode', newValue)
|
|
53
|
-
},
|
|
54
|
-
})
|
|
55
|
-
</script>
|
|
56
|
-
|
|
57
|
-
<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 mouseModeOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
): UI_I_OptionItem[] => {
|
|
7
|
-
return [
|
|
8
|
-
{ text: localization.common.client, value: 'client' },
|
|
9
|
-
{ text: localization.common.server, value: 'server' },
|
|
10
|
-
]
|
|
11
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.auth.password }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="flex-align-center">
|
|
9
|
-
<input
|
|
10
|
-
id="enable-password"
|
|
11
|
-
v-model="isEnabledPassword"
|
|
12
|
-
data-id="enable-password-input"
|
|
13
|
-
:disabled="props.disabled"
|
|
14
|
-
type="checkbox"
|
|
15
|
-
@change="setPasswordDisable"
|
|
16
|
-
/>
|
|
17
|
-
<label for="enable-password" class="label-text-normal mr-1">{{
|
|
18
|
-
localization.common.enable
|
|
19
|
-
}}</label>
|
|
20
|
-
|
|
21
|
-
<atoms-tooltip-error :has-error="!!passwordErrorText">
|
|
22
|
-
<template #elem>
|
|
23
|
-
<input
|
|
24
|
-
id="password-input"
|
|
25
|
-
v-model="form.password.value"
|
|
26
|
-
data-id="password-input"
|
|
27
|
-
type="text"
|
|
28
|
-
:class="[{ 'has-error': !!passwordErrorText }]"
|
|
29
|
-
:disabled="!isEnabledPassword || props.disabled"
|
|
30
|
-
@input="changePassword"
|
|
31
|
-
/>
|
|
32
|
-
</template>
|
|
33
|
-
<template #content>
|
|
34
|
-
{{ passwordErrorText }}
|
|
35
|
-
</template>
|
|
36
|
-
</atoms-tooltip-error>
|
|
37
|
-
|
|
38
|
-
<button
|
|
39
|
-
id="generate-password-button"
|
|
40
|
-
data-id="generate-password-button"
|
|
41
|
-
class="generate-password-btn btn btn-primary"
|
|
42
|
-
:disabled="!isEnabledPassword || props.disabled"
|
|
43
|
-
:title="localization.common.generatePassword"
|
|
44
|
-
@click="onGeneratePassword"
|
|
45
|
-
>
|
|
46
|
-
<atoms-the-icon name="lock" width="16px" height="16px" />
|
|
47
|
-
</button>
|
|
48
|
-
</div>
|
|
49
|
-
</template>
|
|
50
|
-
</atoms-stack-block>
|
|
51
|
-
</div>
|
|
52
|
-
</template>
|
|
53
|
-
|
|
54
|
-
<script setup lang="ts">
|
|
55
|
-
import type { UI_I_DefaultForm } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/lib/models/interfaces'
|
|
56
|
-
import type {
|
|
57
|
-
UI_I_Localization,
|
|
58
|
-
UI_I_HTMLSelectElement,
|
|
59
|
-
} from '~/lib/models/interfaces'
|
|
60
|
-
import { generatePassword } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/lib/utils'
|
|
61
|
-
|
|
62
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
63
|
-
|
|
64
|
-
const props = defineProps<{
|
|
65
|
-
password: string
|
|
66
|
-
disabled: boolean
|
|
67
|
-
}>()
|
|
68
|
-
const emits = defineEmits<{
|
|
69
|
-
(event: 'update:password', value: string): void
|
|
70
|
-
(event: 'valid', value: boolean): void
|
|
71
|
-
}>()
|
|
72
|
-
|
|
73
|
-
const { $validation } = useNuxtApp()
|
|
74
|
-
const validation = $validation.call({})
|
|
75
|
-
const defaultForm: UI_I_DefaultForm = {
|
|
76
|
-
password: {
|
|
77
|
-
value: props.password,
|
|
78
|
-
validations: [
|
|
79
|
-
{ value: 'password', errorText: localization.value.common.changePasswordError },
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
}
|
|
83
|
-
const form = ref<UI_I_DefaultForm>(useDeepCopy(defaultForm))
|
|
84
|
-
const setForm = (): void => {
|
|
85
|
-
form.value = useDeepCopy(defaultForm)
|
|
86
|
-
validation.setForm(form)
|
|
87
|
-
}
|
|
88
|
-
setForm()
|
|
89
|
-
|
|
90
|
-
const showValidationErrors = (): void => {
|
|
91
|
-
const valid = validation.touch()
|
|
92
|
-
passwordErrorText.value = !valid.isValid ? valid.errors.password[0] : ''
|
|
93
|
-
emits('valid', valid.isValid)
|
|
94
|
-
}
|
|
95
|
-
const removeValidationErrors = (): void => {
|
|
96
|
-
passwordErrorText.value = ''
|
|
97
|
-
emits('valid', true)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const setPasswordDisable = (): void => {
|
|
101
|
-
if (isEnabledPassword.value) {
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
removeValidationErrors()
|
|
106
|
-
setForm()
|
|
107
|
-
emits('update:password', '')
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const passwordErrorText = ref<string>('')
|
|
111
|
-
|
|
112
|
-
const changePassword = (event: UI_I_HTMLSelectElement): void => {
|
|
113
|
-
showValidationErrors()
|
|
114
|
-
|
|
115
|
-
emits('update:password', event.target.value)
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const isEnabledPassword = ref<boolean>(false)
|
|
119
|
-
|
|
120
|
-
const onGeneratePassword = (): void => {
|
|
121
|
-
const password = generatePassword()
|
|
122
|
-
|
|
123
|
-
form.value.password.value = password
|
|
124
|
-
emits('update:password', password)
|
|
125
|
-
}
|
|
126
|
-
</script>
|
|
127
|
-
|
|
128
|
-
<style scoped>
|
|
129
|
-
#enable-password {
|
|
130
|
-
margin: 4px 4px 0 0;
|
|
131
|
-
}
|
|
132
|
-
.has-error {
|
|
133
|
-
border: 1px solid #db2100;
|
|
134
|
-
}
|
|
135
|
-
.generate-password-btn {
|
|
136
|
-
min-width: unset;
|
|
137
|
-
margin: 0;
|
|
138
|
-
padding: 3px;
|
|
139
|
-
height: unset;
|
|
140
|
-
display: flex;
|
|
141
|
-
}
|
|
142
|
-
</style>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const generatePassword = (passwordLength = 12): string => {
|
|
2
|
-
const chars =
|
|
3
|
-
'0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
4
|
-
|
|
5
|
-
let password = ''
|
|
6
|
-
for (let i = 0; i <= passwordLength; i++) {
|
|
7
|
-
const randomNumber = Math.floor(Math.random() * chars.length)
|
|
8
|
-
password += chars.substring(randomNumber, randomNumber + 1)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return password
|
|
12
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.sharePolicy }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="select">
|
|
9
|
-
<select
|
|
10
|
-
id="share-policy-select"
|
|
11
|
-
v-model="sharePolicyLocal"
|
|
12
|
-
data-id="share-policy-select"
|
|
13
|
-
>
|
|
14
|
-
<option
|
|
15
|
-
v-for="(item, key) in sharePolicyOptions"
|
|
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 { sharePolicyOptionsFunc } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/sharePolicy/lib/config/config'
|
|
32
|
-
|
|
33
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
34
|
-
|
|
35
|
-
const props = defineProps<{
|
|
36
|
-
sharePolicy: string
|
|
37
|
-
}>()
|
|
38
|
-
const emits = defineEmits<{
|
|
39
|
-
(event: 'update:share-policy', value: string): void
|
|
40
|
-
}>()
|
|
41
|
-
|
|
42
|
-
const sharePolicyOptions = ref<UI_I_OptionItem[]>(
|
|
43
|
-
sharePolicyOptionsFunc(localization.value)
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
const sharePolicyLocal = computed<string>({
|
|
47
|
-
get() {
|
|
48
|
-
return props.sharePolicy
|
|
49
|
-
},
|
|
50
|
-
set(newValue) {
|
|
51
|
-
emits('update:share-policy', newValue)
|
|
52
|
-
},
|
|
53
|
-
})
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<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 sharePolicyOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
): UI_I_OptionItem[] => {
|
|
7
|
-
return [
|
|
8
|
-
{ text: localization.common.allowExclusive, value: 'allow-exclusive' },
|
|
9
|
-
{ text: localization.common.forceShared, value: 'force-shared' },
|
|
10
|
-
]
|
|
11
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
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,12 +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 streamingModeOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
): UI_I_OptionItem[] => {
|
|
7
|
-
return [
|
|
8
|
-
{ text: localization.common.all, value: 'all' },
|
|
9
|
-
{ text: localization.common.off, value: 'off' },
|
|
10
|
-
{ text: localization.common.filter, value: 'filter' },
|
|
11
|
-
]
|
|
12
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.remoteConsoleType }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<atoms-tooltip-error
|
|
9
|
-
:has-error="!!apiError"
|
|
10
|
-
selector="#vm-wizard-remote-console-type-field"
|
|
11
|
-
@remove="onRemoveValidationError"
|
|
12
|
-
>
|
|
13
|
-
<template #elem>
|
|
14
|
-
<div class="select">
|
|
15
|
-
<select
|
|
16
|
-
id="vm-wizard-remote-console-type-field"
|
|
17
|
-
v-model="remoteConsoleTypeLocal"
|
|
18
|
-
data-id="vm-wizard-remote-console-type-select"
|
|
19
|
-
:disabled="props.disabled"
|
|
20
|
-
>
|
|
21
|
-
<option
|
|
22
|
-
v-for="(item, key) in remoteConsoleTypeOptions"
|
|
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 { remoteConsoleTypeOptionsConfig } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/type/lib/config/config'
|
|
45
|
-
|
|
46
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
47
|
-
|
|
48
|
-
const props = defineProps<{
|
|
49
|
-
remoteConsoleType: string
|
|
50
|
-
errorValidationFields: UI_I_ErrorValidationField[]
|
|
51
|
-
disabled: boolean
|
|
52
|
-
}>()
|
|
53
|
-
const emits = defineEmits<{
|
|
54
|
-
(event: 'update:remote-console-type', value: string): void
|
|
55
|
-
(event: 'remove-error-by-title', value: string): void
|
|
56
|
-
}>()
|
|
57
|
-
|
|
58
|
-
const remoteConsoleTypeOptions = ref<UI_I_OptionItem[]>(
|
|
59
|
-
remoteConsoleTypeOptionsConfig
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
const remoteConsoleTypeLocal = computed<string>({
|
|
63
|
-
get() {
|
|
64
|
-
return props.remoteConsoleType
|
|
65
|
-
},
|
|
66
|
-
set(newValue) {
|
|
67
|
-
emits('update:remote-console-type', newValue)
|
|
68
|
-
},
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
const typeError = 'options.remote_console.type'
|
|
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>
|