bfg-common 1.5.853 → 1.5.855

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.
@@ -4011,11 +4011,5 @@
4011
4011
  "autostart": "Аўтазапуск",
4012
4012
  "enableAutostart": "Уключыць аўтазапуск",
4013
4013
  "disableAutostart": "Адключыць аўтазапуск"
4014
- },
4015
- "temp": {
4016
- "title": "Віртуальны metro storage кластар",
4017
- "stepTitle": "Выберыце зыходны хост",
4018
- "serverAddress": "Адрас сервера",
4019
- "fqdnOrIpAddress": "FQDN або IP-адрас"
4020
4014
  }
4021
4015
  }
@@ -4015,11 +4015,5 @@
4015
4015
  "autostart": "Autostart",
4016
4016
  "enableAutostart": "Enable autostart",
4017
4017
  "disableAutostart": "Disable autostart"
4018
- },
4019
- "temp": {
4020
- "title": "Virtual metro storage cluster",
4021
- "stepTitle": "Select source host",
4022
- "serverAddress": "Server Address",
4023
- "fqdnOrIpAddress": "FQDN or IP address"
4024
4018
  }
4025
4019
  }
@@ -4015,11 +4015,5 @@
4015
4015
  "autostart": "Ավտոմատ մեկնարկ",
4016
4016
  "enableAutostart": "Միացնել ավտոմատ մեկնարկը",
4017
4017
  "disableAutostart": "Անջատել ավտոմատ մեկնարկը"
4018
- },
4019
- "temp": {
4020
- "title": "Վիրտուալ metro storage կլաստեր",
4021
- "stepTitle": "Ընտրեք աղբյուրի հոստ",
4022
- "serverAddress": "Սերվերի հասցե",
4023
- "fqdnOrIpAddress": "FQDN կամ IP հասցե"
4024
4018
  }
4025
4019
  }
@@ -4014,11 +4014,5 @@
4014
4014
  "autostart": "Автожаңғалту",
4015
4015
  "enableAutostart": "Автожаңғалтуды қосу",
4016
4016
  "disableAutostart": "Автожаңғалтуды өшіру"
4017
- },
4018
- "temp": {
4019
- "title": "Виртуалды metro storage кластері",
4020
- "stepTitle": "Дереккөз хостты таңдаңыз",
4021
- "serverAddress": "Сервердің мекенжайы",
4022
- "fqdnOrIpAddress": "FQDN немесе IP-мекенжай"
4023
4017
  }
4024
4018
  }
@@ -4014,11 +4014,5 @@
4014
4014
  "autostart": "Автозапуск",
4015
4015
  "enableAutostart": "Автозапуск вкл",
4016
4016
  "disableAutostart": "Автозапуск выкл"
4017
- },
4018
- "temp": {
4019
- "title": "Виртуальный metro storage кластер",
4020
- "stepTitle": "Выберите исходный хост",
4021
- "serverAddress": "Адрес сервера",
4022
- "fqdnOrIpAddress": "FQDN или IP-адрес"
4023
4017
  }
4024
4018
  }
@@ -4012,11 +4012,5 @@
4012
4012
  "autostart": "自动启动",
4013
4013
  "enableAutostart": "启用自动启动",
4014
4014
  "disableAutostart": "禁用自动启动"
4015
- },
4016
- "temp": {
4017
- "title": "虚拟Metro存储集群",
4018
- "stepTitle": "选择源主机",
4019
- "serverAddress": "服务器地址",
4020
- "fqdnOrIpAddress": "FQDN或IP地址"
4021
4015
  }
4022
4016
  }
@@ -29,7 +29,7 @@
29
29
  >
30
30
  </nuxt-link>
31
31
  </div>
32
- <form style="width: 100%; height: 100%" @click="onTemp">
32
+ <form>
33
33
  <atoms-input-search />
34
34
  </form>
35
35
 
@@ -146,10 +146,6 @@ const onUpdateLanguage = (language: string): void => {
146
146
  }
147
147
 
148
148
  const isShowFeedback = ref<boolean>(false)
149
-
150
- const onTemp = (): void => {
151
- useLocalStorage('temp', true)
152
- }
153
149
  </script>
154
150
 
155
151
  <style scoped lang="scss">
@@ -1,7 +1,7 @@
1
1
  import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
2
2
  import {
3
3
  allowedHostCpuFieldNotObject,
4
- // allowedHostNetworkFieldNotObject,
4
+ allowedHostNetworkFieldNotObject,
5
5
  } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/config'
6
6
 
7
7
  export const checkIsDisabledSubmit = (
@@ -144,7 +144,7 @@ const props = withDefaults(
144
144
  guestMachineType: undefined,
145
145
  computeResource: undefined,
146
146
  compatibilityInfo: undefined,
147
- nums: null
147
+ nums: null,
148
148
  }
149
149
  )
150
150
  const emits = defineEmits<{
@@ -182,9 +182,11 @@ const availableUsbDevices = computed<any[]>(() => {
182
182
  usbDevicesLocal.value.filter((device) => {
183
183
  if (device.passthrough === 'Pathroughed') return null
184
184
 
185
- const isUniqueDevice = model.value.passthrough_usb_devices?.every(
186
- (item) => item.product_id !== device.product_id
187
- )
185
+ const isUniqueDevice =
186
+ !model.value.passthrough_usb_devices ||
187
+ model.value.passthrough_usb_devices.every(
188
+ (item) => item.product_id !== device.product_id
189
+ )
188
190
  if (isUniqueDevice) return device
189
191
  }) || []
190
192
  )
@@ -664,7 +666,10 @@ const onChangeUsbDevice = (data: [number, string]): void => {
664
666
  const [index, value] = data
665
667
 
666
668
  usbDevicesLocal.value = usbDevicesLocal.value.map((device) => {
667
- if (model.value.passthrough_usb_devices[index].product_id === device.product_id) {
669
+ if (
670
+ model.value.passthrough_usb_devices[index].product_id ===
671
+ device.product_id
672
+ ) {
668
673
  device.passthrough = 'Enable'
669
674
  }
670
675
  return device
@@ -1,59 +1,59 @@
1
- <template>
2
- <ui-stack-block
3
- :has-children="false"
4
- :test-id="`hard-disk-vm-storage-policy-stack-block-${props.index}`"
5
- >
6
- <template #stackBlockKey>
7
- <span class="title">
8
- {{ localization.vmWizard.vmStoragePolicy }}
9
- </span>
10
- </template>
11
- <template #stackBlockContent>
12
- <ui-checkbox
13
- v-model="model"
14
- :label-text="localization.vmWizard.encriptionPolicy"
15
- test-id="encription-policy"
16
- size="md"
17
- />
18
- <!-- <ui-select-->
19
- <!-- v-model="model"-->
20
- <!-- :items="props.vmStoragePolicyOptions"-->
21
- <!-- :test-id="`vm-storage-policy-field-${props.index}`"-->
22
- <!-- width="auto"-->
23
- <!-- size="sm"-->
24
- <!-- />-->
25
- </template>
26
- </ui-stack-block>
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
-
33
- const model = defineModel<boolean>({
34
- required: true,
35
- })
36
- const props = defineProps<{
37
- index: number
38
- vmStoragePolicyOptions: UI_I_OptionItem[]
39
- }>()
40
-
41
- const localization = computed<UI_I_Localization>(() => useLocal())
42
- </script>
43
-
44
- <style>
45
- :root {
46
- --vm-wizard-maximum-size-color: #182531;
47
- }
48
- :root.dark-theme {
49
- --vm-wizard-maximum-size-color: #e9eaec;
50
- }
51
- </style>
52
- <style scoped>
53
- .title {
54
- margin-right: 12px;
55
- height: 32px;
56
- display: flex;
57
- align-items: center;
58
- }
59
- </style>
1
+ <template>
2
+ <ui-stack-block
3
+ :has-children="false"
4
+ :test-id="`hard-disk-vm-storage-policy-stack-block-${props.index}`"
5
+ >
6
+ <template #stackBlockKey>
7
+ <span class="title">
8
+ {{ localization.vmWizard.vmStoragePolicy }}
9
+ </span>
10
+ </template>
11
+ <template #stackBlockContent>
12
+ <ui-checkbox
13
+ v-model="model"
14
+ :label-text="localization.vmWizard.encriptionPolicy"
15
+ test-id="encription-policy"
16
+ size="md"
17
+ />
18
+ <!-- <ui-select-->
19
+ <!-- v-model="model"-->
20
+ <!-- :items="props.vmStoragePolicyOptions"-->
21
+ <!-- :test-id="`vm-storage-policy-field-${props.index}`"-->
22
+ <!-- width="auto"-->
23
+ <!-- size="sm"-->
24
+ <!-- />-->
25
+ </template>
26
+ </ui-stack-block>
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
+
33
+ const model = defineModel<boolean>({
34
+ required: true,
35
+ })
36
+ const props = defineProps<{
37
+ index: number
38
+ vmStoragePolicyOptions: UI_I_OptionItem[]
39
+ }>()
40
+
41
+ const localization = computed<UI_I_Localization>(() => useLocal())
42
+ </script>
43
+
44
+ <style>
45
+ :root {
46
+ --vm-wizard-maximum-size-color: #182531;
47
+ }
48
+ :root.dark-theme {
49
+ --vm-wizard-maximum-size-color: #e9eaec;
50
+ }
51
+ </style>
52
+ <style scoped>
53
+ .title {
54
+ margin-right: 12px;
55
+ height: 32px;
56
+ display: flex;
57
+ align-items: center;
58
+ }
59
+ </style>
@@ -1,56 +1,56 @@
1
- <template>
2
- <div>
3
- <atoms-stack-block
4
- :has-children="false"
5
- :test-id="`hard-disk-vm-storage-policy-stack-block-${props.index}`"
6
- >
7
- <template #stackBlockKey>
8
- {{ localization.vmWizard.vmStoragePolicy }}
9
- </template>
10
- <template #stackBlockContent>
11
- <input
12
- id="encription-policy"
13
- v-model="model"
14
- data-id="encription-policy"
15
- type="checkbox"
16
- />
17
- <label
18
- class="label-text-normal"
19
- for="encription-policy"
20
- >{{ localization.vmWizard.encriptionPolicy }}</label
21
- >
22
- <!-- <div class="select">-->
23
- <!-- <select-->
24
- <!-- v-model="model"-->
25
- <!-- :data-id="`vm-storage-policy-field-${props.index}`"-->
26
- <!-- >-->
27
- <!-- <option-->
28
- <!-- v-for="(item, key) in props.vmStoragePolicyOptions"-->
29
- <!-- :key="key"-->
30
- <!-- :value="item.value"-->
31
- <!-- >-->
32
- <!-- {{ item.text }}-->
33
- <!-- </option>-->
34
- <!-- </select>-->
35
- <!-- </div>-->
36
- </template>
37
- </atoms-stack-block>
38
- </div>
39
- </template>
40
-
41
- <script setup lang="ts">
42
- import type { UI_I_Localization } from '~/lib/models/interfaces'
43
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
44
-
45
- const model = defineModel<boolean>({
46
- required: true,
47
- })
48
- const props = defineProps<{
49
- index: number
50
- vmStoragePolicyOptions: UI_I_OptionItem[]
51
- }>()
52
-
53
- const localization = computed<UI_I_Localization>(() => useLocal())
54
- </script>
55
-
56
- <style scoped></style>
1
+ <template>
2
+ <div>
3
+ <atoms-stack-block
4
+ :has-children="false"
5
+ :test-id="`hard-disk-vm-storage-policy-stack-block-${props.index}`"
6
+ >
7
+ <template #stackBlockKey>
8
+ {{ localization.vmWizard.vmStoragePolicy }}
9
+ </template>
10
+ <template #stackBlockContent>
11
+ <input
12
+ id="encription-policy"
13
+ v-model="model"
14
+ data-id="encription-policy"
15
+ type="checkbox"
16
+ />
17
+ <label
18
+ class="label-text-normal"
19
+ for="encription-policy"
20
+ >{{ localization.vmWizard.encriptionPolicy }}</label
21
+ >
22
+ <!-- <div class="select">-->
23
+ <!-- <select-->
24
+ <!-- v-model="model"-->
25
+ <!-- :data-id="`vm-storage-policy-field-${props.index}`"-->
26
+ <!-- >-->
27
+ <!-- <option-->
28
+ <!-- v-for="(item, key) in props.vmStoragePolicyOptions"-->
29
+ <!-- :key="key"-->
30
+ <!-- :value="item.value"-->
31
+ <!-- >-->
32
+ <!-- {{ item.text }}-->
33
+ <!-- </option>-->
34
+ <!-- </select>-->
35
+ <!-- </div>-->
36
+ </template>
37
+ </atoms-stack-block>
38
+ </div>
39
+ </template>
40
+
41
+ <script setup lang="ts">
42
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
43
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
44
+
45
+ const model = defineModel<boolean>({
46
+ required: true,
47
+ })
48
+ const props = defineProps<{
49
+ index: number
50
+ vmStoragePolicyOptions: UI_I_OptionItem[]
51
+ }>()
52
+
53
+ const localization = computed<UI_I_Localization>(() => useLocal())
54
+ </script>
55
+
56
+ <style scoped></style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.853",
4
+ "version": "1.5.855",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",