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,52 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<atoms-modal
|
|
3
|
-
class="storage-modal-old"
|
|
4
|
-
:show="props.storageModalIsShow"
|
|
5
|
-
:title="localization.common.selectStorage"
|
|
6
|
-
@submit="emits('submit')"
|
|
7
|
-
@hide="emits('hide')"
|
|
8
|
-
>
|
|
9
|
-
<template #modalBody>
|
|
10
|
-
<span>{{
|
|
11
|
-
localization.common
|
|
12
|
-
.followingDatastoresAccessibleDestinationResourceThatSelected
|
|
13
|
-
}}</span>
|
|
14
|
-
<common-vm-actions-common-select-storage
|
|
15
|
-
:storage-submit="props.storageSubmit"
|
|
16
|
-
:datastore="props.datastore"
|
|
17
|
-
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
18
|
-
hide-compatibility
|
|
19
|
-
@submit="emits('change-storage', $event)"
|
|
20
|
-
/>
|
|
21
|
-
</template>
|
|
22
|
-
</atoms-modal>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script setup lang="ts">
|
|
26
|
-
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
27
|
-
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
|
28
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
29
|
-
|
|
30
|
-
const props = defineProps<{
|
|
31
|
-
storageModalIsShow: boolean
|
|
32
|
-
storageSubmit: number
|
|
33
|
-
datastore: UI_I_DatastoreTableItem[]
|
|
34
|
-
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
|
35
|
-
}>()
|
|
36
|
-
|
|
37
|
-
const emits = defineEmits<{
|
|
38
|
-
(event: 'change-storage', value: UI_I_DatastoreTableItem): void
|
|
39
|
-
(event: 'submit'): void
|
|
40
|
-
(event: 'hide'): void
|
|
41
|
-
}>()
|
|
42
|
-
|
|
43
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<style scoped lang="scss">
|
|
47
|
-
.storage-modal-old {
|
|
48
|
-
:deep(.modal-dialog) {
|
|
49
|
-
width: 864px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
</style>
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-modal
|
|
3
|
-
v-if="props.storageModalIsShow"
|
|
4
|
-
show
|
|
5
|
-
:title="localization.common.selectStorage"
|
|
6
|
-
:texts="texts"
|
|
7
|
-
test-id="storage-modal-new"
|
|
8
|
-
size="md"
|
|
9
|
-
@hide="emits('hide')"
|
|
10
|
-
@submit="onSubmit"
|
|
11
|
-
>
|
|
12
|
-
<template #content>
|
|
13
|
-
<div class="select-storage-modal-container">
|
|
14
|
-
<span class="description-text">{{
|
|
15
|
-
localization.common
|
|
16
|
-
.followingDatastoresAccessibleDestinationResourceThatSelected
|
|
17
|
-
}}</span>
|
|
18
|
-
<ui-data-table
|
|
19
|
-
test-id="select-storage-data-table"
|
|
20
|
-
:data="data"
|
|
21
|
-
:options="tableOptions"
|
|
22
|
-
:loading="loading"
|
|
23
|
-
server-off
|
|
24
|
-
:default-layout="false"
|
|
25
|
-
@select-row="onSelectRow"
|
|
26
|
-
/>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
<template #footerLeftContent>
|
|
30
|
-
<span></span>
|
|
31
|
-
</template>
|
|
32
|
-
</ui-modal>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script setup lang="ts">
|
|
36
|
-
import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
|
|
37
|
-
import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
38
|
-
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
39
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
40
|
-
import { datastoreLocalizationByState } from '~/components/common/lib/config/states'
|
|
41
|
-
import {
|
|
42
|
-
tableDataFunc,
|
|
43
|
-
tableOptions,
|
|
44
|
-
} from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/storageModalNew/lib/config/table'
|
|
45
|
-
|
|
46
|
-
const props = defineProps<{
|
|
47
|
-
storageModalIsShow: boolean
|
|
48
|
-
// storageSubmit: number
|
|
49
|
-
datastore: UI_I_DatastoreTableItem[]
|
|
50
|
-
// getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
|
51
|
-
}>()
|
|
52
|
-
|
|
53
|
-
const emits = defineEmits<{
|
|
54
|
-
(event: 'change-storage', value: UI_I_DatastoreTableItem): void
|
|
55
|
-
(event: 'submit'): void
|
|
56
|
-
(event: 'hide'): void
|
|
57
|
-
}>()
|
|
58
|
-
|
|
59
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
60
|
-
|
|
61
|
-
const texts = ref<UI_I_ModalTexts>({
|
|
62
|
-
button2: localization.value.common.select,
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
const loading = ref<boolean>(true)
|
|
66
|
-
|
|
67
|
-
const data = ref<UI_I_DataTable>(tableDataFunc(localization.value))
|
|
68
|
-
|
|
69
|
-
watch(
|
|
70
|
-
() => props.datastore,
|
|
71
|
-
(newValue) => {
|
|
72
|
-
if (!newValue.length || data.value.body.length) return
|
|
73
|
-
|
|
74
|
-
const { $binary } = useNuxtApp()
|
|
75
|
-
|
|
76
|
-
newValue.forEach((item, key) => {
|
|
77
|
-
const state =
|
|
78
|
-
localization.value.inventorySummary[
|
|
79
|
-
datastoreLocalizationByState[item.state]
|
|
80
|
-
]
|
|
81
|
-
data.value.body.push({
|
|
82
|
-
row: key,
|
|
83
|
-
collapse: false,
|
|
84
|
-
isHiddenCollapse: false,
|
|
85
|
-
collapseToggle: false,
|
|
86
|
-
data: [
|
|
87
|
-
{
|
|
88
|
-
key: item.id,
|
|
89
|
-
col: 0,
|
|
90
|
-
text: item.name,
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
col: 1,
|
|
94
|
-
text: state,
|
|
95
|
-
},
|
|
96
|
-
{ col: 2, text: $binary.round(item.capacity.capacity_mb) },
|
|
97
|
-
{
|
|
98
|
-
col: 3,
|
|
99
|
-
text: $binary.round(item.capacity.provisioned_mb.toString()),
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
col: 4,
|
|
103
|
-
text: $binary.round(item.capacity.free_mb.toString()),
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
col: 5,
|
|
107
|
-
text: $binary.round(item.capacity.used_mb.toString()),
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
col: 6,
|
|
111
|
-
text: item.type_text,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
col: 7,
|
|
115
|
-
text: item.thin_provisioning
|
|
116
|
-
? localization.value.common.yes
|
|
117
|
-
: localization.value.common.no,
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
col: 8,
|
|
121
|
-
text: item.access_mode,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
col: 9,
|
|
125
|
-
text: item.hardware_acceleration,
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
col: 10,
|
|
129
|
-
text: item.drive_type,
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
col: 11,
|
|
133
|
-
text: item.device,
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
col: 12,
|
|
137
|
-
text: item.storage_io_control,
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
})
|
|
141
|
-
})
|
|
142
|
-
loading.value = false
|
|
143
|
-
},
|
|
144
|
-
{ immediate: true, deep: true }
|
|
145
|
-
)
|
|
146
|
-
|
|
147
|
-
const onSelectRow = (selectedData: UI_I_DataTable): void => {
|
|
148
|
-
const selectedId = selectedData[0]?.data[0]?.key
|
|
149
|
-
const selectedItem = props.datastore.find((item) => (item.id = selectedId))
|
|
150
|
-
|
|
151
|
-
selectedItem && emits('change-storage', selectedItem)
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
const onSubmit = (): void => {
|
|
155
|
-
emits('submit')
|
|
156
|
-
emits('hide')
|
|
157
|
-
}
|
|
158
|
-
</script>
|
|
159
|
-
|
|
160
|
-
<style scoped lang="scss">
|
|
161
|
-
.select-storage-modal-container {
|
|
162
|
-
display: flex;
|
|
163
|
-
flex-direction: column;
|
|
164
|
-
grid-gap: 12px;
|
|
165
|
-
padding-left: 32px;
|
|
166
|
-
padding-bottom: 5px;
|
|
167
|
-
|
|
168
|
-
.description-text {
|
|
169
|
-
font-size: 12px;
|
|
170
|
-
font-weight: 400;
|
|
171
|
-
line-height: 14.52px;
|
|
172
|
-
color: #9da6ad;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
</style>
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
|
-
import type { UI_I_DataTableOptions } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
3
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
4
|
-
|
|
5
|
-
export const tableDataFunc = (
|
|
6
|
-
localization: UI_I_Localization
|
|
7
|
-
): UI_I_DataTable => ({
|
|
8
|
-
id: '0',
|
|
9
|
-
header: [
|
|
10
|
-
{
|
|
11
|
-
col: 0,
|
|
12
|
-
colName: localization.common.name,
|
|
13
|
-
text: localization.common.name,
|
|
14
|
-
isSortable: true,
|
|
15
|
-
sort: 'asc',
|
|
16
|
-
sortColumn: true,
|
|
17
|
-
width: '30%',
|
|
18
|
-
show: true,
|
|
19
|
-
filter: true,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
col: 1,
|
|
23
|
-
colName: localization.inventorySummary.state,
|
|
24
|
-
text: localization.inventorySummary.state,
|
|
25
|
-
isSortable: false,
|
|
26
|
-
sort: 'asc',
|
|
27
|
-
sortColumn: true,
|
|
28
|
-
width: '30%',
|
|
29
|
-
show: true,
|
|
30
|
-
filter: true,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
col: 2,
|
|
34
|
-
colName: localization.common.capacity,
|
|
35
|
-
text: localization.common.capacity,
|
|
36
|
-
isSortable: false,
|
|
37
|
-
sort: 'asc',
|
|
38
|
-
sortColumn: true,
|
|
39
|
-
width: '30%',
|
|
40
|
-
show: true,
|
|
41
|
-
filter: true,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
col: 3,
|
|
45
|
-
colName: localization.common.provisioned,
|
|
46
|
-
text: localization.common.provisioned,
|
|
47
|
-
isSortable: false,
|
|
48
|
-
sort: 'asc',
|
|
49
|
-
sortColumn: true,
|
|
50
|
-
width: '30%',
|
|
51
|
-
show: true,
|
|
52
|
-
filter: true,
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
col: 4,
|
|
56
|
-
colName: localization.common.free,
|
|
57
|
-
text: localization.common.free,
|
|
58
|
-
isSortable: false,
|
|
59
|
-
sort: 'asc',
|
|
60
|
-
sortColumn: true,
|
|
61
|
-
width: '30%',
|
|
62
|
-
show: true,
|
|
63
|
-
filter: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
col: 5,
|
|
67
|
-
colName: localization.common.used,
|
|
68
|
-
text: localization.common.used,
|
|
69
|
-
isSortable: false,
|
|
70
|
-
sort: 'asc',
|
|
71
|
-
sortColumn: true,
|
|
72
|
-
width: '30%',
|
|
73
|
-
show: true,
|
|
74
|
-
filter: true,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
col: 6,
|
|
78
|
-
colName: localization.common.type,
|
|
79
|
-
text: localization.common.type,
|
|
80
|
-
isSortable: false,
|
|
81
|
-
sort: 'asc',
|
|
82
|
-
sortColumn: true,
|
|
83
|
-
width: '30%',
|
|
84
|
-
show: true,
|
|
85
|
-
filter: true,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
col: 7,
|
|
89
|
-
colName: localization.common.thinProvisioning,
|
|
90
|
-
text: localization.common.thinProvisioning,
|
|
91
|
-
isSortable: false,
|
|
92
|
-
sort: 'asc',
|
|
93
|
-
sortColumn: true,
|
|
94
|
-
width: '30%',
|
|
95
|
-
show: true,
|
|
96
|
-
filter: true,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
col: 8,
|
|
100
|
-
colName: localization.common.access,
|
|
101
|
-
text: localization.common.access,
|
|
102
|
-
isSortable: false,
|
|
103
|
-
sort: 'asc',
|
|
104
|
-
sortColumn: true,
|
|
105
|
-
width: '30%',
|
|
106
|
-
show: true,
|
|
107
|
-
filter: true,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
col: 9,
|
|
111
|
-
colName: localization.common.hardwareAcceleration,
|
|
112
|
-
text: localization.common.hardwareAcceleration,
|
|
113
|
-
isSortable: false,
|
|
114
|
-
sort: 'asc',
|
|
115
|
-
sortColumn: true,
|
|
116
|
-
width: '30%',
|
|
117
|
-
show: true,
|
|
118
|
-
filter: true,
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
col: 10,
|
|
122
|
-
colName: localization.common.driverType,
|
|
123
|
-
text: localization.common.driverType,
|
|
124
|
-
isSortable: false,
|
|
125
|
-
sort: 'asc',
|
|
126
|
-
sortColumn: true,
|
|
127
|
-
width: '30%',
|
|
128
|
-
show: true,
|
|
129
|
-
filter: true,
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
col: 11,
|
|
133
|
-
colName: localization.common.device,
|
|
134
|
-
text: localization.common.device,
|
|
135
|
-
isSortable: false,
|
|
136
|
-
sort: 'asc',
|
|
137
|
-
sortColumn: true,
|
|
138
|
-
width: '30%',
|
|
139
|
-
show: true,
|
|
140
|
-
filter: true,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
col: 12,
|
|
144
|
-
colName: localization.common.storageIoControl,
|
|
145
|
-
text: localization.common.storageIoControl,
|
|
146
|
-
isSortable: false,
|
|
147
|
-
sort: 'asc',
|
|
148
|
-
sortColumn: true,
|
|
149
|
-
width: '30%',
|
|
150
|
-
show: true,
|
|
151
|
-
filter: true,
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
|
|
155
|
-
body: [],
|
|
156
|
-
})
|
|
157
|
-
|
|
158
|
-
export const tableOptions: UI_I_DataTableOptions = {
|
|
159
|
-
isSelectable: true,
|
|
160
|
-
selectType: 'radio',
|
|
161
|
-
showPagination: true,
|
|
162
|
-
showPageInfo: false,
|
|
163
|
-
isSortable: true,
|
|
164
|
-
server: false,
|
|
165
|
-
isResizable: true,
|
|
166
|
-
showColumnManager: true,
|
|
167
|
-
}
|