bfg-common 1.3.255 → 1.3.257

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 (32) hide show
  1. package/assets/localization/local_be.json +1 -1
  2. package/assets/localization/local_en.json +1 -1
  3. package/assets/localization/local_hy.json +1 -1
  4. package/assets/localization/local_kk.json +1 -1
  5. package/assets/localization/local_ru.json +1 -1
  6. package/assets/localization/local_zh.json +1 -1
  7. package/components/atoms/collapse/CollapseNav.vue +2 -2
  8. package/components/atoms/switch/Switch.vue +111 -111
  9. package/components/atoms/table/compact/Compact.vue +526 -526
  10. package/components/common/diagramMain/lib/models/interfaces.ts +1 -0
  11. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +18 -13
  12. package/components/common/resource/progressBlock/ProgressBlock.vue +142 -105
  13. package/components/common/vm/actions/clone/Clone.vue +518 -518
  14. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +693 -693
  15. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +59 -59
  16. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +165 -165
  17. package/components/common/vm/actions/editSettings/EditSettings.vue +313 -313
  18. package/components/common/weekSelect/lib/config/options.ts +10 -10
  19. package/composables/useAppVersion.ts +21 -21
  20. package/composables/useEnvLanguage.ts +20 -20
  21. package/lib/utils/sendTask.ts +72 -72
  22. package/minify.js +146 -146
  23. package/package.json +1 -1
  24. package/public/spice-console/application/codec.js +257 -257
  25. package/public/spice-console/lib/rasterEngine.js +907 -907
  26. package/public/spice-console/network/spicechannel.js +369 -369
  27. package/store/main/lib/interfaces.ts +9 -9
  28. package/store/tasks/actions.ts +133 -133
  29. package/store/tasks/getters.ts +25 -25
  30. package/store/tasks/lib/models/interfaces.ts +18 -18
  31. package/store/tasks/mutations.ts +58 -58
  32. package/store/tasks/state.ts +16 -16
@@ -500,6 +500,7 @@ export interface UI_I_EditSettingsErrorMessage {
500
500
  export interface UI_I_NavigationItem {
501
501
  text: string
502
502
  value: string
503
+ testId?: string
503
504
  }
504
505
 
505
506
  export interface UI_I_ModalTabs {
@@ -1,17 +1,22 @@
1
1
  import { UI_I_Localization } from '~/lib/models/interfaces'
2
2
  import { UI_I_NavigationItem } from '~/components/common/diagramMain/lib/models/interfaces'
3
3
 
4
- export const switchMainNavigationFunc = (localization: UI_I_Localization): UI_I_NavigationItem[] => [
5
- {
6
- text: localization.migrateVmKernelAdapter,
7
- value: 'migrate-vmkernel-adapter',
8
- },
9
- {
10
- text: localization.viewSettings,
11
- value: 'switch-view-settings',
12
- },
13
- {
14
- text: localization.remove,
15
- value: 'switch-remove',
16
- },
4
+ export const switchMainNavigationFunc = (
5
+ localization: UI_I_Localization
6
+ ): UI_I_NavigationItem[] => [
7
+ {
8
+ text: localization.migrateVmKernelAdapter,
9
+ value: 'migrate-vmkernel-adapter',
10
+ testId: 'switch-migrate-vm-kernel-adapter',
11
+ },
12
+ {
13
+ text: localization.viewSettings,
14
+ value: 'switch-view-settings',
15
+ testId: 'switch-view-settings',
16
+ },
17
+ {
18
+ text: localization.remove,
19
+ value: 'switch-remove',
20
+ testId: 'switch-remove',
21
+ },
17
22
  ]
@@ -1,105 +1,142 @@
1
- <template>
2
- <div class="summary-meters-block meters-block">
3
- <ul class="summary-items-list">
4
- <li
5
- v-for="(resource, key) in progressPresent"
6
- :key="key"
7
- class="resource-meter"
8
- >
9
- <div class="meters-block__flex">
10
- <span class="title" tabindex="0" aria-label="CPU">
11
- {{ resource.blockTitle }}
12
- </span>
13
- <span class="resource-meter-top-right-info">
14
- {{ localization.free }}: {{ resource.free.text }}
15
- </span>
16
- </div>
17
- <div class="progress">
18
- <progress
19
- :max="resource.capacity.value"
20
- :value="resource.used.value"
21
- />
22
- </div>
23
- <div class="meters-block__flex">
24
- <span class="resource-meter-bottom-left-info">
25
- {{ localization.used }}: {{ resource.used.text }}
26
- </span>
27
- <span class="resource-meter-bottom-right-info">
28
- {{ localization.capacity }}: {{ resource.capacity.text }}
29
- </span>
30
- </div>
31
- </li>
32
- </ul>
33
- </div>
34
- </template>
35
-
36
- <script lang="ts" setup>
37
- import { UI_I_Localization} from "~/lib/models/interfaces";
38
- import { UI_I_Resources} from "~/components/common/resource/lib/models/interfaces";
39
-
40
-
41
-
42
- const props = defineProps<{
43
- progress: UI_I_Resources[]
44
- }>()
45
-
46
- const progressPresent = computed<UI_I_Resources[]>(() => {
47
- return props.progress.map( progress => {
48
- return {
49
- ...progress,
50
- blockTitle: progress.type === 'cpu' ? localization.value.latinCpu : localization.value[progress.type]
51
- }
52
- })
53
- })
54
-
55
- const localization = computed<UI_I_Localization>(() => useLocal())
56
- </script>
57
-
58
- <style lang="scss" scoped>
59
- @import 'bfg-common/assets/scss/common/mixins.scss';
60
- $bar-graph-width: 256px;
61
- .meters-block {
62
- &__flex {
63
- @include flex($just: space-between, $dir: row, $align: center);
64
- }
65
- }
66
- .summary-meters-block {
67
- min-width: $bar-graph-width;
68
- .summary-items-list {
69
- margin-bottom: 10px;
70
- .resource-meter {
71
- list-style-type: none;
72
- margin-bottom: 6px;
73
- line-height: 16px;
74
- span {
75
- font-size: 10px;
76
- }
77
- .progress {
78
- border-radius: 3px;
79
- progress {
80
- &::-webkit-progress-value {
81
- background: var(--progress-color);
82
- }
83
- &::-webkit-progress-bar {
84
- background: var(--progress-bg-color);
85
- }
86
- }
87
- }
88
- }
89
- }
90
- .global-refresh-content {
91
- text-align: right;
92
-
93
- .btn-global-refresh {
94
- border: unset;
95
- background: unset;
96
- color: var(--link-visited-color);
97
- cursor: pointer;
98
-
99
- &:hover {
100
- text-decoration: underline;
101
- }
102
- }
103
- }
104
- }
105
- </style>
1
+ <template>
2
+ <div class="summary-meters-block meters-block">
3
+ <ul class="summary-items-list">
4
+ <li
5
+ v-for="(resource, key) in progressPresent"
6
+ :key="key"
7
+ class="resource-meter"
8
+ >
9
+ <div class="meters-block__flex">
10
+ <span
11
+ class="title"
12
+ tabindex="0"
13
+ :data-id="`meters-block-${resource.type}`"
14
+ >
15
+ {{ resource.blockTitle }}
16
+ </span>
17
+ <span>
18
+ <span
19
+ class="resource-meter-top-right-info"
20
+ :data-id="`resource-meter-free-${resource.type}`"
21
+ >
22
+ {{ localization.free }}:
23
+ </span>
24
+ <span
25
+ class="resource-meter-top-right-info"
26
+ :data-id="`resource-meter-free-${resource.type}-value`"
27
+ >{{ resource.free.text }}</span
28
+ >
29
+ </span>
30
+ </div>
31
+ <div class="progress">
32
+ <progress
33
+ :max="resource.capacity.value"
34
+ :value="resource.used.value"
35
+ />
36
+ </div>
37
+ <div class="meters-block__flex">
38
+ <span>
39
+ <span
40
+ class="resource-meter-bottom-left-info"
41
+ :data-id="`resource-meter-used-${resource.type}`"
42
+ >
43
+ {{ localization.used }}:
44
+ </span>
45
+ <span
46
+ class="resource-meter-bottom-left-info"
47
+ :data-id="`resource-meter-used-${resource.type}-value`"
48
+ >
49
+ {{ resource.used.text }}
50
+ </span>
51
+ </span>
52
+ <span>
53
+ <span
54
+ class="resource-meter-bottom-right-info"
55
+ :data-id="`resource-meter-capacity-${resource.type}`"
56
+ >
57
+ {{ localization.capacity }}:
58
+ </span>
59
+ <span
60
+ class="resource-meter-bottom-right-info"
61
+ :data-id="`resource-meter-capacity-${resource.type}-value`"
62
+ >
63
+ {{ resource.capacity.text }}
64
+ </span>
65
+ </span>
66
+ </div>
67
+ </li>
68
+ </ul>
69
+ </div>
70
+ </template>
71
+
72
+ <script lang="ts" setup>
73
+ import { UI_I_Localization } from '~/lib/models/interfaces'
74
+ import { UI_I_Resources } from '~/components/common/resource/lib/models/interfaces'
75
+
76
+ const props = defineProps<{
77
+ progress: UI_I_Resources[]
78
+ }>()
79
+
80
+ const progressPresent = computed<UI_I_Resources[]>(() => {
81
+ return props.progress.map((progress) => {
82
+ return {
83
+ ...progress,
84
+ blockTitle:
85
+ progress.type === 'cpu'
86
+ ? localization.value.latinCpu
87
+ : localization.value[progress.type],
88
+ }
89
+ })
90
+ })
91
+
92
+ const localization = computed<UI_I_Localization>(() => useLocal())
93
+ </script>
94
+
95
+ <style lang="scss" scoped>
96
+ @import 'bfg-common/assets/scss/common/mixins.scss';
97
+ $bar-graph-width: 256px;
98
+ .meters-block {
99
+ &__flex {
100
+ @include flex($just: space-between, $dir: row, $align: center);
101
+ }
102
+ }
103
+ .summary-meters-block {
104
+ min-width: $bar-graph-width;
105
+ .summary-items-list {
106
+ margin-bottom: 10px;
107
+ .resource-meter {
108
+ list-style-type: none;
109
+ margin-bottom: 6px;
110
+ line-height: 16px;
111
+ span {
112
+ font-size: 10px;
113
+ }
114
+ .progress {
115
+ border-radius: 3px;
116
+ progress {
117
+ &::-webkit-progress-value {
118
+ background: var(--progress-color);
119
+ }
120
+ &::-webkit-progress-bar {
121
+ background: var(--progress-bg-color);
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ .global-refresh-content {
128
+ text-align: right;
129
+
130
+ .btn-global-refresh {
131
+ border: unset;
132
+ background: unset;
133
+ color: var(--link-visited-color);
134
+ cursor: pointer;
135
+
136
+ &:hover {
137
+ text-decoration: underline;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ </style>