bfg-common 1.4.288 → 1.4.290
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/img/icons/icons-sprite-dark-1.svg +407 -407
- package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +94 -83
- package/assets/img/icons/icons-sprite-light-1.svg +407 -407
- package/assets/img/icons/icons-sprite-light-2.svg +343 -343
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +255 -255
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +94 -83
- package/assets/localization/local_be.json +2 -56
- package/assets/localization/local_en.json +2 -56
- package/assets/localization/local_hy.json +2 -56
- package/assets/localization/local_kk.json +2 -56
- package/assets/localization/local_ru.json +2 -56
- package/assets/localization/local_zh.json +2 -56
- package/assets/scss/common/icons/icons-6.scss +12 -0
- 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/wizard/lib/utils/utils.ts +0 -104
- package/components/common/browse/blocks/Title.vue +91 -91
- package/components/common/browse/blocks/info/Date.vue +21 -21
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +199 -199
- package/components/common/context/recursion/RecursionOld.vue +213 -213
- package/components/common/modals/confirmation/Confirmation.vue +65 -65
- package/components/common/vm/actions/add/Add.vue +617 -617
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +201 -201
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
- package/composables/productNameLocal.ts +30 -30
- package/package.json +1 -1
- package/plugins/date.ts +181 -181
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
- package/store/tasks/mappers/recentTasks.ts +45 -45
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UI_E_RecentTaskStatus,
|
|
3
|
-
UI_E_IconNameByRecentTaskStatus,
|
|
4
|
-
} from '~/lib/models/store/tasks/enums'
|
|
5
|
-
import type {
|
|
6
|
-
API_UI_I_RecentTask,
|
|
7
|
-
UI_I_RecentTask,
|
|
8
|
-
} from '~/lib/models/store/tasks/interfaces'
|
|
9
|
-
import { base64 } from '~/lib/utils/base64'
|
|
10
|
-
|
|
11
|
-
export const recentTasks = (
|
|
12
|
-
data: API_UI_I_RecentTask<string>
|
|
13
|
-
): UI_I_RecentTask<string> => {
|
|
14
|
-
const items =
|
|
15
|
-
data.items
|
|
16
|
-
?.sort((a, b) => {
|
|
17
|
-
return b.start_time - a.start_time
|
|
18
|
-
})
|
|
19
|
-
.map((task) => {
|
|
20
|
-
return {
|
|
21
|
-
args: base64.decode(task.args),
|
|
22
|
-
completion: task.completion + '' || '-',
|
|
23
|
-
queuedFor: task.creation_time - task.start_time,
|
|
24
|
-
execution: Math.abs(task.start_time - task.completion),
|
|
25
|
-
details: task.details,
|
|
26
|
-
error: task.error,
|
|
27
|
-
initiator: task.initiator,
|
|
28
|
-
server: task.server,
|
|
29
|
-
startTime: task.start_time + '' || '-',
|
|
30
|
-
statusIcon: UI_E_IconNameByRecentTaskStatus[task.status],
|
|
31
|
-
statusText: task.error || UI_E_RecentTaskStatus[task.status],
|
|
32
|
-
status: task.status,
|
|
33
|
-
target: task.target,
|
|
34
|
-
targetType: task.target_type,
|
|
35
|
-
taskName: task.task_name,
|
|
36
|
-
id: task.id,
|
|
37
|
-
zone: task.zone,
|
|
38
|
-
extra: task.extra,
|
|
39
|
-
}
|
|
40
|
-
}) || []
|
|
41
|
-
return {
|
|
42
|
-
items,
|
|
43
|
-
last: data.last,
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
UI_E_RecentTaskStatus,
|
|
3
|
+
UI_E_IconNameByRecentTaskStatus,
|
|
4
|
+
} from '~/lib/models/store/tasks/enums'
|
|
5
|
+
import type {
|
|
6
|
+
API_UI_I_RecentTask,
|
|
7
|
+
UI_I_RecentTask,
|
|
8
|
+
} from '~/lib/models/store/tasks/interfaces'
|
|
9
|
+
import { base64 } from '~/lib/utils/base64'
|
|
10
|
+
|
|
11
|
+
export const recentTasks = (
|
|
12
|
+
data: API_UI_I_RecentTask<string>
|
|
13
|
+
): UI_I_RecentTask<string> => {
|
|
14
|
+
const items =
|
|
15
|
+
data.items
|
|
16
|
+
?.sort((a, b) => {
|
|
17
|
+
return b.start_time - a.start_time
|
|
18
|
+
})
|
|
19
|
+
.map((task) => {
|
|
20
|
+
return {
|
|
21
|
+
args: base64.decode(task.args),
|
|
22
|
+
completion: task.completion + '' || '-',
|
|
23
|
+
queuedFor: task.creation_time - task.start_time,
|
|
24
|
+
execution: Math.abs(task.start_time - task.completion),
|
|
25
|
+
details: task.details,
|
|
26
|
+
error: task.error,
|
|
27
|
+
initiator: task.initiator,
|
|
28
|
+
server: task.server,
|
|
29
|
+
startTime: task.start_time + '' || '-',
|
|
30
|
+
statusIcon: UI_E_IconNameByRecentTaskStatus[task.status],
|
|
31
|
+
statusText: task.error || UI_E_RecentTaskStatus[task.status],
|
|
32
|
+
status: task.status,
|
|
33
|
+
target: task.target,
|
|
34
|
+
targetType: task.target_type,
|
|
35
|
+
taskName: task.task_name,
|
|
36
|
+
id: task.id,
|
|
37
|
+
zone: task.zone,
|
|
38
|
+
extra: task.extra,
|
|
39
|
+
}
|
|
40
|
+
}) || []
|
|
41
|
+
return {
|
|
42
|
+
items,
|
|
43
|
+
last: data.last,
|
|
44
|
+
}
|
|
45
|
+
}
|