bfg-common 1.5.200 → 1.5.203
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/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +12 -3
- package/assets/localization/local_en.json +12 -3
- package/assets/localization/local_hy.json +12 -3
- package/assets/localization/local_kk.json +12 -3
- package/assets/localization/local_ru.json +14 -5
- package/assets/localization/local_zh.json +12 -3
- package/components/common/graph/GraphOld.vue +50 -50
- package/components/common/graph/graphNew/GraphNew.vue +194 -194
- package/components/common/lib/config/states.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersOld.vue +4 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1040 -1040
- package/components/common/pages/scheduledTasks/modals/common/frequency/lib/config/frequencyOptions.ts +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +17 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +18 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +11 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +4 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +25 -15
- package/package.json +2 -2
|
@@ -308,11 +308,26 @@ watch(
|
|
|
308
308
|
selectedCpu.value = newValue.vcpus
|
|
309
309
|
selectedMaxCpu.value = newValue.hotplug ? newValue.max_vcpus : 1
|
|
310
310
|
selectedCorePerSocket.value = newValue.core_per_socket
|
|
311
|
-
reservation.value = '' + newValue.reservation_mhz
|
|
312
|
-
limit.value = '' + newValue.limit_mhz
|
|
313
311
|
shares.value = '' + newValue.shares
|
|
314
312
|
sharesType.value = '' + newValue.shares
|
|
315
313
|
|
|
314
|
+
const reservationInGhz = $binary.mhzToGhz(newValue.reservation_mhz)
|
|
315
|
+
if (reservationInGhz < 1) {
|
|
316
|
+
reservation.value = newValue.reservation_mhz.toString()
|
|
317
|
+
reservationType.value = 'mhz'
|
|
318
|
+
} else {
|
|
319
|
+
reservation.value = reservationInGhz
|
|
320
|
+
reservationType.value = 'ghz'
|
|
321
|
+
}
|
|
322
|
+
const limitInGhz = $binary.mhzToGhz(newValue.limit_mhz)
|
|
323
|
+
if (limitInGhz < 1) {
|
|
324
|
+
limit.value = newValue.limit_mhz.toString()
|
|
325
|
+
limitType.value = 'mhz'
|
|
326
|
+
} else {
|
|
327
|
+
limit.value = limitInGhz
|
|
328
|
+
limitType.value = 'ghz'
|
|
329
|
+
}
|
|
330
|
+
|
|
316
331
|
switch (newValue.model) {
|
|
317
332
|
case 'host-passthrough':
|
|
318
333
|
passthroughHostCpu.value = true
|
package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue
CHANGED
|
@@ -273,8 +273,24 @@ watch(
|
|
|
273
273
|
selectedMemory.value = sizeInGb
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
const reservationInGb = $binary.mbToGb(newValue.reservation_mb)
|
|
277
|
+
if (reservationInGb < 1) {
|
|
278
|
+
reservation.value = newValue.reservation_mb
|
|
279
|
+
reservationType.value = 'mb'
|
|
280
|
+
} else {
|
|
281
|
+
reservation.value = reservationInGb
|
|
282
|
+
reservationType.value = 'gb'
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const limitInGb = $binary.mbToGb(newValue.limit_mb)
|
|
286
|
+
if (limitInGb < 1) {
|
|
287
|
+
limit.value = newValue.limit_mb
|
|
288
|
+
limitType.value = 'mb'
|
|
289
|
+
} else {
|
|
290
|
+
limit.value = limitInGb
|
|
291
|
+
limitType.value = 'gb'
|
|
292
|
+
}
|
|
293
|
+
|
|
278
294
|
memoryHotPlug.value = newValue.hotplug
|
|
279
295
|
},
|
|
280
296
|
{ immediate: true }
|
|
@@ -167,8 +167,7 @@ const maxHardDisk = computed<number>(() => {
|
|
|
167
167
|
if (!storage.value) return 0
|
|
168
168
|
const free = storage.value.capacity.free_mb || storage.value.capacity // TODO fix
|
|
169
169
|
|
|
170
|
-
if (props.isEdit)
|
|
171
|
-
return free + hardDiskSizeMb
|
|
170
|
+
if (props.isEdit) return free + hardDiskSizeMb
|
|
172
171
|
|
|
173
172
|
return free
|
|
174
173
|
})
|
|
@@ -214,10 +213,10 @@ const sizeInMb = computed<number>(() => {
|
|
|
214
213
|
})
|
|
215
214
|
const onValidateSize = (): void => {
|
|
216
215
|
if (props.type !== 'edit') return
|
|
217
|
-
if (sizeInMb.value <
|
|
216
|
+
if (sizeInMb.value < props.hardDisk.size) {
|
|
218
217
|
size.value = $binary.universalFromTo(
|
|
219
218
|
props.hardDisk.size,
|
|
220
|
-
'
|
|
219
|
+
'mb',
|
|
221
220
|
hardDiskType.value
|
|
222
221
|
)
|
|
223
222
|
}
|
|
@@ -334,6 +333,14 @@ watch(
|
|
|
334
333
|
// if (props.type !== 'edit') return
|
|
335
334
|
if (props.type !== 'edit' && props.type !== 'clone') return
|
|
336
335
|
|
|
336
|
+
const sizeInGb = $binary.mbToGb(newValue.size)
|
|
337
|
+
if (sizeInGb < 1) {
|
|
338
|
+
size.value = newValue.size
|
|
339
|
+
hardDiskType.value = 'mb'
|
|
340
|
+
} else {
|
|
341
|
+
size.value = sizeInGb
|
|
342
|
+
hardDiskType.value = 'gb'
|
|
343
|
+
}
|
|
337
344
|
diskProvisioning.value = newValue.provision_type || 'thick'
|
|
338
345
|
sharing.value = newValue.sharing ? 'yes' : ''
|
|
339
346
|
shares.value = newValue.shares || 0
|
|
@@ -269,6 +269,10 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
269
269
|
margin: 0 12px;
|
|
270
270
|
border-right: 1px solid var(--device-will-removed-border-color);
|
|
271
271
|
border-left: 1px solid var(--device-will-removed-border-color);
|
|
272
|
+
|
|
273
|
+
:deep(.ui-checkbox-label-text) {
|
|
274
|
+
word-break: break-word;
|
|
275
|
+
}
|
|
272
276
|
}
|
|
273
277
|
}
|
|
274
278
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
:is-roll-back="props.type === 'removed'"
|
|
6
6
|
:removable="props.isRemovable"
|
|
7
7
|
:test-id="`hard-disk-stack-block-${props.index}`"
|
|
8
|
+
class="stack-block"
|
|
8
9
|
@remove="emits('remove')"
|
|
9
10
|
@roll-back="emits('roll-back')"
|
|
10
11
|
>
|
|
@@ -27,25 +28,27 @@
|
|
|
27
28
|
<template #stackBlockContent>
|
|
28
29
|
<div class="flex-align-center flex-space-between mr-1">
|
|
29
30
|
<template v-if="props.type === 'removed'">
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
<div class="flex flex-col">
|
|
32
|
+
<span>{{ localization.common.deviceWillRemoved }}</span>
|
|
33
|
+
<div class="flex-align-center" @click.stop>
|
|
34
|
+
<input
|
|
35
|
+
:id="`hard-disk-delete-files-from-datastore-${props.index}`"
|
|
36
|
+
v-model="deleteFilesFromDatastore"
|
|
37
|
+
:data-id="`hard-disk-delete-files-from-datastore-${props.index}`"
|
|
38
|
+
:disabled="props.disabled"
|
|
39
|
+
type="checkbox"
|
|
40
|
+
class="cursor-pointer"
|
|
41
|
+
@click.stop
|
|
42
|
+
/>
|
|
43
|
+
<label
|
|
44
|
+
:for="`hard-disk-delete-files-from-datastore-${props.index}`"
|
|
45
|
+
:class="[
|
|
44
46
|
'label-text-normal cursor-pointer',
|
|
45
47
|
props.disabled && 'div-disabled',
|
|
46
48
|
]"
|
|
47
49
|
>{{ localization.common.deleteFilesFromDatastore }}</label
|
|
48
|
-
|
|
50
|
+
>
|
|
51
|
+
</div>
|
|
49
52
|
</div>
|
|
50
53
|
</template>
|
|
51
54
|
<template v-else>
|
|
@@ -247,4 +250,11 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
247
250
|
}
|
|
248
251
|
}
|
|
249
252
|
}
|
|
253
|
+
.hardware-hard-disk {
|
|
254
|
+
.stack-block {
|
|
255
|
+
:deep(.stack-block-label) {
|
|
256
|
+
align-items: center;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
250
260
|
</style>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.203",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxt build",
|
|
7
7
|
"dev": "nuxt dev --port=3002",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
|
35
35
|
"@vueuse/components": "^10.1.2",
|
|
36
36
|
"date-fns": "^2.29.3",
|
|
37
|
-
"bfg-nuxt-3-graph": "1.0.
|
|
37
|
+
"bfg-nuxt-3-graph": "1.0.25",
|
|
38
38
|
"bfg-uikit": "1.0.430",
|
|
39
39
|
"html2canvas": "^1.4.1",
|
|
40
40
|
"prettier-eslint": "^15.0.1"
|