bfg-common 1.0.15 → 1.0.16
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/atoms/alert/Notification.vue +167 -167
- package/components/atoms/autocomplete/Autocomplete.vue +236 -236
- package/components/atoms/combobox/Combobox.vue +131 -131
- package/components/atoms/datepicker/Datepicker.vue +612 -612
- package/components/atoms/dropdown/tree/Tree.vue +134 -134
- package/components/atoms/list/SelectList.vue +62 -62
- package/components/atoms/modal/bySteps/BySteps.vue +234 -234
- package/components/atoms/modal/byStepsSecond/ByStepsSecond.vue +174 -174
- package/components/atoms/nav/NavBar.vue +116 -116
- package/components/atoms/nav/VerticalNavBar.vue +89 -89
- package/components/atoms/notificationBar/NotificationBar.vue +175 -175
- package/components/atoms/perPage/PerPage.vue +52 -52
- package/components/atoms/popup/SimplePopup.vue +90 -90
- package/components/atoms/step/VerticalStep.vue +104 -104
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
- package/components/atoms/table/dataGrid/DataGridPagination.vue +83 -83
- package/components/atoms/table/dataGrid/config/itemsPerPage.ts +20 -20
- package/components/atoms/tabs/Tabs.vue +189 -189
- package/components/atoms/tooltip/Signpost.vue +224 -224
- package/components/common/accordion/Accordion.vue +176 -176
- package/components/common/accordion/Recursion.vue +195 -195
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
- package/components/common/browse/Browse.vue +182 -182
- package/components/common/browse/blocks/Title.vue +66 -66
- package/components/common/diagramMain/Header.vue +160 -160
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +236 -236
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +178 -178
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +392 -392
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
- package/components/common/diagramMain/modals/viewSettings/Info.vue +94 -94
- package/components/common/diagramMain/network/Contents.vue +238 -238
- package/components/common/feedback/Buttons.vue +232 -232
- package/components/common/feedback/Message.vue +468 -468
- package/components/common/feedback/VisitPortal.vue +54 -54
- package/components/common/modals/Rename.vue +165 -165
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +388 -388
- package/components/common/monitor/models/interfaces.ts +0 -1
- package/components/common/perPage/PerPage.vue +51 -51
- package/components/common/recursionTree/RecursionTree.vue +201 -201
- package/components/common/vm/actions/add/Add.vue +687 -687
- package/components/common/vm/actions/add/FolderTreeView.vue +83 -83
- package/components/common/vm/actions/add/config/capabilities.ts +670 -670
- package/components/common/vm/actions/add/customizeHardware/CustomizeHardware.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/browseView/BrowseView.vue +203 -203
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +55 -55
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +371 -368
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CpuModel.vue +2 -2
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/MaxCpu.vue +105 -99
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Sa.vue +102 -102
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/shares/Shares.vue +155 -151
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +214 -210
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +282 -278
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/Location.vue +10 -10
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +451 -447
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/cache/Cache.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +151 -147
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/provisioning/Provisioning.vue +2 -2
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/Location.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +256 -252
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/adapterType/AdapterType.vue +86 -86
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +6 -6
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +3 -3
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +231 -228
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/TotalVideoMemory.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +173 -169
- package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/vmoptions/Vmoptions.vue +145 -141
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/BootOptions.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +114 -114
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +230 -226
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/imgCompression/ImgCompression.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/jpegCompression/JpegCompression.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +50 -50
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/mouseMode/MouseMode.vue +52 -52
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/type/Type.vue +1 -1
- package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/zlibCompression/ZlibCompression.vue +1 -1
- package/components/common/vm/actions/add/select/compatibility/Compatibility.vue +151 -151
- package/components/common/vm/actions/add/select/computeResource/ComputeResource.vue +170 -170
- package/components/common/vm/actions/add/select/computeResource/TreeView.vue +126 -126
- package/components/common/vm/actions/add/select/name/Name.vue +173 -173
- package/components/common/vm/actions/add/select/os/os.vue +221 -221
- package/components/common/vm/actions/add/utils.ts +118 -118
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/TablesView.vue +141 -141
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
- package/models/store/storage/interfaces.ts +32 -32
- package/package.json +1 -1
- package/plugins/recursion.ts +230 -230
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
- package/public/spice-console-minify/lib/jgestures.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
- package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
|
@@ -1,226 +1,230 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="hardware-cpu">
|
|
3
|
-
<atoms-stack-block :has-children="true">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
<div
|
|
6
|
-
id="vm-wizard-toggle-block-remote-console"
|
|
7
|
-
class="flex-align-center"
|
|
8
|
-
>
|
|
9
|
-
<span>{{ localization.remoteConsoleOptions }}</span>
|
|
10
|
-
<atoms-the-icon
|
|
11
|
-
v-show="remoteConsoleOptionsInvalid"
|
|
12
|
-
width="24px"
|
|
13
|
-
height="24px"
|
|
14
|
-
class="is-error tooltip-trigger"
|
|
15
|
-
name="info"
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
<template #stackChildren>
|
|
20
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-type
|
|
21
|
-
v-model:remote-console-type="remoteConsoleType"
|
|
22
|
-
:error-validation-fields="props.errorValidationFields"
|
|
23
|
-
@input="changeRemoteConsoleType"
|
|
24
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
25
|
-
/>
|
|
26
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-keymap
|
|
27
|
-
v-model:keymap="keymap"
|
|
28
|
-
/>
|
|
29
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-password
|
|
30
|
-
v-model:password="password"
|
|
31
|
-
@valid="passwordIsValid = $event"
|
|
32
|
-
/>
|
|
33
|
-
<!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-power-control-->
|
|
34
|
-
<!-- v-if="remoteConsoleType === 'vnc'"-->
|
|
35
|
-
<!-- v-model:power-control="powerControl"-->
|
|
36
|
-
<!-- />-->
|
|
37
|
-
<!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-share-policy-->
|
|
38
|
-
<!-- v-if="remoteConsoleType === 'vnc'"-->
|
|
39
|
-
<!-- v-model:share-policy="sharePolicy"-->
|
|
40
|
-
<!-- />-->
|
|
41
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-img-compression
|
|
42
|
-
v-if="remoteConsoleType === 'spice'"
|
|
43
|
-
v-model:img-compression="imgCompression"
|
|
44
|
-
:error-validation-fields="props.errorValidationFields"
|
|
45
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
46
|
-
/>
|
|
47
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-jpeg-compression
|
|
48
|
-
v-if="remoteConsoleType === 'spice'"
|
|
49
|
-
v-model:jpeg-compression="jpegCompression"
|
|
50
|
-
:error-validation-fields="props.errorValidationFields"
|
|
51
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
52
|
-
/>
|
|
53
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-zlib-compression
|
|
54
|
-
v-if="remoteConsoleType === 'spice'"
|
|
55
|
-
v-model:zlib-compression="zlibCompression"
|
|
56
|
-
:error-validation-fields="props.errorValidationFields"
|
|
57
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
58
|
-
/>
|
|
59
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-playback-compression
|
|
60
|
-
v-if="remoteConsoleType === 'spice'"
|
|
61
|
-
v-model:playback-compression="playbackCompression"
|
|
62
|
-
/>
|
|
63
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-streaming-mode
|
|
64
|
-
v-if="remoteConsoleType === 'spice'"
|
|
65
|
-
v-model:streaming-mode="streamingMode"
|
|
66
|
-
:error-validation-fields="props.errorValidationFields"
|
|
67
|
-
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
68
|
-
/>
|
|
69
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-copy-paste
|
|
70
|
-
v-if="remoteConsoleType === 'spice'"
|
|
71
|
-
v-model:copy-paste="copyPaste"
|
|
72
|
-
/>
|
|
73
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-mouse-mode
|
|
74
|
-
v-if="remoteConsoleType === 'spice'"
|
|
75
|
-
v-model:mouse-mode="mouseMode"
|
|
76
|
-
/>
|
|
77
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-file-transfer
|
|
78
|
-
v-if="remoteConsoleType === 'spice'"
|
|
79
|
-
v-model:file-transfer="fileTransfer"
|
|
80
|
-
/>
|
|
81
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-usb-redirection
|
|
82
|
-
v-if="remoteConsoleType === 'spice'"
|
|
83
|
-
v-model:usb-redirection="usbRedirection"
|
|
84
|
-
/>
|
|
85
|
-
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-folder-sharing
|
|
86
|
-
v-if="remoteConsoleType === 'spice'"
|
|
87
|
-
v-model:folder-sharing="folderSharing"
|
|
88
|
-
/>
|
|
89
|
-
</template>
|
|
90
|
-
</atoms-stack-block>
|
|
91
|
-
</div>
|
|
92
|
-
</template>
|
|
93
|
-
|
|
94
|
-
<script setup lang="ts">
|
|
95
|
-
import { UI_I_SendDataRemoteConsoleOptions } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/models/interfaces'
|
|
96
|
-
import { UI_I_Localization } from '~/models/interfaces'
|
|
97
|
-
import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
|
|
98
|
-
|
|
99
|
-
const props = defineProps<{
|
|
100
|
-
remoteConsoleOptions?: UI_I_SendDataRemoteConsoleOptions
|
|
101
|
-
errorValidationFields: UI_I_ErrorValidationField<string>[]
|
|
102
|
-
}>()
|
|
103
|
-
const emits = defineEmits<{
|
|
104
|
-
(event: 'send-data', value: UI_I_SendDataRemoteConsoleOptions): void
|
|
105
|
-
(event: 'invalid', value: boolean): void
|
|
106
|
-
(event: 'remove-error-by-title', value: string): void
|
|
107
|
-
}>()
|
|
108
|
-
|
|
109
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
110
|
-
|
|
111
|
-
const remoteConsoleType = ref<string>('spice')
|
|
112
|
-
const changeRemoteConsoleType = (): void => {
|
|
113
|
-
// powerControl.value = false
|
|
114
|
-
// sharePolicy.value = 'allow-exclusive'
|
|
115
|
-
imgCompression.value = 'auto_glz'
|
|
116
|
-
jpegCompression.value = 'auto'
|
|
117
|
-
zlibCompression.value = 'auto'
|
|
118
|
-
playbackCompression.value = true
|
|
119
|
-
streamingMode.value = 'all'
|
|
120
|
-
copyPaste.value = true
|
|
121
|
-
mouseMode.value = 'client'
|
|
122
|
-
fileTransfer.value = true
|
|
123
|
-
usbRedirection.value = 3
|
|
124
|
-
folderSharing.value = true
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const keymap = ref<string>('en_US')
|
|
128
|
-
|
|
129
|
-
const password = ref<string>('')
|
|
130
|
-
const passwordIsValid = ref<boolean>(true)
|
|
131
|
-
|
|
132
|
-
// const powerControl = ref<boolean>(false)
|
|
133
|
-
|
|
134
|
-
// const sharePolicy = ref<string>('allow-exclusive')
|
|
135
|
-
|
|
136
|
-
const imgCompression = ref<string>('auto_glz')
|
|
137
|
-
|
|
138
|
-
const jpegCompression = ref<string>('auto')
|
|
139
|
-
|
|
140
|
-
const zlibCompression = ref<string>('auto')
|
|
141
|
-
|
|
142
|
-
const playbackCompression = ref<boolean>(true)
|
|
143
|
-
|
|
144
|
-
const streamingMode = ref<string>('all')
|
|
145
|
-
|
|
146
|
-
const copyPaste = ref<boolean>(true)
|
|
147
|
-
|
|
148
|
-
const mouseMode = ref<string>('client')
|
|
149
|
-
|
|
150
|
-
const fileTransfer = ref<boolean>(true)
|
|
151
|
-
|
|
152
|
-
const usbRedirection = ref<number>(3)
|
|
153
|
-
|
|
154
|
-
const folderSharing = ref<boolean>(true)
|
|
155
|
-
|
|
156
|
-
watch(
|
|
157
|
-
[
|
|
158
|
-
remoteConsoleType,
|
|
159
|
-
keymap,
|
|
160
|
-
password,
|
|
161
|
-
// powerControl,
|
|
162
|
-
// sharePolicy,
|
|
163
|
-
imgCompression,
|
|
164
|
-
jpegCompression,
|
|
165
|
-
zlibCompression,
|
|
166
|
-
playbackCompression,
|
|
167
|
-
streamingMode,
|
|
168
|
-
copyPaste,
|
|
169
|
-
mouseMode,
|
|
170
|
-
fileTransfer,
|
|
171
|
-
usbRedirection,
|
|
172
|
-
folderSharing,
|
|
173
|
-
],
|
|
174
|
-
() => {
|
|
175
|
-
emits('send-data', {
|
|
176
|
-
type: remoteConsoleType.value,
|
|
177
|
-
port: 0,
|
|
178
|
-
keymap: keymap.value,
|
|
179
|
-
password: password.value,
|
|
180
|
-
guest_os_lock: false,
|
|
181
|
-
limit_sessions: 0,
|
|
182
|
-
spice: {
|
|
183
|
-
img_compression: imgCompression.value,
|
|
184
|
-
jpeg_compression: jpegCompression.value,
|
|
185
|
-
zlib_glz_compression: zlibCompression.value,
|
|
186
|
-
streaming_mode: streamingMode.value,
|
|
187
|
-
playback_compression: playbackCompression.value,
|
|
188
|
-
file_transfer: fileTransfer.value,
|
|
189
|
-
clipboard: copyPaste.value,
|
|
190
|
-
},
|
|
191
|
-
})
|
|
192
|
-
},
|
|
193
|
-
{ immediate: true }
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
// Добавляем данные для редактирования
|
|
197
|
-
watch(
|
|
198
|
-
() => props.remoteConsoleOptions,
|
|
199
|
-
(newValue) => {
|
|
200
|
-
if (!newValue || !props.remoteConsoleOptions) return
|
|
201
|
-
|
|
202
|
-
remoteConsoleType.value = props.remoteConsoleOptions.type
|
|
203
|
-
keymap.value = props.remoteConsoleOptions.keymap
|
|
204
|
-
password.value = props.remoteConsoleOptions.password
|
|
205
|
-
imgCompression.value = props.remoteConsoleOptions.spice.img_compression
|
|
206
|
-
jpegCompression.value = props.remoteConsoleOptions.spice.jpeg_compression
|
|
207
|
-
zlibCompression.value =
|
|
208
|
-
props.remoteConsoleOptions.spice.zlib_glz_compression
|
|
209
|
-
streamingMode.value = props.remoteConsoleOptions.spice.streaming_mode
|
|
210
|
-
playbackCompression.value =
|
|
211
|
-
props.remoteConsoleOptions.spice.playback_compression
|
|
212
|
-
fileTransfer.value = props.remoteConsoleOptions.spice.file_transfer
|
|
213
|
-
copyPaste.value = props.remoteConsoleOptions.spice.clipboard
|
|
214
|
-
},
|
|
215
|
-
{ immediate: true }
|
|
216
|
-
)
|
|
217
|
-
|
|
218
|
-
const remoteConsoleOptionsInvalid = computed<boolean>(
|
|
219
|
-
() => !passwordIsValid.value
|
|
220
|
-
)
|
|
221
|
-
watch(
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="hardware-cpu">
|
|
3
|
+
<atoms-stack-block :has-children="true">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
<div
|
|
6
|
+
id="vm-wizard-toggle-block-remote-console"
|
|
7
|
+
class="flex-align-center"
|
|
8
|
+
>
|
|
9
|
+
<span>{{ localization.remoteConsoleOptions }}</span>
|
|
10
|
+
<atoms-the-icon
|
|
11
|
+
v-show="remoteConsoleOptionsInvalid"
|
|
12
|
+
width="24px"
|
|
13
|
+
height="24px"
|
|
14
|
+
class="is-error tooltip-trigger"
|
|
15
|
+
name="info"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
<template #stackChildren>
|
|
20
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-type
|
|
21
|
+
v-model:remote-console-type="remoteConsoleType"
|
|
22
|
+
:error-validation-fields="props.errorValidationFields"
|
|
23
|
+
@input="changeRemoteConsoleType"
|
|
24
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
25
|
+
/>
|
|
26
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-keymap
|
|
27
|
+
v-model:keymap="keymap"
|
|
28
|
+
/>
|
|
29
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-password
|
|
30
|
+
v-model:password="password"
|
|
31
|
+
@valid="passwordIsValid = $event"
|
|
32
|
+
/>
|
|
33
|
+
<!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-power-control-->
|
|
34
|
+
<!-- v-if="remoteConsoleType === 'vnc'"-->
|
|
35
|
+
<!-- v-model:power-control="powerControl"-->
|
|
36
|
+
<!-- />-->
|
|
37
|
+
<!-- <common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-share-policy-->
|
|
38
|
+
<!-- v-if="remoteConsoleType === 'vnc'"-->
|
|
39
|
+
<!-- v-model:share-policy="sharePolicy"-->
|
|
40
|
+
<!-- />-->
|
|
41
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-img-compression
|
|
42
|
+
v-if="remoteConsoleType === 'spice'"
|
|
43
|
+
v-model:img-compression="imgCompression"
|
|
44
|
+
:error-validation-fields="props.errorValidationFields"
|
|
45
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
46
|
+
/>
|
|
47
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-jpeg-compression
|
|
48
|
+
v-if="remoteConsoleType === 'spice'"
|
|
49
|
+
v-model:jpeg-compression="jpegCompression"
|
|
50
|
+
:error-validation-fields="props.errorValidationFields"
|
|
51
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
52
|
+
/>
|
|
53
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-zlib-compression
|
|
54
|
+
v-if="remoteConsoleType === 'spice'"
|
|
55
|
+
v-model:zlib-compression="zlibCompression"
|
|
56
|
+
:error-validation-fields="props.errorValidationFields"
|
|
57
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
58
|
+
/>
|
|
59
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-playback-compression
|
|
60
|
+
v-if="remoteConsoleType === 'spice'"
|
|
61
|
+
v-model:playback-compression="playbackCompression"
|
|
62
|
+
/>
|
|
63
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-streaming-mode
|
|
64
|
+
v-if="remoteConsoleType === 'spice'"
|
|
65
|
+
v-model:streaming-mode="streamingMode"
|
|
66
|
+
:error-validation-fields="props.errorValidationFields"
|
|
67
|
+
@remove-error-by-title="emits('remove-error-by-title', $event)"
|
|
68
|
+
/>
|
|
69
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-copy-paste
|
|
70
|
+
v-if="remoteConsoleType === 'spice'"
|
|
71
|
+
v-model:copy-paste="copyPaste"
|
|
72
|
+
/>
|
|
73
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-mouse-mode
|
|
74
|
+
v-if="remoteConsoleType === 'spice'"
|
|
75
|
+
v-model:mouse-mode="mouseMode"
|
|
76
|
+
/>
|
|
77
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-file-transfer
|
|
78
|
+
v-if="remoteConsoleType === 'spice'"
|
|
79
|
+
v-model:file-transfer="fileTransfer"
|
|
80
|
+
/>
|
|
81
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-usb-redirection
|
|
82
|
+
v-if="remoteConsoleType === 'spice'"
|
|
83
|
+
v-model:usb-redirection="usbRedirection"
|
|
84
|
+
/>
|
|
85
|
+
<common-vm-actions-add-customize-hardware-vmoptions-remote-console-options-folder-sharing
|
|
86
|
+
v-if="remoteConsoleType === 'spice'"
|
|
87
|
+
v-model:folder-sharing="folderSharing"
|
|
88
|
+
/>
|
|
89
|
+
</template>
|
|
90
|
+
</atoms-stack-block>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<script setup lang="ts">
|
|
95
|
+
import { UI_I_SendDataRemoteConsoleOptions } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/models/interfaces'
|
|
96
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
97
|
+
import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
|
|
98
|
+
|
|
99
|
+
const props = defineProps<{
|
|
100
|
+
remoteConsoleOptions?: UI_I_SendDataRemoteConsoleOptions
|
|
101
|
+
errorValidationFields: UI_I_ErrorValidationField<string>[]
|
|
102
|
+
}>()
|
|
103
|
+
const emits = defineEmits<{
|
|
104
|
+
(event: 'send-data', value: UI_I_SendDataRemoteConsoleOptions): void
|
|
105
|
+
(event: 'invalid', value: boolean): void
|
|
106
|
+
(event: 'remove-error-by-title', value: string): void
|
|
107
|
+
}>()
|
|
108
|
+
|
|
109
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
110
|
+
|
|
111
|
+
const remoteConsoleType = ref<string>('spice')
|
|
112
|
+
const changeRemoteConsoleType = (): void => {
|
|
113
|
+
// powerControl.value = false
|
|
114
|
+
// sharePolicy.value = 'allow-exclusive'
|
|
115
|
+
imgCompression.value = 'auto_glz'
|
|
116
|
+
jpegCompression.value = 'auto'
|
|
117
|
+
zlibCompression.value = 'auto'
|
|
118
|
+
playbackCompression.value = true
|
|
119
|
+
streamingMode.value = 'all'
|
|
120
|
+
copyPaste.value = true
|
|
121
|
+
mouseMode.value = 'client'
|
|
122
|
+
fileTransfer.value = true
|
|
123
|
+
usbRedirection.value = 3
|
|
124
|
+
folderSharing.value = true
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const keymap = ref<string>('en_US')
|
|
128
|
+
|
|
129
|
+
const password = ref<string>('')
|
|
130
|
+
const passwordIsValid = ref<boolean>(true)
|
|
131
|
+
|
|
132
|
+
// const powerControl = ref<boolean>(false)
|
|
133
|
+
|
|
134
|
+
// const sharePolicy = ref<string>('allow-exclusive')
|
|
135
|
+
|
|
136
|
+
const imgCompression = ref<string>('auto_glz')
|
|
137
|
+
|
|
138
|
+
const jpegCompression = ref<string>('auto')
|
|
139
|
+
|
|
140
|
+
const zlibCompression = ref<string>('auto')
|
|
141
|
+
|
|
142
|
+
const playbackCompression = ref<boolean>(true)
|
|
143
|
+
|
|
144
|
+
const streamingMode = ref<string>('all')
|
|
145
|
+
|
|
146
|
+
const copyPaste = ref<boolean>(true)
|
|
147
|
+
|
|
148
|
+
const mouseMode = ref<string>('client')
|
|
149
|
+
|
|
150
|
+
const fileTransfer = ref<boolean>(true)
|
|
151
|
+
|
|
152
|
+
const usbRedirection = ref<number>(3)
|
|
153
|
+
|
|
154
|
+
const folderSharing = ref<boolean>(true)
|
|
155
|
+
|
|
156
|
+
watch(
|
|
157
|
+
[
|
|
158
|
+
remoteConsoleType,
|
|
159
|
+
keymap,
|
|
160
|
+
password,
|
|
161
|
+
// powerControl,
|
|
162
|
+
// sharePolicy,
|
|
163
|
+
imgCompression,
|
|
164
|
+
jpegCompression,
|
|
165
|
+
zlibCompression,
|
|
166
|
+
playbackCompression,
|
|
167
|
+
streamingMode,
|
|
168
|
+
copyPaste,
|
|
169
|
+
mouseMode,
|
|
170
|
+
fileTransfer,
|
|
171
|
+
usbRedirection,
|
|
172
|
+
folderSharing,
|
|
173
|
+
],
|
|
174
|
+
() => {
|
|
175
|
+
emits('send-data', {
|
|
176
|
+
type: remoteConsoleType.value,
|
|
177
|
+
port: 0,
|
|
178
|
+
keymap: keymap.value,
|
|
179
|
+
password: password.value,
|
|
180
|
+
guest_os_lock: false,
|
|
181
|
+
limit_sessions: 0,
|
|
182
|
+
spice: {
|
|
183
|
+
img_compression: imgCompression.value,
|
|
184
|
+
jpeg_compression: jpegCompression.value,
|
|
185
|
+
zlib_glz_compression: zlibCompression.value,
|
|
186
|
+
streaming_mode: streamingMode.value,
|
|
187
|
+
playback_compression: playbackCompression.value,
|
|
188
|
+
file_transfer: fileTransfer.value,
|
|
189
|
+
clipboard: copyPaste.value,
|
|
190
|
+
},
|
|
191
|
+
})
|
|
192
|
+
},
|
|
193
|
+
{ immediate: true }
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
// Добавляем данные для редактирования
|
|
197
|
+
watch(
|
|
198
|
+
() => props.remoteConsoleOptions,
|
|
199
|
+
(newValue) => {
|
|
200
|
+
if (!newValue || !props.remoteConsoleOptions) return
|
|
201
|
+
|
|
202
|
+
remoteConsoleType.value = props.remoteConsoleOptions.type
|
|
203
|
+
keymap.value = props.remoteConsoleOptions.keymap
|
|
204
|
+
password.value = props.remoteConsoleOptions.password
|
|
205
|
+
imgCompression.value = props.remoteConsoleOptions.spice.img_compression
|
|
206
|
+
jpegCompression.value = props.remoteConsoleOptions.spice.jpeg_compression
|
|
207
|
+
zlibCompression.value =
|
|
208
|
+
props.remoteConsoleOptions.spice.zlib_glz_compression
|
|
209
|
+
streamingMode.value = props.remoteConsoleOptions.spice.streaming_mode
|
|
210
|
+
playbackCompression.value =
|
|
211
|
+
props.remoteConsoleOptions.spice.playback_compression
|
|
212
|
+
fileTransfer.value = props.remoteConsoleOptions.spice.file_transfer
|
|
213
|
+
copyPaste.value = props.remoteConsoleOptions.spice.clipboard
|
|
214
|
+
},
|
|
215
|
+
{ immediate: true }
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
const remoteConsoleOptionsInvalid = computed<boolean>(
|
|
219
|
+
() => !passwordIsValid.value
|
|
220
|
+
)
|
|
221
|
+
watch(
|
|
222
|
+
remoteConsoleOptionsInvalid,
|
|
223
|
+
(newValue) => {
|
|
224
|
+
emits('invalid', newValue)
|
|
225
|
+
},
|
|
226
|
+
{ immediate: true }
|
|
227
|
+
)
|
|
228
|
+
</script>
|
|
229
|
+
|
|
230
|
+
<style scoped lang="scss"></style>
|
|
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
45
45
|
|
|
46
46
|
const props = defineProps<{
|
|
47
47
|
imgCompression: string
|
|
48
|
-
errorValidationFields: UI_I_ErrorValidationField
|
|
48
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
49
49
|
}>()
|
|
50
50
|
const emits = defineEmits<{
|
|
51
51
|
(event: 'update:img-compression', value: string): void
|
|
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
45
45
|
|
|
46
46
|
const props = defineProps<{
|
|
47
47
|
jpegCompression: string
|
|
48
|
-
errorValidationFields: UI_I_ErrorValidationField
|
|
48
|
+
errorValidationFields: UI_I_ErrorValidationField[]
|
|
49
49
|
}>()
|
|
50
50
|
const emits = defineEmits<{
|
|
51
51
|
(event: 'update:jpeg-compression', value: string): void
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.keymap }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="select">
|
|
9
|
-
<select v-model="remoteConsoleTypeLocal" id="keymap-select">
|
|
10
|
-
<option
|
|
11
|
-
v-for="(item, key) in keymapOptions"
|
|
12
|
-
:key="key"
|
|
13
|
-
:value="item.value"
|
|
14
|
-
>
|
|
15
|
-
{{ item.text }}
|
|
16
|
-
</option>
|
|
17
|
-
</select>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
</atoms-stack-block>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import { keymapOptionsConfig } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/config/config'
|
|
26
|
-
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
27
|
-
import { UI_I_Localization } from '~/models/interfaces'
|
|
28
|
-
|
|
29
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
30
|
-
|
|
31
|
-
const props = defineProps<{
|
|
32
|
-
keymap: string
|
|
33
|
-
}>()
|
|
34
|
-
const emits = defineEmits<{
|
|
35
|
-
(event: 'update:keymap',
|
|
36
|
-
}>()
|
|
37
|
-
|
|
38
|
-
const keymapOptions = ref<UI_I_OptionItem[]>(keymapOptionsConfig)
|
|
39
|
-
|
|
40
|
-
const remoteConsoleTypeLocal = computed<string>({
|
|
41
|
-
get() {
|
|
42
|
-
return props.keymap
|
|
43
|
-
},
|
|
44
|
-
set(newValue) {
|
|
45
|
-
emits('update:keymap', newValue)
|
|
46
|
-
},
|
|
47
|
-
})
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<atoms-stack-block :has-children="false">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
{{ localization.keymap }}
|
|
6
|
+
</template>
|
|
7
|
+
<template #stackBlockContent>
|
|
8
|
+
<div class="select">
|
|
9
|
+
<select v-model="remoteConsoleTypeLocal" id="keymap-select">
|
|
10
|
+
<option
|
|
11
|
+
v-for="(item, key) in keymapOptions"
|
|
12
|
+
:key="key"
|
|
13
|
+
:value="item.value"
|
|
14
|
+
>
|
|
15
|
+
{{ item.text }}
|
|
16
|
+
</option>
|
|
17
|
+
</select>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
</atoms-stack-block>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script setup lang="ts">
|
|
25
|
+
import { keymapOptionsConfig } from '~/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/config/config'
|
|
26
|
+
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
27
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
28
|
+
|
|
29
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
30
|
+
|
|
31
|
+
const props = defineProps<{
|
|
32
|
+
keymap: string
|
|
33
|
+
}>()
|
|
34
|
+
const emits = defineEmits<{
|
|
35
|
+
(event: 'update:keymap', value: string): void
|
|
36
|
+
}>()
|
|
37
|
+
|
|
38
|
+
const keymapOptions = ref<UI_I_OptionItem[]>(keymapOptionsConfig)
|
|
39
|
+
|
|
40
|
+
const remoteConsoleTypeLocal = computed<string>({
|
|
41
|
+
get() {
|
|
42
|
+
return props.keymap
|
|
43
|
+
},
|
|
44
|
+
set(newValue) {
|
|
45
|
+
emits('update:keymap', newValue)
|
|
46
|
+
},
|
|
47
|
+
})
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<style scoped></style>
|