bfg-common 1.5.134 → 1.5.135
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/common/vm/actions/add/Add.vue +8 -10
- package/components/common/vm/actions/clone/Clone.vue +801 -801
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +77 -80
- package/components/common/vm/actions/common/lib/config/capabilities.ts +283 -288
- package/components/common/vm/actions/common/lib/utils/capabilities.ts +52 -52
- package/package.json +1 -1
|
@@ -182,7 +182,7 @@ import type {
|
|
|
182
182
|
UI_I_PciDevice,
|
|
183
183
|
UI_I_VmSettings,
|
|
184
184
|
} from '~/lib/models/store/vm/interfaces'
|
|
185
|
-
import {
|
|
185
|
+
import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
|
|
186
186
|
import {
|
|
187
187
|
stepsSchemeInitial,
|
|
188
188
|
stepsFunc,
|
|
@@ -709,23 +709,21 @@ const computeResourceSubmit = ref<null | Function>(null)
|
|
|
709
709
|
const storageSubmit = ref<null | Function>(null)
|
|
710
710
|
const customizeHardwareSubmit = ref<null | Function>(null)
|
|
711
711
|
const compatibility = ref<UI_I_OptionItem[]>(
|
|
712
|
-
|
|
712
|
+
capabilities.compatibility.filter((camp) => {
|
|
713
713
|
let result = true
|
|
714
714
|
// if (isDev && camp.value === 'pvm-2') result = false
|
|
715
715
|
if (camp.value === 'pvm-2') result = false
|
|
716
716
|
return result
|
|
717
717
|
})
|
|
718
718
|
)
|
|
719
|
-
const guestOsFamilies = ref<UI_I_OptionItem[]>(
|
|
720
|
-
capabilitiesFunc().guestOsFamilies
|
|
721
|
-
)
|
|
719
|
+
const guestOsFamilies = ref<UI_I_OptionItem[]>(capabilities.guestOsFamilies)
|
|
722
720
|
const guestOsVersions = ref<UI_I_ArbitraryObject<UI_I_OptionItem[]>>(
|
|
723
|
-
|
|
721
|
+
capabilities.guestOsVersions
|
|
724
722
|
)
|
|
725
|
-
const machineTypes = ref<UI_I_OptionItem[]>(
|
|
726
|
-
const cpuModels = ref<UI_I_OptionItem[]>(
|
|
727
|
-
const maxCpus = ref<number>(
|
|
728
|
-
const maxMemory = ref<number>(
|
|
723
|
+
const machineTypes = ref<UI_I_OptionItem[]>(capabilities.machineTypes)
|
|
724
|
+
const cpuModels = ref<UI_I_OptionItem[]>(capabilities.cpuModels)
|
|
725
|
+
const maxCpus = ref<number>(capabilities.maxCpus)
|
|
726
|
+
const maxMemory = ref<number>(capabilities.maxMemory)
|
|
729
727
|
|
|
730
728
|
const selectedTemplate = ref<string>('')
|
|
731
729
|
const onChangeTemplate = (node: UI_I_TreeNode): void => {
|