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

@ -5,6 +5,7 @@ Application for serverside code testing and analytics tool.
It allows to execute lua code on the server from the browser
## Change logs
* 0.1.0-a: Change package dependencies
* 0.0.7-a: Change icon and category
* 0.0.6-a: Fix ace path error
* 0.0.5-a: Fix worker path error

103
LuaPlayground/build.json Normal file
View File

@ -0,0 +1,103 @@
{
"name": "LuaPlayground",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"coffees/main.coffee"
],
"dest": "build/debug/coffee-main.js"
}
}
]
},
"cat": {
"jobs": [
{
"name": "vfs-cat",
"data": {
"src": [
"build/debug/coffee-main.js",
"javascripts/paper-core.min.js"
],
"dest": "build/debug/main.js"
}
},
{
"name": "vfs-rm",
"data": [
"build/debug/coffee-main.js"
]
}
]
},
"uglify": {
"require": [
"terser"
],
"jobs": [
{
"name": "terser-uglify",
"data": [
"build/debug/main.js"
]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"css/main.css",
"assets/scheme.html",
"package.json",
"README.md"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"cat",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/LuaPlayground.zip"
}
}
]
}
}
}

View File

@ -5,6 +5,7 @@ Application for serverside code testing and analytics tool.
It allows to execute lua code on the server from the browser
## Change logs
* 0.1.0-a: Change package dependencies
* 0.0.7-a: Change icon and category
* 0.0.6-a: Fix ace path error
* 0.0.5-a: Fix worker path error

View File

@ -1,4 +1,3 @@
afx-app-window[data-id="LuaPlayground"] div[data-id="output"] p{
margin:0;
padding:0;

File diff suppressed because one or more lines are too long

View File

@ -3,11 +3,12 @@
"name":"LuaPlayground",
"description":"Module testing and analytics tool",
"info":{
"author": "Xuan Sang LEs",
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.8-a",
"version":"0.1.0-a",
"category":"Development",
"iconclass":"bi bi-gear-fill",
"dependencies":["ACECore@1.4.12-r"],
"mimes":["none"]
}

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

View File

@ -6,8 +6,9 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.8-a",
"version":"0.1.0-a",
"category":"Development",
"iconclass":"bi bi-gear-fill",
"dependencies":["ACECore@1.4.12-r"],
"mimes":["none"]
}