bfg-common 1.5.619 → 1.5.621
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/localization/local_be.json +2 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2 -1
- package/components/common/vm/actions/register/New.vue +41 -32
- package/package.json +1 -1
- package/public/spice-console/process/cursorprocess.js +7 -0
- package/public/spice-console/process/mainprocess.js +4 -2
- package/public/spice-console-minify/run.min.js +1 -1
|
@@ -3687,6 +3687,7 @@
|
|
|
3687
3687
|
"registerVm": {
|
|
3688
3688
|
"register": "Зарэгістравацца",
|
|
3689
3689
|
"lastCreateSubtitle": "Праверце падрабязнасці перад рэгістрацыяй віртуальнай машыны.",
|
|
3690
|
-
"registerVmSelectFile": "Рэгістрацыя ВМ — Выбар файла"
|
|
3690
|
+
"registerVmSelectFile": "Рэгістрацыя ВМ — Выбар файла",
|
|
3691
|
+
"nameAlreadyExistsDescription": "Запіс з такой назвай ужо існуе."
|
|
3691
3692
|
}
|
|
3692
3693
|
}
|
|
@@ -3691,6 +3691,7 @@
|
|
|
3691
3691
|
"registerVm": {
|
|
3692
3692
|
"register": "Register",
|
|
3693
3693
|
"lastCreateSubtitle": "Review the details before the virtual machine is registered.",
|
|
3694
|
-
"registerVmSelectFile": "Register VM - Select File"
|
|
3694
|
+
"registerVmSelectFile": "Register VM - Select File",
|
|
3695
|
+
"nameAlreadyExistsDescription": "A record with this name already exists."
|
|
3695
3696
|
}
|
|
3696
3697
|
}
|
|
@@ -3692,6 +3692,7 @@
|
|
|
3692
3692
|
"registerVm": {
|
|
3693
3693
|
"register": "Գրանցվել",
|
|
3694
3694
|
"lastCreateSubtitle": "Ստուգեք մանրամասները՝ մինչ վիրտուալ մեքենայի գրանցումը։",
|
|
3695
|
-
"registerVmSelectFile": "Գրանցել VM — Ընտրել ֆայլ"
|
|
3695
|
+
"registerVmSelectFile": "Գրանցել VM — Ընտրել ֆայլ",
|
|
3696
|
+
"nameAlreadyExistsDescription": "Այս անունով գրառում արդեն գոյություն ունի։"
|
|
3696
3697
|
}
|
|
3697
3698
|
}
|
|
@@ -3690,6 +3690,7 @@
|
|
|
3690
3690
|
"registerVm": {
|
|
3691
3691
|
"register": "Тіркелу",
|
|
3692
3692
|
"lastCreateSubtitle": "Виртуалды машинаны тіркемес бұрын мәліметтерді тексеріңіз.",
|
|
3693
|
-
"registerVmSelectFile": "VM тіркеу — Файл таңдау"
|
|
3693
|
+
"registerVmSelectFile": "VM тіркеу — Файл таңдау",
|
|
3694
|
+
"nameAlreadyExistsDescription": "Бұл атаумен жазба бұрыннан бар."
|
|
3694
3695
|
}
|
|
3695
3696
|
}
|
|
@@ -3690,6 +3690,7 @@
|
|
|
3690
3690
|
"registerVm": {
|
|
3691
3691
|
"register": "Зарегистрироваться",
|
|
3692
3692
|
"lastCreateSubtitle": "Проверьте данные перед регистрацией виртуальной машины.",
|
|
3693
|
-
"registerVmSelectFile": "
|
|
3693
|
+
"registerVmSelectFile": "Зарегистрировать ВМ — Выбор файла",
|
|
3694
|
+
"nameAlreadyExistsDescription": "Запись с таким именем уже существует."
|
|
3694
3695
|
}
|
|
3695
3696
|
}
|
|
@@ -25,11 +25,7 @@
|
|
|
25
25
|
id="name-alert-wrapper"
|
|
26
26
|
:class="[{ 'mb-4': !isNameAlertWrapperEmpty }]"
|
|
27
27
|
></div>
|
|
28
|
-
<ui-wizard-subtitle
|
|
29
|
-
:sub-title="
|
|
30
|
-
localization.vmWizard.specifyUniqueNameAndTargetLocationForVm
|
|
31
|
-
"
|
|
32
|
-
/>
|
|
28
|
+
<ui-wizard-subtitle :sub-title="currentSubtitleSelectNameBlock" />
|
|
33
29
|
</div>
|
|
34
30
|
</template>
|
|
35
31
|
<template #content>
|
|
@@ -50,7 +46,7 @@
|
|
|
50
46
|
localization.common.enterValidLocationVirtualMachine
|
|
51
47
|
"
|
|
52
48
|
:name-exist-validation-description="
|
|
53
|
-
localization.
|
|
49
|
+
localization.registerVm.nameAlreadyExistsDescription
|
|
54
50
|
"
|
|
55
51
|
:test-ids="props.nameTestIds"
|
|
56
52
|
:has-location="props.isSphere"
|
|
@@ -72,35 +68,35 @@
|
|
|
72
68
|
>
|
|
73
69
|
<template #subTitle>
|
|
74
70
|
<div ref="computeResource" class="subtitle-block">
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
71
|
+
<ui-alert
|
|
72
|
+
v-if="props.computeResourceAlert.length"
|
|
73
|
+
:messages="props.computeResourceAlert"
|
|
74
|
+
test-id="computed-resource-alert"
|
|
75
|
+
type="error"
|
|
76
|
+
size="md"
|
|
77
|
+
class="subtitle-block__alert"
|
|
78
|
+
/>
|
|
79
|
+
<ui-wizard-subtitle
|
|
80
|
+
:sub-title="
|
|
81
|
+
localization.vmWizard
|
|
82
|
+
.selectDestinationComputeResourceForThisOperation
|
|
83
|
+
"
|
|
84
|
+
/>
|
|
91
85
|
</div>
|
|
92
86
|
</template>
|
|
93
87
|
<template #content>
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
88
|
+
<div class="mt-4 compute-resource-container">
|
|
89
|
+
<common-wizards-common-steps-compute-resource
|
|
90
|
+
v-show="
|
|
91
|
+
selectedStep.id === props.dynamicSteps.selectComputeResource
|
|
92
|
+
"
|
|
93
|
+
v-model="vmForm.computeResource"
|
|
94
|
+
:nodes="props.computeResourceTreeLocal"
|
|
95
|
+
:alert-messages="props.computeResourceAlert"
|
|
96
|
+
:is-loading="props.isLoadingComputeTree"
|
|
97
|
+
:compatibility-text="props.compatibilityText"
|
|
98
|
+
/>
|
|
99
|
+
</div>
|
|
104
100
|
</template>
|
|
105
101
|
</ui-wizard-block>
|
|
106
102
|
|
|
@@ -206,6 +202,12 @@ const subTitleBlockReadyComplete = ref<HTMLElement | null>(null)
|
|
|
206
202
|
const { height: heightReadyComplete } = useElementSize(
|
|
207
203
|
subTitleBlockReadyComplete
|
|
208
204
|
)
|
|
205
|
+
|
|
206
|
+
const currentSubtitleSelectNameBlock = ref<string>(
|
|
207
|
+
props.isSphere
|
|
208
|
+
? localization.value.vmWizard.specifyUniqueNameAndTargetLocationForVm
|
|
209
|
+
: localization.value.common.specifyUniqueNameForVm
|
|
210
|
+
)
|
|
209
211
|
</script>
|
|
210
212
|
|
|
211
213
|
<style scoped lang="scss">
|
|
@@ -215,4 +217,11 @@ const { height: heightReadyComplete } = useElementSize(
|
|
|
215
217
|
border-bottom: 1px solid var(--wizard-line);
|
|
216
218
|
padding-bottom: 12px;
|
|
217
219
|
}
|
|
220
|
+
.compute-resource-container {
|
|
221
|
+
padding-bottom: 40px;
|
|
222
|
+
|
|
223
|
+
:deep(.compatibility-wrap) {
|
|
224
|
+
margin-top: 24px;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
218
227
|
</style>
|
package/package.json
CHANGED
|
@@ -32,6 +32,13 @@ wdi.CursorProcess = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
32
32
|
wdiCursor.header.hot_spot_x,
|
|
33
33
|
wdiCursor.header.hot_spot_y
|
|
34
34
|
)
|
|
35
|
+
} else {
|
|
36
|
+
// Custom code
|
|
37
|
+
// Это правит баг с курсором, когда устанавливается windows
|
|
38
|
+
window.app.packetProcess.processors[
|
|
39
|
+
wdi.SpiceVars.SPICE_CHANNEL_MAIN
|
|
40
|
+
].changeMouseMode()
|
|
41
|
+
// Custom code end
|
|
35
42
|
}
|
|
36
43
|
break
|
|
37
44
|
// Custom code
|
|
@@ -83,12 +83,12 @@ wdi.MainProcess = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
83
83
|
this.currentMouseMode = mode
|
|
84
84
|
const { $mouse } = useNuxtApp()
|
|
85
85
|
$mouse.changeMode(mode)
|
|
86
|
-
// Initialize the cursor
|
|
86
|
+
// Initialize the cursor // TODO refactoring
|
|
87
87
|
if (mode === wdi.SpiceMouseModeTypes.SPICE_MOUSE_MODE_SERVER) {
|
|
88
88
|
wdi.VirtualMouse.initCursor();
|
|
89
89
|
|
|
90
90
|
const canvas = document.getElementById('eventLayer');
|
|
91
|
-
canvas.requestPointerLock?.();
|
|
91
|
+
// canvas.requestPointerLock?.();
|
|
92
92
|
|
|
93
93
|
const rect = canvas.getBoundingClientRect();
|
|
94
94
|
|
|
@@ -203,6 +203,8 @@ wdi.MainProcess = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
203
203
|
document.addEventListener('pointerlockchange', onPointerLockChange);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
canvas.requestPointerLock?.();
|
|
207
|
+
|
|
206
208
|
// Инициализация позиции (можно взять из последнего известного положения)
|
|
207
209
|
initPosDefault();
|
|
208
210
|
}
|