Update ACE Editor to version 1.2.0

Previously, we were at an ACE editor published between 1.1.8 and 1.1.9. This caused multiple issues and was especially a problem for the upcoming pair programming feature. Further, updating ace is a long-time priority, see https://github.com/openHPI/codeocean/issues/250.

Now, we are not yet updating to the latest version, but rather to the next minor version. This already contains breaking changes, and we are currently interested to keep the number of changes as low as possible. Further updating ACE might be still a future task.

The new ACE version 1.2.0 is taken from this tag: https://github.com/ajaxorg/ace-builds/releases/tag/v1.2.0.
We are using the src build (not minified, not in the noconflict version), since the same was used before as well.

Further, we need to change our migration for storing editor events. Since the table is not yet used (in production), we also update the enum.
This commit is contained in:
Sebastian Serth
2023-09-12 15:09:49 +02:00
parent a7fa9b5b04
commit 735a74901f
325 changed files with 232338 additions and 1057 deletions

91
vendor/assets/javascripts/ace/snippets/dart.js vendored Executable file → Normal file
View File

@ -1 +1,90 @@
define("ace/snippets/dart",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="snippet lib\n library ${1};\n ${2}\nsnippet im\n import '${1}';\n ${2}\nsnippet pa\n part '${1}';\n ${2}\nsnippet pao\n part of ${1};\n ${2}\nsnippet main\n void main() {\n ${1:/* code */}\n }\nsnippet st\n static ${1}\nsnippet fi\n final ${1}\nsnippet re\n return ${1}\nsnippet br\n break;\nsnippet th\n throw ${1}\nsnippet cl\n class ${1:`Filename(\"\", \"untitled\")`} ${2}\nsnippet imp\n implements ${1}\nsnippet ext\n extends ${1}\nsnippet if\n if (${1:true}) {\n ${2}\n }\nsnippet ife\n if (${1:true}) {\n ${2}\n } else {\n ${3}\n }\nsnippet el\n else\nsnippet sw\n switch (${1}) {\n ${2}\n }\nsnippet cs\n case ${1}:\n ${2}\nsnippet de\n default:\n ${1}\nsnippet for\n for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n ${4:$1[$2]}\n }\nsnippet fore\n for (final ${2:item} in ${1:itemList}) {\n ${3:/* code */}\n }\nsnippet wh\n while (${1:/* condition */}) {\n ${2:/* code */}\n }\nsnippet dowh\n do {\n ${2:/* code */}\n } while (${1:/* condition */});\nsnippet as\n assert(${1:/* condition */});\nsnippet try\n try {\n ${2}\n } catch (${1:Exception e}) {\n }\nsnippet tryf\n try {\n ${2}\n } catch (${1:Exception e}) {\n } finally {\n }\n",t.scope="dart"})
define("ace/snippets/dart",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "snippet lib\n\
library ${1};\n\
${2}\n\
snippet im\n\
import '${1}';\n\
${2}\n\
snippet pa\n\
part '${1}';\n\
${2}\n\
snippet pao\n\
part of ${1};\n\
${2}\n\
snippet main\n\
void main() {\n\
${1:/* code */}\n\
}\n\
snippet st\n\
static ${1}\n\
snippet fi\n\
final ${1}\n\
snippet re\n\
return ${1}\n\
snippet br\n\
break;\n\
snippet th\n\
throw ${1}\n\
snippet cl\n\
class ${1:`Filename(\"\", \"untitled\")`} ${2}\n\
snippet imp\n\
implements ${1}\n\
snippet ext\n\
extends ${1}\n\
snippet if\n\
if (${1:true}) {\n\
${2}\n\
}\n\
snippet ife\n\
if (${1:true}) {\n\
${2}\n\
} else {\n\
${3}\n\
}\n\
snippet el\n\
else\n\
snippet sw\n\
switch (${1}) {\n\
${2}\n\
}\n\
snippet cs\n\
case ${1}:\n\
${2}\n\
snippet de\n\
default:\n\
${1}\n\
snippet for\n\
for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) {\n\
${4:$1[$2]}\n\
}\n\
snippet fore\n\
for (final ${2:item} in ${1:itemList}) {\n\
${3:/* code */}\n\
}\n\
snippet wh\n\
while (${1:/* condition */}) {\n\
${2:/* code */}\n\
}\n\
snippet dowh\n\
do {\n\
${2:/* code */}\n\
} while (${1:/* condition */});\n\
snippet as\n\
assert(${1:/* condition */});\n\
snippet try\n\
try {\n\
${2}\n\
} catch (${1:Exception e}) {\n\
}\n\
snippet tryf\n\
try {\n\
${2}\n\
} catch (${1:Exception e}) {\n\
} finally {\n\
}\n\
";
exports.scope = "dart";
});