bfg-common 1.3.274 → 1.3.276
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/components/atoms/switch/Switch.vue +111 -111
- package/components/atoms/table/compact/Compact.vue +526 -526
- package/components/common/context/lib/models/interfaces.ts +2 -2
- package/components/common/diagramMain/Diagram.vue +0 -1
- package/components/common/diagramMain/DiagramMain.vue +0 -1
- package/components/common/diagramMain/Header.vue +6 -7
- package/components/common/diagramMain/adapter/Adapter.vue +0 -2
- package/components/common/diagramMain/adapter/AdapterItem.vue +6 -4
- package/components/common/diagramMain/adapter/AdapterItems.vue +1 -0
- package/components/common/diagramMain/adapter/Contents.vue +1 -1
- package/components/common/diagramMain/lib/models/interfaces.ts +0 -6
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +2 -2
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +4 -5
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +6 -4
- package/components/common/diagramMain/modals/lib/config/portModal.ts +4 -4
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +2 -2
- package/components/common/diagramMain/network/Contents.vue +4 -4
- package/components/common/diagramMain/port/Port.vue +4 -10
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +363 -363
- package/components/common/resource/progressBlock/ProgressBlock.vue +142 -142
- package/components/common/vm/actions/clone/Clone.vue +518 -518
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +165 -165
- package/components/common/vm/actions/confirm/Confirm.vue +39 -39
- package/components/common/vm/actions/editSettings/EditSettings.vue +313 -313
- package/components/common/weekSelect/lib/config/options.ts +10 -10
- package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
- package/composables/useAppVersion.ts +21 -21
- package/composables/useEnvLanguage.ts +20 -20
- package/lib/utils/sendTask.ts +72 -72
- package/minify.js +146 -146
- package/package.json +2 -2
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/store/main/lib/interfaces.ts +9 -9
- package/store/tasks/actions.ts +133 -133
- package/store/tasks/getters.ts +25 -25
- package/store/tasks/lib/models/interfaces.ts +18 -18
- package/store/tasks/mutations.ts +58 -58
- package/store/tasks/state.ts +16 -16
|
@@ -4,11 +4,11 @@ export interface UI_I_ContextMenuByEvent {
|
|
|
4
4
|
event: any
|
|
5
5
|
node: UI_I_TreeNode
|
|
6
6
|
}
|
|
7
|
-
export interface UI_I_ContextMenu {
|
|
7
|
+
export interface UI_I_ContextMenu<T = string> {
|
|
8
8
|
x: number
|
|
9
9
|
y: number
|
|
10
10
|
id: string | number
|
|
11
|
-
type:
|
|
11
|
+
type: T
|
|
12
12
|
titleText: string
|
|
13
13
|
titleIconClassName: string
|
|
14
14
|
items: UI_I_ContextMenuItem[]
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
:selected-network="props.selectedNetwork"
|
|
27
27
|
:is-visible-line="hasActiveAdapter"
|
|
28
28
|
:is-dark-mode="props.isDarkMode"
|
|
29
|
-
:test-id="props.diagramData.testId"
|
|
30
29
|
@toggle-adapters="onToggleAdapters"
|
|
31
30
|
@select-adapter="onSelectAdapter"
|
|
32
31
|
@show-modal="onShowModal"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
open: props.isShowDiagram,
|
|
11
11
|
},
|
|
12
12
|
]"
|
|
13
|
-
|
|
13
|
+
data-id="diagram-header-toggle-icon"
|
|
14
14
|
@click="onToggleDiagram"
|
|
15
15
|
/>
|
|
16
16
|
<a>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<span class="vertical-separator"></span>
|
|
25
25
|
<button
|
|
26
26
|
id="add-networking-button"
|
|
27
|
-
|
|
27
|
+
data-id="add-networking-button"
|
|
28
28
|
type="button"
|
|
29
29
|
@click="onShowModal('add-networking', props.diagramName)"
|
|
30
30
|
>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</button>
|
|
33
33
|
<button
|
|
34
34
|
id="switch-edit-button"
|
|
35
|
-
|
|
35
|
+
data-id="switch-edit-button"
|
|
36
36
|
type="button"
|
|
37
37
|
@click="onShowModal('switch-edit')"
|
|
38
38
|
>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</button>
|
|
41
41
|
<button
|
|
42
42
|
id="switch-manage-physical-adapters-button"
|
|
43
|
-
|
|
43
|
+
data-id="switch-manage-physical-adapters-button"
|
|
44
44
|
type="button"
|
|
45
45
|
@click="onShowModal('switch-manage-physical-adapters')"
|
|
46
46
|
>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
popup-class="diagram-main-actions__popup"
|
|
52
52
|
:close-after-click="true"
|
|
53
53
|
:items="switchMainNavigation"
|
|
54
|
-
|
|
54
|
+
test-id="diagram-main-actions"
|
|
55
55
|
@change="onShowModal"
|
|
56
56
|
/>
|
|
57
57
|
</div>
|
|
@@ -73,7 +73,6 @@ const props = defineProps<{
|
|
|
73
73
|
inPortlet: boolean
|
|
74
74
|
isShowDiagram: boolean
|
|
75
75
|
diagramName: string
|
|
76
|
-
testId: string
|
|
77
76
|
}>()
|
|
78
77
|
|
|
79
78
|
const emits = defineEmits<{
|
|
@@ -88,7 +87,7 @@ const emits = defineEmits<{
|
|
|
88
87
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
89
88
|
|
|
90
89
|
const switchMainNavigation = computed<UI_I_NavigationItem[]>(() =>
|
|
91
|
-
switchMainNavigationFunc(localization.value
|
|
90
|
+
switchMainNavigationFunc(localization.value)
|
|
92
91
|
)
|
|
93
92
|
|
|
94
93
|
const onToggleDiagram = () => emits('toggle-diagram')
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
<common-diagram-main-adapter-contents
|
|
9
9
|
:adapters-with-positions="props.adaptersWithPositions"
|
|
10
|
-
:test-id="props.testId"
|
|
11
10
|
@toggle-adapters="onToggleAdapters"
|
|
12
11
|
/>
|
|
13
12
|
|
|
@@ -56,7 +55,6 @@ const props = defineProps<{
|
|
|
56
55
|
isVisibleLine: boolean
|
|
57
56
|
networksCount: number
|
|
58
57
|
isDarkMode: boolean
|
|
59
|
-
testId: string
|
|
60
58
|
}>()
|
|
61
59
|
|
|
62
60
|
const isOpenedAdapterBlockAndNoSelectedNetwork = computed<boolean>(
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
<a
|
|
24
24
|
:id="`adapter-${props.adapter.id}`"
|
|
25
|
-
:data-id="`${props.
|
|
25
|
+
:data-id="`${props.testId}-select`"
|
|
26
26
|
data-title="adapter-name"
|
|
27
27
|
cursor="pointer"
|
|
28
28
|
class="adapter-name"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
popup-class="diagram-actions__popup"
|
|
92
92
|
:close-after-click="true"
|
|
93
93
|
:items="adapterPopupFields"
|
|
94
|
-
:test-id="props.adapter.
|
|
94
|
+
:test-id="`adapter-${props.adapter.id}-toggle`"
|
|
95
95
|
@change="(value) => onShowModal(value, adapterProperties)"
|
|
96
96
|
/>
|
|
97
97
|
</div>
|
|
@@ -142,6 +142,7 @@ const props = defineProps<{
|
|
|
142
142
|
selectedAdapter: UI_I_SelectedAdapter
|
|
143
143
|
networksCount: number
|
|
144
144
|
isDarkMode: boolean
|
|
145
|
+
testId?: string
|
|
145
146
|
}>()
|
|
146
147
|
|
|
147
148
|
const emits = defineEmits<{
|
|
@@ -155,8 +156,9 @@ const emits = defineEmits<{
|
|
|
155
156
|
|
|
156
157
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
157
158
|
|
|
158
|
-
const adapterPopupFields =
|
|
159
|
-
|
|
159
|
+
const adapterPopupFields = adapterPopupFieldsFunc(
|
|
160
|
+
localization.value,
|
|
161
|
+
props.adapter.id
|
|
160
162
|
)
|
|
161
163
|
|
|
162
164
|
const adapterProperties = dataForSelectedAdapterFunc(props.adapter)
|
|
@@ -14,13 +14,11 @@ export interface UI_I_Port {
|
|
|
14
14
|
macAddress?: string
|
|
15
15
|
adapter?: string
|
|
16
16
|
isActive?: boolean
|
|
17
|
-
testId: string
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
export interface UI_I_Adapter {
|
|
21
20
|
name: string
|
|
22
21
|
id: string
|
|
23
|
-
testId: string
|
|
24
22
|
fullName: string
|
|
25
23
|
state: UI_I_State
|
|
26
24
|
adapter: string
|
|
@@ -68,7 +66,6 @@ export interface UI_I_SelectedAdapter {
|
|
|
68
66
|
|
|
69
67
|
export interface UI_I_Sysx {
|
|
70
68
|
id: string
|
|
71
|
-
testId: string
|
|
72
69
|
state: UI_I_State
|
|
73
70
|
index: UI_I_ListIndex
|
|
74
71
|
switch: string
|
|
@@ -146,7 +143,6 @@ export interface UI_I_Network extends UI_I_NetworkInfo {
|
|
|
146
143
|
toggle: boolean
|
|
147
144
|
unusedAdapters?: string[]
|
|
148
145
|
vlanId?: number | string
|
|
149
|
-
testId: string
|
|
150
146
|
}
|
|
151
147
|
|
|
152
148
|
export interface UI_I_SwitchInfo extends UI_I_NetworkInfo {
|
|
@@ -172,7 +168,6 @@ export interface UI_I_NetworkFullWithPositions extends UI_I_Network {
|
|
|
172
168
|
|
|
173
169
|
export interface UI_I_DiagramData {
|
|
174
170
|
id: string
|
|
175
|
-
testId: string
|
|
176
171
|
diagramName: string
|
|
177
172
|
networks: UI_I_Network[]
|
|
178
173
|
networking?: UI_I_SwitchInfo
|
|
@@ -429,7 +424,6 @@ export interface UI_I_ModalsInitialData<T = string | number | boolean> {
|
|
|
429
424
|
export interface UI_I_SwitchAdapterItem {
|
|
430
425
|
name: string
|
|
431
426
|
id: string
|
|
432
|
-
testId: string
|
|
433
427
|
fullName: string
|
|
434
428
|
state: UI_I_State
|
|
435
429
|
adapter: string
|
|
@@ -116,11 +116,11 @@ export const adapterViewSettingsFunc = (
|
|
|
116
116
|
|
|
117
117
|
export const adapterPopupFieldsFunc = (
|
|
118
118
|
localization: UI_I_Localization,
|
|
119
|
-
|
|
119
|
+
id: string
|
|
120
120
|
) => [
|
|
121
121
|
{
|
|
122
122
|
text: localization.viewSettings,
|
|
123
123
|
value: 'adapter-view-settings',
|
|
124
|
-
testId:
|
|
124
|
+
testId: `adapter-view-${id}`,
|
|
125
125
|
},
|
|
126
126
|
]
|
|
@@ -2,22 +2,21 @@ import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
2
2
|
import { UI_I_NavigationItem } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const switchMainNavigationFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
6
|
-
testId: string
|
|
5
|
+
localization: UI_I_Localization
|
|
7
6
|
): UI_I_NavigationItem[] => [
|
|
8
7
|
{
|
|
9
8
|
text: localization.migrateVmKernelAdapter,
|
|
10
9
|
value: 'migrate-vmkernel-adapter',
|
|
11
|
-
testId:
|
|
10
|
+
testId: 'switch-migrate-vm-kernel-adapter',
|
|
12
11
|
},
|
|
13
12
|
{
|
|
14
13
|
text: localization.viewSettings,
|
|
15
14
|
value: 'switch-view-settings',
|
|
16
|
-
testId:
|
|
15
|
+
testId: 'switch-view-settings',
|
|
17
16
|
},
|
|
18
17
|
{
|
|
19
18
|
text: localization.remove,
|
|
20
19
|
value: 'switch-remove',
|
|
21
|
-
testId:
|
|
20
|
+
testId: 'switch-remove',
|
|
22
21
|
},
|
|
23
22
|
]
|
|
@@ -236,14 +236,16 @@ export const networkEditSettingsTabsFunc = (
|
|
|
236
236
|
export const networkPopupFieldsFunc = (
|
|
237
237
|
localization: UI_I_Localization,
|
|
238
238
|
_networkType: string,
|
|
239
|
-
|
|
239
|
+
id: string,
|
|
240
240
|
inPortlet = false
|
|
241
241
|
) => {
|
|
242
|
+
const formatedId = id.replaceAll('=', '_')
|
|
243
|
+
|
|
242
244
|
const inPortletConfig = [
|
|
243
245
|
{
|
|
244
246
|
text: localization.viewSettings,
|
|
245
247
|
value: 'network-view-settings',
|
|
246
|
-
testId:
|
|
248
|
+
testId: `network-view-${formatedId}`,
|
|
247
249
|
},
|
|
248
250
|
// {
|
|
249
251
|
// text: localization.editSettings,
|
|
@@ -255,13 +257,13 @@ export const networkPopupFieldsFunc = (
|
|
|
255
257
|
{
|
|
256
258
|
text: localization.editSettings,
|
|
257
259
|
value: 'network-edit-settings',
|
|
258
|
-
testId:
|
|
260
|
+
testId: `network-edit-${formatedId}`,
|
|
259
261
|
},
|
|
260
262
|
{ separate: true },
|
|
261
263
|
{
|
|
262
264
|
text: localization.remove,
|
|
263
265
|
value: 'network-port-remove',
|
|
264
|
-
testId:
|
|
266
|
+
testId: `network-remove-${formatedId}`,
|
|
265
267
|
// networkType === '1' ? 'network-vkernel-remove' : 'network-port-remove',
|
|
266
268
|
},
|
|
267
269
|
]
|
|
@@ -160,23 +160,23 @@ export const portEditSettingsTabsFunc = (localization: UI_I_Localization) => [
|
|
|
160
160
|
|
|
161
161
|
export const portPopupFieldsFunc = (
|
|
162
162
|
localization: UI_I_Localization,
|
|
163
|
-
|
|
163
|
+
id: string
|
|
164
164
|
) => [
|
|
165
165
|
{
|
|
166
166
|
text: localization.viewSettings,
|
|
167
167
|
value: 'port-view-settings',
|
|
168
|
-
testId:
|
|
168
|
+
testId: `view-${id}`,
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
text: localization.editSettings,
|
|
172
172
|
value: 'port-edit-settings',
|
|
173
|
-
testId:
|
|
173
|
+
testId: `edit-${id}`,
|
|
174
174
|
},
|
|
175
175
|
{ separate: true },
|
|
176
176
|
{
|
|
177
177
|
text: localization.remove,
|
|
178
178
|
value: 'port-remove',
|
|
179
|
-
testId:
|
|
179
|
+
testId: `remove-${id}`,
|
|
180
180
|
},
|
|
181
181
|
]
|
|
182
182
|
|
|
@@ -24,11 +24,11 @@ export const vCenterViewSettingsFunc = (
|
|
|
24
24
|
|
|
25
25
|
export const vCenterPopupFieldsFunc = (
|
|
26
26
|
localization: UI_I_Localization,
|
|
27
|
-
|
|
27
|
+
id: string
|
|
28
28
|
) => [
|
|
29
29
|
{
|
|
30
30
|
text: localization.viewSettings,
|
|
31
31
|
value: 'v-center-view-settings',
|
|
32
|
-
testId:
|
|
32
|
+
testId: `view-${id}`,
|
|
33
33
|
},
|
|
34
34
|
]
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<a
|
|
14
14
|
:id="`network-${props.network.id}`"
|
|
15
|
-
:data-id="`${props.
|
|
15
|
+
:data-id="`${props.testId}-link`"
|
|
16
16
|
style="text-decoration: none"
|
|
17
17
|
cursor="pointer"
|
|
18
18
|
data-title="network-name-link"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
popup-class="diagram-actions__popup"
|
|
53
53
|
:close-after-click="true"
|
|
54
54
|
:items="networkPopupFields"
|
|
55
|
-
:test-id="
|
|
55
|
+
:test-id="`network-${props.network.title}`"
|
|
56
56
|
@change="(value: string) => onShowModal(value, dataForSelectedNetwork)"
|
|
57
57
|
/>
|
|
58
58
|
</div>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
x="24"
|
|
89
89
|
:y="portsArrowPosition"
|
|
90
90
|
cursor="pointer"
|
|
91
|
-
:data-id="`${props.
|
|
91
|
+
:data-id="`${props.testId}-toggle-ports`"
|
|
92
92
|
@click="
|
|
93
93
|
onTogglePorts(props.network.id, !props.network.toggle, props.diagramId)
|
|
94
94
|
"
|
|
@@ -168,7 +168,7 @@ const networkPopupFields = computed(() =>
|
|
|
168
168
|
networkPopupFieldsFunc(
|
|
169
169
|
localization.value,
|
|
170
170
|
props.network.networkType,
|
|
171
|
-
props.network.
|
|
171
|
+
props.network.id,
|
|
172
172
|
props.inPortlet
|
|
173
173
|
)
|
|
174
174
|
)
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<a
|
|
23
23
|
:id="testId"
|
|
24
24
|
data-title="port-vm-name"
|
|
25
|
-
|
|
25
|
+
data-id="port-vm-name-select"
|
|
26
26
|
cursor="pointer"
|
|
27
27
|
@click="onSelectPort(props.network.id, props.port.id)"
|
|
28
28
|
>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
popup-class="diagram-actions__popup"
|
|
115
115
|
:close-after-click="true"
|
|
116
116
|
:items="navigationItems"
|
|
117
|
-
:test-id="`${testId}`"
|
|
117
|
+
:test-id="`${testId}-toggle`"
|
|
118
118
|
@change="onShowModalWithTypeCheck"
|
|
119
119
|
/>
|
|
120
120
|
</div>
|
|
@@ -218,14 +218,8 @@ const macAddressPosition = computed<number>(() => props.port.portPosition + 16)
|
|
|
218
218
|
|
|
219
219
|
const navigationItems = computed(() =>
|
|
220
220
|
isVCenter.value || isVMPortsGroup.value
|
|
221
|
-
? vCenterPopupFieldsFunc(
|
|
222
|
-
|
|
223
|
-
`${props.network.testId}-${props.port.testId}`
|
|
224
|
-
)
|
|
225
|
-
: portPopupFieldsFunc(
|
|
226
|
-
localization.value,
|
|
227
|
-
`${props.network.testId}-${props.port.testId}`
|
|
228
|
-
)
|
|
221
|
+
? vCenterPopupFieldsFunc(localization.value, testId.value)
|
|
222
|
+
: portPopupFieldsFunc(localization.value, testId.value)
|
|
229
223
|
)
|
|
230
224
|
|
|
231
225
|
const showHighlightLine = computed(
|