bfg-common 1.3.240 → 1.3.242

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.
@@ -3,7 +3,6 @@
3
3
  <ul>
4
4
  <li v-for="(item, key) in props.items" :key="key" class="nav-item">
5
5
  <atoms-collapse-nav-item
6
- :test-id="`${props.testId}-item-${key}`"
7
6
  :is-link="props.isLink"
8
7
  :item="item"
9
8
  :value="props.modelValue"
@@ -8,7 +8,6 @@
8
8
  :class="detectButtonRemainderCount === key && 'last-button'"
9
9
  >
10
10
  <atoms-collapse-nav-item
11
- :test-id="`${props.testId}-item`"
12
11
  :is-link="props.isLink"
13
12
  :item="item"
14
13
  :value="props.modelValue"
@@ -20,9 +20,7 @@
20
20
  :full-mode="false"
21
21
  :is-add-modal="true"
22
22
  :adapters="props.adapters"
23
- :existing-adapters-for-adding="
24
- props.existingAdaptersForAdding.map((n) => n.name)
25
- "
23
+ :existing-adapters-for-adding="existingAdaptersAsText"
26
24
  :selected-add-adapter-id="props.selectedAddAdapterId"
27
25
  class="free-adapters"
28
26
  @select-add-adapter="onSelectAddAdapter"
@@ -79,6 +77,12 @@ const emits = defineEmits<{
79
77
  (event: 'select-add-adapter', adapterId: string): void
80
78
  }>()
81
79
 
80
+ const existingAdaptersAsText = computed<string[]>(() =>
81
+ props.existingAdaptersForAdding.map(
82
+ (adapter: UI_I_SwitchAdapterItem) => adapter.name
83
+ )
84
+ )
85
+
82
86
  // Selected adapter for adding
83
87
  const onSelectAddAdapter = (adapterId: string): void => {
84
88
  emits('select-add-adapter', adapterId)
@@ -616,6 +616,15 @@ export interface UI_I_PortEditSendData {
616
616
  }
617
617
  }
618
618
 
619
+ export interface UI_I_SwitchEditSendData {
620
+ id: string
621
+ mtu: number
622
+ nics: UI_I_AdapterStatus
623
+ security: API_UI_I_Security
624
+ shaping: API_UI_I_Shaping
625
+ teaming: API_UI_I_Teaming
626
+ }
627
+
619
628
  export interface UI_I_MigrateVmkernelAdapterEmits {
620
629
  (
621
630
  event: 'check-network-label',
@@ -3,6 +3,7 @@ import {
3
3
  UI_I_PortEditSendData,
4
4
  UI_I_PortPropertiesFields,
5
5
  UI_I_IpvFourSettingsFields,
6
+ UI_I_SwitchEditSendData,
6
7
  } from '~/components/common/diagramMain/lib/models/interfaces'
7
8
 
8
9
  export const portEditDataFunc = (
@@ -49,3 +50,38 @@ export const portEditDataFunc = (
49
50
 
50
51
  return body
51
52
  }
53
+
54
+ export const switchEditDataFunc = (
55
+ editFieldsData: UI_I_EditFieldsData,
56
+ id: string
57
+ ): UI_I_SwitchEditSendData => {
58
+ const body: UI_I_SwitchEditSendData = {
59
+ id,
60
+ mtu: editFieldsData.properties?.mtu,
61
+ nics: editFieldsData.teamingFailover?.adapters || {},
62
+ security: {
63
+ forged_transmits: editFieldsData.security?.forgedTransmits.selected,
64
+ mac_change: editFieldsData.security?.macAddressChanges.selected,
65
+ promiscuous: editFieldsData.security?.promiscuousMode.selected,
66
+ },
67
+ shaping: {},
68
+ teaming: {
69
+ mode: editFieldsData.teamingFailover?.loadBalancing.selected,
70
+ link_detection_mode:
71
+ editFieldsData.teamingFailover?.networkFailureDetection.selected,
72
+ notify_switches: editFieldsData.teamingFailover?.notifySwitches.selected,
73
+ failback: editFieldsData.teamingFailover?.failback.selected,
74
+ },
75
+ }
76
+
77
+ if (editFieldsData.trafficShaping?.status?.selected) {
78
+ body.shaping = {
79
+ enabled: true,
80
+ average_bw: editFieldsData.trafficShaping?.average,
81
+ peak_bw: editFieldsData.trafficShaping?.peak,
82
+ burst_size: editFieldsData.trafficShaping?.burstSize,
83
+ }
84
+ }
85
+
86
+ return body
87
+ }
@@ -10,7 +10,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
10
10
  secondaryValue: 'Esc',
11
11
  shiftValue: 'Esc',
12
12
  capsLockValue: 'Esc',
13
- testId: 'keyboard-esc',
13
+ testId: 'key-esc',
14
14
  },
15
15
  {
16
16
  name: 'F1',
@@ -20,7 +20,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
20
20
  secondaryValue: 'F1',
21
21
  shiftValue: 'F1',
22
22
  capsLockValue: 'F1',
23
- testId: 'keyboard-f1',
23
+ testId: 'key-f1',
24
24
  },
25
25
  {
26
26
  name: 'F2',
@@ -30,7 +30,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
30
30
  secondaryValue: 'F2',
31
31
  shiftValue: 'F2',
32
32
  capsLockValue: 'F2',
33
- testId: 'keyboard-f2',
33
+ testId: 'key-f2',
34
34
  },
35
35
  {
36
36
  name: 'F3',
@@ -40,7 +40,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
40
40
  secondaryValue: 'F3',
41
41
  shiftValue: 'F3',
42
42
  capsLockValue: 'F3',
43
- testId: 'keyboard-f3',
43
+ testId: 'key-f3',
44
44
  },
45
45
  {
46
46
  name: 'F4',
@@ -50,7 +50,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
50
50
  secondaryValue: 'F4',
51
51
  shiftValue: 'F4',
52
52
  capsLockValue: 'F4',
53
- testId: 'keyboard-f4',
53
+ testId: 'key-f4',
54
54
  },
55
55
  {
56
56
  name: 'F5',
@@ -60,7 +60,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
60
60
  secondaryValue: 'F5',
61
61
  shiftValue: 'F5',
62
62
  capsLockValue: 'F5',
63
- testId: 'keyboard-f5',
63
+ testId: 'key-f5',
64
64
  },
65
65
  {
66
66
  name: 'F6',
@@ -70,7 +70,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
70
70
  secondaryValue: 'F6',
71
71
  shiftValue: 'F6',
72
72
  capsLockValue: 'F6',
73
- testId: 'keyboard-f6',
73
+ testId: 'key-f6',
74
74
  },
75
75
  {
76
76
  name: 'F7',
@@ -80,7 +80,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
80
80
  secondaryValue: 'F7',
81
81
  shiftValue: 'F7',
82
82
  capsLockValue: 'F7',
83
- testId: 'keyboard-f7',
83
+ testId: 'key-f7',
84
84
  },
85
85
  {
86
86
  name: 'F8',
@@ -90,7 +90,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
90
90
  secondaryValue: 'F8',
91
91
  shiftValue: 'F8',
92
92
  capsLockValue: 'F8',
93
- testId: 'keyboard-f8',
93
+ testId: 'key-f8',
94
94
  },
95
95
  {
96
96
  name: 'F9',
@@ -100,7 +100,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
100
100
  secondaryValue: 'F9',
101
101
  shiftValue: 'F9',
102
102
  capsLockValue: 'F9',
103
- testId: 'keyboard-f9',
103
+ testId: 'key-f9',
104
104
  },
105
105
  {
106
106
  name: 'F10',
@@ -110,7 +110,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
110
110
  secondaryValue: 'F10',
111
111
  shiftValue: 'F10',
112
112
  capsLockValue: 'F10',
113
- testId: 'keyboard-f10',
113
+ testId: 'key-f10',
114
114
  },
115
115
  {
116
116
  name: 'F11',
@@ -120,7 +120,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
120
120
  secondaryValue: 'F11',
121
121
  shiftValue: 'F11',
122
122
  capsLockValue: 'F11',
123
- testId: 'keyboard-f11',
123
+ testId: 'key-f11',
124
124
  },
125
125
  {
126
126
  name: 'F12',
@@ -130,7 +130,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
130
130
  secondaryValue: 'F12',
131
131
  shiftValue: 'F12',
132
132
  capsLockValue: 'F12',
133
- testId: 'keyboard-f12',
133
+ testId: 'key-f12',
134
134
  },
135
135
  ],
136
136
  [
@@ -146,7 +146,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
146
146
  rusSecondaryValue: 'ё',
147
147
  rusShiftValue: 'Ё',
148
148
  rusCapsLockValue: 'Ё',
149
- testId: 'keyboard-backquote',
149
+ testId: 'key-backquote',
150
150
  },
151
151
  {
152
152
  name: '1',
@@ -158,7 +158,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
158
158
  capsLockValue: '1',
159
159
  rusSecondaryValue: '!',
160
160
  rusShiftValue: '!',
161
- testId: 'keyboard-digit1',
161
+ testId: 'key-digit1',
162
162
  },
163
163
  {
164
164
  name: '2',
@@ -170,7 +170,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
170
170
  capsLockValue: '2',
171
171
  rusSecondaryValue: '"',
172
172
  rusShiftValue: '"',
173
- testId: 'keyboard-digit2',
173
+ testId: 'key-digit2',
174
174
  },
175
175
  {
176
176
  name: '3',
@@ -182,7 +182,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
182
182
  capsLockValue: '3',
183
183
  rusSecondaryValue: '№',
184
184
  rusShiftValue: '№',
185
- testId: 'keyboard-digit3',
185
+ testId: 'key-digit3',
186
186
  },
187
187
  {
188
188
  name: '4',
@@ -194,7 +194,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
194
194
  capsLockValue: '4',
195
195
  rusSecondaryValue: ';',
196
196
  rusShiftValue: ';',
197
- testId: 'keyboard-digit4',
197
+ testId: 'key-digit4',
198
198
  },
199
199
  {
200
200
  name: '5',
@@ -206,7 +206,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
206
206
  capsLockValue: '5',
207
207
  rusSecondaryValue: '%',
208
208
  rusShiftValue: '%',
209
- testId: 'keyboard-digit5',
209
+ testId: 'key-digit5',
210
210
  },
211
211
  {
212
212
  name: '6',
@@ -218,7 +218,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
218
218
  capsLockValue: '6',
219
219
  rusSecondaryValue: ':',
220
220
  rusShiftValue: ':',
221
- testId: 'keyboard-digit6',
221
+ testId: 'key-digit6',
222
222
  },
223
223
  {
224
224
  name: '7',
@@ -230,7 +230,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
230
230
  capsLockValue: '7',
231
231
  rusSecondaryValue: '?',
232
232
  rusShiftValue: '?',
233
- testId: 'keyboard-digit7',
233
+ testId: 'key-digit7',
234
234
  },
235
235
  {
236
236
  name: '8',
@@ -242,7 +242,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
242
242
  capsLockValue: '8',
243
243
  rusSecondaryValue: '*',
244
244
  rusShiftValue: '*',
245
- testId: 'keyboard-digit8',
245
+ testId: 'key-digit8',
246
246
  },
247
247
  {
248
248
  name: '9',
@@ -254,7 +254,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
254
254
  capsLockValue: '9',
255
255
  rusSecondaryValue: '(',
256
256
  rusShiftValue: '(',
257
- testId: 'keyboard-digit9',
257
+ testId: 'key-digit9',
258
258
  },
259
259
  {
260
260
  name: '0',
@@ -266,7 +266,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
266
266
  capsLockValue: '0',
267
267
  rusSecondaryValue: ')',
268
268
  rusShiftValue: ')',
269
- testId: 'keyboard-digit0',
269
+ testId: 'key-digit0',
270
270
  },
271
271
  {
272
272
  name: '-',
@@ -280,7 +280,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
280
280
  rusSecondaryValue: '_',
281
281
  rusCapsLockValue: '-',
282
282
  rusShiftValue: '_',
283
- testId: 'keyboard-minus',
283
+ testId: 'key-minus',
284
284
  },
285
285
  {
286
286
  name: '=',
@@ -294,7 +294,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
294
294
  rusSecondaryValue: '+',
295
295
  rusCapsLockValue: '=',
296
296
  rusShiftValue: '+',
297
- testId: 'keyboard-equal',
297
+ testId: 'key-equal',
298
298
  },
299
299
  {
300
300
  name: 'Backspace',
@@ -304,7 +304,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
304
304
  secondaryValue: 'Backspace',
305
305
  shiftValue: 'Backspace',
306
306
  capsLockValue: 'Backspace',
307
- testId: 'keyboard-backspace',
307
+ testId: 'key-backspace',
308
308
  },
309
309
  ],
310
310
  [
@@ -316,7 +316,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
316
316
  secondaryValue: 'Tab',
317
317
  shiftValue: 'Tab',
318
318
  capsLockValue: 'Tab',
319
- testId: 'keyboard-tab',
319
+ testId: 'key-tab',
320
320
  },
321
321
  {
322
322
  name: 'Q',
@@ -331,7 +331,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
331
331
  rusSecondaryValue: 'й',
332
332
  rusCapsLockValue: 'Й',
333
333
  rusShiftValue: 'Й',
334
- testId: 'keyboard-Q',
334
+ testId: 'key-Q',
335
335
  },
336
336
  {
337
337
  name: 'W',
@@ -346,7 +346,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
346
346
  rusSecondaryValue: 'ц',
347
347
  rusCapsLockValue: 'Ц',
348
348
  rusShiftValue: 'Ц',
349
- testId: 'keyboard-W',
349
+ testId: 'key-W',
350
350
  },
351
351
  {
352
352
  name: 'E',
@@ -361,7 +361,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
361
361
  rusSecondaryValue: 'у',
362
362
  rusCapsLockValue: 'У',
363
363
  rusShiftValue: 'У',
364
- testId: 'keyboard-E',
364
+ testId: 'key-E',
365
365
  },
366
366
  {
367
367
  name: 'R',
@@ -376,7 +376,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
376
376
  rusSecondaryValue: 'к',
377
377
  rusCapsLockValue: 'К',
378
378
  rusShiftValue: 'К',
379
- testId: 'keyboard-R',
379
+ testId: 'key-R',
380
380
  },
381
381
  {
382
382
  name: 'T',
@@ -391,7 +391,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
391
391
  rusSecondaryValue: 'е',
392
392
  rusCapsLockValue: 'Е',
393
393
  rusShiftValue: 'Е',
394
- testId: 'keyboard-T',
394
+ testId: 'key-T',
395
395
  },
396
396
  {
397
397
  name: 'Y',
@@ -406,7 +406,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
406
406
  rusSecondaryValue: 'н',
407
407
  rusCapsLockValue: 'Н',
408
408
  rusShiftValue: 'Н',
409
- testId: 'keyboard-Y',
409
+ testId: 'key-Y',
410
410
  },
411
411
  {
412
412
  name: 'U',
@@ -421,7 +421,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
421
421
  rusSecondaryValue: 'г',
422
422
  rusCapsLockValue: 'Г',
423
423
  rusShiftValue: 'Г',
424
- testId: 'keyboard-U',
424
+ testId: 'key-U',
425
425
  },
426
426
  {
427
427
  name: 'I',
@@ -436,7 +436,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
436
436
  rusSecondaryValue: 'ш',
437
437
  rusCapsLockValue: 'Ш',
438
438
  rusShiftValue: 'Ш',
439
- testId: 'keyboard-I',
439
+ testId: 'key-I',
440
440
  },
441
441
  {
442
442
  name: 'O',
@@ -451,7 +451,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
451
451
  rusSecondaryValue: 'щ',
452
452
  rusCapsLockValue: 'Щ',
453
453
  rusShiftValue: 'Щ',
454
- testId: 'keyboard-O',
454
+ testId: 'key-O',
455
455
  },
456
456
  {
457
457
  name: 'P',
@@ -466,7 +466,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
466
466
  rusSecondaryValue: 'з',
467
467
  rusCapsLockValue: 'З',
468
468
  rusShiftValue: 'З',
469
- testId: 'keyboard-P',
469
+ testId: 'key-P',
470
470
  },
471
471
  {
472
472
  name: '[',
@@ -480,7 +480,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
480
480
  rusSecondaryValue: 'х',
481
481
  rusCapsLockValue: 'Х',
482
482
  rusShiftValue: 'Х',
483
- testId: 'keyboard-bracket-left',
483
+ testId: 'key-bracket-left',
484
484
  },
485
485
  {
486
486
  name: ']',
@@ -494,7 +494,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
494
494
  rusSecondaryValue: 'ъ',
495
495
  rusCapsLockValue: 'Ъ',
496
496
  rusShiftValue: 'Ъ',
497
- testId: 'keyboard-bracket-right',
497
+ testId: 'key-bracket-right',
498
498
  },
499
499
  {
500
500
  name: '\\',
@@ -508,7 +508,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
508
508
  rusSecondaryValue: '/',
509
509
  rusCapsLockValue: '\\',
510
510
  rusShiftValue: '/',
511
- testId: 'keyboard-backslash',
511
+ testId: 'key-backslash',
512
512
  },
513
513
  ],
514
514
  [
@@ -520,7 +520,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
520
520
  secondaryValue: 'Caps Lock',
521
521
  shiftValue: 'Caps Lock',
522
522
  capsLockValue: 'Caps Lock',
523
- testId: 'keyboard-caps-lock',
523
+ testId: 'key-caps-lock',
524
524
  },
525
525
  {
526
526
  name: 'A',
@@ -535,7 +535,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
535
535
  rusSecondaryValue: 'ф',
536
536
  rusCapsLockValue: 'Ф',
537
537
  rusShiftValue: 'Ф',
538
- testId: 'keyboard-A',
538
+ testId: 'key-A',
539
539
  },
540
540
  {
541
541
  name: 'S',
@@ -550,7 +550,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
550
550
  rusSecondaryValue: 'ы',
551
551
  rusCapsLockValue: 'Ы',
552
552
  rusShiftValue: 'Ы',
553
- testId: 'keyboard-S',
553
+ testId: 'key-S',
554
554
  },
555
555
  {
556
556
  name: 'D',
@@ -565,7 +565,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
565
565
  rusSecondaryValue: 'в',
566
566
  rusCapsLockValue: 'В',
567
567
  rusShiftValue: 'В',
568
- testId: 'keyboard-D',
568
+ testId: 'key-D',
569
569
  },
570
570
  {
571
571
  name: 'F',
@@ -580,7 +580,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
580
580
  rusSecondaryValue: 'а',
581
581
  rusCapsLockValue: 'А',
582
582
  rusShiftValue: 'А',
583
- testId: 'keyboard-F',
583
+ testId: 'key-F',
584
584
  },
585
585
  {
586
586
  name: 'G',
@@ -595,7 +595,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
595
595
  rusSecondaryValue: 'п',
596
596
  rusCapsLockValue: 'П',
597
597
  rusShiftValue: 'П',
598
- testId: 'keyboard-G',
598
+ testId: 'key-G',
599
599
  },
600
600
  {
601
601
  name: 'H',
@@ -610,7 +610,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
610
610
  rusSecondaryValue: 'р',
611
611
  rusCapsLockValue: 'Р',
612
612
  rusShiftValue: 'Р',
613
- testId: 'keyboard-H',
613
+ testId: 'key-H',
614
614
  },
615
615
  {
616
616
  name: 'J',
@@ -625,7 +625,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
625
625
  rusSecondaryValue: 'о',
626
626
  rusCapsLockValue: 'О',
627
627
  rusShiftValue: 'О',
628
- testId: 'keyboard-J',
628
+ testId: 'key-J',
629
629
  },
630
630
  {
631
631
  name: 'K',
@@ -640,7 +640,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
640
640
  rusSecondaryValue: 'л',
641
641
  rusCapsLockValue: 'Л',
642
642
  rusShiftValue: 'Л',
643
- testId: 'keyboard-K',
643
+ testId: 'key-K',
644
644
  },
645
645
  {
646
646
  name: 'L',
@@ -655,7 +655,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
655
655
  rusSecondaryValue: 'д',
656
656
  rusCapsLockValue: 'Д',
657
657
  rusShiftValue: 'Д',
658
- testId: 'keyboard-L',
658
+ testId: 'key-L',
659
659
  },
660
660
  {
661
661
  name: ';',
@@ -669,7 +669,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
669
669
  rusSecondaryValue: 'ж',
670
670
  rusCapsLockValue: 'Ж',
671
671
  rusShiftValue: 'Ж',
672
- testId: 'keyboard-semicolon',
672
+ testId: 'key-semicolon',
673
673
  },
674
674
  {
675
675
  name: "'",
@@ -683,7 +683,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
683
683
  rusSecondaryValue: 'э',
684
684
  rusCapsLockValue: 'Э',
685
685
  rusShiftValue: 'Э',
686
- testId: 'keyboard-quote',
686
+ testId: 'key-quote',
687
687
  },
688
688
  {
689
689
  name: 'Enter',
@@ -693,7 +693,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
693
693
  secondaryValue: 'Enter',
694
694
  shiftValue: 'Enter',
695
695
  capsLockValue: 'Enter',
696
- testId: 'keyboard-enter',
696
+ testId: 'key-enter',
697
697
  },
698
698
  ],
699
699
  [
@@ -705,7 +705,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
705
705
  secondaryValue: 'Shift',
706
706
  shiftValue: 'Shift',
707
707
  capsLockValue: 'Shift',
708
- testId: 'keyboard-shift',
708
+ testId: 'key-shift',
709
709
  },
710
710
  {
711
711
  name: 'Z',
@@ -720,7 +720,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
720
720
  rusSecondaryValue: 'я',
721
721
  rusCapsLockValue: 'Я',
722
722
  rusShiftValue: 'Я',
723
- testId: 'keyboard-Z',
723
+ testId: 'key-Z',
724
724
  },
725
725
  {
726
726
  name: 'X',
@@ -735,7 +735,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
735
735
  rusSecondaryValue: 'ч',
736
736
  rusCapsLockValue: 'Ч',
737
737
  rusShiftValue: 'Ч',
738
- testId: 'keyboard-X',
738
+ testId: 'key-X',
739
739
  },
740
740
  {
741
741
  name: 'C',
@@ -750,7 +750,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
750
750
  rusSecondaryValue: 'с',
751
751
  rusCapsLockValue: 'С',
752
752
  rusShiftValue: 'С',
753
- testId: 'keyboard-C',
753
+ testId: 'key-C',
754
754
  },
755
755
  {
756
756
  name: 'V',
@@ -765,7 +765,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
765
765
  rusSecondaryValue: 'м',
766
766
  rusCapsLockValue: 'М',
767
767
  rusShiftValue: 'М',
768
- testId: 'keyboard-V',
768
+ testId: 'key-V',
769
769
  },
770
770
  {
771
771
  name: 'B',
@@ -780,7 +780,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
780
780
  rusSecondaryValue: 'и',
781
781
  rusCapsLockValue: 'И',
782
782
  rusShiftValue: 'И',
783
- testId: 'keyboard-B',
783
+ testId: 'key-B',
784
784
  },
785
785
  {
786
786
  name: 'N',
@@ -795,7 +795,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
795
795
  rusSecondaryValue: 'т',
796
796
  rusCapsLockValue: 'Т',
797
797
  rusShiftValue: 'Т',
798
- testId: 'keyboard-N',
798
+ testId: 'key-N',
799
799
  },
800
800
  {
801
801
  name: 'M',
@@ -810,7 +810,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
810
810
  rusSecondaryValue: 'ь',
811
811
  rusCapsLockValue: 'Ь',
812
812
  rusShiftValue: 'Ь',
813
- testId: 'keyboard-M',
813
+ testId: 'key-M',
814
814
  },
815
815
  {
816
816
  name: ',',
@@ -824,7 +824,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
824
824
  rusSecondaryValue: 'б',
825
825
  rusCapsLockValue: 'Б',
826
826
  rusShiftValue: 'Б',
827
- testId: 'keyboard-comma',
827
+ testId: 'key-comma',
828
828
  },
829
829
  {
830
830
  name: '.',
@@ -838,7 +838,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
838
838
  rusSecondaryValue: 'ю',
839
839
  rusCapsLockValue: 'Ю',
840
840
  rusShiftValue: 'Ю',
841
- testId: 'keyboard-period',
841
+ testId: 'key-period',
842
842
  },
843
843
  {
844
844
  name: '/',
@@ -852,7 +852,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
852
852
  rusSecondaryValue: ',',
853
853
  rusCapsLockValue: '.',
854
854
  rusShiftValue: ',',
855
- testId: 'keyboard-slash',
855
+ testId: 'key-slash',
856
856
  },
857
857
  {
858
858
  name: '\\',
@@ -866,7 +866,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
866
866
  rusSecondaryValue: '/',
867
867
  rusCapsLockValue: '\\',
868
868
  rusShiftValue: '/',
869
- testId: 'keyboard-backslash',
869
+ testId: 'key-backslash',
870
870
  },
871
871
  {
872
872
  name: 'Shift',
@@ -876,7 +876,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
876
876
  secondaryValue: 'Shift',
877
877
  shiftValue: 'Shift',
878
878
  capsLockValue: 'Shift',
879
- testId: 'keyboard-shift',
879
+ testId: 'key-shift',
880
880
  },
881
881
  ],
882
882
  [
@@ -888,7 +888,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
888
888
  secondaryValue: 'Ctrl',
889
889
  shiftValue: 'Ctrl',
890
890
  capsLockValue: 'Ctrl',
891
- testId: 'keyboard-ctrl',
891
+ testId: 'key-ctrl',
892
892
  },
893
893
  {
894
894
  name: 'Win',
@@ -898,7 +898,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
898
898
  secondaryValue: 'Win',
899
899
  shiftValue: 'Win',
900
900
  capsLockValue: 'Win',
901
- testId: 'keyboard-win',
901
+ testId: 'key-win',
902
902
  },
903
903
  {
904
904
  name: 'Alt',
@@ -908,7 +908,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
908
908
  secondaryValue: 'Alt',
909
909
  shiftValue: 'Alt',
910
910
  capsLockValue: 'Alt',
911
- testId: 'keyboard-alt',
911
+ testId: 'key-alt',
912
912
  },
913
913
  {
914
914
  name: 'Space',
@@ -918,7 +918,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
918
918
  secondaryValue: 'Space',
919
919
  shiftValue: 'Space',
920
920
  capsLockValue: 'Space',
921
- testId: 'keyboard-space',
921
+ testId: 'key-space',
922
922
  },
923
923
  {
924
924
  name: 'Alt',
@@ -928,7 +928,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
928
928
  secondaryValue: 'Alt',
929
929
  shiftValue: 'Alt',
930
930
  capsLockValue: 'Alt',
931
- testId: 'keyboard-alt',
931
+ testId: 'key-alt',
932
932
  },
933
933
  {
934
934
  name: 'Win',
@@ -938,7 +938,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
938
938
  secondaryValue: 'Win',
939
939
  shiftValue: 'Win',
940
940
  capsLockValue: 'Win',
941
- testId: 'keyboard-win',
941
+ testId: 'key-win',
942
942
  },
943
943
  {
944
944
  name: 'Menu',
@@ -948,7 +948,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
948
948
  secondaryValue: 'Menu',
949
949
  shiftValue: 'Menu',
950
950
  capsLockValue: 'Menu',
951
- testId: 'keyboard-menu',
951
+ testId: 'key-menu',
952
952
  },
953
953
  {
954
954
  name: 'Ctrl',
@@ -958,7 +958,7 @@ const keyboardRows: I_KeyboardRowItem[][] = [
958
958
  secondaryValue: 'Ctrl',
959
959
  shiftValue: 'Ctrl',
960
960
  capsLockValue: 'Ctrl',
961
- testId: 'keyboard-ctrl',
961
+ testId: 'key-ctrl',
962
962
  },
963
963
  ],
964
964
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.240",
4
+ "version": "1.3.242",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",