bfg-common 1.6.66 → 1.6.67
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/localization/local_be.json +9 -263
- package/assets/localization/local_en.json +27 -282
- package/assets/localization/local_hy.json +11 -265
- package/assets/localization/local_kk.json +9 -263
- package/assets/localization/local_ru.json +23 -277
- package/assets/localization/local_zh.json +9 -263
- package/assets/scss/common/global.scss +0 -11
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -170
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +0 -3
- package/components/common/adapterManager/AdapterManagerNew.vue +0 -86
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +0 -2
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +2 -3
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
- package/components/common/certificate/CertificateInfo.vue +1 -7
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
- package/components/common/diagramMain/Diagram.vue +85 -167
- package/components/common/diagramMain/DiagramMain.vue +10 -34
- package/components/common/diagramMain/{header/HeaderOld.vue → Header.vue} +67 -78
- package/components/common/diagramMain/modals/Modals.vue +0 -4
- package/components/common/diagramMain/modals/editSettings/{confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue → ConfirmTeamingSettingsModal.vue} +5 -2
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +102 -104
- package/components/common/diagramMain/modals/editSettings/{modal/EditSettingsModalOld.vue → EditSettingsModal.vue} +51 -12
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +0 -6
- package/components/common/diagramMain/modals/editSettings/tabs/{networkProperties/NetworkPropertiesOld.vue → NetworkProperties.vue} +113 -12
- package/components/common/diagramMain/modals/editSettings/tabs/{security/SecurityOld.vue → Security.vue} +48 -25
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +164 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{teamingFailover/TeamingFailoverOld.vue → TeamingFailover.vue} +48 -11
- package/components/common/diagramMain/modals/editSettings/tabs/{trafficShaping/TrafficShapingOld.vue → TrafficShaping.vue} +134 -12
- package/components/common/diagramMain/modals/editSettings/tabs/port/{ipvFourSettings/IpvFourSettingsOld.vue → IpvFourSettings.vue} +152 -11
- package/components/common/diagramMain/modals/editSettings/tabs/port/{portProperties/PortPropertiesOld.vue → PortProperties.vue} +103 -12
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +2 -43
- package/components/common/diagramMain/modals/lib/config/index.ts +1 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/lib/utils/index.ts +4 -34
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +30 -38
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
- package/components/common/modals/Rename.vue +1 -3
- package/components/common/monitor/utilization/Old.vue +5 -5
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +253 -184
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +0 -9
- package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
- package/components/common/pages/tasks/Tasks.vue +1 -4
- package/components/common/pages/tasks/table/Table.vue +23 -25
- package/components/common/readyToComplete/New.vue +0 -1
- package/components/common/split/vertical/New.vue +8 -42
- package/components/common/split/vertical/Old.vue +2 -31
- package/components/common/split/vertical/Vertical.vue +0 -4
- package/components/common/vm/actions/add/New.vue +6 -21
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -14
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +0 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/options/New.vue +12 -14
- package/components/common/vm/actions/common/select/options/Old.vue +15 -16
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
- package/components/common/vm/actions/confirm/Confirm.vue +0 -3
- package/components/common/vm/actions/rename/Old.vue +0 -1
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +0 -6
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +2 -13
- package/components/common/wizards/network/add/AddNew.vue +26 -22
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -6
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +1 -5
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +0 -3
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +2 -6
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -4
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +3 -13
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +0 -5
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -3
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +1 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +21 -40
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +14 -44
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +0 -4
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +2 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +7 -22
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +16 -12
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +5 -10
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +11 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +10 -17
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +0 -1
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +15 -35
- package/lib/models/store/tasks/enums.ts +0 -3
- package/lib/models/store/tasks/types.ts +6 -7
- package/package.json +2 -2
- package/plugins/directives.ts +5 -3
- package/public/spice-console/application/agent.js +17 -18
- package/store/tasks/actions.ts +8 -26
- package/store/tasks/mappers/recentTasks.ts +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
- package/components/common/diagramMain/header/Header.vue +0 -49
- package/components/common/diagramMain/header/HeaderNew.vue +0 -155
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +0 -32
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +0 -285
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +0 -254
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +0 -31
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +0 -82
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +0 -15
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +0 -177
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +0 -137
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +0 -91
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +0 -158
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +0 -262
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +0 -192
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +0 -388
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +0 -139
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +0 -286
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +0 -209
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +0 -233
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +0 -128
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +0 -235
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +0 -87
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +0 -99
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +0 -319
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +0 -173
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +0 -348
- package/components/common/diagramMain/skeleton/Header.vue +0 -31
- package/components/common/diagramMain/skeleton/Switch.vue +0 -75
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="device-table-container">
|
|
3
3
|
<ui-data-table
|
|
4
4
|
:data="data"
|
|
5
|
-
:options="
|
|
5
|
+
:options="options"
|
|
6
6
|
:loading="props.isLoading"
|
|
7
7
|
:total-pages="props.totalPages"
|
|
8
8
|
:total-items="props.totalItems"
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
>
|
|
53
53
|
<ui-icon
|
|
54
54
|
:name="item.data.icon"
|
|
55
|
-
width="
|
|
56
|
-
height="
|
|
55
|
+
width="14px"
|
|
56
|
+
height="14px"
|
|
57
57
|
class="chip-icon"
|
|
58
58
|
></ui-icon>
|
|
59
59
|
{{ item.text }}
|
|
@@ -79,10 +79,13 @@ import type {
|
|
|
79
79
|
UI_I_TableTexts,
|
|
80
80
|
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
81
81
|
import type { UI_I_DataTableSkeleton } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
82
|
-
import type { UI_T_SelectComputeResourceTabType } from '~/components/common/wizards/vm/migrate/
|
|
82
|
+
import type { UI_T_SelectComputeResourceTabType } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
83
83
|
import type { UI_T_ComputeResourceTableItem } from '~/components/common/wizards/vm/migrate/steps/computeResource/lib/models/types'
|
|
84
|
-
import
|
|
85
|
-
|
|
84
|
+
import {
|
|
85
|
+
options,
|
|
86
|
+
getHeaderDataFunc,
|
|
87
|
+
getBodyDataFunc,
|
|
88
|
+
} from '~/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable'
|
|
86
89
|
|
|
87
90
|
const selectedDataLocal = defineModel<number | null>({ required: true })
|
|
88
91
|
const props = defineProps<{
|
|
@@ -117,33 +120,15 @@ const tableSkeleton = ref<UI_I_DataTableSkeleton>({
|
|
|
117
120
|
withoutPagination: true,
|
|
118
121
|
})
|
|
119
122
|
|
|
120
|
-
const tableTitleMap = {
|
|
121
|
-
host: localization.value.common.hosts,
|
|
122
|
-
cluster: localization.value.common.clusters,
|
|
123
|
-
} as const
|
|
124
|
-
const tableConfigMap = {
|
|
125
|
-
host: hostTable,
|
|
126
|
-
cluster: clusterTable,
|
|
127
|
-
} as const
|
|
128
|
-
|
|
129
|
-
const tableConfig = computed(
|
|
130
|
-
() => tableConfigMap[props.type as keyof typeof tableConfigMap]
|
|
131
|
-
)
|
|
132
|
-
|
|
133
123
|
const data = computed<UI_I_DataTable>(() => ({
|
|
134
|
-
id:
|
|
135
|
-
title:
|
|
124
|
+
id: 'compute-resource-host-table',
|
|
125
|
+
title: `${localization.value.common.hosts} (${props.totalItems})`,
|
|
136
126
|
header: deviceHeadItems.value,
|
|
137
127
|
body: deviceBodyItems.value,
|
|
138
128
|
}))
|
|
139
|
-
|
|
140
|
-
() =>
|
|
141
|
-
`${tableTitleMap[props.type as keyof typeof tableConfigMap]} (${
|
|
142
|
-
props.totalItems
|
|
143
|
-
})`
|
|
144
|
-
)
|
|
129
|
+
|
|
145
130
|
const deviceHeadItems = computed<UI_I_DataTableHeader[]>(() =>
|
|
146
|
-
|
|
131
|
+
getHeaderDataFunc(localization.value)
|
|
147
132
|
)
|
|
148
133
|
|
|
149
134
|
const deviceBodyItems = ref<UI_I_DataTableBody[]>([])
|
|
@@ -155,22 +140,19 @@ watch(
|
|
|
155
140
|
return
|
|
156
141
|
}
|
|
157
142
|
|
|
158
|
-
deviceBodyItems.value =
|
|
159
|
-
newValue,
|
|
160
|
-
localization.value
|
|
161
|
-
)
|
|
143
|
+
deviceBodyItems.value = getBodyDataFunc(newValue, localization.value)
|
|
162
144
|
},
|
|
163
145
|
{ deep: true, immediate: true }
|
|
164
146
|
)
|
|
165
147
|
|
|
166
148
|
const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
167
|
-
selectedDataLocal.value = value?.[0].row
|
|
149
|
+
selectedDataLocal.value = value?.[0].row
|
|
168
150
|
}
|
|
169
151
|
</script>
|
|
170
152
|
|
|
171
153
|
<style lang="scss" scoped>
|
|
172
154
|
.device-table-container {
|
|
173
|
-
margin:
|
|
155
|
+
margin: 20px 0 24px;
|
|
174
156
|
:deep(.column-manager-button.sm span) {
|
|
175
157
|
font-weight: 500;
|
|
176
158
|
}
|
|
@@ -187,15 +169,15 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
|
187
169
|
}
|
|
188
170
|
.progress {
|
|
189
171
|
&-line {
|
|
190
|
-
height:
|
|
172
|
+
height: 12px;
|
|
191
173
|
width: 100%;
|
|
192
|
-
background:
|
|
174
|
+
background: #e9ebed8f;
|
|
193
175
|
border-radius: 6px;
|
|
194
176
|
|
|
195
177
|
&-fill {
|
|
196
|
-
height:
|
|
197
|
-
min-width:
|
|
198
|
-
background:
|
|
178
|
+
height: 12px;
|
|
179
|
+
min-width: 12px;
|
|
180
|
+
background: #008fd6;
|
|
199
181
|
border-radius: 6px;
|
|
200
182
|
}
|
|
201
183
|
}
|
|
@@ -203,7 +185,6 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
|
203
185
|
&-text {
|
|
204
186
|
width: 53px;
|
|
205
187
|
min-width: 53px;
|
|
206
|
-
font-size: 12px;
|
|
207
188
|
margin-left: 8px;
|
|
208
189
|
text-align: right;
|
|
209
190
|
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
UI_E_DeviceStatus,
|
|
10
10
|
UI_E_DeviceStatusChipColor,
|
|
11
11
|
UI_E_DeviceStatusIcon,
|
|
12
|
-
UI_E_HostAlarmStatus,
|
|
13
12
|
} from '~/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums'
|
|
14
13
|
import {
|
|
15
14
|
hostIconByState,
|
|
@@ -32,18 +31,6 @@ const STATUS_MAPPING = {
|
|
|
32
31
|
},
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
// Маппинг для статусов
|
|
36
|
-
const HOST_ALARMS_MAPPING = {
|
|
37
|
-
[UI_E_HostAlarmStatus.Yes]: {
|
|
38
|
-
icon: UI_E_DeviceStatusIcon.StatusCheck,
|
|
39
|
-
chipColor: UI_E_DeviceStatusChipColor.Green,
|
|
40
|
-
},
|
|
41
|
-
[UI_E_HostAlarmStatus.No]: {
|
|
42
|
-
icon: UI_E_DeviceStatusIcon.Close,
|
|
43
|
-
chipColor: UI_E_DeviceStatusChipColor.Red,
|
|
44
|
-
},
|
|
45
|
-
}
|
|
46
|
-
|
|
47
34
|
export const getHeaderDataFunc = (
|
|
48
35
|
localization: UI_I_Localization
|
|
49
36
|
): UI_I_DataTableHeader[] => [
|
|
@@ -63,7 +50,7 @@ export const getHeaderDataFunc = (
|
|
|
63
50
|
text: localization.inventorySummary.state,
|
|
64
51
|
isSortable: true,
|
|
65
52
|
sort: 'asc',
|
|
66
|
-
width: '
|
|
53
|
+
width: '96px',
|
|
67
54
|
show: true,
|
|
68
55
|
filter: false,
|
|
69
56
|
},
|
|
@@ -73,7 +60,7 @@ export const getHeaderDataFunc = (
|
|
|
73
60
|
text: localization.common.cluster,
|
|
74
61
|
isSortable: true,
|
|
75
62
|
sort: 'asc',
|
|
76
|
-
width: '
|
|
63
|
+
width: '96px',
|
|
77
64
|
show: true,
|
|
78
65
|
filter: false,
|
|
79
66
|
},
|
|
@@ -83,7 +70,7 @@ export const getHeaderDataFunc = (
|
|
|
83
70
|
text: localization.common.faultDomain,
|
|
84
71
|
isSortable: true,
|
|
85
72
|
sort: 'asc',
|
|
86
|
-
width: '
|
|
73
|
+
width: '96px',
|
|
87
74
|
show: true,
|
|
88
75
|
filter: false,
|
|
89
76
|
},
|
|
@@ -93,7 +80,7 @@ export const getHeaderDataFunc = (
|
|
|
93
80
|
text: `${localization.common.consumedCpu} %`,
|
|
94
81
|
isSortable: true,
|
|
95
82
|
sort: 'asc',
|
|
96
|
-
width: '
|
|
83
|
+
width: '96px',
|
|
97
84
|
show: true,
|
|
98
85
|
filter: false,
|
|
99
86
|
},
|
|
@@ -103,7 +90,7 @@ export const getHeaderDataFunc = (
|
|
|
103
90
|
text: `${localization.common.consumedMemory} %`,
|
|
104
91
|
isSortable: true,
|
|
105
92
|
sort: 'asc',
|
|
106
|
-
width: '
|
|
93
|
+
width: '96px',
|
|
107
94
|
show: true,
|
|
108
95
|
filter: false,
|
|
109
96
|
},
|
|
@@ -123,7 +110,7 @@ export const getHeaderDataFunc = (
|
|
|
123
110
|
text: localization.inventorySummary.uptime,
|
|
124
111
|
isSortable: true,
|
|
125
112
|
sort: 'asc',
|
|
126
|
-
width: '
|
|
113
|
+
width: '96px',
|
|
127
114
|
show: true,
|
|
128
115
|
filter: false,
|
|
129
116
|
},
|
|
@@ -133,7 +120,7 @@ export const getHeaderDataFunc = (
|
|
|
133
120
|
text: localization.common.certificateValidTo,
|
|
134
121
|
isSortable: true,
|
|
135
122
|
sort: 'asc',
|
|
136
|
-
width: '
|
|
123
|
+
width: '96px',
|
|
137
124
|
show: true,
|
|
138
125
|
filter: false,
|
|
139
126
|
},
|
|
@@ -143,7 +130,7 @@ export const getHeaderDataFunc = (
|
|
|
143
130
|
text: `${localization.common.memorySize} (${localization.common.mb})`,
|
|
144
131
|
isSortable: true,
|
|
145
132
|
sort: 'asc',
|
|
146
|
-
width: '
|
|
133
|
+
width: '96px',
|
|
147
134
|
show: true,
|
|
148
135
|
filter: false,
|
|
149
136
|
},
|
|
@@ -173,7 +160,7 @@ export const getHeaderDataFunc = (
|
|
|
173
160
|
text: localization.common.version,
|
|
174
161
|
isSortable: true,
|
|
175
162
|
sort: 'asc',
|
|
176
|
-
width: '
|
|
163
|
+
width: '96px',
|
|
177
164
|
show: true,
|
|
178
165
|
filter: false,
|
|
179
166
|
},
|
|
@@ -183,7 +170,7 @@ export const getHeaderDataFunc = (
|
|
|
183
170
|
text: localization.common.alarmActions,
|
|
184
171
|
isSortable: true,
|
|
185
172
|
sort: 'asc',
|
|
186
|
-
width: '
|
|
173
|
+
width: '96px',
|
|
187
174
|
show: true,
|
|
188
175
|
filter: false,
|
|
189
176
|
},
|
|
@@ -224,21 +211,6 @@ export const getBodyDataFunc = (
|
|
|
224
211
|
testId: `${host.name}-${index}-status`,
|
|
225
212
|
}
|
|
226
213
|
|
|
227
|
-
const alarmsStatusKey = host.alarm_action
|
|
228
|
-
? UI_E_HostAlarmStatus.Yes
|
|
229
|
-
: UI_E_HostAlarmStatus.No
|
|
230
|
-
const alarmActionData = {
|
|
231
|
-
...HOST_ALARMS_MAPPING[alarmsStatusKey],
|
|
232
|
-
testId: `${host.name}-${index}-alarms-status`,
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
const isLangEn = useLocalStorage('lang') === 'en_US'
|
|
236
|
-
const alarmActionValue = isLangEn
|
|
237
|
-
? host.alarm_action
|
|
238
|
-
? 'True'
|
|
239
|
-
: 'False'
|
|
240
|
-
: localization.common[alarmsStatusKey]
|
|
241
|
-
|
|
242
214
|
return {
|
|
243
215
|
row: index,
|
|
244
216
|
collapse: false,
|
|
@@ -250,9 +222,7 @@ export const getBodyDataFunc = (
|
|
|
250
222
|
key: 'icon',
|
|
251
223
|
col: 'col0',
|
|
252
224
|
text: host.name,
|
|
253
|
-
data: {
|
|
254
|
-
iconClassName: `vsphere-icon-${hostIconByState[host.state]}`,
|
|
255
|
-
},
|
|
225
|
+
data: `vsphere-icon-${hostIconByState[host.state]}`,
|
|
256
226
|
testId: `migrate-host-table-item-${index}`,
|
|
257
227
|
},
|
|
258
228
|
|
|
@@ -299,7 +269,7 @@ export const getBodyDataFunc = (
|
|
|
299
269
|
},
|
|
300
270
|
{
|
|
301
271
|
col: 'col8',
|
|
302
|
-
text: host.cert_valid_to
|
|
272
|
+
text: host.cert_valid_to,
|
|
303
273
|
testId: `migrate-host-table-item-${index}`,
|
|
304
274
|
},
|
|
305
275
|
|
|
@@ -328,8 +298,8 @@ export const getBodyDataFunc = (
|
|
|
328
298
|
{
|
|
329
299
|
key: 'status',
|
|
330
300
|
col: 'col13',
|
|
331
|
-
text:
|
|
332
|
-
data:
|
|
301
|
+
text: host.alarm_action,
|
|
302
|
+
data: statusData,
|
|
333
303
|
testId: `migrate-host-table-item-${index}`,
|
|
334
304
|
},
|
|
335
305
|
],
|
|
@@ -38,7 +38,7 @@ const props = defineProps<{
|
|
|
38
38
|
.migration-strategy {
|
|
39
39
|
container-type: inline-size;
|
|
40
40
|
margin-top: 16px;
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
&__radio {
|
|
43
43
|
&-container {
|
|
44
44
|
display: grid;
|
|
@@ -62,7 +62,7 @@ const props = defineProps<{
|
|
|
62
62
|
transition: box-shadow 0.1s ease-in-out;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
&:not(:checked
|
|
65
|
+
&:not(:checked) {
|
|
66
66
|
& ~ .radio-label:hover {
|
|
67
67
|
//border-color: var(--select-border);
|
|
68
68
|
box-shadow: inset 0 0 0 1px var(--select-border);
|
|
@@ -76,11 +76,6 @@ const props = defineProps<{
|
|
|
76
76
|
box-shadow: inset 0 0 0 1.5px var(--radio-btn-active-label-border-color);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
&:disabled {
|
|
80
|
-
& ~ .radio-label .migration-strategy__radio-description {
|
|
81
|
-
color: var(--checkbox-radio-label-color-disabled);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
81
|
|
|
@@ -27,14 +27,13 @@
|
|
|
27
27
|
:is-hide-select-disk-format="props.isHideSelectDiskFormat"
|
|
28
28
|
>
|
|
29
29
|
<template v-if="isShowSelectedPerDisks" #buttonConfirm>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
size="sm"
|
|
30
|
+
<button
|
|
31
|
+
class="btn btn-sm btn-primary"
|
|
32
|
+
data-id="apply-selected-per-disks-button"
|
|
34
33
|
@click="onApplyChanges"
|
|
35
34
|
>
|
|
36
35
|
{{ localization.common.confirm }}
|
|
37
|
-
</
|
|
36
|
+
</button>
|
|
38
37
|
</template>
|
|
39
38
|
</common-wizards-vm-migrate-steps-select-storage-configure-batch>
|
|
40
39
|
|
|
@@ -48,8 +47,9 @@
|
|
|
48
47
|
/>
|
|
49
48
|
|
|
50
49
|
<common-wizards-common-compatibility
|
|
51
|
-
:
|
|
52
|
-
:text="
|
|
50
|
+
:loading="!model.storage"
|
|
51
|
+
:text="localization.common.compatibilityChecksSucceeded"
|
|
52
|
+
status="success"
|
|
53
53
|
/>
|
|
54
54
|
</div>
|
|
55
55
|
</template>
|
|
@@ -62,7 +62,6 @@ import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/model
|
|
|
62
62
|
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
63
63
|
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/lib/models/interfaces'
|
|
64
64
|
import type { UI_I_MigrateFormLocal } from '~/components/common/wizards/vm/migrate/lib/models/interfaces'
|
|
65
|
-
import type { UI_T_CompatibilityStatus } from '~/components/common/wizards/common/compatibility/lib/models/types'
|
|
66
65
|
|
|
67
66
|
const model = defineModel<UI_I_MigrateFormLocal>({ required: true })
|
|
68
67
|
const selectedPerDiskKeys = defineModel<number[]>('selectedDiskKeys', {
|
|
@@ -112,19 +111,6 @@ const onChangePerDiskStorage = (
|
|
|
112
111
|
const onApplyChanges = (): void => {
|
|
113
112
|
emits('confirm-changes')
|
|
114
113
|
}
|
|
115
|
-
|
|
116
|
-
const compatibilityText = computed<[UI_T_CompatibilityStatus, string]>(() => {
|
|
117
|
-
let res: [UI_T_CompatibilityStatus, string] = [
|
|
118
|
-
'none',
|
|
119
|
-
localization.value.common.noComputeResourceSelected,
|
|
120
|
-
]
|
|
121
|
-
|
|
122
|
-
if (model.value.storage) {
|
|
123
|
-
res = ['success', localization.value.common.compatibilityChecksSucceeded]
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return res
|
|
127
|
-
})
|
|
128
114
|
</script>
|
|
129
115
|
|
|
130
116
|
<style lang="scss" scoped>
|
|
@@ -132,6 +118,5 @@ const compatibilityText = computed<[UI_T_CompatibilityStatus, string]>(() => {
|
|
|
132
118
|
.select-storage {
|
|
133
119
|
@include flex($dir: column);
|
|
134
120
|
margin-top: 16px;
|
|
135
|
-
padding-bottom: 16px;
|
|
136
121
|
}
|
|
137
122
|
</style>
|
|
@@ -61,9 +61,7 @@ const selectOptionsLocal = computed<UI_I_Dropdown[]>(() =>
|
|
|
61
61
|
grid-template-columns: 240px 1fr;
|
|
62
62
|
align-items: center;
|
|
63
63
|
column-gap: 16px;
|
|
64
|
-
border-bottom: 1px solid var(--horizontal-line);
|
|
65
64
|
margin-top: 16px;
|
|
66
|
-
padding-bottom: 16px;
|
|
67
65
|
& > span {
|
|
68
66
|
font-family: 'Inter', sans-serif;
|
|
69
67
|
color: var(--title-form-first-color);
|
|
@@ -71,9 +69,5 @@ const selectOptionsLocal = computed<UI_I_Dropdown[]>(() =>
|
|
|
71
69
|
font-size: 13px;
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
|
-
&__button {
|
|
75
|
-
display: flex;
|
|
76
|
-
justify-content: flex-end;
|
|
77
|
-
}
|
|
78
72
|
}
|
|
79
73
|
</style>
|
package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue
CHANGED
|
@@ -86,7 +86,6 @@ const texts = computed<UI_I_TableTexts>(() => ({
|
|
|
86
86
|
|
|
87
87
|
const skeletonData = ref<UI_I_DataTableSkeleton>({
|
|
88
88
|
columnsCount: 4,
|
|
89
|
-
withoutPagination: true,
|
|
90
89
|
headColumns: [],
|
|
91
90
|
bodyColumns: [],
|
|
92
91
|
})
|
|
@@ -119,11 +118,9 @@ watch(
|
|
|
119
118
|
const onSorting = (value: string): void => {
|
|
120
119
|
emits('sort', value)
|
|
121
120
|
}
|
|
122
|
-
|
|
123
|
-
/* TODO: если передать в emit selectedStorageKeyLocal.value, то не работает */
|
|
124
121
|
const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
125
122
|
selectedStorageKeyLocal.value = value?.[0].row as number
|
|
126
|
-
emits('select-storage', value
|
|
123
|
+
emits('select-storage', selectedStorageKeyLocal.value)
|
|
127
124
|
}
|
|
128
125
|
</script>
|
|
129
126
|
|
|
@@ -95,7 +95,7 @@ export const getHeaderDataFunc = (
|
|
|
95
95
|
text: localization.common.name,
|
|
96
96
|
isSortable: false,
|
|
97
97
|
sort: 'asc',
|
|
98
|
-
width: '
|
|
98
|
+
width: '180px',
|
|
99
99
|
show: true,
|
|
100
100
|
filter: false,
|
|
101
101
|
},
|
|
@@ -105,7 +105,7 @@ export const getHeaderDataFunc = (
|
|
|
105
105
|
text: localization.inventorySummary.state,
|
|
106
106
|
isSortable: false,
|
|
107
107
|
sort: 'asc',
|
|
108
|
-
width: '
|
|
108
|
+
width: '180px',
|
|
109
109
|
show: true,
|
|
110
110
|
filter: false,
|
|
111
111
|
},
|
|
@@ -115,7 +115,7 @@ export const getHeaderDataFunc = (
|
|
|
115
115
|
text: localization.common.capacity,
|
|
116
116
|
isSortable: false,
|
|
117
117
|
sort: 'asc',
|
|
118
|
-
width: '
|
|
118
|
+
width: '180px',
|
|
119
119
|
show: true,
|
|
120
120
|
filter: false,
|
|
121
121
|
},
|
|
@@ -125,7 +125,7 @@ export const getHeaderDataFunc = (
|
|
|
125
125
|
text: localization.common.provisioned,
|
|
126
126
|
isSortable: false,
|
|
127
127
|
sort: 'asc',
|
|
128
|
-
width: '
|
|
128
|
+
width: '180px',
|
|
129
129
|
show: true,
|
|
130
130
|
filter: false,
|
|
131
131
|
},
|
|
@@ -135,7 +135,7 @@ export const getHeaderDataFunc = (
|
|
|
135
135
|
text: localization.common.free,
|
|
136
136
|
isSortable: false,
|
|
137
137
|
sort: 'asc',
|
|
138
|
-
width: '
|
|
138
|
+
width: '180px',
|
|
139
139
|
show: true,
|
|
140
140
|
filter: false,
|
|
141
141
|
},
|
|
@@ -145,7 +145,7 @@ export const getHeaderDataFunc = (
|
|
|
145
145
|
text: localization.common.used,
|
|
146
146
|
isSortable: false,
|
|
147
147
|
sort: 'asc',
|
|
148
|
-
width: '
|
|
148
|
+
width: '180px',
|
|
149
149
|
show: true,
|
|
150
150
|
filter: false,
|
|
151
151
|
},
|
|
@@ -155,7 +155,7 @@ export const getHeaderDataFunc = (
|
|
|
155
155
|
text: localization.common.type,
|
|
156
156
|
isSortable: false,
|
|
157
157
|
sort: 'asc',
|
|
158
|
-
width: '
|
|
158
|
+
width: '180px',
|
|
159
159
|
show: true,
|
|
160
160
|
filter: false,
|
|
161
161
|
},
|
|
@@ -165,7 +165,7 @@ export const getHeaderDataFunc = (
|
|
|
165
165
|
text: localization.common.thinProvisioning,
|
|
166
166
|
isSortable: false,
|
|
167
167
|
sort: 'asc',
|
|
168
|
-
width: '
|
|
168
|
+
width: '180px',
|
|
169
169
|
show: true,
|
|
170
170
|
filter: false,
|
|
171
171
|
},
|
|
@@ -175,7 +175,7 @@ export const getHeaderDataFunc = (
|
|
|
175
175
|
text: localization.common.access,
|
|
176
176
|
isSortable: false,
|
|
177
177
|
sort: 'asc',
|
|
178
|
-
width: '
|
|
178
|
+
width: '180px',
|
|
179
179
|
show: true,
|
|
180
180
|
filter: false,
|
|
181
181
|
},
|
|
@@ -195,7 +195,7 @@ export const getHeaderDataFunc = (
|
|
|
195
195
|
text: localization.common.driverType,
|
|
196
196
|
isSortable: false,
|
|
197
197
|
sort: 'asc',
|
|
198
|
-
width: '
|
|
198
|
+
width: '180px',
|
|
199
199
|
show: true,
|
|
200
200
|
filter: false,
|
|
201
201
|
},
|
|
@@ -205,7 +205,7 @@ export const getHeaderDataFunc = (
|
|
|
205
205
|
text: localization.common.device,
|
|
206
206
|
isSortable: false,
|
|
207
207
|
sort: 'asc',
|
|
208
|
-
width: '
|
|
208
|
+
width: '180px',
|
|
209
209
|
show: true,
|
|
210
210
|
filter: false,
|
|
211
211
|
},
|
|
@@ -259,7 +259,11 @@ export const getBodyDataFunc = (
|
|
|
259
259
|
testId: `${storage.name}-${index}-thin-provisioning`,
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
const hardwareAccelerationKey =
|
|
262
|
+
const hardwareAccelerationKey =
|
|
263
|
+
E_StorageHardwareAcceleration[
|
|
264
|
+
storage.hardware_acceleration as keyof typeof E_StorageHardwareAcceleration
|
|
265
|
+
]
|
|
266
|
+
|
|
263
267
|
const hardwareAccelerationData = {
|
|
264
268
|
...HARDWARE_ACCELERATION_MAPPING[
|
|
265
269
|
hardwareAccelerationKey as keyof typeof HARDWARE_ACCELERATION_MAPPING
|
package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
class="disk-table__configure-button"
|
|
24
24
|
@click="emits('configure')"
|
|
25
25
|
>
|
|
26
|
-
<ui-icon name="
|
|
26
|
+
<ui-icon name="config" width="16" height="16" />
|
|
27
27
|
{{ localization.inventoryTabs.configure }}
|
|
28
28
|
</ui-button>
|
|
29
29
|
</template>
|
|
@@ -159,19 +159,18 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
|
159
159
|
</style>
|
|
160
160
|
<style lang="scss" scoped>
|
|
161
161
|
.disk-table {
|
|
162
|
-
margin: 16px 0
|
|
162
|
+
margin: 16px 0;
|
|
163
163
|
:deep(.title-container) {
|
|
164
164
|
h5 {
|
|
165
165
|
margin-bottom: 0;
|
|
166
166
|
}
|
|
167
167
|
.title-container-top-info {
|
|
168
168
|
border-left: 1px solid var(--horizontal-line);
|
|
169
|
-
padding-left:
|
|
170
|
-
margin-left:
|
|
169
|
+
padding-left: 10px;
|
|
170
|
+
margin-left: 10px;
|
|
171
171
|
}
|
|
172
172
|
h6.title-container-top-selected-rows {
|
|
173
|
-
|
|
174
|
-
line-height: 20px;
|
|
173
|
+
line-height: inherit;
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
&__icon {
|
|
@@ -181,13 +180,9 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
|
181
180
|
font-size: 12px;
|
|
182
181
|
}
|
|
183
182
|
&__configure-button {
|
|
184
|
-
column-gap: 4px;
|
|
185
183
|
background: var(--select-bg);
|
|
186
184
|
border: 1px solid var(--line-color);
|
|
187
185
|
color: var(--title-form-first-color);
|
|
188
|
-
&.ui-btn.ui-btn-sm {
|
|
189
|
-
height: 28px;
|
|
190
|
-
}
|
|
191
186
|
&:hover {
|
|
192
187
|
background: var(--custom-button-default-hover-bg-color);
|
|
193
188
|
}
|