bfg-common 1.5.773 → 1.5.774
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/collapse/CollapseNav.vue +170 -170
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/DataGrid.vue +19 -4
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/backup/storage/actions/add/lib/utils.ts +51 -51
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/configure/advancedSystemSettings/AdvancedSystemSettings.vue +49 -0
- package/components/common/configure/advancedSystemSettings/modals/edit/Edit.vue +55 -0
- package/components/common/configure/advancedSystemSettings/modals/edit/New.vue +37 -0
- package/components/common/configure/advancedSystemSettings/modals/edit/Old.vue +46 -0
- package/components/common/configure/advancedSystemSettings/tableView/TableView.vue +30 -0
- package/components/common/configure/advancedSystemSettings/tableView/new/New.vue +193 -0
- package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/hostTable.ts +308 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/Old.vue +128 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/table.ts +93 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/tableKeys.ts +9 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/models/types.ts +5 -0
- package/components/common/configure/advancedSystemSettings/tools/New.vue +5 -0
- package/components/common/configure/advancedSystemSettings/tools/Old.vue +28 -0
- package/components/common/configure/advancedSystemSettings/tools/Tools.vue +28 -0
- package/components/common/configure/securityProfile/SecurityProfile.vue +28 -0
- package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +112 -0
- package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +27 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +61 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +109 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +28 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +180 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +64 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +6 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +1 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +19 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +22 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +76 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +30 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +29 -0
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/layout/console/Console.vue +70 -70
- package/components/common/layout/theHeader/userMenu/modals/preferences/lib/models/types.ts +7 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/New.vue +64 -64
- package/components/common/pages/backups/DetailView.vue +52 -52
- package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
- package/components/common/pages/backups/modals/Modals.vue +243 -243
- package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +69 -69
- package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +38 -38
- package/components/common/pages/backups/modals/createBackup/lib/models/interfaces.ts +8 -8
- package/components/common/pages/backups/modals/lib/config/restore.ts +116 -116
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +187 -187
- package/components/common/pages/backups/modals/restore/Restore.vue +302 -302
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +50 -50
- package/components/common/pages/backups/modals/restore/lib/config/readyToCompleteOptions.ts +94 -94
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +130 -130
- package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
- package/components/common/pages/backups/modals/restore/types/New.vue +95 -95
- package/components/common/pages/backups/modals/restore/types/Old.vue +62 -62
- package/components/common/pages/backups/modals/restore/types/Types.vue +31 -31
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/pages/scheduledTasks/table/Table.vue +3 -11
- package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +30 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +61 -0
- package/components/common/pages/scheduledTasks/table/{detailsList/DetailsList.vue → expandDetails/Old.vue} +7 -4
- package/components/common/pages/scheduledTasks/table/{detailsList/Table.vue → expandDetails/historyRun/HistoryRun.vue} +9 -5
- package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/config/historyRunsTable.ts +4 -2
- package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/config/tableKeys.ts +1 -1
- package/components/common/pages/scheduledTasks/table/{detailsList/lib/config/tasksRowDetails.ts → expandDetails/lib/config/expandDetails.ts} +3 -1
- package/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable.ts +3 -0
- package/components/common/pages/tasks/Tasks.vue +125 -125
- package/components/common/pages/tasks/table/Table.vue +373 -373
- package/components/common/pages/tasks/table/lib/config/config.ts +279 -279
- package/components/common/pages/tasks/table/lib/models/interfaces.ts +9 -9
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/spiceConsole/Drawer.vue +420 -420
- package/components/common/spiceConsole/SpiceConsole.vue +184 -184
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/clone/lib/config/steps.ts +295 -295
- package/components/common/vm/actions/clone/new/New.vue +438 -438
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +283 -283
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +156 -156
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/options/New.vue +264 -264
- package/components/common/vm/actions/common/select/options/Options.vue +58 -58
- package/components/common/vm/actions/common/select/storage/Old.vue +125 -125
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/common/compatibility/Compatibility.vue +35 -35
- package/components/common/wizards/common/steps/name/Name.vue +178 -178
- package/components/common/wizards/common/steps/name/New.vue +221 -221
- package/components/common/wizards/common/steps/name/Old.vue +121 -121
- package/components/common/wizards/common/steps/name/lib/models/interfaces.ts +4 -4
- package/components/common/wizards/common/steps/name/location/New.vue +40 -40
- package/components/common/wizards/datastore/add/Add.vue +227 -227
- package/components/common/wizards/datastore/add/lib/utils.ts +85 -85
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/composables/useAppVersion.ts +21 -21
- package/composables/useBrowse.ts +24 -24
- package/composables/useLocal.ts +6 -6
- package/composables/useLocalCommon.ts +39 -39
- package/lib/models/types.ts +59 -59
- package/package.json +1 -1
- package/plugins/console.ts +21 -21
- package/plugins/mouse.ts +21 -21
- package/plugins/panelStates.ts +70 -70
- package/plugins/text.ts +59 -59
- package/public/spice-console/application/clientgui.js +854 -854
- package/public/spice-console/application/packetfactory.js +211 -211
- package/public/spice-console/application/virtualmouse.js +147 -147
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +440 -440
- package/public/spice-console/process/cursorprocess.js +128 -128
- package/public/spice-console/process/inputprocess.js +227 -227
- package/public/spice-console/process/mainprocess.js +212 -212
- package/public/spice-console/run.js +210 -210
- package/store/inventory/modules/configure/advancedSystemSettings/actions.ts +122 -0
- package/store/inventory/modules/configure/advancedSystemSettings/getters.ts +9 -0
- package/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces.ts +11 -0
- package/store/inventory/modules/configure/advancedSystemSettings/mutations.ts +12 -0
- package/store/inventory/modules/configure/advancedSystemSettings/state.ts +9 -0
- package/store/inventory/modules/configure/advancedSystemSettings/store.ts +12 -0
- package/store/inventory/modules/configure/securityProfile/actions.ts +58 -0
- package/store/inventory/modules/configure/securityProfile/getters.ts +10 -0
- package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +16 -0
- package/store/inventory/modules/configure/securityProfile/mutations.ts +13 -0
- package/store/inventory/modules/configure/securityProfile/state.ts +7 -0
- package/store/inventory/modules/configure/securityProfile/store.ts +12 -0
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/mappers/recentTasks.ts +123 -123
- package/store/tasks/mutations.ts +82 -82
- /package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/models/types.ts +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type {UI_I_Card, UI_I_Vms} from "~/components/common/pages/home/lib/models/interfaces";
|
|
2
|
-
|
|
3
|
-
export const itemsFunc = (vms: UI_I_Vms): UI_I_Card[] => [
|
|
4
|
-
{
|
|
5
|
-
value: vms.powered_on,
|
|
6
|
-
text: 'powered_on',
|
|
7
|
-
icon: 'vsphere-icon-vm-on',
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
value: vms.powered_off,
|
|
11
|
-
text: 'powered_off',
|
|
12
|
-
icon: 'icon-vm-power-off',
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
value: vms.suspended,
|
|
17
|
-
text: 'suspended',
|
|
18
|
-
icon: 'vsphere-icon-vm-suspended',
|
|
19
|
-
},
|
|
1
|
+
import type {UI_I_Card, UI_I_Vms} from "~/components/common/pages/home/lib/models/interfaces";
|
|
2
|
+
|
|
3
|
+
export const itemsFunc = (vms: UI_I_Vms): UI_I_Card[] => [
|
|
4
|
+
{
|
|
5
|
+
value: vms.powered_on,
|
|
6
|
+
text: 'powered_on',
|
|
7
|
+
icon: 'vsphere-icon-vm-on',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
value: vms.powered_off,
|
|
11
|
+
text: 'powered_off',
|
|
12
|
+
icon: 'icon-vm-power-off',
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
{
|
|
16
|
+
value: vms.suspended,
|
|
17
|
+
text: 'suspended',
|
|
18
|
+
icon: 'vsphere-icon-vm-suspended',
|
|
19
|
+
},
|
|
20
20
|
]
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
|
2
|
-
import type {
|
|
3
|
-
UI_I_Localization,
|
|
4
|
-
UI_I_SendTaskParams,
|
|
5
|
-
} from '~/lib/models/interfaces'
|
|
6
|
-
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
|
7
|
-
import { base64 } from '~/lib/utils/base64'
|
|
8
|
-
import type {
|
|
9
|
-
UI_I_CreateScheduledTaskArgs,
|
|
10
|
-
UI_I_ScheduledTasksTableItem,
|
|
11
|
-
} from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
12
|
-
import type { UI_T_ScheduledTasksActionsType } from '~/components/common/pages/scheduledTasks/lib/models/types'
|
|
13
|
-
|
|
14
|
-
export const defineScheduleTaskModalTitle = (
|
|
15
|
-
type: UI_T_ScheduledTasksActionsType,
|
|
16
|
-
isEdit: boolean
|
|
17
|
-
): string => {
|
|
18
|
-
const localization: UI_I_Localization = useLocal()
|
|
19
|
-
const { scheduleNewTasks, scheduleTaskEdit } = localization.common
|
|
20
|
-
|
|
21
|
-
const typeTitleMap: Partial<Record<UI_T_ScheduledTasksActionsType, string>> =
|
|
22
|
-
{
|
|
23
|
-
'power-on': localization.common.powerOn,
|
|
24
|
-
'power-off': localization.common.powerOff,
|
|
25
|
-
'shut-down-guest-os': localization.common.shutDownGuestOs,
|
|
26
|
-
'restart-guest-os': localization.common.restartGuestOs,
|
|
27
|
-
suspend: localization.common.suspend,
|
|
28
|
-
reset: localization.common.reset,
|
|
29
|
-
'take-snapshot': localization.common.takeSnapshot,
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const title = typeTitleMap[type]
|
|
33
|
-
const modalMode = isEdit ? scheduleTaskEdit : scheduleNewTasks
|
|
34
|
-
|
|
35
|
-
return `${modalMode} (${title})`
|
|
36
|
-
}
|
|
37
|
-
export const scheduledTasks = (
|
|
38
|
-
form: UI_I_ScheduleNewTasksForm,
|
|
39
|
-
args: UI_I_SendTaskParams,
|
|
40
|
-
target: string,
|
|
41
|
-
isEdit: boolean,
|
|
42
|
-
data: UI_I_ScheduledTasksTableItem,
|
|
43
|
-
project: UI_T_Project
|
|
44
|
-
): UI_I_SendTaskParams => {
|
|
45
|
-
const methodArgs = {
|
|
46
|
-
method: args.method,
|
|
47
|
-
params: {
|
|
48
|
-
target: args.target,
|
|
49
|
-
args: args.args ? base64.encode(args.args) : '',
|
|
50
|
-
},
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
let method = ''
|
|
54
|
-
switch (project) {
|
|
55
|
-
case 'sphere':
|
|
56
|
-
method = isEdit
|
|
57
|
-
? 'VirtualMachines.UpdateScheduledTask'
|
|
58
|
-
: 'VirtualMachines.CreateScheduledTask'
|
|
59
|
-
break
|
|
60
|
-
case 'procurator':
|
|
61
|
-
method = isEdit ? 'vm.update_sched_task' : 'vm.create_sched_task'
|
|
62
|
-
break
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const taskArgs: UI_I_CreateScheduledTaskArgs = {
|
|
66
|
-
target,
|
|
67
|
-
name: form.task_name,
|
|
68
|
-
description: form.description,
|
|
69
|
-
toggle: form.toggle,
|
|
70
|
-
cron_2: form.cron,
|
|
71
|
-
notify_emails: form.ntfn_target,
|
|
72
|
-
args: base64.encode(methodArgs),
|
|
73
|
-
...(isEdit && {
|
|
74
|
-
rid: data.rid,
|
|
75
|
-
last_modified: data.last_modified,
|
|
76
|
-
}),
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return {
|
|
80
|
-
method,
|
|
81
|
-
target,
|
|
82
|
-
args: taskArgs,
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
2
|
+
import type {
|
|
3
|
+
UI_I_Localization,
|
|
4
|
+
UI_I_SendTaskParams,
|
|
5
|
+
} from '~/lib/models/interfaces'
|
|
6
|
+
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
|
7
|
+
import { base64 } from '~/lib/utils/base64'
|
|
8
|
+
import type {
|
|
9
|
+
UI_I_CreateScheduledTaskArgs,
|
|
10
|
+
UI_I_ScheduledTasksTableItem,
|
|
11
|
+
} from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
12
|
+
import type { UI_T_ScheduledTasksActionsType } from '~/components/common/pages/scheduledTasks/lib/models/types'
|
|
13
|
+
|
|
14
|
+
export const defineScheduleTaskModalTitle = (
|
|
15
|
+
type: UI_T_ScheduledTasksActionsType,
|
|
16
|
+
isEdit: boolean
|
|
17
|
+
): string => {
|
|
18
|
+
const localization: UI_I_Localization = useLocal()
|
|
19
|
+
const { scheduleNewTasks, scheduleTaskEdit } = localization.common
|
|
20
|
+
|
|
21
|
+
const typeTitleMap: Partial<Record<UI_T_ScheduledTasksActionsType, string>> =
|
|
22
|
+
{
|
|
23
|
+
'power-on': localization.common.powerOn,
|
|
24
|
+
'power-off': localization.common.powerOff,
|
|
25
|
+
'shut-down-guest-os': localization.common.shutDownGuestOs,
|
|
26
|
+
'restart-guest-os': localization.common.restartGuestOs,
|
|
27
|
+
suspend: localization.common.suspend,
|
|
28
|
+
reset: localization.common.reset,
|
|
29
|
+
'take-snapshot': localization.common.takeSnapshot,
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const title = typeTitleMap[type]
|
|
33
|
+
const modalMode = isEdit ? scheduleTaskEdit : scheduleNewTasks
|
|
34
|
+
|
|
35
|
+
return `${modalMode} (${title})`
|
|
36
|
+
}
|
|
37
|
+
export const scheduledTasks = (
|
|
38
|
+
form: UI_I_ScheduleNewTasksForm,
|
|
39
|
+
args: UI_I_SendTaskParams,
|
|
40
|
+
target: string,
|
|
41
|
+
isEdit: boolean,
|
|
42
|
+
data: UI_I_ScheduledTasksTableItem,
|
|
43
|
+
project: UI_T_Project
|
|
44
|
+
): UI_I_SendTaskParams => {
|
|
45
|
+
const methodArgs = {
|
|
46
|
+
method: args.method,
|
|
47
|
+
params: {
|
|
48
|
+
target: args.target,
|
|
49
|
+
args: args.args ? base64.encode(args.args) : '',
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
let method = ''
|
|
54
|
+
switch (project) {
|
|
55
|
+
case 'sphere':
|
|
56
|
+
method = isEdit
|
|
57
|
+
? 'VirtualMachines.UpdateScheduledTask'
|
|
58
|
+
: 'VirtualMachines.CreateScheduledTask'
|
|
59
|
+
break
|
|
60
|
+
case 'procurator':
|
|
61
|
+
method = isEdit ? 'vm.update_sched_task' : 'vm.create_sched_task'
|
|
62
|
+
break
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const taskArgs: UI_I_CreateScheduledTaskArgs = {
|
|
66
|
+
target,
|
|
67
|
+
name: form.task_name,
|
|
68
|
+
description: form.description,
|
|
69
|
+
toggle: form.toggle,
|
|
70
|
+
cron_2: form.cron,
|
|
71
|
+
notify_emails: form.ntfn_target,
|
|
72
|
+
args: base64.encode(methodArgs),
|
|
73
|
+
...(isEdit && {
|
|
74
|
+
rid: data.rid,
|
|
75
|
+
last_modified: data.last_modified,
|
|
76
|
+
}),
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
method,
|
|
81
|
+
target,
|
|
82
|
+
args: taskArgs,
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
hide-page-size
|
|
19
19
|
off-select-by-row
|
|
20
20
|
server-off
|
|
21
|
-
@row-detail="onGetRowDetails"
|
|
22
21
|
>
|
|
23
22
|
<template #icon="{ item }">
|
|
24
23
|
<atoms-the-icon :name="item.data.iconClassName" class="icon" />
|
|
@@ -27,9 +26,9 @@
|
|
|
27
26
|
</span>
|
|
28
27
|
</template>
|
|
29
28
|
|
|
30
|
-
<template #toggleBlock>
|
|
31
|
-
<common-pages-scheduled-tasks-table-details
|
|
32
|
-
:
|
|
29
|
+
<template #toggleBlock="{ item }">
|
|
30
|
+
<common-pages-scheduled-tasks-table-expand-details
|
|
31
|
+
:data="item[0].data.expandData"
|
|
33
32
|
/>
|
|
34
33
|
</template>
|
|
35
34
|
</atoms-table-data-grid>
|
|
@@ -45,8 +44,6 @@ import { itemsPerPage } from '~/components/atoms/table/dataGrid/lib/config/items
|
|
|
45
44
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
46
45
|
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
47
46
|
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
48
|
-
import type { UI_I_ScheduleTableRowDetails } from '~/components/common/pages/scheduledTasks/table/lib/models/interfaces'
|
|
49
|
-
import { detailsListFunc } from '~/components/common/pages/scheduledTasks/table/detailsList/lib/config/tasksRowDetails'
|
|
50
47
|
import * as scheduledTaskTable from '~/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable'
|
|
51
48
|
|
|
52
49
|
const props = defineProps<{
|
|
@@ -70,11 +67,6 @@ const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
|
70
67
|
const bodyItems = computed<UI_I_BodyItem[][]>(() => {
|
|
71
68
|
return scheduledTaskTable.bodyItems(props.dataTable || [])
|
|
72
69
|
})
|
|
73
|
-
|
|
74
|
-
const detailsList = ref<UI_I_ScheduleTableRowDetails[]>([])
|
|
75
|
-
const onGetRowDetails = (key: number): void => {
|
|
76
|
-
detailsList.value = detailsListFunc(props.dataTable[key], localization.value)
|
|
77
|
-
}
|
|
78
70
|
</script>
|
|
79
71
|
|
|
80
72
|
<style lang="scss" scoped>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="currentComponent" :expand-data="normalizedSchedulerDetails" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts" setup>
|
|
6
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
7
|
+
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
8
|
+
import type { UI_I_ScheduleTableRowDetails } from '~/components/common/pages/scheduledTasks/table/lib/models/interfaces'
|
|
9
|
+
import { detailsListFunc } from '~/components/common/pages/scheduledTasks/table/expandDetails/lib/config/expandDetails'
|
|
10
|
+
|
|
11
|
+
const props = defineProps<{
|
|
12
|
+
data: UI_I_ScheduledTasksTableItem
|
|
13
|
+
}>()
|
|
14
|
+
|
|
15
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
16
|
+
const { $store }: any = useNuxtApp()
|
|
17
|
+
|
|
18
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
19
|
+
const currentComponent = computed(() =>
|
|
20
|
+
isNewView.value
|
|
21
|
+
? defineAsyncComponent(() => import('./New.vue'))
|
|
22
|
+
: defineAsyncComponent(() => import('./Old.vue'))
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
const normalizedSchedulerDetails = computed<UI_I_ScheduleTableRowDetails[]>(
|
|
26
|
+
() => {
|
|
27
|
+
return detailsListFunc(props.data, localization.value)
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
</script>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="expand-details" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts" setup>
|
|
6
|
+
// import type { UI_I_DataTableBodyData } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
7
|
+
|
|
8
|
+
// const props = defineProps<{
|
|
9
|
+
// expandData: UI_I_DataTableBodyData[]
|
|
10
|
+
// }>()
|
|
11
|
+
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<style lang="scss" scoped>
|
|
15
|
+
@import 'assets/scss/common/mixins.scss';
|
|
16
|
+
%properties {
|
|
17
|
+
@include flex($align: center);
|
|
18
|
+
font-family: 'Inter', sans-serif;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
line-height: 14.52px;
|
|
22
|
+
}
|
|
23
|
+
.expand-details {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: auto 1fr;
|
|
26
|
+
column-gap: 24px;
|
|
27
|
+
row-gap: 12px;
|
|
28
|
+
&__row {
|
|
29
|
+
display: contents;
|
|
30
|
+
height: 18px;
|
|
31
|
+
}
|
|
32
|
+
&__label {
|
|
33
|
+
@extend %properties;
|
|
34
|
+
color: #9da6ad;
|
|
35
|
+
text-transform: capitalize;
|
|
36
|
+
|
|
37
|
+
&.events {
|
|
38
|
+
height: 18px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&__value {
|
|
42
|
+
@extend %properties;
|
|
43
|
+
color: var(--title-form-first-color);
|
|
44
|
+
&.disabled {
|
|
45
|
+
color: var(--table-disabled-btn);
|
|
46
|
+
}
|
|
47
|
+
.icon {
|
|
48
|
+
margin-right: 4px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&__status {
|
|
52
|
+
@include flex($align: center);
|
|
53
|
+
.ui-chip {
|
|
54
|
+
width: max-content;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
&__tooltip {
|
|
58
|
+
margin-left: 6px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="details-list w-full">
|
|
3
3
|
<div
|
|
4
|
-
v-for="(item, key) in props.
|
|
4
|
+
v-for="(item, key) in props.expandData"
|
|
5
5
|
:key="key"
|
|
6
6
|
:class="[
|
|
7
7
|
'clr-row details-list__row',
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<span v-else>{{ item.value }}</span>
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
|
-
<common-pages-scheduled-tasks-table-details-
|
|
36
|
+
<common-pages-scheduled-tasks-table-expand-details-history-run
|
|
37
37
|
v-else
|
|
38
38
|
:data-table="item.value"
|
|
39
39
|
:total-items="item.value.length"
|
|
@@ -46,11 +46,14 @@
|
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script lang="ts" setup>
|
|
49
|
-
import type {
|
|
49
|
+
import type { UI_I_DataTableBodyData } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
50
|
+
// import type { UI_I_Localization } from '~/node_modules/bfg-common/lib/models/interfaces'
|
|
50
51
|
|
|
51
52
|
const props = defineProps<{
|
|
52
|
-
|
|
53
|
+
expandData: UI_I_DataTableBodyData[]
|
|
53
54
|
}>()
|
|
55
|
+
|
|
56
|
+
// const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
57
|
</script>
|
|
55
58
|
|
|
56
59
|
<style lang="scss" scoped>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<atoms-table-data-grid
|
|
3
|
+
:selected-row="null"
|
|
3
4
|
:page-size="1"
|
|
4
5
|
:page="1"
|
|
5
6
|
:head-items="headItems"
|
|
@@ -7,8 +8,8 @@
|
|
|
7
8
|
:total-items="props.totalItems"
|
|
8
9
|
:total-pages="props.totalPages"
|
|
9
10
|
:loading="false"
|
|
10
|
-
test-id="
|
|
11
|
-
class="
|
|
11
|
+
test-id="scheduled-tasks-history-runs-table"
|
|
12
|
+
class="history-runs-table"
|
|
12
13
|
off-select-by-row
|
|
13
14
|
hide-footer
|
|
14
15
|
>
|
|
@@ -22,10 +23,13 @@
|
|
|
22
23
|
</template>
|
|
23
24
|
|
|
24
25
|
<script setup lang="ts">
|
|
25
|
-
import type {
|
|
26
|
+
import type {
|
|
27
|
+
UI_I_HeadItem,
|
|
28
|
+
UI_I_BodyItem,
|
|
29
|
+
} from '~/components/atoms/table/compact/lib/models/interfaces'
|
|
26
30
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
27
31
|
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
28
|
-
import * as historyRunTable from '~/components/common/pages/scheduledTasks/table/
|
|
32
|
+
import * as historyRunTable from '~/components/common/pages/scheduledTasks/table/expandDetails/historyRun/lib/config/historyRunsTable'
|
|
29
33
|
|
|
30
34
|
const props = defineProps<{
|
|
31
35
|
dataTable: UI_I_ScheduledTasksTableItem['last_5_run']
|
|
@@ -44,7 +48,7 @@ const bodyItems = computed<UI_I_BodyItem[][]>(() => {
|
|
|
44
48
|
</script>
|
|
45
49
|
|
|
46
50
|
<style lang="scss" scoped>
|
|
47
|
-
.
|
|
51
|
+
.history-runs-table {
|
|
48
52
|
height: inherit;
|
|
49
53
|
:deep(.datagrid-outer-wrapper) {
|
|
50
54
|
height: inherit;
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
UI_E_RecentTaskStatus,
|
|
10
10
|
} from '~/lib/models/store/tasks/enums'
|
|
11
11
|
import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
|
|
12
|
-
import { historyLastRunTableKeys } from '~/components/common/pages/scheduledTasks/table/
|
|
12
|
+
import { historyLastRunTableKeys } from '~/components/common/pages/scheduledTasks/table/expandDetails/historyRun/lib/config/tableKeys'
|
|
13
13
|
import { schedulerRunStatus } from '~/components/common/pages/scheduledTasks/table/lib/config/schedulerStatus'
|
|
14
14
|
|
|
15
15
|
const getItems = (
|
|
@@ -53,7 +53,9 @@ export const bodyItems = (
|
|
|
53
53
|
const bodyItems: UI_I_BodyItem[][] = []
|
|
54
54
|
data.forEach((event): void => {
|
|
55
55
|
const startTime = event[historyLastRunTableKeys[0]]
|
|
56
|
-
const formattedStartTime = $formattedDatetime(+startTime * 1000, {
|
|
56
|
+
const formattedStartTime = $formattedDatetime(+startTime * 1000, {
|
|
57
|
+
hasSeconds: true,
|
|
58
|
+
})
|
|
57
59
|
|
|
58
60
|
const endTime = event[historyLastRunTableKeys[2]]
|
|
59
61
|
const formattedEndTime =
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UI_T_HistoryLastRunTableTuple } from '~/components/common/pages/scheduledTasks/table/
|
|
1
|
+
import type { UI_T_HistoryLastRunTableTuple } from '~/components/common/pages/scheduledTasks/table/expandDetails/historyRun/lib/models/types'
|
|
2
2
|
|
|
3
3
|
export const historyLastRunTableKeys: UI_T_HistoryLastRunTableTuple = [
|
|
4
4
|
'start',
|
|
@@ -37,7 +37,9 @@ export const detailsListFunc = (
|
|
|
37
37
|
{
|
|
38
38
|
id: 5,
|
|
39
39
|
text: localization.common.lastModified,
|
|
40
|
-
value: $formattedDatetime(data.last_modified * 1000, {
|
|
40
|
+
value: $formattedDatetime(data.last_modified * 1000, {
|
|
41
|
+
hasSeconds: true,
|
|
42
|
+
}),
|
|
41
43
|
testId: 'scheduled-tasks-last-modified',
|
|
42
44
|
},
|
|
43
45
|
|