config-editor-base 1.9.0 → 1.9.1
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.js
CHANGED
|
@@ -346,7 +346,24 @@ var publicSchemaFiles = function publicSchemaFiles(selectedConfig, schemaAry, co
|
|
|
346
346
|
dispatch(resetSchemaFiles());
|
|
347
347
|
|
|
348
348
|
if (selectedConfig) {
|
|
349
|
-
var deviceType =
|
|
349
|
+
var deviceType = "Other";
|
|
350
|
+
|
|
351
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss == undefined) {
|
|
352
|
+
deviceType = "CANedge1";
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect == undefined && contentJSON.gnss != undefined) {
|
|
356
|
+
deviceType = "CANedge1 GNSS";
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss == undefined) {
|
|
360
|
+
deviceType = "CANedge2";
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (contentJSON.can_2 != undefined && contentJSON.connect != undefined && contentJSON.gnss != undefined) {
|
|
364
|
+
deviceType = "CANedge2 GNSS";
|
|
365
|
+
}
|
|
366
|
+
|
|
350
367
|
var schemaAryFiltered = schemaAry.filter(function (e) {
|
|
351
368
|
return e.includes(selectedConfig.substr(7, 5));
|
|
352
369
|
});
|