Skip to content

Commit 27f78b1

Browse files
author
Martin
committed
Updated to include Firmware 01.04.XX and improved the loading dynamics for embedded schema files
1 parent 6e3e6cc commit 27f78b1

File tree

5 files changed

+29
-19
lines changed

5 files changed

+29
-19
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ The CANedge config editor is very light and is based on two imported modules:
3535

3636
These sub modules are also used in other projects by CSS Electronics, for example [CANcloud](https://github.com/CSS-Electronics/cancloud).
3737

38+
----
39+
40+
## Updating embedded Rule Schema and UIschema files
41+
If the embedded schema files need to be updated, the process should be as follows:
42+
1. Clone [config-editor-base](https://github.com/CSS-Electronics/config-editor-base)
43+
2. Follow the README in that repo on how to add the new files, then publish a new npm package
44+
3. In this repo, update the `Editor.js` file with the new entries to the UIschema and Rule Schema arrays
45+
4. Build the new config editor

canedge-editor/index.html

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"babel-plugin-transform-object-rest-spread": "^6.26.0",
4343
"bootstrap": "^3.3.6",
4444
"classnames": "^2.2.6",
45-
"config-editor-base": "^1.3.1",
45+
"config-editor-base": "^1.4.3",
4646
"config-editor-tools": "^1.1.0",
4747
"crc": "^3.8.0",
4848
"crypto": "^1.0.1",

src/browser/js/editor/Editor.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ import AlertContainer from "../alert/AlertContainer";
1414

1515
// define editor title and version
1616
const title = TYPE + " config editor"
17-
const version = "v1.3.1"
17+
const version = "v1.4.3"
1818

1919
// define UIschema and Rule Schema names for auto-loading purposes
2020
export const uiSchemaAry = {"CANedge": [
2121
"uischema-01.03.json | Simple",
2222
"uischema-01.03.json | Advanced",
23+
"uischema-01.04.json | Simple",
24+
"uischema-01.04.json | Advanced",
2325
], "CANmod.gps": []}
2426

2527
export const schemaAry = {"CANedge": [
28+
"schema-01.04.json | CANedge2",
29+
"schema-01.04.json | CANedge1",
2630
"schema-01.03.json | CANedge2",
2731
"schema-01.03.json | CANedge1",
28-
"schema-01.02.json | CANedge2",
29-
"schema-01.02.json | CANedge1",
3032
], "CANmod.gps":[]}
3133

3234

0 commit comments

Comments
 (0)