bfg-common 1.5.757 → 1.5.760
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/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +10 -5
- package/assets/localization/local_en.json +10 -5
- package/assets/localization/local_hy.json +10 -5
- package/assets/localization/local_kk.json +10 -5
- package/assets/localization/local_ru.json +14 -9
- package/assets/localization/local_zh.json +9 -4
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/collapse/CollapseNav.vue +170 -170
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/backup/storage/actions/add/lib/utils.ts +51 -51
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/layout/console/Console.vue +70 -70
- package/components/common/layout/theHeader/New.vue +2 -0
- package/components/common/layout/theHeader/Old.vue +2 -0
- package/components/common/layout/theHeader/TheHeader.vue +2 -0
- package/components/common/layout/theHeader/modals/reconnect/New.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/Reconnect.vue +3 -1
- package/components/common/layout/theHeader/userMenu/UserMenu.vue +2 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +2 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Preferences.vue +2 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/lib/models/types.ts +7 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/New.vue +64 -47
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +19 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +3 -0
- package/components/common/pages/backups/DetailView.vue +52 -52
- package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
- package/components/common/pages/backups/modals/Modals.vue +243 -243
- package/components/common/pages/backups/modals/createBackup/New.vue +22 -9
- package/components/common/pages/backups/modals/createBackup/configuration/ConfigurationNew.vue +17 -3
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +8 -8
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/TableView.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/disks/tableView/new/lib/config/table.ts +7 -7
- package/components/common/pages/backups/modals/createBackup/general/GeneralNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts +5 -5
- package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +1 -1
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +11 -2
- package/components/common/pages/backups/modals/createBackup/lib/validation/validations.ts +6 -6
- package/components/common/pages/backups/modals/lib/config/restore.ts +116 -116
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +187 -187
- package/components/common/pages/backups/modals/restore/Restore.vue +302 -302
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +50 -50
- package/components/common/pages/backups/modals/restore/lib/config/readyToCompleteOptions.ts +94 -94
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +130 -130
- package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
- package/components/common/pages/backups/modals/restore/types/New.vue +95 -95
- package/components/common/pages/backups/modals/restore/types/Old.vue +62 -62
- package/components/common/pages/backups/modals/restore/types/Types.vue +31 -31
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/pages/tasks/Tasks.vue +125 -125
- package/components/common/pages/tasks/table/Table.vue +373 -373
- package/components/common/pages/tasks/table/lib/config/config.ts +279 -279
- package/components/common/pages/tasks/table/lib/models/interfaces.ts +9 -9
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/spiceConsole/Drawer.vue +420 -420
- package/components/common/spiceConsole/SpiceConsole.vue +184 -184
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/clone/lib/config/steps.ts +295 -295
- package/components/common/vm/actions/clone/new/New.vue +438 -438
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +283 -283
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +156 -156
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/options/New.vue +264 -264
- package/components/common/vm/actions/common/select/options/Options.vue +58 -58
- package/components/common/vm/actions/common/select/storage/Old.vue +125 -125
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/common/compatibility/Compatibility.vue +35 -35
- package/components/common/wizards/common/steps/name/Name.vue +178 -178
- package/components/common/wizards/common/steps/name/New.vue +221 -221
- package/components/common/wizards/common/steps/name/Old.vue +121 -121
- package/components/common/wizards/common/steps/name/lib/models/interfaces.ts +4 -4
- package/components/common/wizards/common/steps/name/location/New.vue +40 -40
- package/components/common/wizards/datastore/add/Add.vue +227 -227
- package/components/common/wizards/datastore/add/lib/utils.ts +85 -85
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/composables/useAppVersion.ts +21 -21
- package/composables/useBrowse.ts +24 -24
- package/composables/useLocal.ts +6 -6
- package/composables/useLocalCommon.ts +39 -39
- package/lib/models/types.ts +59 -59
- package/package.json +1 -1
- package/plugins/console.ts +21 -21
- package/plugins/mouse.ts +21 -21
- package/plugins/panelStates.ts +70 -70
- package/plugins/text.ts +59 -59
- package/plugins/time.ts +58 -58
- package/public/spice-console/application/clientgui.js +854 -854
- package/public/spice-console/application/packetfactory.js +211 -211
- package/public/spice-console/application/virtualmouse.js +147 -147
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +440 -440
- package/public/spice-console/process/cursorprocess.js +128 -128
- package/public/spice-console/process/inputprocess.js +227 -227
- package/public/spice-console/process/mainprocess.js +212 -212
- package/public/spice-console/run.js +210 -210
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/mappers/recentTasks.ts +123 -123
- package/store/tasks/mutations.ts +82 -82
|
@@ -7,7 +7,7 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
7
7
|
import type {
|
|
8
8
|
UI_I_BackupDatastore,
|
|
9
9
|
} from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
10
|
-
import { datastoreLocalizationByState } from '~/components/common/lib/config/states'
|
|
10
|
+
import { backupStorageIconByState, datastoreLocalizationByState } from '~/components/common/lib/config/states'
|
|
11
11
|
import type {
|
|
12
12
|
I_BackupDatastoreChipStatus
|
|
13
13
|
} from "~/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/models/interfaces";
|
|
@@ -22,7 +22,7 @@ export const getHeaderDataFunc = (
|
|
|
22
22
|
text: localization.common.name,
|
|
23
23
|
isSortable: true,
|
|
24
24
|
sort: 'asc',
|
|
25
|
-
width: '
|
|
25
|
+
width: '160px',
|
|
26
26
|
show: true,
|
|
27
27
|
filter: true
|
|
28
28
|
},
|
|
@@ -32,7 +32,7 @@ export const getHeaderDataFunc = (
|
|
|
32
32
|
text: localization.common.state,
|
|
33
33
|
isSortable: true,
|
|
34
34
|
sort: 'asc',
|
|
35
|
-
width: '
|
|
35
|
+
width: '160px',
|
|
36
36
|
show: true,
|
|
37
37
|
filter: true
|
|
38
38
|
},
|
|
@@ -42,7 +42,7 @@ export const getHeaderDataFunc = (
|
|
|
42
42
|
text: localization.common.capacity,
|
|
43
43
|
isSortable: true,
|
|
44
44
|
sort: 'asc',
|
|
45
|
-
width: '
|
|
45
|
+
width: '120px',
|
|
46
46
|
show: true,
|
|
47
47
|
filter: true
|
|
48
48
|
},
|
|
@@ -52,7 +52,7 @@ export const getHeaderDataFunc = (
|
|
|
52
52
|
text: localization.common.provisioned,
|
|
53
53
|
isSortable: true,
|
|
54
54
|
sort: 'asc',
|
|
55
|
-
width: '
|
|
55
|
+
width: '128px',
|
|
56
56
|
show: true,
|
|
57
57
|
filter: true
|
|
58
58
|
},
|
|
@@ -82,7 +82,7 @@ export const getHeaderDataFunc = (
|
|
|
82
82
|
text: localization.common.type,
|
|
83
83
|
isSortable: true,
|
|
84
84
|
sort: 'asc',
|
|
85
|
-
width: '
|
|
85
|
+
width: '104px',
|
|
86
86
|
show: true,
|
|
87
87
|
filter: true
|
|
88
88
|
},
|
|
@@ -92,7 +92,7 @@ export const getHeaderDataFunc = (
|
|
|
92
92
|
text: localization.common.location,
|
|
93
93
|
isSortable: true,
|
|
94
94
|
sort: 'asc',
|
|
95
|
-
width: '
|
|
95
|
+
width: '184px',
|
|
96
96
|
show: true,
|
|
97
97
|
filter: true
|
|
98
98
|
}
|
|
@@ -179,7 +179,7 @@ export const getBodyDataFunc = (
|
|
|
179
179
|
col: 'col0',
|
|
180
180
|
text: datastore.name,
|
|
181
181
|
data: {
|
|
182
|
-
iconClassName: [
|
|
182
|
+
iconClassName: `icon-${backupStorageIconByState[datastore.state]}`,
|
|
183
183
|
id: datastore.id
|
|
184
184
|
}
|
|
185
185
|
},
|
package/components/common/pages/backups/modals/createBackup/disks/tableView/new/TableView.vue
CHANGED
|
@@ -61,7 +61,7 @@ const texts = computed<UI_I_TableTexts>(() => ({
|
|
|
61
61
|
searchHere: localization.value.common.searchHere,
|
|
62
62
|
rowsPerPage: localization.value.common.rowsPerPage,
|
|
63
63
|
of: localization.value.common.of,
|
|
64
|
-
selected: localization.value.common.
|
|
64
|
+
selected: localization.value.common.selected2,
|
|
65
65
|
columns: localization.value.common.columns,
|
|
66
66
|
previous: localization.value.common.previous,
|
|
67
67
|
next: localization.value.common.next,
|
package/components/common/pages/backups/modals/createBackup/disks/tableView/new/lib/config/table.ts
CHANGED
|
@@ -19,7 +19,7 @@ export const getHeaderDataFunc = (
|
|
|
19
19
|
text: localization.common.source,
|
|
20
20
|
isSortable: true,
|
|
21
21
|
sort: 'asc',
|
|
22
|
-
width: '
|
|
22
|
+
width: '352px',
|
|
23
23
|
show: true,
|
|
24
24
|
filter: true
|
|
25
25
|
},
|
|
@@ -29,7 +29,7 @@ export const getHeaderDataFunc = (
|
|
|
29
29
|
text: localization.common.deviceType,
|
|
30
30
|
isSortable: true,
|
|
31
31
|
sort: 'asc',
|
|
32
|
-
width: '
|
|
32
|
+
width: '160px',
|
|
33
33
|
show: true,
|
|
34
34
|
filter: true
|
|
35
35
|
},
|
|
@@ -39,7 +39,7 @@ export const getHeaderDataFunc = (
|
|
|
39
39
|
text: localization.common.bus,
|
|
40
40
|
isSortable: true,
|
|
41
41
|
sort: 'asc',
|
|
42
|
-
width: '
|
|
42
|
+
width: '136px',
|
|
43
43
|
show: true,
|
|
44
44
|
filter: true
|
|
45
45
|
},
|
|
@@ -49,7 +49,7 @@ export const getHeaderDataFunc = (
|
|
|
49
49
|
text: localization.common.target,
|
|
50
50
|
isSortable: true,
|
|
51
51
|
sort: 'asc',
|
|
52
|
-
width: '
|
|
52
|
+
width: '136px',
|
|
53
53
|
show: true,
|
|
54
54
|
filter: true
|
|
55
55
|
},
|
|
@@ -59,7 +59,7 @@ export const getHeaderDataFunc = (
|
|
|
59
59
|
text: localization.common.capacity,
|
|
60
60
|
isSortable: true,
|
|
61
61
|
sort: 'asc',
|
|
62
|
-
width: '
|
|
62
|
+
width: '136px',
|
|
63
63
|
show: true,
|
|
64
64
|
filter: true
|
|
65
65
|
},
|
|
@@ -69,7 +69,7 @@ export const getHeaderDataFunc = (
|
|
|
69
69
|
text: localization.common.used,
|
|
70
70
|
isSortable: true,
|
|
71
71
|
sort: 'asc',
|
|
72
|
-
width: '
|
|
72
|
+
width: '136px',
|
|
73
73
|
show: true,
|
|
74
74
|
filter: true
|
|
75
75
|
},
|
|
@@ -79,7 +79,7 @@ export const getHeaderDataFunc = (
|
|
|
79
79
|
text: localization.common.free,
|
|
80
80
|
isSortable: true,
|
|
81
81
|
sort: 'asc',
|
|
82
|
-
width: '
|
|
82
|
+
width: '136px',
|
|
83
83
|
show: true,
|
|
84
84
|
filter: true
|
|
85
85
|
},
|
package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts
CHANGED
|
@@ -18,12 +18,12 @@ export const readyToCompleteOptions = (
|
|
|
18
18
|
// General
|
|
19
19
|
{
|
|
20
20
|
label: localization.common.name,
|
|
21
|
-
value: backupForm.name,
|
|
21
|
+
value: backupForm.name || '--',
|
|
22
22
|
iconClassName: 'icon-backup',
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
label: localization.common.description,
|
|
26
|
-
value: backupForm.description,
|
|
26
|
+
value: backupForm.description || '--',
|
|
27
27
|
},
|
|
28
28
|
]
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@ export const readyToCompleteOptions = (
|
|
|
31
31
|
backupForm.disk_devices.forEach((disk_device, i) => {
|
|
32
32
|
result.push({
|
|
33
33
|
label: `${localization.common.disk} ${i + 1}`,
|
|
34
|
-
value: disk_device.location,
|
|
34
|
+
value: disk_device.location || '--',
|
|
35
35
|
iconClassName: 'icon-vSphere-dsVmDisk',
|
|
36
36
|
})
|
|
37
37
|
})
|
|
@@ -42,7 +42,7 @@ export const readyToCompleteOptions = (
|
|
|
42
42
|
)
|
|
43
43
|
result.push({
|
|
44
44
|
label: localization.common.datastore,
|
|
45
|
-
value: datastore?.name || '',
|
|
45
|
+
value: datastore?.name || '--',
|
|
46
46
|
iconClassName: 'vsphere-icon-datastore',
|
|
47
47
|
})
|
|
48
48
|
|
|
@@ -51,7 +51,7 @@ export const readyToCompleteOptions = (
|
|
|
51
51
|
label: localization.common.strategy,
|
|
52
52
|
value:
|
|
53
53
|
strategyOptions.find((option) => option.value === backupForm.strategy)
|
|
54
|
-
?.label || '',
|
|
54
|
+
?.label || '--',
|
|
55
55
|
})
|
|
56
56
|
|
|
57
57
|
const gbSizeByB = 1_073_741_824
|
|
@@ -62,7 +62,7 @@ export const stepsFunc = (
|
|
|
62
62
|
stepName: '',
|
|
63
63
|
title: localization.common.datastores,
|
|
64
64
|
|
|
65
|
-
subTitle: localization.common.
|
|
65
|
+
subTitle: localization.common.selectBackupStorageConfigurationDiskFiles,
|
|
66
66
|
status: UI_E_WIZARD_STATUS.INACTIVE,
|
|
67
67
|
isValid: true,
|
|
68
68
|
fields: {
|
|
@@ -4,10 +4,19 @@ import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/
|
|
|
4
4
|
export const strategyOptionsFunc = (
|
|
5
5
|
localization: UI_I_Localization
|
|
6
6
|
): UI_I_SelectInputItem[] => {
|
|
7
|
-
|
|
7
|
+
const { $text } = useNuxtApp()
|
|
8
|
+
const isLangEn = useLocalStorage('lang') === 'en_US'
|
|
9
|
+
|
|
10
|
+
const labels = [
|
|
8
11
|
{ label: localization.common.fullBackup, value: 0 },
|
|
9
12
|
{ label: localization.common.incrementalBackup, value: 1 },
|
|
10
13
|
{ label: localization.common.differentialBackup, value: 2 },
|
|
11
14
|
]
|
|
12
|
-
}
|
|
13
15
|
|
|
16
|
+
return isLangEn
|
|
17
|
+
? labels.map((item) => ({
|
|
18
|
+
...item,
|
|
19
|
+
label: $text.toCapitalizeEveryWord(item.label),
|
|
20
|
+
}))
|
|
21
|
+
: labels
|
|
22
|
+
}
|
|
@@ -20,7 +20,7 @@ export const checkName = async (
|
|
|
20
20
|
if (!name) {
|
|
21
21
|
stepHasError = wizard.setValidation(dynamicSteps.general, 'name', {
|
|
22
22
|
fieldMessage: localization.common.fieldRequired,
|
|
23
|
-
alertMessage:
|
|
23
|
+
alertMessage: ''
|
|
24
24
|
})
|
|
25
25
|
wizard.setLoader(false)
|
|
26
26
|
return {
|
|
@@ -53,7 +53,7 @@ export const checkName = async (
|
|
|
53
53
|
|
|
54
54
|
if (stepErrorMessage) {
|
|
55
55
|
stepHasError = wizard.setValidation(dynamicSteps.general, 'name', {
|
|
56
|
-
fieldMessage:
|
|
56
|
+
fieldMessage: ' ',
|
|
57
57
|
alertMessage: stepErrorMessage
|
|
58
58
|
})
|
|
59
59
|
} else if (wizard.hasMessage(dynamicSteps.general, 'name')) {
|
|
@@ -82,8 +82,8 @@ export const checkDisks = (
|
|
|
82
82
|
|
|
83
83
|
if (!isValidStores) {
|
|
84
84
|
stepHasError = wizard.setValidation(dynamicSteps.disks, 'disk_devices', {
|
|
85
|
-
fieldMessage: localization.common.
|
|
86
|
-
alertMessage: localization.common.
|
|
85
|
+
fieldMessage: localization.common.selectLeastOneDisk,
|
|
86
|
+
alertMessage: localization.common.selectLeastOneDisk
|
|
87
87
|
})
|
|
88
88
|
} else if (wizard.hasMessage(dynamicSteps.disks, 'disk_devices')) {
|
|
89
89
|
value = wizard.removeValidation(dynamicSteps.disks, 'disk_devices', value)
|
|
@@ -106,8 +106,8 @@ export const checkDatastore = (
|
|
|
106
106
|
|
|
107
107
|
if (!isValidStorage) {
|
|
108
108
|
stepHasError = wizard.setValidation(dynamicSteps.datastores, 'backup_storage', {
|
|
109
|
-
fieldMessage: localization.common.
|
|
110
|
-
alertMessage: localization.common.
|
|
109
|
+
fieldMessage: localization.common.selectBackupStorageToProceed,
|
|
110
|
+
alertMessage: localization.common.selectBackupStorageToProceed
|
|
111
111
|
})
|
|
112
112
|
} else if (wizard.hasMessage(dynamicSteps.datastores, 'backup_storage')) {
|
|
113
113
|
value = wizard.removeValidation(dynamicSteps.datastores, 'backup_storage', value)
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import type { UI_I_RestoreForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const restoreDefaultFormFunc = (): UI_I_RestoreForm => {
|
|
4
|
-
return {
|
|
5
|
-
restore_code: 2,
|
|
6
|
-
backup_storage: '',
|
|
7
|
-
bucket: '',
|
|
8
|
-
backup: '',
|
|
9
|
-
copy_disks: [],
|
|
10
|
-
pvm: {
|
|
11
|
-
deployment_name: '',
|
|
12
|
-
name: '',
|
|
13
|
-
uuid: '',
|
|
14
|
-
compatibility: '',
|
|
15
|
-
guest_os_family: '',
|
|
16
|
-
guest_os_version: '',
|
|
17
|
-
storage: {
|
|
18
|
-
id: '',
|
|
19
|
-
folder: '',
|
|
20
|
-
},
|
|
21
|
-
machine_type: '',
|
|
22
|
-
cpu: {
|
|
23
|
-
vcpus: -1,
|
|
24
|
-
max_vcpus: -1,
|
|
25
|
-
core_per_socket: -1,
|
|
26
|
-
model: '',
|
|
27
|
-
reservation_mhz: -1,
|
|
28
|
-
limit_mhz: -1,
|
|
29
|
-
shares: -1,
|
|
30
|
-
hotplug: false,
|
|
31
|
-
},
|
|
32
|
-
memory: {
|
|
33
|
-
size_mb: -1,
|
|
34
|
-
hotplug: false,
|
|
35
|
-
reservation_mb: -1,
|
|
36
|
-
limit_mb: -1,
|
|
37
|
-
},
|
|
38
|
-
video_card: {
|
|
39
|
-
adapter: '',
|
|
40
|
-
displays: -1,
|
|
41
|
-
memory_mb: -1,
|
|
42
|
-
},
|
|
43
|
-
usb_controllers: [],
|
|
44
|
-
input_devices: [],
|
|
45
|
-
disk_devices: [],
|
|
46
|
-
network_devices: [],
|
|
47
|
-
passthrough_pci_devices: [],
|
|
48
|
-
options: {
|
|
49
|
-
remote_console: {
|
|
50
|
-
type: '',
|
|
51
|
-
port: -1,
|
|
52
|
-
keymap: '',
|
|
53
|
-
password: '',
|
|
54
|
-
guest_os_lock: false,
|
|
55
|
-
limit_sessions: -1,
|
|
56
|
-
spice: {
|
|
57
|
-
img_compression: '',
|
|
58
|
-
jpeg_compression: '',
|
|
59
|
-
zlib_glz_compression: '',
|
|
60
|
-
streaming_mode: '',
|
|
61
|
-
playback_compression: false,
|
|
62
|
-
file_transfer: false,
|
|
63
|
-
clipboard: false,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
guest_tools: {
|
|
67
|
-
enabled: false,
|
|
68
|
-
synchronized_time: false,
|
|
69
|
-
},
|
|
70
|
-
boot_options: {
|
|
71
|
-
firmware: '',
|
|
72
|
-
boot_delay_ms: -1,
|
|
73
|
-
boot_menu: false,
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
monitoring: {
|
|
77
|
-
state: -1,
|
|
78
|
-
memory: {
|
|
79
|
-
dram_read_bandwidth: -1,
|
|
80
|
-
pmem_read_bandwidth: -1,
|
|
81
|
-
provisioned_mb: -1,
|
|
82
|
-
used_mb: -1,
|
|
83
|
-
resident_set_size_mb: -1,
|
|
84
|
-
},
|
|
85
|
-
cpu: {
|
|
86
|
-
current_vcpus: -1,
|
|
87
|
-
provisioned_mhz: -1,
|
|
88
|
-
used_mhz: -1,
|
|
89
|
-
},
|
|
90
|
-
storage: {
|
|
91
|
-
provisioned_space_mb: -1,
|
|
92
|
-
used_space_mb: -1,
|
|
93
|
-
allocated_space_mb: -1,
|
|
94
|
-
},
|
|
95
|
-
networks: null,
|
|
96
|
-
uptime: {
|
|
97
|
-
start_time: '',
|
|
98
|
-
uptime_ms: -1,
|
|
99
|
-
uptime_humanized: '',
|
|
100
|
-
},
|
|
101
|
-
guest_tools: {
|
|
102
|
-
status: '',
|
|
103
|
-
version: '',
|
|
104
|
-
ip: '',
|
|
105
|
-
dns_name: '',
|
|
106
|
-
},
|
|
107
|
-
evc_cpu_mode: '',
|
|
108
|
-
evc_graphics_mode: '',
|
|
109
|
-
encryption: '',
|
|
110
|
-
tpm: '',
|
|
111
|
-
vbs: '',
|
|
112
|
-
},
|
|
113
|
-
snapshots: {},
|
|
114
|
-
},
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
import type { UI_I_RestoreForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
|
|
2
|
+
|
|
3
|
+
export const restoreDefaultFormFunc = (): UI_I_RestoreForm => {
|
|
4
|
+
return {
|
|
5
|
+
restore_code: 2,
|
|
6
|
+
backup_storage: '',
|
|
7
|
+
bucket: '',
|
|
8
|
+
backup: '',
|
|
9
|
+
copy_disks: [],
|
|
10
|
+
pvm: {
|
|
11
|
+
deployment_name: '',
|
|
12
|
+
name: '',
|
|
13
|
+
uuid: '',
|
|
14
|
+
compatibility: '',
|
|
15
|
+
guest_os_family: '',
|
|
16
|
+
guest_os_version: '',
|
|
17
|
+
storage: {
|
|
18
|
+
id: '',
|
|
19
|
+
folder: '',
|
|
20
|
+
},
|
|
21
|
+
machine_type: '',
|
|
22
|
+
cpu: {
|
|
23
|
+
vcpus: -1,
|
|
24
|
+
max_vcpus: -1,
|
|
25
|
+
core_per_socket: -1,
|
|
26
|
+
model: '',
|
|
27
|
+
reservation_mhz: -1,
|
|
28
|
+
limit_mhz: -1,
|
|
29
|
+
shares: -1,
|
|
30
|
+
hotplug: false,
|
|
31
|
+
},
|
|
32
|
+
memory: {
|
|
33
|
+
size_mb: -1,
|
|
34
|
+
hotplug: false,
|
|
35
|
+
reservation_mb: -1,
|
|
36
|
+
limit_mb: -1,
|
|
37
|
+
},
|
|
38
|
+
video_card: {
|
|
39
|
+
adapter: '',
|
|
40
|
+
displays: -1,
|
|
41
|
+
memory_mb: -1,
|
|
42
|
+
},
|
|
43
|
+
usb_controllers: [],
|
|
44
|
+
input_devices: [],
|
|
45
|
+
disk_devices: [],
|
|
46
|
+
network_devices: [],
|
|
47
|
+
passthrough_pci_devices: [],
|
|
48
|
+
options: {
|
|
49
|
+
remote_console: {
|
|
50
|
+
type: '',
|
|
51
|
+
port: -1,
|
|
52
|
+
keymap: '',
|
|
53
|
+
password: '',
|
|
54
|
+
guest_os_lock: false,
|
|
55
|
+
limit_sessions: -1,
|
|
56
|
+
spice: {
|
|
57
|
+
img_compression: '',
|
|
58
|
+
jpeg_compression: '',
|
|
59
|
+
zlib_glz_compression: '',
|
|
60
|
+
streaming_mode: '',
|
|
61
|
+
playback_compression: false,
|
|
62
|
+
file_transfer: false,
|
|
63
|
+
clipboard: false,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
guest_tools: {
|
|
67
|
+
enabled: false,
|
|
68
|
+
synchronized_time: false,
|
|
69
|
+
},
|
|
70
|
+
boot_options: {
|
|
71
|
+
firmware: '',
|
|
72
|
+
boot_delay_ms: -1,
|
|
73
|
+
boot_menu: false,
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
monitoring: {
|
|
77
|
+
state: -1,
|
|
78
|
+
memory: {
|
|
79
|
+
dram_read_bandwidth: -1,
|
|
80
|
+
pmem_read_bandwidth: -1,
|
|
81
|
+
provisioned_mb: -1,
|
|
82
|
+
used_mb: -1,
|
|
83
|
+
resident_set_size_mb: -1,
|
|
84
|
+
},
|
|
85
|
+
cpu: {
|
|
86
|
+
current_vcpus: -1,
|
|
87
|
+
provisioned_mhz: -1,
|
|
88
|
+
used_mhz: -1,
|
|
89
|
+
},
|
|
90
|
+
storage: {
|
|
91
|
+
provisioned_space_mb: -1,
|
|
92
|
+
used_space_mb: -1,
|
|
93
|
+
allocated_space_mb: -1,
|
|
94
|
+
},
|
|
95
|
+
networks: null,
|
|
96
|
+
uptime: {
|
|
97
|
+
start_time: '',
|
|
98
|
+
uptime_ms: -1,
|
|
99
|
+
uptime_humanized: '',
|
|
100
|
+
},
|
|
101
|
+
guest_tools: {
|
|
102
|
+
status: '',
|
|
103
|
+
version: '',
|
|
104
|
+
ip: '',
|
|
105
|
+
dns_name: '',
|
|
106
|
+
},
|
|
107
|
+
evc_cpu_mode: '',
|
|
108
|
+
evc_graphics_mode: '',
|
|
109
|
+
encryption: '',
|
|
110
|
+
tpm: '',
|
|
111
|
+
vbs: '',
|
|
112
|
+
},
|
|
113
|
+
snapshots: {},
|
|
114
|
+
},
|
|
115
|
+
}
|
|
116
|
+
}
|