update compatibility to AntOS next

This commit is contained in:
mrsang
2021-04-21 11:37:58 +02:00
parent bc33f7ff10
commit 190c2fd346
1014 changed files with 96281 additions and 2092 deletions

View File

@ -149,7 +149,6 @@ class LuaPlayground extends this.OS.application.BaseApplication
main: () ->
@datarea = @find "editorea"
@output = @find "output"
ace.config.set('basePath', "scripts/ace")
@.editor = ace.edit @datarea
@.editor.setOptions {
enableBasicAutocompletion: true,
@ -231,5 +230,8 @@ class LuaPlayground extends this.OS.application.BaseApplication
cleanup: (e)->
@socket.close() if @socket
LuaPlayground.dependencies = ["os://scripts/ace/ace.js"]
LuaPlayground.dependencies = [
"pkg://ACECore/core/ace.js",
"pkg://ACECore/path.js",
]
this.OS.register "LuaPlayground", LuaPlayground