Skip to content

Commit c7b9b9b

Browse files
committed
Bump 2.3.0
1 parent 0f27110 commit c7b9b9b

29 files changed

+307
-297
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.log
22
*.key
3+
*.keystore
34
.DS_Store
45
build.json
56
platforms

config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<widget android-versionCode="22000" id="com.ecarriou.systemdesignerios" version="2.2.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
2+
<widget android-versionCode="23000" id="com.ecarriou.systemdesignerios" version="2.3.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
33
<name>System Designer</name>
44
<description>
55
System Designer, an IDE for designing systems.
@@ -37,8 +37,8 @@
3737
</platform>
3838
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
3939
<plugin name="cordova-plugin-wkwebview-engine" spec="^1.1.4" />
40-
<plugin name="cordova-plugin-inappbrowser" spec="^2.0.1" />
4140
<plugin name="cordova-plugin-statusbar" spec="^2.4.1" />
41+
<plugin name="cordova-plugin-inappbrowser" spec="^2.0.2" />
4242
<engine name="browser" spec="^5.0.1" />
4343
<engine name="android" spec="^7.0.0" />
4444
<engine name="ios" spec="^4.5.4" />

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.ecarriou.systemdesignerios",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"displayName": "System Designer",
55
"cordova": {
66
"platforms": [
@@ -11,15 +11,15 @@
1111
"plugins": {
1212
"cordova-plugin-whitelist": {},
1313
"cordova-plugin-wkwebview-engine": {},
14-
"cordova-plugin-inappbrowser": {},
15-
"cordova-plugin-statusbar": {}
14+
"cordova-plugin-statusbar": {},
15+
"cordova-plugin-inappbrowser": {}
1616
}
1717
},
1818
"dependencies": {
1919
"cordova-android": "^7.0.0",
2020
"cordova-browser": "^5.0.1",
2121
"cordova-ios": "^4.5.4",
22-
"cordova-plugin-inappbrowser": "^2.0.1",
22+
"cordova-plugin-inappbrowser": "^2.0.2",
2323
"cordova-plugin-statusbar": "^2.4.1",
2424
"cordova-plugin-whitelist": "^1.3.3",
2525
"cordova-plugin-wkwebview-engine": "^1.1.4"

plugins/android.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"cordova-plugin-wkwebview-engine": {
1414
"PACKAGE_NAME": "com.ecarriou.systemdesignerios"
1515
},
16-
"cordova-plugin-inappbrowser": {
16+
"cordova-plugin-statusbar": {
1717
"PACKAGE_NAME": "com.ecarriou.systemdesignerios"
1818
},
19-
"cordova-plugin-statusbar": {
19+
"cordova-plugin-inappbrowser": {
2020
"PACKAGE_NAME": "com.ecarriou.systemdesignerios"
2121
}
2222
},

plugins/browser.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"cordova-plugin-wkwebview-engine": {
1414
"PACKAGE_NAME": "io.cordova.hellocordova"
1515
},
16-
"cordova-plugin-inappbrowser": {
16+
"cordova-plugin-statusbar": {
1717
"PACKAGE_NAME": "io.cordova.hellocordova"
1818
},
19-
"cordova-plugin-statusbar": {
19+
"cordova-plugin-inappbrowser": {
2020
"PACKAGE_NAME": "io.cordova.hellocordova"
2121
}
2222
},

plugins/fetch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
"is_top_level": true,
1616
"variables": {}
1717
},
18-
"cordova-plugin-inappbrowser": {
18+
"cordova-plugin-statusbar": {
1919
"source": {
2020
"type": "registry",
21-
"id": "cordova-plugin-inappbrowser@latest"
21+
"id": "cordova-plugin-statusbar@latest"
2222
},
2323
"is_top_level": true,
2424
"variables": {}
2525
},
26-
"cordova-plugin-statusbar": {
26+
"cordova-plugin-inappbrowser": {
2727
"source": {
2828
"type": "registry",
29-
"id": "cordova-plugin-statusbar@latest"
29+
"id": "cordova-plugin-inappbrowser@latest"
3030
},
3131
"is_top_level": true,
3232
"variables": {}

plugins/ios.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"cordova-plugin-wkwebview-engine": {
1414
"PACKAGE_NAME": "com.ecarriou.systemdesignerios"
1515
},
16-
"cordova-plugin-inappbrowser": {
16+
"cordova-plugin-statusbar": {
1717
"PACKAGE_NAME": "com.ecarriou.systemdesignerios"
1818
},
19-
"cordova-plugin-statusbar": {
19+
"cordova-plugin-inappbrowser": {
2020
"PACKAGE_NAME": "com.ecarriou.systemdesignerios"
2121
}
2222
},

www/lib/codemirror/addon/edit/closebrackets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129
else
130130
curType = "skip";
131131
} else if (identical && cur.ch > 1 && triples.indexOf(ch) >= 0 &&
132-
cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch &&
133-
(cur.ch <= 2 || cm.getRange(Pos(cur.line, cur.ch - 3), Pos(cur.line, cur.ch - 2)) != ch)) {
132+
cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch) {
133+
if (cur.ch > 2 && /\bstring/.test(cm.getTokenTypeAt(Pos(cur.line, cur.ch - 2)))) return CodeMirror.Pass;
134134
curType = "addFour";
135135
} else if (identical) {
136136
var prev = cur.ch == 0 ? " " : cm.getRange(Pos(cur.line, cur.ch - 1), cur)

www/lib/codemirror/lib/codemirror.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6585,11 +6585,11 @@ function onResize(cm) {
65856585
}
65866586

65876587
var keyNames = {
6588-
3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
6588+
3: "Pause", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
65896589
19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",
65906590
36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",
65916591
46: "Delete", 59: ";", 61: "=", 91: "Mod", 92: "Mod", 93: "Mod",
6592-
106: "*", 107: "=", 109: "-", 110: ".", 111: "/", 127: "Delete",
6592+
106: "*", 107: "=", 109: "-", 110: ".", 111: "/", 127: "Delete", 145: "ScrollLock",
65936593
173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",
65946594
221: "]", 222: "'", 63232: "Up", 63233: "Down", 63234: "Left", 63235: "Right", 63272: "Delete",
65956595
63273: "Home", 63275: "End", 63276: "PageUp", 63277: "PageDown", 63302: "Insert"
@@ -6736,6 +6736,9 @@ function keyName(event, noShift) {
67366736
if (presto && event.keyCode == 34 && event["char"]) { return false }
67376737
var name = keyNames[event.keyCode];
67386738
if (name == null || event.altGraphKey) { return false }
6739+
// Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,
6740+
// so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)
6741+
if (event.keyCode == 3 && event.code) { name = event.code; }
67396742
return addModifierNames(name, event, noShift)
67406743
}
67416744

@@ -8025,7 +8028,7 @@ function applyTextInput(cm, inserted, deleted, sel, origin) {
80258028

80268029
var paste = cm.state.pasteIncoming || origin == "paste";
80278030
var textLines = splitLinesAuto(inserted), multiPaste = null;
8028-
// When pasing N lines into N selections, insert one line per selection
8031+
// When pasting N lines into N selections, insert one line per selection
80298032
if (paste && sel.ranges.length > 1) {
80308033
if (lastCopied && lastCopied.text.join("\n") == inserted) {
80318034
if (sel.ranges.length % lastCopied.text.length == 0) {
@@ -9659,7 +9662,7 @@ CodeMirror$1.fromTextArea = fromTextArea;
96599662

96609663
addLegacyProps(CodeMirror$1);
96619664

9662-
CodeMirror$1.version = "5.33.0";
9665+
CodeMirror$1.version = "5.34.0";
96639666

96649667
return CodeMirror$1;
96659668

www/lib/codemirror/mode/javascript/javascript.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,15 +345,14 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
345345
if (type == "for") return cont(pushlex("form"), forspec, statement, poplex);
346346
if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), className, poplex); }
347347
if (type == "variable") {
348-
if (isTS && value == "type") {
349-
cx.marked = "keyword"
350-
return cont(typeexpr, expect("operator"), typeexpr, expect(";"));
351-
} else if (isTS && value == "declare") {
348+
if (isTS && value == "declare") {
352349
cx.marked = "keyword"
353350
return cont(statement)
354-
} else if (isTS && (value == "module" || value == "enum") && cx.stream.match(/^\s*\w/, false)) {
351+
} else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
355352
cx.marked = "keyword"
356-
return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
353+
if (value == "enum") return cont(enumdef);
354+
else if (value == "type") return cont(typeexpr, expect("operator"), typeexpr, expect(";"));
355+
else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
357356
} else if (isTS && value == "namespace") {
358357
cx.marked = "keyword"
359358
return cont(pushlex("form"), expression, block, poplex)
@@ -608,7 +607,8 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
608607
function maybeTypeDefault(_, value) {
609608
if (value == "=") return cont(typeexpr)
610609
}
611-
function vardef() {
610+
function vardef(_, value) {
611+
if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
612612
return pass(pattern, maybetype, maybeAssign, vardefCont);
613613
}
614614
function pattern(type, value) {
@@ -680,8 +680,10 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
680680
}
681681
function classNameAfter(type, value) {
682682
if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
683-
if (value == "extends" || value == "implements" || (isTS && type == ","))
683+
if (value == "extends" || value == "implements" || (isTS && type == ",")) {
684+
if (value == "implements") cx.marked = "keyword";
684685
return cont(isTS ? typeexpr : expression, classNameAfter);
686+
}
685687
if (type == "{") return cont(pushlex("}"), classBody, poplex);
686688
}
687689
function classBody(type, value) {
@@ -745,6 +747,12 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
745747
if (type == "]") return cont();
746748
return pass(commasep(expressionNoComma, "]"));
747749
}
750+
function enumdef() {
751+
return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
752+
}
753+
function enummember() {
754+
return pass(pattern, maybeAssign);
755+
}
748756

749757
function isContinuedStatement(state, textAfter) {
750758
return state.lastType == "operator" || state.lastType == "," ||

0 commit comments

Comments
 (0)