bfg-common 1.3.439 → 1.3.441

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.
@@ -416,6 +416,7 @@
416
416
  "directPathIO": "Մուտքագրում/եզրակացություն ուղիղ ուղի",
417
417
  "directSync": "Ուղիղ համաժամեցում",
418
418
  "disable": "Արգելել",
419
+ "tokenDisable": "Արգելել",
419
420
  "disableAdapter": "Անջատել ադապտեր",
420
421
  "disabled": "Անաշխատունակ",
421
422
  "disableStorageDRSVirtualMachine": "Անջատել Storage DRS-ն այս ՎՄ-ի համար",
@@ -505,6 +506,7 @@
505
506
  "emptyNameError": "Անունը չի կարող դատարկ լինել: Մուտքագրեք անուն:",
506
507
  "emptyRelatedEvents": "Առնչվող իրադարձություններ չկան:",
507
508
  "enable": "Միացնել",
509
+ "tokenEnable": "Միացնել",
508
510
  "enable3dSupport": "Միացնել 3D աջակցությունը",
509
511
  "enableAuthentication": "Միացնել նույնականացումը",
510
512
  "enableBothOptions": "Միացնել երկու տարբերակները",
@@ -416,6 +416,7 @@
416
416
  "directPathIO": "Дұрыс жолдан бас тарту/қайтару",
417
417
  "directSync": "Тікелей синхрондау",
418
418
  "disable": "Тыйым салу",
419
+ "tokenDisable": "Тыйым салу",
419
420
  "disableAdapter": "Адаптерді өшіріңіз",
420
421
  "disabled": "Өшірілген",
421
422
  "disableStorageDRSVirtualMachine": "Осы VM үшін Storage DRS өшіріңіз",
@@ -505,6 +506,7 @@
505
506
  "emptyNameError": "Аты бос болмауы керек. ",
506
507
  "emptyRelatedEvents": "Няма падзейді байлады.",
507
508
  "enable": "Қосу",
509
+ "tokenEnable": "Қосу",
508
510
  "enable3dSupport": "3D қолдауын қосыңыз",
509
511
  "enableAuthentication": "Аутентификацияны қосыңыз",
510
512
  "enableBothOptions": "Екі опцияны да қосыңыз",
@@ -419,6 +419,7 @@
419
419
  "directPathIO": "Ввод/вывод прямого пути",
420
420
  "directSync": "Прямая синхронизация",
421
421
  "disable": "Запрещать",
422
+ "tokenDisable": "Запретить",
422
423
  "disableAdapter": "Отключить адаптер",
423
424
  "disabled": "Отключен",
424
425
  "disableStorageDRSVirtualMachine": "Отключить Storage DRS для этой виртуальной машины",
@@ -508,6 +509,7 @@
508
509
  "emptyNameError": "Имя не может быть пустым. Введите имя.",
509
510
  "emptyRelatedEvents": "Нет связанных событий.",
510
511
  "enable": "Включить",
512
+ "tokenEnable": "Разрешить",
511
513
  "enable3dSupport": "Включить поддержку 3D",
512
514
  "enableAuthentication": "Включить проверку подлинности",
513
515
  "enableBothOptions": "Включите оба параметра",
@@ -416,6 +416,7 @@
416
416
  "directPathIO": "I/O 直接路径",
417
417
  "directSync": "直接同步",
418
418
  "disable": "禁止",
419
+ "tokenDisable": "禁止",
419
420
  "disableAdapter": "禁用适配器",
420
421
  "disabled": "残疾人",
421
422
  "disableStorageDRSVirtualMachine": "为此虚拟机禁用存储 DRS",
@@ -505,6 +506,7 @@
505
506
  "emptyNameError": "名称不能为空。",
506
507
  "emptyRelatedEvents": "没有相关事件。",
507
508
  "enable": "打开",
509
+ "tokenEnable": "打开",
508
510
  "enable3dSupport": "启用 3D 支持",
509
511
  "enableAuthentication": "启用身份验证",
510
512
  "enableBothOptions": "启用这两个选项",
@@ -5,38 +5,38 @@
5
5
  :show="true"
6
6
  :title="localization.editSettings"
7
7
  :second-title="vmNameCash"
8
- :disabled-submit="loading"
8
+ :disabled-submit="loadingLocal"
9
9
  @submit="onUpdate"
10
10
  @hide="onHideModal"
11
11
  >
12
12
  <template #modalBody>
13
- <atoms-loader v-show="!vmSettings || loading" id="loader" />
14
- <div v-if="vmSettings" class="vm-context">
13
+ <atoms-loader v-show="!vmSettingsLocal || loadingLocal" id="loader" />
14
+ <div v-if="vmSettingsLocal" class="vm-context">
15
15
  <common-vm-actions-common-customize-hardware
16
16
  v-model:vm-name="vmName"
17
- v-model:guest-machine-type="vmSettings.guestMachineType"
18
- v-model:guest-os-family="vmSettings.guestOsFamily"
19
- v-model:guest-os-version="vmSettings.guestOsVersion"
17
+ v-model:guest-machine-type="vmSettingsLocal.guestMachineType"
18
+ v-model:guest-os-family="vmSettingsLocal.guestOsFamily"
19
+ v-model:guest-os-version="vmSettingsLocal.guestOsVersion"
20
20
  :project="props.project"
21
- :storage="vmSettings.storage"
21
+ :storage="vmSettingsLocal.storage"
22
22
  :hard-disks-for-boot-options="virtualHardwareHardDisksLocal"
23
23
  :cd-dvd-drives-for-boot-options="virtualHardwareCdDvdDrivesLocal"
24
24
  :networks-for-boot-options="virtualHardwareNetworksLocal"
25
- :cd-dvd-drives="vmSettings.cdDvdDrives"
26
- :hard-disks="vmSettings.hardDisks"
27
- :networks="vmSettings.networks"
25
+ :cd-dvd-drives="vmSettingsLocal.cdDvdDrives"
26
+ :hard-disks="vmSettingsLocal.hardDisks"
27
+ :networks="vmSettingsLocal.networks"
28
28
  :customize-hardware-submit="0"
29
- :max-cpus="vmSettings.maxCpus"
30
- :max-memory="vmSettings.maxMemory"
31
- :cpu-models="vmSettings.cpuModels"
32
- :cpu="vmSettings.cpu"
33
- :memory="vmSettings.memory"
34
- :video-card="vmSettings.videoCard"
35
- :usb-controller="vmSettings.usbController"
36
- :pci-devices="vmSettings.pciDevices"
29
+ :max-cpus="vmSettingsLocal.maxCpus"
30
+ :max-memory="vmSettingsLocal.maxMemory"
31
+ :cpu-models="vmSettingsLocal.cpuModels"
32
+ :cpu="vmSettingsLocal.cpu"
33
+ :memory="vmSettingsLocal.memory"
34
+ :video-card="vmSettingsLocal.videoCard"
35
+ :usb-controller="vmSettingsLocal.usbController"
36
+ :pci-devices="vmSettingsLocal.pciDevices"
37
37
  :selected-nav-item="selectedNavItem"
38
- :hard-disks-for-edit="vmSettings.hardDisks"
39
- :options="vmSettings.options"
38
+ :hard-disks-for-edit="vmSettingsLocal.hardDisks"
39
+ :options="vmSettingsLocal.options"
40
40
  :nodes="props.nodes"
41
41
  :files="props.files"
42
42
  :networks-table="props.networksTable"
@@ -122,20 +122,20 @@ const localization = computed<UI_I_Localization>(() => useLocal())
122
122
 
123
123
  const selectedNavItem = ref<UI_T_SelectedNavItem>(0)
124
124
 
125
- const loading = ref<boolean>(false)
125
+ const loadingLocal = ref<boolean>(false)
126
126
  watch(
127
127
  () => props.loading,
128
- (value) => {
129
- loading.value = value
128
+ (newValue: boolean) => {
129
+ loadingLocal.value = newValue
130
130
  },
131
131
  { immediate: true }
132
132
  )
133
133
 
134
- const vmSettings = computed<UI_I_VmSettings | null>(() => props.vmSettings)
134
+ const vmSettingsLocal = computed<UI_I_VmSettings | null>(() => props.vmSettings)
135
135
 
136
- const vmName = ref<string>(vmSettings.value?.name || '')
137
- const vmNameCash = ref<string>(vmSettings.value?.name || '')
138
- watch(vmSettings, (newValue) => {
136
+ const vmName = ref<string>(vmSettingsLocal.value?.name || '')
137
+ const vmNameCash = ref<string>(vmSettingsLocal.value?.name || '')
138
+ watch(vmSettingsLocal, (newValue) => {
139
139
  vmName.value = newValue?.name || ''
140
140
  vmNameCash.value = newValue?.name || ''
141
141
  })
@@ -182,10 +182,10 @@ const virtualHardwareMemory = computed<UI_I_SendDataMemory | null>(
182
182
  )
183
183
 
184
184
  const validateSendData = async (): Promise<void> => {
185
- loading.value = true
185
+ loadingLocal.value = true
186
186
  props
187
187
  .validateSendDataFunc(
188
- vmSettings.value,
188
+ vmSettingsLocal.value,
189
189
  virtualHardwareCpu.value,
190
190
  virtualHardwareMemory.value,
191
191
  customizeHardware.value,
@@ -197,7 +197,7 @@ const validateSendData = async (): Promise<void> => {
197
197
  props.vmId
198
198
  )
199
199
  .then((data) => {
200
- loading.value = false
200
+ loadingLocal.value = false
201
201
 
202
202
  !data && onHideModal()
203
203
  })
@@ -19,6 +19,7 @@ export interface UI_I_SendTaskParams {
19
19
  method: string
20
20
  target: string
21
21
  args: any
22
+ encode?: boolean
22
23
  }
23
24
  export interface UI_I_NotifyBodyMessage {
24
25
  status: UI_T_NotificationStatus
@@ -60,8 +60,9 @@ export async function sendTask({
60
60
  method,
61
61
  target,
62
62
  args,
63
+ encode = true,
63
64
  }: UI_I_SendTaskParams): Promise<void> {
64
- const argsToBase64 = args ? base64.encode(args) : ''
65
+ const argsToBase64 = encode ? (args ? base64.encode(args) : '') : args
65
66
  await handleRequest('/ui/tasks', {
66
67
  method,
67
68
  params: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.439",
4
+ "version": "1.3.441",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",