bfg-common 1.4.88 → 1.4.90

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 (37) hide show
  1. package/assets/localization/local_be.json +4 -0
  2. package/assets/localization/local_en.json +4 -0
  3. package/assets/localization/local_hy.json +4 -0
  4. package/assets/localization/local_kk.json +4 -0
  5. package/assets/localization/local_ru.json +4 -0
  6. package/assets/localization/local_zh.json +4 -0
  7. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  8. package/components/atoms/stack/StackBlock.vue +184 -184
  9. package/components/common/browse/blocks/Title.vue +91 -91
  10. package/components/common/browse/blocks/info/Date.vue +21 -21
  11. package/components/common/context/recursion/Recursion.vue +86 -86
  12. package/components/common/context/recursion/RecursionNew.vue +198 -198
  13. package/components/common/context/recursion/RecursionOld.vue +212 -212
  14. package/components/common/layout/theHeader/TheHeaderNew.vue +81 -36
  15. package/components/common/layout/theHeader/ThemeSwitch.vue +36 -9
  16. package/components/common/layout/theHeader/helpMenu/helpMenuNew/HelpMenuNew.vue +35 -16
  17. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +32 -13
  18. package/components/common/split/horizontal/HorizontalNew.vue +321 -321
  19. package/components/common/vm/actions/add/Add.vue +609 -609
  20. package/components/common/vm/actions/clone/Clone.vue +522 -522
  21. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/Bus.vue +151 -156
  22. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  25. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  26. package/components/common/vm/actions/common/lib/config/capabilities.ts +0 -1
  27. package/components/common/vm/actions/common/lib/models/interfaces.ts +148 -149
  28. package/components/common/vm/actions/common/lib/utils/capabilities.ts +41 -51
  29. package/components/common/vm/actions/common/select/lib/models/interfaces.ts +33 -34
  30. package/components/common/vm/actions/common/select/os/os.vue +227 -227
  31. package/components/common/vm/actions/editSettings/EditSettings.vue +327 -327
  32. package/composables/productNameLocal.ts +30 -30
  33. package/package.json +2 -2
  34. package/plugins/recursion.ts +311 -311
  35. package/public/spice-console/lib/images/bitmap.js +203 -203
  36. package/public/spice-console-minify/run.min.js +4 -4
  37. 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
+ }