bfg-common 1.3.374 → 1.3.376

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.
@@ -1,68 +1,72 @@
1
- <template>
2
- <div class="hardware-cpu">
3
- <atoms-stack-block :has-children="true">
4
- <template #stackBlockKey>
5
- <div class="flex-align-center">
6
- <span>{{ localization.tools }}</span>
7
- </div>
8
- </template>
9
- <template #stackChildren>
10
- <atoms-stack-block :has-children="false">
11
- <template #stackBlockKey>
12
- {{ localization.toolsEnable }}
13
- </template>
14
- <template #stackBlockContent>
15
- <input
16
- id="tools-2"
17
- v-model="tools"
18
- data-id="tools-2-checkbox"
19
- type="checkbox"
20
- />
21
- <label for="tools-2" class="label-text-normal">{{
22
- localization.enable
23
- }}</label>
24
- </template>
25
- </atoms-stack-block>
26
- </template>
27
- </atoms-stack-block>
28
- </div>
29
- </template>
30
-
31
- <script setup lang="ts">
32
- import { UI_I_SendDataTools } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
33
- import { UI_I_Localization } from '~/lib/models/interfaces'
34
-
35
- const props = withDefaults(
36
- defineProps<{
37
- tools: boolean
38
- }>(),
39
- {
40
- tools: true,
41
- }
42
- )
43
- const emits = defineEmits<{
44
- (event: 'send-data', value: UI_I_SendDataTools): void
45
- }>()
46
-
47
- const localization = computed<UI_I_Localization>(() => useLocal())
48
-
49
- const tools = ref<boolean>(props.tools)
50
-
51
- watch(
52
- tools,
53
- () => {
54
- emits('send-data', {
55
- enabled: tools.value,
56
- synchronized_time: tools.value,
57
- })
58
- },
59
- { immediate: true }
60
- )
61
- </script>
62
-
63
- <style scoped lang="scss">
64
- #tools-1,
65
- #tools-2 {
66
- margin: 0 4px 4px 0;
67
- }
68
- </style>
1
+ <template>
2
+ <div class="hardware-cpu">
3
+ <atoms-stack-block :has-children="true">
4
+ <template #stackBlockKey>
5
+ <div
6
+ id="vm-wizard-toggle-block-tools"
7
+ data-id="vm-wizard-toggle-block-tools"
8
+ class="flex-align-center"
9
+ >
10
+ <span>{{ localization.tools }}</span>
11
+ </div>
12
+ </template>
13
+ <template #stackChildren>
14
+ <atoms-stack-block :has-children="false">
15
+ <template #stackBlockKey>
16
+ {{ localization.toolsEnable }}
17
+ </template>
18
+ <template #stackBlockContent>
19
+ <input
20
+ id="tools-2"
21
+ v-model="tools"
22
+ data-id="tools-2-checkbox"
23
+ type="checkbox"
24
+ />
25
+ <label for="tools-2" class="label-text-normal">{{
26
+ localization.enable
27
+ }}</label>
28
+ </template>
29
+ </atoms-stack-block>
30
+ </template>
31
+ </atoms-stack-block>
32
+ </div>
33
+ </template>
34
+
35
+ <script setup lang="ts">
36
+ import { UI_I_SendDataTools } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
37
+ import { UI_I_Localization } from '~/lib/models/interfaces'
38
+
39
+ const props = withDefaults(
40
+ defineProps<{
41
+ tools: boolean
42
+ }>(),
43
+ {
44
+ tools: true,
45
+ }
46
+ )
47
+ const emits = defineEmits<{
48
+ (event: 'send-data', value: UI_I_SendDataTools): void
49
+ }>()
50
+
51
+ const localization = computed<UI_I_Localization>(() => useLocal())
52
+
53
+ const tools = ref<boolean>(props.tools)
54
+
55
+ watch(
56
+ tools,
57
+ () => {
58
+ emits('send-data', {
59
+ enabled: tools.value,
60
+ synchronized_time: tools.value,
61
+ })
62
+ },
63
+ { immediate: true }
64
+ )
65
+ </script>
66
+
67
+ <style scoped lang="scss">
68
+ #tools-1,
69
+ #tools-2 {
70
+ margin: 0 4px 4px 0;
71
+ }
72
+ </style>
@@ -8,11 +8,13 @@ export const vmMigrateSelectStorageTabsFunc = (
8
8
  text: localization.batchConfigure,
9
9
  value: 'batch-configure',
10
10
  disabled: false,
11
+ testId: 'batch-configure'
11
12
  },
12
13
  {
13
14
  text: localization.configurePerDisk,
14
15
  value: 'configure-disk',
15
16
  disabled: false,
17
+ testId: 'configure-disk'
16
18
  },
17
19
  ]
18
20
  }
@@ -99,79 +99,79 @@ export const bodyItems = (
99
99
  text: storage[storageTableKeys[0]].toString(),
100
100
  data: `vsphere-icon-${datastoreIconByState[storage.state]}`,
101
101
  id: key,
102
- testId: `storage-table-item-${key}`,
102
+ testId: storage[storageTableKeys[0]].toString()
103
103
  },
104
104
  {
105
105
  key: 'col1',
106
106
  text: state,
107
107
  id: key,
108
- testId: `storage-table-item-${key}`,
108
+ testId: storage[storageTableKeys[0]].toString()
109
109
  },
110
110
  {
111
111
  key: 'col2',
112
112
  text: $binary.round(storage.capacity[storageTableKeys[2]]),
113
113
  id: key,
114
- testId: `storage-table-item-${key}`,
114
+ testId: storage[storageTableKeys[0]].toString()
115
115
  },
116
116
  {
117
117
  key: 'col3',
118
118
  text: $binary.round(storage.capacity[storageTableKeys[3]].toString()),
119
119
  id: key,
120
- testId: `storage-table-item-${key}`,
120
+ testId: storage[storageTableKeys[0]].toString()
121
121
  },
122
122
  {
123
123
  key: 'col4',
124
124
  text: $binary.round(storage.capacity[storageTableKeys[4]].toString()),
125
125
  id: key,
126
- testId: `storage-table-item-${key}`,
126
+ testId: storage[storageTableKeys[0]].toString()
127
127
  },
128
128
  {
129
129
  key: 'col5',
130
130
  text: $binary.round(storage.capacity[storageTableKeys[5]].toString()),
131
131
  id: key,
132
- testId: `storage-table-item-${key}`,
132
+ testId: storage[storageTableKeys[0]].toString()
133
133
  },
134
134
  {
135
135
  key: 'col6',
136
136
  text: storage[storageTableKeys[6]].toString(),
137
137
  id: key,
138
- testId: `storage-table-item-${key}`,
138
+ testId: storage[storageTableKeys[0]].toString()
139
139
  },
140
140
  {
141
141
  key: 'col7',
142
142
  text: storage[storageTableKeys[7]] ? localization.yes : localization.no,
143
143
  id: key,
144
- testId: `storage-table-item-${key}`,
144
+ testId: storage[storageTableKeys[0]].toString()
145
145
  },
146
146
  {
147
147
  key: 'col8',
148
148
  text: storage[storageTableKeys[8]].toString(),
149
149
  id: key,
150
- testId: `storage-table-item-${key}`,
150
+ testId: storage[storageTableKeys[0]].toString()
151
151
  },
152
152
  {
153
153
  key: 'col9',
154
154
  text: storage[storageTableKeys[9]].toString(),
155
155
  id: key,
156
- testId: `storage-table-item-${key}`,
156
+ testId: storage[storageTableKeys[0]].toString()
157
157
  },
158
158
  {
159
159
  key: 'col10',
160
160
  text: storage[storageTableKeys[10]].toString(),
161
161
  id: key,
162
- testId: `storage-table-item-${key}`,
162
+ testId: storage[storageTableKeys[0]].toString()
163
163
  },
164
164
  {
165
165
  key: 'col11',
166
166
  text: storage[storageTableKeys[11]].toString(),
167
167
  id: key,
168
- testId: `storage-table-item-${key}`,
168
+ testId: storage[storageTableKeys[0]].toString()
169
169
  },
170
170
  {
171
171
  key: 'col12',
172
172
  text: storage[storageTableKeys[12]].toString(),
173
173
  id: key,
174
- testId: `storage-table-item-${key}`,
174
+ testId: storage[storageTableKeys[0]].toString()
175
175
  },
176
176
  ])
177
177
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.374",
4
+ "version": "1.3.376",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -38,12 +38,12 @@ wdi.SpiceChannel = $.spcExtend(wdi.EventObject.prototype, {
38
38
  wdi.ReassemblerFactory.getPacketReassembler(this.socketQ)
39
39
  this.setListeners()
40
40
  this.ackWindow = 0
41
- var _this = this
42
41
 
43
- setInterval(() => {
44
- var body = new wdi.RedPing({id: 0, time: new Date().getTime()}).marshall();
45
- _this.sendObject(body, wdi.SpiceVars.SPICE_MSGC_PONG);
46
- }, 60_00)
42
+ // var _this = this
43
+ // setInterval(() => {
44
+ // var body = new wdi.RedPing({id: 0, time: new Date().getTime()}).marshall();
45
+ // _this.sendObject(body, wdi.SpiceVars.SPICE_MSGC_PONG);
46
+ // }, 60_00)
47
47
  },
48
48
 
49
49
  // startHandshakeTimeout: function () {