bfg-common 1.3.486 → 1.3.488
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-8.svg +190 -190
- package/assets/img/icons/icons-sprite-light-8.svg +190 -190
- package/assets/scss/common/normalize.scss +340 -340
- package/components/atoms/TheIcon2.vue +1353 -1353
- package/components/atoms/loader/Loader.vue +30 -30
- package/components/atoms/loader/PreLoader.vue +38 -38
- package/components/atoms/switch/Switch.vue +111 -111
- package/components/atoms/table/compact/Compact.vue +526 -526
- package/components/common/adapterManager/ui/table/Header.vue +93 -93
- package/components/common/adapterManager/ui/table/Table.vue +162 -162
- package/components/common/context/Context.vue +99 -99
- package/components/common/layout/theHeader/userMenu/modals/preferences/View.vue +129 -129
- package/components/common/lib/config/states.ts +160 -160
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +142 -142
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +248 -248
- package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +288 -288
- package/components/common/readyToComplete/ReadyToComplete.vue +15 -15
- package/components/common/resource/progressBlock/ProgressBlock.vue +142 -142
- package/components/common/split/horizontal/Horizontal.vue +70 -70
- package/components/common/vm/actions/clone/Clone.vue +511 -511
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +273 -273
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +697 -697
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +400 -400
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +329 -329
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +305 -305
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +168 -168
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +82 -82
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +182 -182
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +114 -114
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +192 -192
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +72 -72
- package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +164 -164
- package/components/common/vm/actions/common/select/name/Name.vue +235 -235
- package/components/common/vm/actions/common/select/storage/Storage.vue +198 -198
- package/components/common/vm/actions/editSettings/EditSettings.vue +316 -316
- package/components/common/weekSelect/lib/config/options.ts +10 -10
- package/components/common/wizards/datastore/add/Add.vue +436 -436
- package/components/common/wizards/datastore/add/lib/config/stepItems.ts +191 -191
- package/components/common/wizards/datastore/add/lib/models/interfaces.ts +38 -38
- package/components/common/wizards/datastore/add/lib/utils.ts +70 -70
- package/components/common/wizards/datastore/add/local/createName/CreateName.vue +160 -160
- package/components/common/wizards/datastore/add/nfs/Nfs.vue +112 -112
- package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +104 -104
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +62 -62
- package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +53 -53
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +86 -86
- package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts +184 -184
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +459 -459
- package/components/common/wizards/datastore/add/types/Types.vue +80 -80
- package/components/common/wizards/datastore/add/types/lib/config/typeOptions.ts +49 -49
- package/composables/useAppVersion.ts +22 -22
- package/composables/useEnvLanguage.ts +20 -20
- package/lib/utils/sendTask.ts +73 -73
- package/minify.js +146 -146
- package/package.json +1 -1
- package/plugins/spice-console/spice.console.ts +147 -147
- package/public/spice-console/application/codec.js +263 -263
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +375 -375
- package/store/main/lib/interfaces.ts +9 -9
- package/store/tasks/actions.ts +133 -133
- package/store/tasks/getters.ts +25 -25
- package/store/tasks/lib/models/interfaces.ts +18 -18
- package/store/tasks/mappers/recentTasks.ts +45 -43
- package/store/tasks/mutations.ts +58 -58
- package/store/tasks/state.ts +16 -16
package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts
CHANGED
|
@@ -1,184 +1,184 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import { UI_I_DetailsItem } from '~/components/common/details/lib/models/interfaces'
|
|
3
|
-
import { UI_I_LunDisk } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
4
|
-
import { UI_T_DatastoreType } from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
5
|
-
import { UI_I_ReadyDataForLocal } from '~/components/common/wizards/datastore/add/readyComplete/lib/models/interfaces'
|
|
6
|
-
|
|
7
|
-
const constructLunDiskItems = (disks: any): string => {
|
|
8
|
-
const { $binary } = useNuxtApp()
|
|
9
|
-
|
|
10
|
-
let result = ''
|
|
11
|
-
disks.forEach((disk: UI_I_LunDisk) => {
|
|
12
|
-
const capacity = $binary.round(disk.capacity)
|
|
13
|
-
result += `${disk.name} - ${capacity} \n`
|
|
14
|
-
})
|
|
15
|
-
return result
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const nfsDetailsFunc = (
|
|
19
|
-
localization: UI_I_Localization,
|
|
20
|
-
data: any,
|
|
21
|
-
isSphereWizard: boolean
|
|
22
|
-
): UI_I_DetailsItem[] => {
|
|
23
|
-
const { name, server, folder, version, hosts } = data
|
|
24
|
-
// const accessMode = readonly ? 'Read-only' : 'Read-write'
|
|
25
|
-
|
|
26
|
-
const details: UI_I_DetailsItem[] = [
|
|
27
|
-
{
|
|
28
|
-
label: localization.vmfsVersion,
|
|
29
|
-
value: '',
|
|
30
|
-
items: [
|
|
31
|
-
{
|
|
32
|
-
label: localization.version,
|
|
33
|
-
value: version.toUpperCase(),
|
|
34
|
-
items: [],
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
actions: [],
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: localization.nameAndConfiguration,
|
|
41
|
-
value: '',
|
|
42
|
-
items: [
|
|
43
|
-
{
|
|
44
|
-
label: localization.datastoreName,
|
|
45
|
-
value: name,
|
|
46
|
-
items: [],
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: localization.server,
|
|
50
|
-
value: server,
|
|
51
|
-
items: [],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: localization.folder,
|
|
55
|
-
value: folder,
|
|
56
|
-
items: [],
|
|
57
|
-
},
|
|
58
|
-
// {
|
|
59
|
-
// label: localization.accessMode,
|
|
60
|
-
// value: accessMode,
|
|
61
|
-
// items: [],
|
|
62
|
-
// },
|
|
63
|
-
],
|
|
64
|
-
actions: [],
|
|
65
|
-
},
|
|
66
|
-
]
|
|
67
|
-
|
|
68
|
-
if (isSphereWizard) {
|
|
69
|
-
details.push({
|
|
70
|
-
label: localization.hostsAccessibility,
|
|
71
|
-
value: '',
|
|
72
|
-
items: [
|
|
73
|
-
{
|
|
74
|
-
label: localization.hosts,
|
|
75
|
-
value: '',
|
|
76
|
-
data: hosts,
|
|
77
|
-
items: [],
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
actions: [],
|
|
81
|
-
},)
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return details
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const localDetailsFunc = (
|
|
88
|
-
localization: UI_I_Localization,
|
|
89
|
-
event: UI_I_ReadyDataForLocal | string,
|
|
90
|
-
isSphereWizard: boolean
|
|
91
|
-
): UI_I_DetailsItem[] => {
|
|
92
|
-
const data = [
|
|
93
|
-
{
|
|
94
|
-
label: localization.selectName,
|
|
95
|
-
value: '',
|
|
96
|
-
items: [
|
|
97
|
-
{
|
|
98
|
-
label: localization.datastoreName,
|
|
99
|
-
value: isSphereWizard ? event.name : event,
|
|
100
|
-
items: [],
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
actions: [],
|
|
104
|
-
},
|
|
105
|
-
]
|
|
106
|
-
|
|
107
|
-
if (isSphereWizard) {
|
|
108
|
-
data[0].items.push({
|
|
109
|
-
label: localization.host,
|
|
110
|
-
value: event.host,
|
|
111
|
-
items: [],
|
|
112
|
-
})
|
|
113
|
-
}
|
|
114
|
-
return data
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const sharedStormDetailsFunc = (
|
|
118
|
-
localization: UI_I_Localization,
|
|
119
|
-
data: { name: string; lunDisk: string[] } // пока так ставляем тип но надо будет поменять когда будем добавлять осталние настройки
|
|
120
|
-
): UI_I_DetailsItem[] => {
|
|
121
|
-
const { name, lunDisk } = data
|
|
122
|
-
|
|
123
|
-
return [
|
|
124
|
-
{
|
|
125
|
-
label: localization.nameAndDeviceSelection,
|
|
126
|
-
value: '',
|
|
127
|
-
items: [
|
|
128
|
-
{
|
|
129
|
-
label: localization.datastoreName,
|
|
130
|
-
value: name,
|
|
131
|
-
items: [],
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
label: localization.diskLun,
|
|
135
|
-
value: constructLunDiskItems(lunDisk),
|
|
136
|
-
items: [],
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
actions: [],
|
|
140
|
-
},
|
|
141
|
-
// {
|
|
142
|
-
// label: localization.partitionConfiguration,
|
|
143
|
-
// value: '',
|
|
144
|
-
// items: [
|
|
145
|
-
// {
|
|
146
|
-
// label: localization.method,
|
|
147
|
-
// value: 'None',
|
|
148
|
-
// items: [],
|
|
149
|
-
// },
|
|
150
|
-
// {
|
|
151
|
-
// label: localization.partitionFormat,
|
|
152
|
-
// value: 'None',
|
|
153
|
-
// items: [],
|
|
154
|
-
// },
|
|
155
|
-
// {
|
|
156
|
-
// label: localization.blockSize,
|
|
157
|
-
// value: 'None',
|
|
158
|
-
// items: [],
|
|
159
|
-
// },
|
|
160
|
-
// {
|
|
161
|
-
// label: localization.spaceReclamationGranularity,
|
|
162
|
-
// value: 'None',
|
|
163
|
-
// items: [],
|
|
164
|
-
// },
|
|
165
|
-
// ],
|
|
166
|
-
// actions: [],
|
|
167
|
-
// }, /* TODO данные с нее пока никуда не вставляем */
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export const constructDataReadyViewFunc = <T>(
|
|
172
|
-
localization: UI_I_Localization,
|
|
173
|
-
type: UI_T_DatastoreType,
|
|
174
|
-
data: T,
|
|
175
|
-
isSphereWizard: boolean
|
|
176
|
-
): UI_I_DetailsItem[] => {
|
|
177
|
-
const details = {
|
|
178
|
-
local: localDetailsFunc,
|
|
179
|
-
'shared-storm': sharedStormDetailsFunc,
|
|
180
|
-
nfs: nfsDetailsFunc,
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return details[type](localization, data, isSphereWizard)
|
|
184
|
-
}
|
|
1
|
+
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import { UI_I_DetailsItem } from '~/components/common/details/lib/models/interfaces'
|
|
3
|
+
import { UI_I_LunDisk } from '~/components/common/wizards/datastore/add/sharedStorm/deviceSelection/lib/models/interfaces'
|
|
4
|
+
import { UI_T_DatastoreType } from '~/components/common/wizards/datastore/add/lib/models/types'
|
|
5
|
+
import { UI_I_ReadyDataForLocal } from '~/components/common/wizards/datastore/add/readyComplete/lib/models/interfaces'
|
|
6
|
+
|
|
7
|
+
const constructLunDiskItems = (disks: any): string => {
|
|
8
|
+
const { $binary } = useNuxtApp()
|
|
9
|
+
|
|
10
|
+
let result = ''
|
|
11
|
+
disks.forEach((disk: UI_I_LunDisk) => {
|
|
12
|
+
const capacity = $binary.round(disk.capacity)
|
|
13
|
+
result += `${disk.name} - ${capacity} \n`
|
|
14
|
+
})
|
|
15
|
+
return result
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const nfsDetailsFunc = (
|
|
19
|
+
localization: UI_I_Localization,
|
|
20
|
+
data: any,
|
|
21
|
+
isSphereWizard: boolean
|
|
22
|
+
): UI_I_DetailsItem[] => {
|
|
23
|
+
const { name, server, folder, version, hosts } = data
|
|
24
|
+
// const accessMode = readonly ? 'Read-only' : 'Read-write'
|
|
25
|
+
|
|
26
|
+
const details: UI_I_DetailsItem[] = [
|
|
27
|
+
{
|
|
28
|
+
label: localization.vmfsVersion,
|
|
29
|
+
value: '',
|
|
30
|
+
items: [
|
|
31
|
+
{
|
|
32
|
+
label: localization.version,
|
|
33
|
+
value: version.toUpperCase(),
|
|
34
|
+
items: [],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
actions: [],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: localization.nameAndConfiguration,
|
|
41
|
+
value: '',
|
|
42
|
+
items: [
|
|
43
|
+
{
|
|
44
|
+
label: localization.datastoreName,
|
|
45
|
+
value: name,
|
|
46
|
+
items: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: localization.server,
|
|
50
|
+
value: server,
|
|
51
|
+
items: [],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: localization.folder,
|
|
55
|
+
value: folder,
|
|
56
|
+
items: [],
|
|
57
|
+
},
|
|
58
|
+
// {
|
|
59
|
+
// label: localization.accessMode,
|
|
60
|
+
// value: accessMode,
|
|
61
|
+
// items: [],
|
|
62
|
+
// },
|
|
63
|
+
],
|
|
64
|
+
actions: [],
|
|
65
|
+
},
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
if (isSphereWizard) {
|
|
69
|
+
details.push({
|
|
70
|
+
label: localization.hostsAccessibility,
|
|
71
|
+
value: '',
|
|
72
|
+
items: [
|
|
73
|
+
{
|
|
74
|
+
label: localization.hosts,
|
|
75
|
+
value: '',
|
|
76
|
+
data: hosts,
|
|
77
|
+
items: [],
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
actions: [],
|
|
81
|
+
},)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return details
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const localDetailsFunc = (
|
|
88
|
+
localization: UI_I_Localization,
|
|
89
|
+
event: UI_I_ReadyDataForLocal | string,
|
|
90
|
+
isSphereWizard: boolean
|
|
91
|
+
): UI_I_DetailsItem[] => {
|
|
92
|
+
const data = [
|
|
93
|
+
{
|
|
94
|
+
label: localization.selectName,
|
|
95
|
+
value: '',
|
|
96
|
+
items: [
|
|
97
|
+
{
|
|
98
|
+
label: localization.datastoreName,
|
|
99
|
+
value: isSphereWizard ? event.name : event,
|
|
100
|
+
items: [],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
actions: [],
|
|
104
|
+
},
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
if (isSphereWizard) {
|
|
108
|
+
data[0].items.push({
|
|
109
|
+
label: localization.host,
|
|
110
|
+
value: event.host,
|
|
111
|
+
items: [],
|
|
112
|
+
})
|
|
113
|
+
}
|
|
114
|
+
return data
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const sharedStormDetailsFunc = (
|
|
118
|
+
localization: UI_I_Localization,
|
|
119
|
+
data: { name: string; lunDisk: string[] } // пока так ставляем тип но надо будет поменять когда будем добавлять осталние настройки
|
|
120
|
+
): UI_I_DetailsItem[] => {
|
|
121
|
+
const { name, lunDisk } = data
|
|
122
|
+
|
|
123
|
+
return [
|
|
124
|
+
{
|
|
125
|
+
label: localization.nameAndDeviceSelection,
|
|
126
|
+
value: '',
|
|
127
|
+
items: [
|
|
128
|
+
{
|
|
129
|
+
label: localization.datastoreName,
|
|
130
|
+
value: name,
|
|
131
|
+
items: [],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: localization.diskLun,
|
|
135
|
+
value: constructLunDiskItems(lunDisk),
|
|
136
|
+
items: [],
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
actions: [],
|
|
140
|
+
},
|
|
141
|
+
// {
|
|
142
|
+
// label: localization.partitionConfiguration,
|
|
143
|
+
// value: '',
|
|
144
|
+
// items: [
|
|
145
|
+
// {
|
|
146
|
+
// label: localization.method,
|
|
147
|
+
// value: 'None',
|
|
148
|
+
// items: [],
|
|
149
|
+
// },
|
|
150
|
+
// {
|
|
151
|
+
// label: localization.partitionFormat,
|
|
152
|
+
// value: 'None',
|
|
153
|
+
// items: [],
|
|
154
|
+
// },
|
|
155
|
+
// {
|
|
156
|
+
// label: localization.blockSize,
|
|
157
|
+
// value: 'None',
|
|
158
|
+
// items: [],
|
|
159
|
+
// },
|
|
160
|
+
// {
|
|
161
|
+
// label: localization.spaceReclamationGranularity,
|
|
162
|
+
// value: 'None',
|
|
163
|
+
// items: [],
|
|
164
|
+
// },
|
|
165
|
+
// ],
|
|
166
|
+
// actions: [],
|
|
167
|
+
// }, /* TODO данные с нее пока никуда не вставляем */
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export const constructDataReadyViewFunc = <T>(
|
|
172
|
+
localization: UI_I_Localization,
|
|
173
|
+
type: UI_T_DatastoreType,
|
|
174
|
+
data: T,
|
|
175
|
+
isSphereWizard: boolean
|
|
176
|
+
): UI_I_DetailsItem[] => {
|
|
177
|
+
const details = {
|
|
178
|
+
local: localDetailsFunc,
|
|
179
|
+
'shared-storm': sharedStormDetailsFunc,
|
|
180
|
+
nfs: nfsDetailsFunc,
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return details[type](localization, data, isSphereWizard)
|
|
184
|
+
}
|