bfg-common 1.5.711 → 1.5.713

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.
Files changed (106) hide show
  1. package/CODE_STYLE.md +109 -109
  2. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  3. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  4. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  5. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  6. package/assets/localization/local_be.json +4 -2
  7. package/assets/localization/local_en.json +4 -2
  8. package/assets/localization/local_hy.json +4 -2
  9. package/assets/localization/local_kk.json +4 -2
  10. package/assets/localization/local_ru.json +4 -2
  11. package/assets/localization/local_zh.json +4 -2
  12. package/components/atoms/TheIcon3.vue +50 -50
  13. package/components/atoms/collapse/CollapseNav.vue +170 -170
  14. package/components/atoms/perPage/PerPage.vue +58 -58
  15. package/components/atoms/table/dataGrid/DataGrid.vue +1718 -1718
  16. package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
  17. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  18. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  19. package/components/common/backup/storage/actions/add/lib/utils.ts +51 -51
  20. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  21. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
  22. package/components/common/diagramMain/port/Port.vue +580 -580
  23. package/components/common/layout/theHeader/TheHeader.vue +191 -183
  24. package/components/common/layout/theHeader/TheHeaderNew.vue +11 -5
  25. package/components/common/layout/theHeader/TheHeaderOld.vue +11 -5
  26. package/components/common/layout/theHeader/helpMenu/About.vue +79 -79
  27. package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -79
  28. package/components/common/layout/theHeader/userMenu/UserMenu.vue +113 -107
  29. package/components/common/layout/theHeader/userMenu/modals/preferences/Preferences.vue +86 -78
  30. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +115 -111
  31. package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesOld.vue +8 -4
  32. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +108 -114
  33. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/New.vue +88 -65
  34. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/Old.vue +89 -66
  35. package/components/common/layout/theHeader/userMenu/modals/preferences/lib/models/types.ts +7 -7
  36. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +54 -41
  37. package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +46 -33
  38. package/components/common/pages/backups/DetailView.vue +52 -52
  39. package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
  40. package/components/common/pages/backups/modals/Modals.vue +243 -243
  41. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
  42. package/components/common/pages/backups/modals/createBackup/lib/config/readyToCompleteOptions.ts +69 -69
  43. package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
  44. package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
  45. package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
  46. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  47. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  48. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  49. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  50. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  51. package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
  52. package/components/common/pages/tasks/table/lib/config/config.ts +279 -270
  53. package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
  54. package/components/common/select/radio/RadioGroup.vue +137 -137
  55. package/components/common/selectLanguage/SelectLanguage.vue +200 -200
  56. package/components/common/spiceConsole/Drawer.vue +420 -420
  57. package/components/common/spiceConsole/SpiceConsole.vue +184 -184
  58. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  59. package/components/common/tools/Actions.vue +207 -207
  60. package/components/common/treeView/TreeView.vue +52 -52
  61. package/components/common/vm/actions/clone/lib/config/steps.ts +295 -295
  62. package/components/common/vm/actions/clone/new/New.vue +438 -438
  63. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  64. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +283 -283
  65. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +156 -156
  66. package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
  67. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
  68. package/components/common/vm/actions/common/select/options/New.vue +264 -264
  69. package/components/common/vm/actions/common/select/options/Options.vue +58 -58
  70. package/components/common/vm/actions/common/select/storage/Old.vue +125 -125
  71. package/components/common/vm/actions/common/select/storage/new/New.vue +311 -311
  72. package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
  73. package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
  74. package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
  75. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  76. package/components/common/wizards/common/compatibility/Compatibility.vue +35 -35
  77. package/components/common/wizards/common/steps/computeResource/New.vue +93 -93
  78. package/components/common/wizards/common/steps/name/Name.vue +178 -178
  79. package/components/common/wizards/common/steps/name/New.vue +221 -221
  80. package/components/common/wizards/common/steps/name/Old.vue +121 -121
  81. package/components/common/wizards/common/steps/name/lib/models/interfaces.ts +4 -4
  82. package/components/common/wizards/common/steps/name/location/New.vue +40 -40
  83. package/components/common/wizards/datastore/add/Add.vue +228 -228
  84. package/components/common/wizards/datastore/add/lib/utils.ts +85 -85
  85. package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
  86. package/composables/useAppVersion.ts +21 -21
  87. package/composables/useLocal.ts +6 -6
  88. package/composables/useLocalCommon.ts +39 -39
  89. package/package.json +1 -1
  90. package/plugins/console.ts +21 -21
  91. package/plugins/mouse.ts +21 -21
  92. package/plugins/panelStates.ts +70 -70
  93. package/plugins/text.ts +59 -59
  94. package/public/spice-console/application/clientgui.js +854 -854
  95. package/public/spice-console/application/packetfactory.js +211 -211
  96. package/public/spice-console/application/virtualmouse.js +147 -147
  97. package/public/spice-console/lib/images/bitmap.js +203 -203
  98. package/public/spice-console/network/spicechannel.js +440 -440
  99. package/public/spice-console/process/cursorprocess.js +128 -128
  100. package/public/spice-console/process/inputprocess.js +227 -227
  101. package/public/spice-console/process/mainprocess.js +212 -212
  102. package/public/spice-console/run.js +210 -210
  103. package/store/main/mutations.ts +7 -7
  104. package/store/main/state.ts +7 -7
  105. package/store/tasks/mappers/recentTasks.ts +123 -123
  106. package/store/tasks/mutations.ts +82 -82
@@ -1,270 +1,279 @@
1
- import type {
2
- UI_I_DataTableBody,
3
- UI_I_DataTableOptions,
4
- UI_I_DataTableHeader,
5
- } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
6
- import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
7
- import type { UI_I_Localization } from '~/lib/models/interfaces'
8
- import type { UI_T_Project, UI_T_ProcuratorTypeNodes } from '~/lib/models/types'
9
- import type { UI_I_TaskItem } from '~/lib/models/store/tasks/interfaces'
10
- import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
11
- import {
12
- UI_E_RTaskChipColor,
13
- UI_E_RTaskStatusIcon,
14
- } from '~/components/common/pages/tasks/table/lib/models/enums'
15
- import * as taskConfig from '~/components/templates/tasks/lib/config/taskConfig' // url из ( sphere, procurator )
16
-
17
- export const getHeaderDataFunc = (
18
- localization: UI_I_Localization
19
- ): UI_I_DataTableHeader[] => [
20
- {
21
- col: 'col0',
22
- colName: 'task_name',
23
- text: localization.tasks.taskName,
24
- isSortable: true,
25
- sort: 'asc',
26
- width: '248px',
27
- show: true,
28
- filter: true,
29
- },
30
- {
31
- col: 'col1',
32
- colName: 'target',
33
- text: localization.common.target,
34
- isSortable: true,
35
- sort: 'asc',
36
- width: '180px',
37
- show: true,
38
- filter: true,
39
- },
40
- {
41
- col: 'col2',
42
- colName: 'status',
43
- text: localization.common.status,
44
- isSortable: true,
45
- sort: 'asc',
46
- width: '180px',
47
- show: true,
48
- filter: true,
49
- },
50
- {
51
- col: 'col3',
52
- colName: 'details',
53
- text: localization.common.details,
54
- isSortable: true,
55
- sort: 'asc',
56
- width: '180px',
57
- show: true,
58
- filter: true,
59
- },
60
- {
61
- col: 'col4',
62
- colName: 'initiator',
63
- text: localization.common.initiator,
64
- isSortable: true,
65
- sort: 'asc',
66
- width: '180px',
67
- show: true,
68
- filter: true,
69
- },
70
- {
71
- col: 'col5',
72
- colName: 'queued_for',
73
- text: localization.common.queuedFor,
74
- isSortable: false,
75
- sort: 'asc',
76
- width: '180px',
77
- show: true,
78
- filter: true,
79
- },
80
- {
81
- col: 'col6',
82
- colName: 'start_time',
83
- text: localization.common.startTime,
84
- isSortable: false,
85
- sort: 'asc',
86
- width: '208px',
87
- show: true,
88
- filter: true,
89
- },
90
- {
91
- col: 'col7',
92
- colName: 'completion',
93
- text: localization.common.completionTime,
94
- isSortable: true,
95
- sort: 'asc',
96
- width: '208px',
97
- show: true,
98
- filter: true,
99
- },
100
- {
101
- col: 'col8',
102
- colName: 'execution_time',
103
- text: localization.common.executionTime,
104
- isSortable: false,
105
- sort: 'asc',
106
- width: '180px',
107
- show: true,
108
- filter: true,
109
- },
110
- {
111
- col: 'col9',
112
- colName: 'server',
113
- text: localization.common.server,
114
- isSortable: true,
115
- sort: 'asc',
116
- width: '400px',
117
- show: true,
118
- filter: true,
119
- },
120
- {
121
- col: 'col10',
122
- colName: 'zone',
123
- text: localization.common.zone,
124
- isSortable: true,
125
- sort: 'asc',
126
- width: '144px',
127
- show: true,
128
- filter: true,
129
- },
130
- ]
131
-
132
- export const getTargetActionsFunc = (
133
- localization: UI_I_Localization,
134
- project: UI_T_Project
135
- ): UI_I_Dropdown[] => {
136
- const actions: UI_I_Dropdown[] = [
137
- {
138
- value: 'view-target',
139
- text: localization.common.viewTarget,
140
- iconName: 'hide',
141
- selected: false,
142
- },
143
- ]
144
-
145
- if (project === 'sphere') {
146
- actions.push({
147
- value: 'view-zone',
148
- text: localization.common.viewZone,
149
- iconName: 'hide',
150
- selected: false,
151
- })
152
- }
153
-
154
- return actions
155
- }
156
-
157
- export const options: UI_I_DataTableOptions = {
158
- perPageOptions: [
159
- { text: '10', value: 10 },
160
- { text: '25', value: 25 },
161
- { text: '50', value: 50 },
162
- { text: '100', value: 100, default: true },
163
- ],
164
- isSelectable: true,
165
- isFocusable: false,
166
- showPagination: true,
167
- showPaginationOnTop: true,
168
- showPageInfo: true,
169
- isSortable: true,
170
- server: true,
171
- isResizable: true,
172
- showSearch: false,
173
- showSelectedRows: true,
174
- showColumnManager: true,
175
- withActions: true,
176
- inBlock: true,
177
- showExport: true,
178
- withCollapse: true,
179
- }
180
-
181
- export const getBodyDataFunc = (
182
- bodyData: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[],
183
- localization: UI_I_Localization,
184
- project: UI_T_Project
185
- ): UI_I_DataTableBody[] => {
186
- const { $formattedDatetime } = useNuxtApp() as any
187
-
188
- return bodyData.map((task, index: number) => {
189
- const iconClassName = taskConfig.iconFunc(task.targetType)
190
- const id = taskConfig.idFunc(task)
191
- const nav = taskConfig.navFunc(task.targetType)
192
- const type = taskConfig.typeFunc(task.targetType)
193
-
194
- const targetData = {
195
- id,
196
- nav,
197
- type,
198
- icon: iconClassName,
199
- isLink: !!iconClassName,
200
- testId: `${task.targetType}-item`,
201
- }
202
-
203
- const statusData = {
204
- icon: UI_E_RTaskStatusIcon[task.status],
205
- chipColor: UI_E_RTaskChipColor[task.status],
206
- error: task.error,
207
- testId: `${task.taskName.replaceAll(/[\s.]/g, '-')}-${index}-status`,
208
- }
209
-
210
- const zoneData = {
211
- id: task?.zoneId || '',
212
- isLink: project === 'sphere',
213
- nav,
214
- icon: 'vsphere-icon-vcenter',
215
- type: 'zone',
216
- testId: `${task.targetType}-zone`,
217
- }
218
-
219
- const formattedStartTime =
220
- task.startTime === '--'
221
- ? '--'
222
- : $formattedDatetime(+task.startTime * 1000, { hasSeconds: true })
223
-
224
- const formattedCompletionTime =
225
- task.completion === '--'
226
- ? '--'
227
- : $formattedDatetime(+task.completion * 1000, { hasSeconds: true })
228
-
229
- return {
230
- row: index,
231
- collapse: true,
232
- isHiddenCollapse: false,
233
- collapseToggle: false,
234
- data: [
235
- { col: 'col0', text: task.taskName || '--' },
236
- {
237
- key: 'icon',
238
- col: 'col1',
239
- text: task.target || '--',
240
- data: targetData,
241
- },
242
- {
243
- key: 'status',
244
- col: 'col2',
245
- text: localization.common[UI_E_RecentTaskStatus[task.status]],
246
- data: statusData,
247
- },
248
- { col: 'col3', text: task.details || '--' },
249
- { col: 'col4', text: task.initiator || '--' },
250
- { col: 'col5', text: `${task.queuedFor} ms` },
251
- { col: 'col6', text: formattedStartTime },
252
- { col: 'col7', text: formattedCompletionTime },
253
- { col: 'col8', text: `${task.execution} ms` },
254
- { col: 'col9', text: task.server || '--' },
255
- {
256
- key: 'icon',
257
- col: 'col10',
258
- text: task.zone || '--',
259
- data: zoneData,
260
- },
261
- {
262
- key: 'default-actions',
263
- col: 'default-actions',
264
- text: '',
265
- data: { id: index, target: targetData },
266
- },
267
- ],
268
- }
269
- })
270
- }
1
+ import type {
2
+ UI_I_DataTableBody,
3
+ UI_I_DataTableOptions,
4
+ UI_I_DataTableHeader,
5
+ } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
6
+ import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
7
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
8
+ import type {
9
+ UI_T_Project,
10
+ UI_T_ProcuratorTypeNodes,
11
+ UI_T_LangValue,
12
+ } from '~/lib/models/types'
13
+ import type { UI_I_TaskItem } from '~/lib/models/store/tasks/interfaces'
14
+ import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
15
+ import {
16
+ UI_E_RTaskChipColor,
17
+ UI_E_RTaskStatusIcon,
18
+ } from '~/components/common/pages/tasks/table/lib/models/enums'
19
+ // TODO fix
20
+ import * as taskConfig from '~/components/templates/tasks/lib/config/taskConfig' // url из ( sphere, procurator )
21
+
22
+ export const getHeaderDataFunc = (
23
+ localization: UI_I_Localization
24
+ ): UI_I_DataTableHeader[] => [
25
+ {
26
+ col: 'col0',
27
+ colName: 'task_name',
28
+ text: localization.tasks.taskName,
29
+ isSortable: true,
30
+ sort: 'asc',
31
+ width: '248px',
32
+ show: true,
33
+ filter: true,
34
+ },
35
+ {
36
+ col: 'col1',
37
+ colName: 'target',
38
+ text: localization.common.target,
39
+ isSortable: true,
40
+ sort: 'asc',
41
+ width: '180px',
42
+ show: true,
43
+ filter: true,
44
+ },
45
+ {
46
+ col: 'col2',
47
+ colName: 'status',
48
+ text: localization.common.status,
49
+ isSortable: true,
50
+ sort: 'asc',
51
+ width: '180px',
52
+ show: true,
53
+ filter: true,
54
+ },
55
+ {
56
+ col: 'col3',
57
+ colName: 'details',
58
+ text: localization.common.details,
59
+ isSortable: true,
60
+ sort: 'asc',
61
+ width: '180px',
62
+ show: true,
63
+ filter: true,
64
+ },
65
+ {
66
+ col: 'col4',
67
+ colName: 'initiator',
68
+ text: localization.common.initiator,
69
+ isSortable: true,
70
+ sort: 'asc',
71
+ width: '180px',
72
+ show: true,
73
+ filter: true,
74
+ },
75
+ {
76
+ col: 'col5',
77
+ colName: 'queued_for',
78
+ text: localization.common.queuedFor,
79
+ isSortable: false,
80
+ sort: 'asc',
81
+ width: '180px',
82
+ show: true,
83
+ filter: true,
84
+ },
85
+ {
86
+ col: 'col6',
87
+ colName: 'start_time',
88
+ text: localization.common.startTime,
89
+ isSortable: false,
90
+ sort: 'asc',
91
+ width: '208px',
92
+ show: true,
93
+ filter: true,
94
+ },
95
+ {
96
+ col: 'col7',
97
+ colName: 'completion',
98
+ text: localization.common.completionTime,
99
+ isSortable: true,
100
+ sort: 'asc',
101
+ width: '208px',
102
+ show: true,
103
+ filter: true,
104
+ },
105
+ {
106
+ col: 'col8',
107
+ colName: 'execution_time',
108
+ text: localization.common.executionTime,
109
+ isSortable: false,
110
+ sort: 'asc',
111
+ width: '180px',
112
+ show: true,
113
+ filter: true,
114
+ },
115
+ {
116
+ col: 'col9',
117
+ colName: 'server',
118
+ text: localization.common.server,
119
+ isSortable: true,
120
+ sort: 'asc',
121
+ width: '400px',
122
+ show: true,
123
+ filter: true,
124
+ },
125
+ {
126
+ col: 'col10',
127
+ colName: 'zone',
128
+ text: localization.common.zone,
129
+ isSortable: true,
130
+ sort: 'asc',
131
+ width: '144px',
132
+ show: true,
133
+ filter: true,
134
+ },
135
+ ]
136
+
137
+ export const getTargetActionsFunc = (
138
+ localization: UI_I_Localization,
139
+ project: UI_T_Project
140
+ ): UI_I_Dropdown[] => {
141
+ const actions: UI_I_Dropdown[] = [
142
+ {
143
+ value: 'view-target',
144
+ text: localization.common.viewTarget,
145
+ iconName: 'hide',
146
+ selected: false,
147
+ },
148
+ ]
149
+
150
+ if (project === 'sphere') {
151
+ actions.push({
152
+ value: 'view-zone',
153
+ text: localization.common.viewZone,
154
+ iconName: 'hide',
155
+ selected: false,
156
+ })
157
+ }
158
+
159
+ return actions
160
+ }
161
+
162
+ export const options: UI_I_DataTableOptions = {
163
+ perPageOptions: [
164
+ { text: '10', value: 10 },
165
+ { text: '25', value: 25 },
166
+ { text: '50', value: 50 },
167
+ { text: '100', value: 100, default: true },
168
+ ],
169
+ isSelectable: true,
170
+ isFocusable: false,
171
+ showPagination: true,
172
+ showPaginationOnTop: true,
173
+ showPageInfo: true,
174
+ isSortable: true,
175
+ server: true,
176
+ isResizable: true,
177
+ showSearch: false,
178
+ showSelectedRows: true,
179
+ showColumnManager: true,
180
+ withActions: true,
181
+ inBlock: true,
182
+ showExport: true,
183
+ withCollapse: true,
184
+ }
185
+
186
+ export const getBodyDataFunc = (
187
+ bodyData: UI_I_TaskItem<UI_T_ProcuratorTypeNodes>[],
188
+ localization: UI_I_Localization,
189
+ project: UI_T_Project
190
+ ): UI_I_DataTableBody[] => {
191
+ const { $formattedDatetime, $time } = useNuxtApp() as any
192
+
193
+ return bodyData.map((task, index: number) => {
194
+ const iconClassName = taskConfig.iconFunc(task.targetType)
195
+ const id = taskConfig.idFunc(task)
196
+ const nav = taskConfig.navFunc(task.targetType)
197
+ const type = taskConfig.typeFunc(task.targetType)
198
+
199
+ const targetData = {
200
+ id,
201
+ nav,
202
+ type,
203
+ icon: iconClassName,
204
+ isLink: !!iconClassName,
205
+ testId: `${task.targetType}-item`,
206
+ }
207
+
208
+ const statusData = {
209
+ icon: UI_E_RTaskStatusIcon[task.status],
210
+ chipColor: UI_E_RTaskChipColor[task.status],
211
+ error: task.error,
212
+ testId: `${task.taskName.replaceAll(/[\s.]/g, '-')}-${index}-status`,
213
+ }
214
+
215
+ const zoneData = {
216
+ id: task?.zoneId || '',
217
+ isLink: project === 'sphere',
218
+ nav,
219
+ icon: 'vsphere-icon-vcenter',
220
+ type: 'zone',
221
+ testId: `${task.targetType}-zone`,
222
+ }
223
+
224
+ const formattedStartTime =
225
+ task.startTime === '--'
226
+ ? '--'
227
+ : $formattedDatetime(+task.startTime * 1000, { hasSeconds: true })
228
+
229
+ const formattedCompletionTime =
230
+ task.completion === '--'
231
+ ? '--'
232
+ : $formattedDatetime(+task.completion * 1000, { hasSeconds: true })
233
+
234
+ const currentLanguage: UI_T_LangValue = useLocalStorage('lang') || 'en_US'
235
+ const queuedFor = $time.formatTime(task.queuedFor, currentLanguage)
236
+ const executionTime = $time.formatTime(task.execution, currentLanguage)
237
+
238
+ return {
239
+ row: index,
240
+ collapse: true,
241
+ isHiddenCollapse: false,
242
+ collapseToggle: false,
243
+ data: [
244
+ { col: 'col0', text: task.taskName || '--' },
245
+ {
246
+ key: 'icon',
247
+ col: 'col1',
248
+ text: task.target || '--',
249
+ data: targetData,
250
+ },
251
+ {
252
+ key: 'status',
253
+ col: 'col2',
254
+ text: localization.common[UI_E_RecentTaskStatus[task.status]],
255
+ data: statusData,
256
+ },
257
+ { col: 'col3', text: task.details || task.error || '--' }, // PC-2874
258
+ { col: 'col4', text: task.initiator || '--' },
259
+ { col: 'col5', text: queuedFor },
260
+ { col: 'col6', text: formattedStartTime },
261
+ { col: 'col7', text: formattedCompletionTime },
262
+ { col: 'col8', text: executionTime },
263
+ { col: 'col9', text: task.server || '--' },
264
+ {
265
+ key: 'icon',
266
+ col: 'col10',
267
+ text: task.zone || '--',
268
+ data: zoneData,
269
+ },
270
+ {
271
+ key: 'default-actions',
272
+ col: 'default-actions',
273
+ text: '',
274
+ data: { id: index, target: targetData },
275
+ },
276
+ ],
277
+ }
278
+ })
279
+ }
@@ -1,17 +1,17 @@
1
- <template>
2
- <common-ready-to-complete-new v-if="isNewView" :data="props.data" />
3
- <common-ready-to-complete-old v-else :data="props.data" />
4
- </template>
5
-
6
- <script lang="ts" setup>
7
- import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
8
-
9
- const props = defineProps<{
10
- data: UI_I_TableInfoItem[]
11
- }>()
12
-
13
- const { $store }: any = useNuxtApp()
14
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
15
- </script>
16
-
17
- <style lang="scss" scoped></style>
1
+ <template>
2
+ <common-ready-to-complete-new v-if="isNewView" :data="props.data" />
3
+ <common-ready-to-complete-old v-else :data="props.data" />
4
+ </template>
5
+
6
+ <script lang="ts" setup>
7
+ import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
8
+
9
+ const props = defineProps<{
10
+ data: UI_I_TableInfoItem[]
11
+ }>()
12
+
13
+ const { $store }: any = useNuxtApp()
14
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
15
+ </script>
16
+
17
+ <style lang="scss" scoped></style>