config-editor-base 1.9.0 → 1.9.2
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/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +4 -4
- /package/dist/schema/{CANedge1_gnss → CANedge1 GNSS}/schema-01.07.json +0 -0
- /package/dist/schema/{CANedge2_gnss → CANedge2 GNSS}/schema-01.07.json +0 -0
package/dist/index.modern.js
CHANGED
|
@@ -343,7 +343,24 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
|
|
|
343
343
|
dispatch(resetSchemaFiles());
|
|
344
344
|
|
|
345
345
|
if (selectedConfig) {
|
|
346
|
-
var deviceType =
|
|
346
|
+
var deviceType = "Other";
|
|
347
|
+
|
|
348
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss == undefined) {
|
|
349
|
+
deviceType = "CANedge1";
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss != undefined) {
|
|
353
|
+
deviceType = "CANedge1 GNSS";
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss == undefined) {
|
|
357
|
+
deviceType = "CANedge2";
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss != undefined) {
|
|
361
|
+
deviceType = "CANedge2 GNSS";
|
|
362
|
+
}
|
|
363
|
+
|
|
347
364
|
var schemaAryFiltered = schemaAry.filter(function (e) {
|
|
348
365
|
return e.includes(selectedConfig.substr(7, 5));
|
|
349
366
|
});
|