fix: bugs on new GUI API
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good

This commit is contained in:
DanyLE
2023-07-14 12:05:12 +02:00
parent 4d03eff031
commit 3b14ff5b9f
40 changed files with 72 additions and 39 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.2-a: fix ACE bug + use responsive UI
* 0.1.1-a: Minor changes to support mobile devices
* 0.1.0-a: Change package dependencies
* 0.0.7-a: Change icon and category

View File

@ -1,7 +1,7 @@
<afx-app-window apptitle="Lua Playground" width="500" height="400" data-id="Lua Playground">
<afx-vbox >
<afx-app-window apptitle="Lua Playground" width="500" height="400" data-id="Lua Playground" responsive="true">
<afx-tile dir="row" data-id="wrapper" >
<div data-id="editorea"></div>
<afx-resizer data-height="4"></afx-resizer>
<afx-resizer data-height="4" data-width="4" dir="row" data-id="resizer"></afx-resizer>
<afx-vbox>
<div data-height="35" data-id="bottom-vbox">
<afx-button data-id = "log-clear" iconclass="fa fa-trash"></afx-button>
@ -10,5 +10,5 @@
</div>
<div data-id="output"></div>
</afx-vbox>
</afx-vbox>
</afx-tile>
</afx-app-window>

View File

@ -78,16 +78,21 @@
}
]
},
"debug": {
"depend": [
"init",
"coffee",
"cat",
"copy"
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"cat",
"uglify",
"copy"
"debug",
"uglify"
],
"jobs": [
{

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.2-a: fix ACE bug + use responsive UI
* 0.1.1-a: Minor changes to support mobile devices
* 0.1.0-a: Change package dependencies
* 0.0.7-a: Change icon and category

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.1.1-a",
"version":"0.1.2-a",
"category":"Development",
"iconclass":"bi bi-gear-fill",
"dependencies":["ACECore@1.4.12-r"],

View File

@ -1,7 +1,7 @@
<afx-app-window apptitle="Lua Playground" width="500" height="400" data-id="Lua Playground">
<afx-vbox >
<afx-app-window apptitle="Lua Playground" width="500" height="400" data-id="Lua Playground" responsive="true">
<afx-tile dir="row" data-id="wrapper" >
<div data-id="editorea"></div>
<afx-resizer data-height="4"></afx-resizer>
<afx-resizer data-height="4" data-width="4" dir="row" data-id="resizer"></afx-resizer>
<afx-vbox>
<div data-height="35" data-id="bottom-vbox">
<afx-button data-id = "log-clear" iconclass="fa fa-trash"></afx-button>
@ -10,5 +10,5 @@
</div>
<div data-id="output"></div>
</afx-vbox>
</afx-vbox>
</afx-tile>
</afx-app-window>

View File

@ -175,6 +175,16 @@ class LuaPlayground extends this.OS.application.BaseApplication
@socket = null
@bindKey "CTRL-R", () => @run()
@morphon OS.GUI.RESPONSIVE.PORTRAIT, (fulfilled) =>
console.log fulfilled, "FULL"
if fulfilled
this.find("wrapper").dir = "column"
this.find("resizer").dir = "column"
else
this.find("wrapper").dir = "row"
this.find("resizer").dir = "row"
menu: () ->
menu = [{
text: "__(Code)",
@ -233,5 +243,8 @@ class LuaPlayground extends this.OS.application.BaseApplication
LuaPlayground.dependencies = [
"pkg://ACECore/core/ace.js",
"pkg://ACECore/path.js",
"pkg://ACECore/core/ext-language_tools.js",
"pkg://ACECore/core/ext-modelist.js",
"pkg://ACECore/core/ext-themelist.js",
]
this.OS.register "LuaPlayground", LuaPlayground

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.1.1-a",
"version":"0.1.2-a",
"category":"Development",
"iconclass":"bi bi-gear-fill",
"dependencies":["ACECore@1.4.12-r"],