bfg-common 1.4.598 → 1.4.600
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-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 +2 -1
- package/assets/localization/local_en.json +2 -1
- package/assets/localization/local_hy.json +2 -1
- package/assets/localization/local_kk.json +2 -1
- package/assets/localization/local_ru.json +2 -1
- package/assets/localization/local_zh.json +2 -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/atoms/table/dataGrid/DataGrid.vue +1633 -1633
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
- package/components/common/browse/BrowseNew.vue +237 -237
- package/components/common/browse/BrowseOld.vue +217 -217
- package/components/common/browse/blocks/contents/Files.vue +37 -37
- package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
- package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
- 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/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/diagramMain/Header.vue +211 -211
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
- package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
- package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
- package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
- package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
- package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
- package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
- package/components/common/pages/home/widgets/services/ServicesNew.vue +0 -1
- package/components/common/pages/home/widgets/warnings/WarningsNew.vue +0 -1
- package/components/common/portlets/customAttributes/Portlet.vue +0 -2
- package/components/common/portlets/tag/Portlet.vue +0 -2
- package/components/common/portlets/tag/TagAddNew.vue +5 -4
- package/components/common/portlets/tag/lib/config/config.ts +199 -199
- package/components/common/spiceConsole/Drawer.vue +370 -370
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/split/vertical/Vertical.vue +160 -160
- 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 +267 -267
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +264 -264
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +281 -272
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -74
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
- package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
- package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -19
- package/components/common/vm/actions/editSettings/EditSettings.vue +214 -214
- package/components/common/vm/actions/editSettings/EditSettingsOld.vue +182 -182
- package/components/common/vm/actions/editSettings/new/New.vue +176 -176
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
- package/composables/productNameLocal.ts +30 -30
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- 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/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="select-storage">
|
|
3
|
-
<ui-alert
|
|
4
|
-
v-show="props.errors.length"
|
|
5
|
-
status="alert-danger"
|
|
6
|
-
test-id="storage-alert"
|
|
7
|
-
:items="props.errors"
|
|
8
|
-
@remove="emits('remove-error')"
|
|
9
|
-
/>
|
|
10
|
-
<div class="table-wrap">
|
|
11
|
-
<ui-data-table
|
|
12
|
-
test-id="select-storage-data-table"
|
|
13
|
-
:data="data"
|
|
14
|
-
:options="tableOptions"
|
|
15
|
-
:loading="loading"
|
|
16
|
-
server-off
|
|
17
|
-
:default-layout="false"
|
|
18
|
-
@select-row="onSelectRow"
|
|
19
|
-
/>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div v-if="!props.hideCompatibility" class="compatibility-wrap">
|
|
23
|
-
<p class="compatibility">
|
|
24
|
-
{{ localization.inventorySummary.compatibility }}
|
|
25
|
-
</p>
|
|
26
|
-
<div class="compatibility-message flex-align-center">
|
|
27
|
-
<template v-if="props.selectedStorage">
|
|
28
|
-
<div class="icon-status-ok" />
|
|
29
|
-
<span>{{ localization.common.compatibilityChecksSucceeded }}</span>
|
|
30
|
-
</template>
|
|
31
|
-
<div v-else>
|
|
32
|
-
<br />
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<script setup lang="ts">
|
|
40
|
-
import type { UI_I_DataTable } from 'bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
41
|
-
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
|
42
|
-
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
43
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
44
|
-
import { datastoreLocalizationByState } from '~/components/common/lib/config/states'
|
|
45
|
-
import {
|
|
46
|
-
tableDataFunc,
|
|
47
|
-
tableOptions,
|
|
48
|
-
} from '~/components/common/vm/actions/common/select/storage/new/lib/config/table'
|
|
49
|
-
|
|
50
|
-
const selectedRow = defineModel<number | null>('selectedRow')
|
|
51
|
-
|
|
52
|
-
const props = defineProps<{
|
|
53
|
-
datastore: UI_I_DatastoreTableItem[]
|
|
54
|
-
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
|
55
|
-
errors: string[]
|
|
56
|
-
selectedStorage: UI_I_DatastoreTableItem | null
|
|
57
|
-
hideCompatibility?: boolean
|
|
58
|
-
}>()
|
|
59
|
-
const emits = defineEmits<{
|
|
60
|
-
(event: 'remove-error'): void
|
|
61
|
-
(event: 'change-storage', value: number): void
|
|
62
|
-
}>()
|
|
63
|
-
|
|
64
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
65
|
-
|
|
66
|
-
const loading = ref<boolean>(true)
|
|
67
|
-
|
|
68
|
-
const data = ref<UI_I_DataTable>(tableDataFunc(localization.value))
|
|
69
|
-
|
|
70
|
-
watch(
|
|
71
|
-
() => props.datastore,
|
|
72
|
-
(newValue
|
|
73
|
-
if (!newValue.length || data.value.body.length) return
|
|
74
|
-
|
|
75
|
-
const { $binary } = useNuxtApp()
|
|
76
|
-
|
|
77
|
-
newValue.forEach((item, key) => {
|
|
78
|
-
const state =
|
|
79
|
-
localization.value.inventorySummary[
|
|
80
|
-
datastoreLocalizationByState[item.state]
|
|
81
|
-
]
|
|
82
|
-
data.value.body.push({
|
|
83
|
-
row: key,
|
|
84
|
-
collapse: false,
|
|
85
|
-
isHiddenCollapse: false,
|
|
86
|
-
collapseToggle: false,
|
|
87
|
-
isSelected: key === selectedRow.value,
|
|
88
|
-
data: [
|
|
89
|
-
{
|
|
90
|
-
key: item.id,
|
|
91
|
-
col: 0,
|
|
92
|
-
text: item.name,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
col: 1,
|
|
96
|
-
text: state,
|
|
97
|
-
},
|
|
98
|
-
{ col: 2, text: $binary.round(item.capacity.capacity_mb) },
|
|
99
|
-
{
|
|
100
|
-
col: 3,
|
|
101
|
-
text: $binary.round(item.capacity.provisioned_mb.toString()),
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
col: 4,
|
|
105
|
-
text: $binary.round(item.capacity.free_mb.toString()),
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
col: 5,
|
|
109
|
-
text: $binary.round(item.capacity.used_mb.toString()),
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
col: 6,
|
|
113
|
-
text: item.type_text,
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
col: 7,
|
|
117
|
-
text: item.thin_provisioning
|
|
118
|
-
? localization.value.common.yes
|
|
119
|
-
: localization.value.common.no,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
col: 8,
|
|
123
|
-
text: item.access_mode,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
col: 9,
|
|
127
|
-
text: item.hardware_acceleration,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
col: 10,
|
|
131
|
-
text: item.drive_type,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
col: 11,
|
|
135
|
-
text: item.device,
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
col: 12,
|
|
139
|
-
text: item.storage_io_control,
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
})
|
|
143
|
-
})
|
|
144
|
-
loading.value = false
|
|
145
|
-
},
|
|
146
|
-
{ immediate: true, deep: true }
|
|
147
|
-
)
|
|
148
|
-
|
|
149
|
-
const onSelectRow = (selectedData: UI_I_DataTable): void => {
|
|
150
|
-
const selectedId = selectedData[0]?.data[0]?.key
|
|
151
|
-
const selectedItemIndex = props.datastore.findIndex(
|
|
152
|
-
(item) => item.id === selectedId
|
|
153
|
-
)
|
|
154
|
-
|
|
155
|
-
emits('change-storage', selectedItemIndex)
|
|
156
|
-
}
|
|
157
|
-
</script>
|
|
158
|
-
|
|
159
|
-
<style scoped lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="select-storage">
|
|
3
|
+
<ui-alert
|
|
4
|
+
v-show="props.errors.length"
|
|
5
|
+
status="alert-danger"
|
|
6
|
+
test-id="storage-alert"
|
|
7
|
+
:items="props.errors"
|
|
8
|
+
@remove="emits('remove-error')"
|
|
9
|
+
/>
|
|
10
|
+
<div class="table-wrap">
|
|
11
|
+
<ui-data-table
|
|
12
|
+
test-id="select-storage-data-table"
|
|
13
|
+
:data="data"
|
|
14
|
+
:options="tableOptions"
|
|
15
|
+
:loading="loading"
|
|
16
|
+
server-off
|
|
17
|
+
:default-layout="false"
|
|
18
|
+
@select-row="onSelectRow"
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div v-if="!props.hideCompatibility" class="compatibility-wrap">
|
|
23
|
+
<p class="compatibility">
|
|
24
|
+
{{ localization.inventorySummary.compatibility }}
|
|
25
|
+
</p>
|
|
26
|
+
<div class="compatibility-message flex-align-center">
|
|
27
|
+
<template v-if="props.selectedStorage">
|
|
28
|
+
<div class="icon-status-ok" />
|
|
29
|
+
<span>{{ localization.common.compatibilityChecksSucceeded }}</span>
|
|
30
|
+
</template>
|
|
31
|
+
<div v-else>
|
|
32
|
+
<br />
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script setup lang="ts">
|
|
40
|
+
import type { UI_I_DataTable } from 'bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
41
|
+
import type { UI_I_TablePayload } from '~/lib/models/table/interfaces'
|
|
42
|
+
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
43
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
44
|
+
import { datastoreLocalizationByState } from '~/components/common/lib/config/states'
|
|
45
|
+
import {
|
|
46
|
+
tableDataFunc,
|
|
47
|
+
tableOptions,
|
|
48
|
+
} from '~/components/common/vm/actions/common/select/storage/new/lib/config/table'
|
|
49
|
+
|
|
50
|
+
const selectedRow = defineModel<number | null>('selectedRow')
|
|
51
|
+
|
|
52
|
+
const props = defineProps<{
|
|
53
|
+
datastore: UI_I_DatastoreTableItem[]
|
|
54
|
+
getDatastoreTableFunc: (payload: UI_I_TablePayload) => Promise<void>
|
|
55
|
+
errors: string[]
|
|
56
|
+
selectedStorage: UI_I_DatastoreTableItem | null
|
|
57
|
+
hideCompatibility?: boolean
|
|
58
|
+
}>()
|
|
59
|
+
const emits = defineEmits<{
|
|
60
|
+
(event: 'remove-error'): void
|
|
61
|
+
(event: 'change-storage', value: number): void
|
|
62
|
+
}>()
|
|
63
|
+
|
|
64
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
65
|
+
|
|
66
|
+
const loading = ref<boolean>(true)
|
|
67
|
+
|
|
68
|
+
const data = ref<UI_I_DataTable>(tableDataFunc(localization.value))
|
|
69
|
+
|
|
70
|
+
watch(
|
|
71
|
+
() => props.datastore,
|
|
72
|
+
(newValue) => {
|
|
73
|
+
if (!newValue.length || data.value.body.length) return
|
|
74
|
+
|
|
75
|
+
const { $binary } = useNuxtApp()
|
|
76
|
+
|
|
77
|
+
newValue.forEach((item, key) => {
|
|
78
|
+
const state =
|
|
79
|
+
localization.value.inventorySummary[
|
|
80
|
+
datastoreLocalizationByState[item.state]
|
|
81
|
+
]
|
|
82
|
+
data.value.body.push({
|
|
83
|
+
row: key,
|
|
84
|
+
collapse: false,
|
|
85
|
+
isHiddenCollapse: false,
|
|
86
|
+
collapseToggle: false,
|
|
87
|
+
isSelected: key === selectedRow.value,
|
|
88
|
+
data: [
|
|
89
|
+
{
|
|
90
|
+
key: item.id,
|
|
91
|
+
col: 0,
|
|
92
|
+
text: item.name,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
col: 1,
|
|
96
|
+
text: state,
|
|
97
|
+
},
|
|
98
|
+
{ col: 2, text: $binary.round(item.capacity.capacity_mb) },
|
|
99
|
+
{
|
|
100
|
+
col: 3,
|
|
101
|
+
text: $binary.round(item.capacity.provisioned_mb.toString()),
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
col: 4,
|
|
105
|
+
text: $binary.round(item.capacity.free_mb.toString()),
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
col: 5,
|
|
109
|
+
text: $binary.round(item.capacity.used_mb.toString()),
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
col: 6,
|
|
113
|
+
text: item.type_text,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
col: 7,
|
|
117
|
+
text: item.thin_provisioning
|
|
118
|
+
? localization.value.common.yes
|
|
119
|
+
: localization.value.common.no,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
col: 8,
|
|
123
|
+
text: item.access_mode,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
col: 9,
|
|
127
|
+
text: item.hardware_acceleration,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
col: 10,
|
|
131
|
+
text: item.drive_type,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
col: 11,
|
|
135
|
+
text: item.device,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
col: 12,
|
|
139
|
+
text: item.storage_io_control,
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
})
|
|
143
|
+
})
|
|
144
|
+
loading.value = false
|
|
145
|
+
},
|
|
146
|
+
{ immediate: true, deep: true }
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
const onSelectRow = (selectedData: UI_I_DataTable): void => {
|
|
150
|
+
const selectedId = selectedData[0]?.data[0]?.key
|
|
151
|
+
const selectedItemIndex = props.datastore.findIndex(
|
|
152
|
+
(item) => item.id === selectedId
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
emits('change-storage', selectedItemIndex)
|
|
156
|
+
}
|
|
157
|
+
</script>
|
|
158
|
+
|
|
159
|
+
<style scoped lang="scss"></style>
|
|
@@ -14,7 +14,7 @@ export const tableDataFunc = (
|
|
|
14
14
|
isSortable: true,
|
|
15
15
|
sort: 'asc',
|
|
16
16
|
sortColumn: true,
|
|
17
|
-
width: '
|
|
17
|
+
width: '30%',
|
|
18
18
|
show: true,
|
|
19
19
|
filter: true,
|
|
20
20
|
},
|
|
@@ -25,7 +25,7 @@ export const tableDataFunc = (
|
|
|
25
25
|
isSortable: false,
|
|
26
26
|
sort: 'asc',
|
|
27
27
|
sortColumn: true,
|
|
28
|
-
width: '
|
|
28
|
+
width: '30%',
|
|
29
29
|
show: true,
|
|
30
30
|
filter: true,
|
|
31
31
|
},
|
|
@@ -36,7 +36,7 @@ export const tableDataFunc = (
|
|
|
36
36
|
isSortable: false,
|
|
37
37
|
sort: 'asc',
|
|
38
38
|
sortColumn: true,
|
|
39
|
-
width: '
|
|
39
|
+
width: '30%',
|
|
40
40
|
show: true,
|
|
41
41
|
filter: true,
|
|
42
42
|
},
|
|
@@ -47,7 +47,7 @@ export const tableDataFunc = (
|
|
|
47
47
|
isSortable: false,
|
|
48
48
|
sort: 'asc',
|
|
49
49
|
sortColumn: true,
|
|
50
|
-
width: '
|
|
50
|
+
width: '30%',
|
|
51
51
|
show: true,
|
|
52
52
|
filter: true,
|
|
53
53
|
},
|
|
@@ -58,7 +58,7 @@ export const tableDataFunc = (
|
|
|
58
58
|
isSortable: false,
|
|
59
59
|
sort: 'asc',
|
|
60
60
|
sortColumn: true,
|
|
61
|
-
width: '
|
|
61
|
+
width: '30%',
|
|
62
62
|
show: true,
|
|
63
63
|
filter: true,
|
|
64
64
|
},
|
|
@@ -69,7 +69,7 @@ export const tableDataFunc = (
|
|
|
69
69
|
isSortable: false,
|
|
70
70
|
sort: 'asc',
|
|
71
71
|
sortColumn: true,
|
|
72
|
-
width: '
|
|
72
|
+
width: '30%',
|
|
73
73
|
show: true,
|
|
74
74
|
filter: true,
|
|
75
75
|
},
|
|
@@ -80,7 +80,7 @@ export const tableDataFunc = (
|
|
|
80
80
|
isSortable: false,
|
|
81
81
|
sort: 'asc',
|
|
82
82
|
sortColumn: true,
|
|
83
|
-
width: '
|
|
83
|
+
width: '30%',
|
|
84
84
|
show: true,
|
|
85
85
|
filter: true,
|
|
86
86
|
},
|
|
@@ -91,7 +91,7 @@ export const tableDataFunc = (
|
|
|
91
91
|
isSortable: false,
|
|
92
92
|
sort: 'asc',
|
|
93
93
|
sortColumn: true,
|
|
94
|
-
width: '
|
|
94
|
+
width: '30%',
|
|
95
95
|
show: true,
|
|
96
96
|
filter: true,
|
|
97
97
|
},
|
|
@@ -102,7 +102,7 @@ export const tableDataFunc = (
|
|
|
102
102
|
isSortable: false,
|
|
103
103
|
sort: 'asc',
|
|
104
104
|
sortColumn: true,
|
|
105
|
-
width: '
|
|
105
|
+
width: '30%',
|
|
106
106
|
show: true,
|
|
107
107
|
filter: true,
|
|
108
108
|
},
|
|
@@ -113,7 +113,7 @@ export const tableDataFunc = (
|
|
|
113
113
|
isSortable: false,
|
|
114
114
|
sort: 'asc',
|
|
115
115
|
sortColumn: true,
|
|
116
|
-
width: '
|
|
116
|
+
width: '30%',
|
|
117
117
|
show: true,
|
|
118
118
|
filter: true,
|
|
119
119
|
},
|
|
@@ -124,7 +124,7 @@ export const tableDataFunc = (
|
|
|
124
124
|
isSortable: false,
|
|
125
125
|
sort: 'asc',
|
|
126
126
|
sortColumn: true,
|
|
127
|
-
width: '
|
|
127
|
+
width: '30%',
|
|
128
128
|
show: true,
|
|
129
129
|
filter: true,
|
|
130
130
|
},
|
|
@@ -135,7 +135,7 @@ export const tableDataFunc = (
|
|
|
135
135
|
isSortable: false,
|
|
136
136
|
sort: 'asc',
|
|
137
137
|
sortColumn: true,
|
|
138
|
-
width: '
|
|
138
|
+
width: '30%',
|
|
139
139
|
show: true,
|
|
140
140
|
filter: true,
|
|
141
141
|
},
|
|
@@ -146,16 +146,10 @@ export const tableDataFunc = (
|
|
|
146
146
|
isSortable: false,
|
|
147
147
|
sort: 'asc',
|
|
148
148
|
sortColumn: true,
|
|
149
|
-
width: '
|
|
149
|
+
width: '30%',
|
|
150
150
|
show: true,
|
|
151
151
|
filter: true,
|
|
152
152
|
},
|
|
153
|
-
{
|
|
154
|
-
col: 13,
|
|
155
|
-
colName: 'default-actions',
|
|
156
|
-
text: '',
|
|
157
|
-
show: true,
|
|
158
|
-
},
|
|
159
153
|
],
|
|
160
154
|
|
|
161
155
|
body: [],
|