9
9
IDeviceSensorData ,
10
10
IDeviceChipset ,
11
11
IDeviceNIC ,
12
+ IDeviceGpuintel ,
13
+ IDeviceBattery ,
14
+ IDeviceGpunvidia ,
12
15
} from 'app/models/models/deviceInfo' ;
13
16
import { IAPIHardwareType , IAPISensorType , IAPISystemType } from 'app/models/api/deviceInfo' ;
14
17
@@ -36,25 +39,25 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
36
39
let voltages = getObjectFromType ( chipsetInfo . chipset , IAPISensorType . Voltage ) as IDeviceChipset [ ] ;
37
40
let voltagesVMs = voltages . map ( voltageInfo => {
38
41
let voltagesVM = convertArrayToVM ( voltageInfo . voltage ! ) ;
39
- return { id : voltageInfo . id , values : voltagesVM , title : IAPISensorType . Voltage , sections : null } ;
42
+ return { id : voltageInfo . id , values : voltagesVM , title : voltageInfo . text , sections : null } ;
40
43
} ) ;
41
44
//Temperatures
42
45
let temperatures = getObjectFromType ( chipsetInfo . chipset , IAPISensorType . Temperature ) as IDeviceChipset [ ] ;
43
46
let temperaturesVMs = temperatures . map ( temperatureInfo => {
44
47
let temperaturesVM = convertArrayToVM ( temperatureInfo . temperature ! ) ;
45
- return { id : temperatureInfo . id , values : temperaturesVM , title : IAPISensorType . Temperature , sections : null } ;
48
+ return { id : temperatureInfo . id , values : temperaturesVM , title : temperatureInfo . text , sections : null } ;
46
49
} ) ;
47
50
//Fans
48
51
let fans = getObjectFromType ( chipsetInfo . chipset , IAPISensorType . Fan ) as IDeviceChipset [ ] ;
49
52
let fansVMs = fans . map ( fanInfo => {
50
53
let fansVM = convertArrayToVM ( fanInfo . fan ! ) ;
51
- return { id : fanInfo . id , values : fansVM , title : IAPISensorType . Fan , sections : null } ;
54
+ return { id : fanInfo . id , values : fansVM , title : fanInfo . text , sections : null } ;
52
55
} ) ;
53
56
//Controls
54
57
let controls = getObjectFromType ( chipsetInfo . chipset , IAPISensorType . Control ) as IDeviceChipset [ ] ;
55
58
let controlsVMs = controls . map ( controlInfo => {
56
59
let controlsVM = convertArrayToVM ( controlInfo . control ! ) ;
57
- return { id : controlInfo . id , values : controlsVM , title : IAPISensorType . Control , sections : null } ;
60
+ return { id : controlInfo . id , values : controlsVM , title : controlInfo . text , sections : null } ;
58
61
} ) ;
59
62
return {
60
63
id : chipsetInfo . id ,
@@ -78,34 +81,40 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
78
81
if ( ! cpuInfo . cpu ) {
79
82
return null ;
80
83
}
81
- //VLocks
82
- let vlocks = getObjectFromType ( cpuInfo . cpu , IAPISensorType . Clock ) as IDeviceCPU [ ] ;
83
- let vlocksVMs = vlocks . map ( vlockInfo => {
84
- let vlocksVM = convertArrayToVM ( vlockInfo . vlock ! ) ;
85
- return { id : vlockInfo . id , values : vlocksVM , title : IAPISensorType . Clock , sections : null } ;
84
+ //Voltages
85
+ let voltages = getObjectFromType ( cpuInfo . cpu , IAPISensorType . Voltage ) as IDeviceChipset [ ] ;
86
+ let voltagesVMs = voltages . map ( voltageInfo => {
87
+ let voltagesVM = convertArrayToVM ( voltageInfo . voltage ! ) ;
88
+ return { id : voltageInfo . id , values : voltagesVM , title : voltageInfo . text , sections : null } ;
89
+ } ) ;
90
+ //Cocks
91
+ let clocks = getObjectFromType ( cpuInfo . cpu , IAPISensorType . Clock ) as IDeviceCPU [ ] ;
92
+ let clocksVMs = clocks . map ( clockInfo => {
93
+ let clocksVM = convertArrayToVM ( clockInfo . clock ! ) ;
94
+ return { id : clockInfo . id , values : clocksVM , title : clockInfo . text , sections : null } ;
86
95
} ) ;
87
96
//Temperatures
88
97
let temperatures = getObjectFromType ( cpuInfo . cpu , IAPISensorType . Temperature ) as IDeviceCPU [ ] ;
89
98
let temperaturesVMs = temperatures . map ( temperatureInfo => {
90
99
let controlsVMs = convertArrayToVM ( temperatureInfo . temperature ! ) ;
91
- return { id : temperatureInfo . id , values : controlsVMs , title : IAPISensorType . Temperature , sections : null } ;
100
+ return { id : temperatureInfo . id , values : controlsVMs , title : temperatureInfo . text , sections : null } ;
92
101
} ) ;
93
102
//Loads
94
103
let loads = getObjectFromType ( cpuInfo . cpu , IAPISensorType . Load ) as IDeviceCPU [ ] ;
95
104
let loadsVMs = loads . map ( loadInfo => {
96
105
let controlsVMs = convertArrayToVM ( loadInfo . load ! ) ;
97
- return { id : loadInfo . id , values : controlsVMs , title : IAPISensorType . Load , sections : null } ;
106
+ return { id : loadInfo . id , values : controlsVMs , title : loadInfo . text , sections : null } ;
98
107
} ) ;
99
108
//Powers
100
109
let powers = getObjectFromType ( cpuInfo . cpu , IAPISensorType . Power ) as IDeviceCPU [ ] ;
101
110
let powersVMs = powers . map ( power => {
102
111
let powerVMs = convertArrayToVM ( power . power ! ) ;
103
- return { id : power . id , values : powerVMs , title : IAPISensorType . Power , sections : null } ;
112
+ return { id : power . id , values : powerVMs , title : power . text , sections : null } ;
104
113
} ) ;
105
114
return {
106
115
id : cpuInfo . id ,
107
116
title : `${ IAPIHardwareType . CPU } - ${ cpuInfo . text } ` ,
108
- sections : [ ...vlocksVMs , ...powersVMs , ...temperaturesVMs , ...loadsVMs ] ,
117
+ sections : [ ...voltagesVMs , ... clocksVMs , ...powersVMs , ...temperaturesVMs , ...loadsVMs ] ,
109
118
values : null ,
110
119
} as ICardViewModel ;
111
120
} ) ;
@@ -121,13 +130,13 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
121
130
let loads = getObjectFromType ( ramInfo . ram , IAPISensorType . Load ) as IDeviceRAM [ ] ;
122
131
let loadsVMs = loads . map ( load => {
123
132
let loadVMs = convertArrayToVM ( load . load ! ) ;
124
- return { id : load . id , values : loadVMs , title : IAPISensorType . Load , sections : null } ;
133
+ return { id : load . id , values : loadVMs , title : load . text , sections : null } ;
125
134
} ) ;
126
135
//Data
127
136
let powers = getObjectFromType ( ramInfo . ram , IAPISensorType . Power ) as IDeviceRAM [ ] ;
128
137
let powersVMs = powers . map ( power => {
129
138
let powerVMs = convertArrayToVM ( power . power ! ) ;
130
- return { id : power . id , values : powerVMs , title : IAPISensorType . Power , sections : null } ;
139
+ return { id : power . id , values : powerVMs , title : power . text , sections : null } ;
131
140
} ) ;
132
141
return {
133
142
id : ramInfo . id ,
@@ -148,43 +157,43 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
148
157
let voltages = getObjectFromType ( gpuAtiInfo . gpuati , IAPISensorType . Voltage ) as IDeviceGpuati [ ] ;
149
158
let voltagesVMs = voltages . map ( voltage => {
150
159
let controlsVM = convertArrayToVM ( voltage . voltage ! ) ;
151
- return { id : voltage . id , values : controlsVM , title : IAPISensorType . Voltage , sections : null } ;
160
+ return { id : voltage . id , values : controlsVM , title : voltage . text , sections : null } ;
152
161
} ) ;
153
162
//Clocks
154
163
let clocks = getObjectFromType ( gpuAtiInfo . gpuati , IAPISensorType . Clock ) as IDeviceGpuati [ ] ;
155
164
let clocksVMs = clocks . map ( clock => {
156
- let controlsVM = convertArrayToVM ( clock . vlock ! ) ;
157
- return { id : clock . id , values : controlsVM , title : IAPISensorType . Clock , sections : null } ;
165
+ let controlsVM = convertArrayToVM ( clock . clock ! ) ;
166
+ return { id : clock . id , values : controlsVM , title : clock . text , sections : null } ;
158
167
} ) ;
159
168
//Temperatures
160
169
let temperatures = getObjectFromType ( gpuAtiInfo . gpuati , IAPISensorType . Temperature ) as IDeviceGpuati [ ] ;
161
170
let temperaturesVMs = temperatures . map ( temperature => {
162
171
let temperaturesVM = convertArrayToVM ( temperature . temperature ! ) ;
163
- return { id : temperature . id , values : temperaturesVM , title : IAPISensorType . Temperature , sections : null } ;
172
+ return { id : temperature . id , values : temperaturesVM , title : temperature . text , sections : null } ;
164
173
} ) ;
165
174
//Load
166
175
let loads = getObjectFromType ( gpuAtiInfo . gpuati , IAPISensorType . Load ) as IDeviceGpuati [ ] ;
167
176
let loadsVMs = loads . map ( load => {
168
177
let loadsVM = convertArrayToVM ( load . load ! ) ;
169
- return { id : load . id , values : loadsVM , title : IAPISensorType . Load , sections : null } ;
178
+ return { id : load . id , values : loadsVM , title : load . text , sections : null } ;
170
179
} ) ;
171
180
//Fan
172
181
let fans = getObjectFromType ( gpuAtiInfo . gpuati , IAPISensorType . Fan ) as IDeviceGpuati [ ] ;
173
182
let fansVMs = fans . map ( fan => {
174
183
let fansVM = convertArrayToVM ( fan . fan ! ) ;
175
- return { id : fan . id , values : fansVM , title : IAPISensorType . Fan , sections : null } ;
184
+ return { id : fan . id , values : fansVM , title : fan . text , sections : null } ;
176
185
} ) ;
177
186
//Controls
178
187
let controls = getObjectFromType ( gpuAtiInfo . gpuati , IAPISensorType . Control ) as IDeviceGpuati [ ] ;
179
188
let controlsVMs = controls . map ( control => {
180
189
let controlsVM = convertArrayToVM ( control . control ! ) ;
181
- return { id : control . id , values : controlsVM , title : IAPISensorType . Control , sections : null } ;
190
+ return { id : control . id , values : controlsVM , title : control . text , sections : null } ;
182
191
} ) ;
183
192
//Power
184
193
let powers = getObjectFromType ( gpuAtiInfo . gpuati , IAPISensorType . Power ) as IDeviceGpuati [ ] ;
185
194
let powersVMs = powers . map ( power => {
186
195
let powersVM = convertArrayToVM ( power . power ! ) ;
187
- return { id : power . id , values : powersVM , title : IAPISensorType . Power , sections : null } ;
196
+ return { id : power . id , values : powersVM , title : power . text , sections : null } ;
188
197
} ) ;
189
198
return {
190
199
id : gpuAtiInfo . id ,
@@ -210,46 +219,46 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
210
219
return null ;
211
220
}
212
221
//Voltages
213
- let voltages = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Voltage ) as IDeviceGpuati [ ] ;
222
+ let voltages = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Voltage ) as IDeviceGpunvidia [ ] ;
214
223
let voltagesVMs = voltages . map ( voltage => {
215
224
let controlsVM = convertArrayToVM ( voltage . voltage ! ) ;
216
- return { id : voltage . id , values : controlsVM , title : IAPISensorType . Voltage , sections : null } ;
225
+ return { id : voltage . id , values : controlsVM , title : voltage . text , sections : null } ;
217
226
} ) ;
218
227
//Clocks
219
- let clocks = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Clock ) as IDeviceGpuati [ ] ;
228
+ let clocks = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Clock ) as IDeviceGpunvidia [ ] ;
220
229
let clocksVMs = clocks . map ( clock => {
221
- let controlsVM = convertArrayToVM ( clock . vlock ! ) ;
222
- return { id : clock . id , values : controlsVM , title : IAPISensorType . Clock , sections : null } ;
230
+ let controlsVM = convertArrayToVM ( clock . clock ! ) ;
231
+ return { id : clock . id , values : controlsVM , title : clock . text , sections : null } ;
223
232
} ) ;
224
233
//Temperatures
225
- let temperatures = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Temperature ) as IDeviceGpuati [ ] ;
234
+ let temperatures = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Temperature ) as IDeviceGpunvidia [ ] ;
226
235
let temperaturesVMs = temperatures . map ( temperature => {
227
236
let temperaturesVM = convertArrayToVM ( temperature . temperature ! ) ;
228
- return { id : temperature . id , values : temperaturesVM , title : IAPISensorType . Temperature , sections : null } ;
237
+ return { id : temperature . id , values : temperaturesVM , title : temperature . text , sections : null } ;
229
238
} ) ;
230
239
//Load
231
- let loads = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Load ) as IDeviceGpuati [ ] ;
240
+ let loads = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Load ) as IDeviceGpunvidia [ ] ;
232
241
let loadsVMs = loads . map ( load => {
233
242
let loadsVM = convertArrayToVM ( load . load ! ) ;
234
- return { id : load . id , values : loadsVM , title : IAPISensorType . Load , sections : null } ;
243
+ return { id : load . id , values : loadsVM , title : load . text , sections : null } ;
235
244
} ) ;
236
245
//Fan
237
- let fans = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Fan ) as IDeviceGpuati [ ] ;
246
+ let fans = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Fan ) as IDeviceGpunvidia [ ] ;
238
247
let fansVMs = fans . map ( fan => {
239
248
let fansVM = convertArrayToVM ( fan . fan ! ) ;
240
- return { id : fan . id , values : fansVM , title : IAPISensorType . Fan , sections : null } ;
249
+ return { id : fan . id , values : fansVM , title : fan . text , sections : null } ;
241
250
} ) ;
242
251
//Controls
243
- let controls = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Control ) as IDeviceGpuati [ ] ;
252
+ let controls = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Control ) as IDeviceGpunvidia [ ] ;
244
253
let controlsVMs = controls . map ( control => {
245
254
let controlsVM = convertArrayToVM ( control . control ! ) ;
246
- return { id : control . id , values : controlsVM , title : IAPISensorType . Control , sections : null } ;
255
+ return { id : control . id , values : controlsVM , title : control . text , sections : null } ;
247
256
} ) ;
248
257
//Power
249
- let powers = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Power ) as IDeviceGpuati [ ] ;
258
+ let powers = getObjectFromType ( gpuNvidiaInfo . gpunvidia , IAPISensorType . Power ) as IDeviceGpunvidia [ ] ;
250
259
let powersVMs = powers . map ( power => {
251
260
let powersVM = convertArrayToVM ( power . power ! ) ;
252
- return { id : power . id , values : powersVM , title : IAPISensorType . Power , sections : null } ;
261
+ return { id : power . id , values : powersVM , title : power . text , sections : null } ;
253
262
} ) ;
254
263
return {
255
264
id : gpuNvidiaInfo . id ,
@@ -268,6 +277,34 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
268
277
} ) ;
269
278
let gpuNvidiaSectionViewModelsMapped = gpuNvidiaSectionViewModels . filter ( v => v ) . map ( v => v ! ) ;
270
279
280
+ //CARD
281
+ let computerGpusIntel = getObjectFromType ( computers , IAPIHardwareType . GpuIntel ) as IDeviceComputer [ ] ;
282
+
283
+ let gpuIntelSectionViewModels = computerGpusIntel . map ( gpuIntelInfo => {
284
+ if ( ! gpuIntelInfo . gpuintel ) {
285
+ return null ;
286
+ }
287
+ //Power
288
+ let powers = getObjectFromType ( gpuIntelInfo . gpuintel , IAPISensorType . Power ) as IDeviceGpuintel [ ] ;
289
+ let powersVMs = powers . map ( power => {
290
+ let powersVM = convertArrayToVM ( power . power ! ) ;
291
+ return { id : power . id , values : powersVM , title : power . text , sections : null } ;
292
+ } ) ;
293
+ //Load
294
+ let loads = getObjectFromType ( gpuIntelInfo . gpuintel , IAPISensorType . Load ) as IDeviceGpuintel [ ] ;
295
+ let loadsVMs = loads . map ( load => {
296
+ let loadsVM = convertArrayToVM ( load . load ! ) ;
297
+ return { id : load . id , values : loadsVM , title : load . text , sections : null } ;
298
+ } ) ;
299
+ return {
300
+ id : gpuIntelInfo . id ,
301
+ title : `${ IAPIHardwareType . GpuIntel } - ${ gpuIntelInfo . text } ` ,
302
+ sections : [ ...loadsVMs , ...powersVMs ] ,
303
+ values : null ,
304
+ } as ICardViewModel ;
305
+ } ) ;
306
+ let gpuIntelSectionViewModelsMapped = gpuIntelSectionViewModels . filter ( v => v ) . map ( v => v ! ) ;
307
+
271
308
//HDD
272
309
let computerHdds = getObjectFromType ( computers , IAPIHardwareType . HDD ) as IDeviceComputer [ ] ;
273
310
let computerHddViewModels = computerHdds . map ( hddInfo => {
@@ -295,13 +332,13 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
295
332
let powers = getObjectFromType ( hddInfo . hdd , IAPISensorType . Power ) as IDeviceHDD [ ] ;
296
333
let powersVMs = powers . map ( power => {
297
334
let powersVM = convertArrayToVM ( power . power ! ) ;
298
- return { id : power . id , values : powersVM , title : IAPISensorType . Power , sections : null } ;
335
+ return { id : power . id , values : powersVM , title : power . text , sections : null } ;
299
336
} ) ;
300
337
//Throughput
301
338
let throughputs = getObjectFromType ( hddInfo . hdd , IAPISensorType . Throughput ) as IDeviceHDD [ ] ;
302
339
let throughputsVMs = throughputs . map ( throughput => {
303
340
let throughputsVM = convertArrayToVM ( throughput . throughput ! ) ;
304
- return { id : throughput . id , values : throughputsVM , title : IAPISensorType . Throughput , sections : null } ;
341
+ return { id : throughput . id , values : throughputsVM , title : throughput . text , sections : null } ;
305
342
} ) ;
306
343
return {
307
344
id : hddInfo . id ,
@@ -322,19 +359,19 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
322
359
let loads = getObjectFromType ( nicInfo . nic , IAPISensorType . Load ) as IDeviceNIC [ ] ;
323
360
let loadsVMs = loads . map ( load => {
324
361
let loadsVM = convertArrayToVM ( load . load ! ) ;
325
- return { id : load . id , values : loadsVM , title : IAPISensorType . Load , sections : null } ;
362
+ return { id : load . id , values : loadsVM , title : load . text , sections : null } ;
326
363
} ) ;
327
364
//Data
328
365
let powers = getObjectFromType ( nicInfo . nic , IAPISensorType . Power ) as IDeviceNIC [ ] ;
329
366
let powersVMs = powers . map ( power => {
330
367
let powerVMs = convertArrayToVM ( power . power ! ) ;
331
- return { id : power . id , values : powerVMs , title : IAPISensorType . Power , sections : null } ;
368
+ return { id : power . id , values : powerVMs , title : power . text , sections : null } ;
332
369
} ) ;
333
370
//Throughput
334
371
let throughputs = getObjectFromType ( nicInfo . nic , IAPISensorType . Throughput ) as IDeviceNIC [ ] ;
335
372
let throughputsVMs = throughputs . map ( throughput => {
336
373
let throughputsVM = convertArrayToVM ( throughput . throughput ! ) ;
337
- return { id : throughput . id , values : throughputsVM , title : IAPISensorType . Throughput , sections : null } ;
374
+ return { id : throughput . id , values : throughputsVM , title : throughput . text , sections : null } ;
338
375
} ) ;
339
376
return {
340
377
id : nicInfo . id ,
@@ -345,14 +382,61 @@ export const convertToViewModel = (device: IDevice | null): ICardViewModel[] =>
345
382
} ) ;
346
383
let computerNicViewModelsMapped = computerNicViewModels . filter ( v => v ) . map ( v => v ! ) ;
347
384
385
+ //BATTERY
386
+ let computerBatteries = getObjectFromType ( computers , IAPIHardwareType . Battery ) as IDeviceComputer [ ] ;
387
+ let batterySectionViewModels = computerBatteries . map ( batteryInfo => {
388
+ if ( ! batteryInfo . battery ) {
389
+ return null ;
390
+ }
391
+ //Voltages
392
+ let voltages = getObjectFromType ( batteryInfo . battery , IAPISensorType . Voltage ) as IDeviceBattery [ ] ;
393
+ let voltagesVMs = voltages . map ( voltage => {
394
+ let controlsVM = convertArrayToVM ( voltage . voltage ! ) ;
395
+ return { id : voltage . id , values : controlsVM , title : voltage . text , sections : null } ;
396
+ } ) ;
397
+ //Currents
398
+ let currents = getObjectFromType ( batteryInfo . battery , IAPISensorType . Clock ) as IDeviceBattery [ ] ;
399
+ let currentsVMs = currents . map ( current => {
400
+ let controlsVM = convertArrayToVM ( current . current ! ) ;
401
+ return { id : current . id , values : controlsVM , title : current . text , sections : null } ;
402
+ } ) ;
403
+ //Power
404
+ let powers = getObjectFromType ( batteryInfo . battery , IAPISensorType . Power ) as IDeviceBattery [ ] ;
405
+ let powersVMs = powers . map ( power => {
406
+ let powersVM = convertArrayToVM ( power . power ! ) ;
407
+ return { id : power . id , values : powersVM , title : power . text , sections : null } ;
408
+ } ) ;
409
+ //Level
410
+ let levels = getObjectFromType ( batteryInfo . battery , IAPISensorType . Level ) as IDeviceBattery [ ] ;
411
+ let levelsVMs = levels . map ( level => {
412
+ let levelsVM = convertArrayToVM ( level . level ! ) ;
413
+ return { id : level . id , values : levelsVM , title : level . text , sections : null } ;
414
+ } ) ;
415
+ //Capacities
416
+ let capacities = getObjectFromType ( batteryInfo . battery , IAPISensorType . Capacity ) as IDeviceBattery [ ] ;
417
+ let capacitiesVMs = capacities . map ( capacity => {
418
+ let capacitiesVM = convertArrayToVM ( capacity . capacity ! ) ;
419
+ return { id : capacity . id , values : capacitiesVM , title : capacity . text , sections : null } ;
420
+ } ) ;
421
+ return {
422
+ id : batteryInfo . id ,
423
+ title : `${ IAPIHardwareType . Battery } - ${ batteryInfo . text } ` ,
424
+ sections : [ ...voltagesVMs , ...currentsVMs , ...powersVMs , ...levelsVMs , ...capacitiesVMs ] ,
425
+ values : null ,
426
+ } as ICardViewModel ;
427
+ } ) ;
428
+ let batterySectionViewModelsMapped = batterySectionViewModels . filter ( v => v ) . map ( v => v ! ) ;
429
+
348
430
return [
349
431
...mainboardSectionViewModelsMapped ,
350
432
...computerCpusViewModelsMapped ,
351
433
...ramSectionViewModelsMapped ,
434
+ ...gpuIntelSectionViewModelsMapped ,
352
435
...gpuAtiSectionViewModelsMapped ,
353
436
...gpuNvidiaSectionViewModelsMapped ,
354
437
...computerHddViewModelsMapped ,
355
438
...computerNicViewModelsMapped ,
439
+ ...batterySectionViewModelsMapped ,
356
440
] ;
357
441
} ;
358
442
0 commit comments