bfg-common 1.4.365 → 1.4.367
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-1.svg +407 -407
- package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
- package/assets/img/icons/icons-sprite-light-1.svg +407 -407
- package/assets/img/icons/icons-sprite-light-2.svg +343 -343
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +255 -255
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +94 -94
- package/assets/localization/local_en.json +1 -1
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +199 -199
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/modals/confirmation/Confirmation.vue +65 -65
- package/components/common/vm/actions/add/Add.vue +617 -617
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/{location/Location.vue → Location.vue} +173 -172
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
- package/components/common/vm/actions/common/select/storage/Storage.vue +198 -202
- package/components/common/vm/actions/editSettings/EditSettings.vue +1 -1
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/date.ts +181 -181
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/StorageModalOld.vue +0 -52
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/StorageModalNew.vue +0 -175
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/lib/config/table.ts +0 -167
|
@@ -1,129 +1,129 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
3
|
-
import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
|
|
4
|
-
import type { I_DynamicSteps } from '~/components/common/vm/actions/clone/lib/models/interfaces'
|
|
5
|
-
|
|
6
|
-
export const stepsFunc = (
|
|
7
|
-
localization: UI_I_Localization,
|
|
8
|
-
isScheduledTasks: boolean
|
|
9
|
-
): UI_I_WizardStep[] => {
|
|
10
|
-
let result: UI_I_WizardStep[] = [
|
|
11
|
-
{
|
|
12
|
-
id: 0,
|
|
13
|
-
stepName: '',
|
|
14
|
-
title: localization.common.schedulingOptions,
|
|
15
|
-
subTitle: '',
|
|
16
|
-
status: UI_E_WIZARD_STATUS.SELECTED,
|
|
17
|
-
isValid: true,
|
|
18
|
-
fields: {},
|
|
19
|
-
testId: 'new-roles-scheduling-options',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: 1,
|
|
23
|
-
stepName: '',
|
|
24
|
-
title: localization.common.selectName,
|
|
25
|
-
subTitle: localization.common.specifyUniqueName,
|
|
26
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
27
|
-
isValid: true,
|
|
28
|
-
testId: 'vm-wizard-select-name',
|
|
29
|
-
fields: {
|
|
30
|
-
name: {
|
|
31
|
-
field: '',
|
|
32
|
-
alert: '',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: 2,
|
|
38
|
-
stepName: '',
|
|
39
|
-
title: localization.common.selectStorage,
|
|
40
|
-
subTitle: localization.common.selectStorageConfigurationDiskFiles,
|
|
41
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
42
|
-
isValid: true,
|
|
43
|
-
testId: 'vm-wizard-select-storage',
|
|
44
|
-
fields: {
|
|
45
|
-
storage: {
|
|
46
|
-
field: '',
|
|
47
|
-
alert: '',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: 3,
|
|
53
|
-
stepName: '',
|
|
54
|
-
title: localization.common.selectCloneOptions,
|
|
55
|
-
subTitle:
|
|
56
|
-
localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
|
|
57
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
58
|
-
isValid: true,
|
|
59
|
-
testId: 'vm-wizard-select-clone-options',
|
|
60
|
-
fields: {},
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: 4,
|
|
64
|
-
stepName: '',
|
|
65
|
-
title: localization.common.customizeHardware,
|
|
66
|
-
subTitle: localization.common.configureVirtualMachineHardware,
|
|
67
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
68
|
-
isValid: true,
|
|
69
|
-
testId: 'vm-wizard-customize-hardware',
|
|
70
|
-
fields: {
|
|
71
|
-
customizeHardware: {
|
|
72
|
-
field: '',
|
|
73
|
-
alert: '',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: 5,
|
|
79
|
-
stepName: '',
|
|
80
|
-
title: localization.common.readyComplete,
|
|
81
|
-
subTitle: localization.common.clickFinishStartCreation,
|
|
82
|
-
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
83
|
-
isValid: true,
|
|
84
|
-
testId: 'vm-wizard-ready-complete',
|
|
85
|
-
fields: {},
|
|
86
|
-
},
|
|
87
|
-
]
|
|
88
|
-
|
|
89
|
-
if (!isScheduledTasks) {
|
|
90
|
-
result.shift()
|
|
91
|
-
result[0].status = UI_E_WIZARD_STATUS.SELECTED
|
|
92
|
-
result = result.map((item) => {
|
|
93
|
-
item.id--
|
|
94
|
-
return item
|
|
95
|
-
})
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return result
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export const stepsSchemeInitial = (isScheduledTasks: boolean): number[][] => {
|
|
102
|
-
const resultWithOutScheduledTasks = [0, 1, 2, 3, 4]
|
|
103
|
-
const resultWithScheduledTasks = [0, 1, 2, 3, 4, 5]
|
|
104
|
-
|
|
105
|
-
return isScheduledTasks
|
|
106
|
-
? [resultWithScheduledTasks]
|
|
107
|
-
: [resultWithOutScheduledTasks]
|
|
108
|
-
}
|
|
109
|
-
export const getDynamicSteps = (isScheduledTasks: boolean): I_DynamicSteps => {
|
|
110
|
-
const resultWithOutScheduledTasks = {
|
|
111
|
-
selectName: 0,
|
|
112
|
-
selectStorage: 1,
|
|
113
|
-
selectOptions: 2,
|
|
114
|
-
customizeHardware: 3,
|
|
115
|
-
readyComplete: 4,
|
|
116
|
-
}
|
|
117
|
-
const resultWithScheduledTasks = {
|
|
118
|
-
scheduledTasks: 0,
|
|
119
|
-
selectName: 1,
|
|
120
|
-
selectStorage: 2,
|
|
121
|
-
selectOptions: 3,
|
|
122
|
-
customizeHardware: 4,
|
|
123
|
-
readyComplete: 5,
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return isScheduledTasks
|
|
127
|
-
? resultWithScheduledTasks
|
|
128
|
-
: resultWithOutScheduledTasks
|
|
129
|
-
}
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
|
|
3
|
+
import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
|
|
4
|
+
import type { I_DynamicSteps } from '~/components/common/vm/actions/clone/lib/models/interfaces'
|
|
5
|
+
|
|
6
|
+
export const stepsFunc = (
|
|
7
|
+
localization: UI_I_Localization,
|
|
8
|
+
isScheduledTasks: boolean
|
|
9
|
+
): UI_I_WizardStep[] => {
|
|
10
|
+
let result: UI_I_WizardStep[] = [
|
|
11
|
+
{
|
|
12
|
+
id: 0,
|
|
13
|
+
stepName: '',
|
|
14
|
+
title: localization.common.schedulingOptions,
|
|
15
|
+
subTitle: '',
|
|
16
|
+
status: UI_E_WIZARD_STATUS.SELECTED,
|
|
17
|
+
isValid: true,
|
|
18
|
+
fields: {},
|
|
19
|
+
testId: 'new-roles-scheduling-options',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 1,
|
|
23
|
+
stepName: '',
|
|
24
|
+
title: localization.common.selectName,
|
|
25
|
+
subTitle: localization.common.specifyUniqueName,
|
|
26
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
27
|
+
isValid: true,
|
|
28
|
+
testId: 'vm-wizard-select-name',
|
|
29
|
+
fields: {
|
|
30
|
+
name: {
|
|
31
|
+
field: '',
|
|
32
|
+
alert: '',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 2,
|
|
38
|
+
stepName: '',
|
|
39
|
+
title: localization.common.selectStorage,
|
|
40
|
+
subTitle: localization.common.selectStorageConfigurationDiskFiles,
|
|
41
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
42
|
+
isValid: true,
|
|
43
|
+
testId: 'vm-wizard-select-storage',
|
|
44
|
+
fields: {
|
|
45
|
+
storage: {
|
|
46
|
+
field: '',
|
|
47
|
+
alert: '',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 3,
|
|
53
|
+
stepName: '',
|
|
54
|
+
title: localization.common.selectCloneOptions,
|
|
55
|
+
subTitle:
|
|
56
|
+
localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
|
|
57
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
58
|
+
isValid: true,
|
|
59
|
+
testId: 'vm-wizard-select-clone-options',
|
|
60
|
+
fields: {},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 4,
|
|
64
|
+
stepName: '',
|
|
65
|
+
title: localization.common.customizeHardware,
|
|
66
|
+
subTitle: localization.common.configureVirtualMachineHardware,
|
|
67
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
68
|
+
isValid: true,
|
|
69
|
+
testId: 'vm-wizard-customize-hardware',
|
|
70
|
+
fields: {
|
|
71
|
+
customizeHardware: {
|
|
72
|
+
field: '',
|
|
73
|
+
alert: '',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 5,
|
|
79
|
+
stepName: '',
|
|
80
|
+
title: localization.common.readyComplete,
|
|
81
|
+
subTitle: localization.common.clickFinishStartCreation,
|
|
82
|
+
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
83
|
+
isValid: true,
|
|
84
|
+
testId: 'vm-wizard-ready-complete',
|
|
85
|
+
fields: {},
|
|
86
|
+
},
|
|
87
|
+
]
|
|
88
|
+
|
|
89
|
+
if (!isScheduledTasks) {
|
|
90
|
+
result.shift()
|
|
91
|
+
result[0].status = UI_E_WIZARD_STATUS.SELECTED
|
|
92
|
+
result = result.map((item) => {
|
|
93
|
+
item.id--
|
|
94
|
+
return item
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return result
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export const stepsSchemeInitial = (isScheduledTasks: boolean): number[][] => {
|
|
102
|
+
const resultWithOutScheduledTasks = [0, 1, 2, 3, 4]
|
|
103
|
+
const resultWithScheduledTasks = [0, 1, 2, 3, 4, 5]
|
|
104
|
+
|
|
105
|
+
return isScheduledTasks
|
|
106
|
+
? [resultWithScheduledTasks]
|
|
107
|
+
: [resultWithOutScheduledTasks]
|
|
108
|
+
}
|
|
109
|
+
export const getDynamicSteps = (isScheduledTasks: boolean): I_DynamicSteps => {
|
|
110
|
+
const resultWithOutScheduledTasks = {
|
|
111
|
+
selectName: 0,
|
|
112
|
+
selectStorage: 1,
|
|
113
|
+
selectOptions: 2,
|
|
114
|
+
customizeHardware: 3,
|
|
115
|
+
readyComplete: 4,
|
|
116
|
+
}
|
|
117
|
+
const resultWithScheduledTasks = {
|
|
118
|
+
scheduledTasks: 0,
|
|
119
|
+
selectName: 1,
|
|
120
|
+
selectStorage: 2,
|
|
121
|
+
selectOptions: 3,
|
|
122
|
+
customizeHardware: 4,
|
|
123
|
+
readyComplete: 5,
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return isScheduledTasks
|
|
127
|
+
? resultWithScheduledTasks
|
|
128
|
+
: resultWithOutScheduledTasks
|
|
129
|
+
}
|
|
@@ -202,8 +202,8 @@ const navItems = computed<UI_I_CollapseNavItem[]>(() =>
|
|
|
202
202
|
const selectedNavItem = ref<number>(0)
|
|
203
203
|
watch(
|
|
204
204
|
() => props.selectedNavItem,
|
|
205
|
-
(
|
|
206
|
-
selectedNavItem.value =
|
|
205
|
+
(n) => {
|
|
206
|
+
selectedNavItem.value = n
|
|
207
207
|
}
|
|
208
208
|
)
|
|
209
209
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
// import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
-
//
|
|
4
|
-
// export const busOptionsFunc = (
|
|
5
|
-
// localization: UI_I_Localization,
|
|
6
|
-
// shortOptions?: boolean
|
|
7
|
-
// ): UI_I_OptionItem[] => {
|
|
8
|
-
// if (shortOptions) {
|
|
9
|
-
// return [
|
|
10
|
-
// { text: localization.common.ide, value: 'ide' },
|
|
11
|
-
// { text: localization.common.sata, value: 'sata' },
|
|
12
|
-
// ]
|
|
13
|
-
// }
|
|
14
|
-
// return [
|
|
15
|
-
// { text: localization.common.ide, value: 'ide' },
|
|
16
|
-
// { text: localization.common.scsi, value: 'scsi' },
|
|
17
|
-
// { text: localization.common.sata, value: 'sata' },
|
|
18
|
-
// { text: localization.common.virtio, value: 'virtio' },
|
|
19
|
-
// ]
|
|
20
|
-
// }
|
|
1
|
+
// import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
// import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
+
//
|
|
4
|
+
// export const busOptionsFunc = (
|
|
5
|
+
// localization: UI_I_Localization,
|
|
6
|
+
// shortOptions?: boolean
|
|
7
|
+
// ): UI_I_OptionItem[] => {
|
|
8
|
+
// if (shortOptions) {
|
|
9
|
+
// return [
|
|
10
|
+
// { text: localization.common.ide, value: 'ide' },
|
|
11
|
+
// { text: localization.common.sata, value: 'sata' },
|
|
12
|
+
// ]
|
|
13
|
+
// }
|
|
14
|
+
// return [
|
|
15
|
+
// { text: localization.common.ide, value: 'ide' },
|
|
16
|
+
// { text: localization.common.scsi, value: 'scsi' },
|
|
17
|
+
// { text: localization.common.sata, value: 'sata' },
|
|
18
|
+
// { text: localization.common.virtio, value: 'virtio' },
|
|
19
|
+
// ]
|
|
20
|
+
// }
|