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 @@ the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.6-b: Fix resizer bug on new UI API
- 0.2.5-b: Fix setting bug with new AntOS setting API
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes

View File

@ -35,7 +35,7 @@
<div data-id="right-editorarea"></div>
</afx-vbox>
</afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-resizer data-height = "3" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>

View File

@ -5,6 +5,7 @@ the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.6-b: Fix resizer bug on new UI API
- 0.2.5-b: Fix setting bug with new AntOS setting API
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE",
"email": "mrsang@iohub.dev"
},
"version": "0.2.5-b",
"version": "0.2.6-b",
"category": "Development",
"iconclass": "bi bi-journal-code",
"mimes": [

View File

@ -35,7 +35,7 @@
<div data-id="right-editorarea"></div>
</afx-vbox>
</afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-resizer data-height = "3" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>

Binary file not shown.

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE",
"email": "mrsang@iohub.dev"
},
"version": "0.2.5-b",
"version": "0.2.6-b",
"category": "Development",
"iconclass": "bi bi-journal-code",
"mimes": [

View File

@ -3,6 +3,7 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor.
## Change logs
- v0.1.8-a: fix resizer bug on new UI API
- v0.1.7-a: fix setting bug using new AntOS setting API
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

View File

@ -19,7 +19,7 @@
<div data-id="right-editorarea"></div>
</afx-vbox>
</afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-resizer data-height = "3" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>

View File

@ -3,6 +3,7 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor.
## Change logs
- v0.1.8-a: fix resizer bug on new UI API
- v0.1.7-a: fix setting bug using new AntOS setting API
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

View File

@ -8,7 +8,7 @@
"email": "xsang.le@gmail.com",
"licences": "GPLv3"
},
"version":"0.1.7-b",
"version":"0.1.8-b",
"category":"Development",
"iconclass":"fa fa-pencil-square-o",
"dependencies": ["ACECore@1.4.12-r"],

View File

@ -19,7 +19,7 @@
<div data-id="right-editorarea"></div>
</afx-vbox>
</afx-hbox>
<afx-resizer data-height = "3" dir = "ve" attachnext = "true" ></afx-resizer>
<afx-resizer data-height = "3" attachnext = "true" ></afx-resizer>
<afx-tab-container data-id = "bottombar" data-height="150" min-height="150" tabbarheight= "35">
<afx-hbox tabname="__(Output)" iconclass = "fa fa-file-text" class = "bottom-tab-content">
<afx-button text = "" data-id="logger-clear" iconclass="fa fa-trash" data-width="21"></afx-button>

Binary file not shown.

View File

@ -8,7 +8,7 @@
"email": "xsang.le@gmail.com",
"licences": "GPLv3"
},
"version":"0.1.7-b",
"version":"0.1.8-b",
"category":"Development",
"iconclass":"fa fa-pencil-square-o",
"dependencies": ["ACECore@1.4.12-r"],

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"],

View File

@ -1,6 +1,6 @@
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500" responsive="true">
<afx-vbox>
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "100" tabbarheight = "40">
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "200" tabbarheight = "40">
<afx-hbox tabname="Widgets">
<afx-vbox data-width="150">
@ -19,7 +19,7 @@
</afx-hbox>
<afx-resizer data-height="5" ></afx-resizer>
<afx-hbox>
<afx-list-view data-id="list" dropdown="false" multiselect="true" dir="horizontal" ></afx-list-view>
<afx-list-view data-id="list" dropdown="false" multiselect="true" dir="row" ></afx-list-view>
</afx-hbox>
<afx-hbox data-height="150">
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
"email": "xsang.le@gmail.com",
"licences": "GPLv3"
},
"version":"0.0.7-a",
"version":"0.0.8-a",
"category":"Utility",
"mimes":["none"],
"iconclass": "fa fa-delicious",

View File

@ -1,6 +1,6 @@
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500">
<afx-app-window data-id="example-show-case" apptitle="AntOS GUI widgets" width="650" height="500" responsive="true">
<afx-vbox>
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "100" tabbarheight = "40">
<afx-tab-container data-id="tabctn" dir = "column" tabbarwidth= "200" tabbarheight = "40">
<afx-hbox tabname="Widgets">
<afx-vbox data-width="150">
@ -19,7 +19,7 @@
</afx-hbox>
<afx-resizer data-height="5" ></afx-resizer>
<afx-hbox>
<afx-list-view data-id="list" dropdown="false" multiselect="true" dir="horizontal" ></afx-list-view>
<afx-list-view data-id="list" dropdown="false" multiselect="true" dir="row" ></afx-list-view>
</afx-hbox>
<afx-hbox data-height="150">
<afx-grid-view data-id="grid" multiselect="false" ></afx-grid-view>

Binary file not shown.

View File

@ -143,6 +143,12 @@ class ShowCase extends this.OS.application.BaseApplication
{ text: "Multi-input dialog", id: "minputs" },
{ text: "Multi key value dialog", id: "mkv" }
]
@morphon Ant.OS.GUI.RESPONSIVE.MEDIUM, (fulfilled) =>
if fulfilled
this.find("tabctn").dir = "row"
else
this.find("tabctn").dir = "column"
btrun.onbtclick = (e) =>
item = dllist.selectedItem

View File

@ -7,7 +7,7 @@
"email": "xsang.le@gmail.com",
"licences": "GPLv3"
},
"version":"0.0.7-a",
"version":"0.0.8-a",
"category":"Utility",
"mimes":["none"],
"iconclass": "fa fa-delicious",

View File

@ -45,7 +45,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Antedit/README.md",
"category": "Development",
"author": "Xuan Sang LE",
"version": "0.2.5-b",
"version": "0.2.6-b",
"dependencies": ["MonacoCore@0.33.0-r"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Antedit/build/release/Antedit.zip"
},
@ -125,7 +125,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/CodePad/README.md",
"category": "Development",
"author": "Xuan Sang LE",
"version": "0.1.7-b",
"version": "0.1.8-b",
"dependencies": ["ACECore@1.4.12-r"],"mimes":["text/.*","[^/]*/json.*","[^/]*/.*ml","[^/]*/javascript","dir"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/CodePad/build/release/CodePad.zip"
},
@ -305,7 +305,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/LuaPlayground/README.md",
"category": "Development",
"author": "Xuan Sang LE",
"version": "0.1.1-a",
"version": "0.1.2-a",
"dependencies": ["ACECore@1.4.12-r"],"mimes":["none"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/LuaPlayground/build/release/LuaPlayground.zip"
},
@ -405,7 +405,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/ShowCase/README.md",
"category": "Utility",
"author": "Xuan Sang LE",
"version": "0.0.7-a",
"version": "0.0.8-a",
"dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/ShowCase/build/release/ShowCase.zip"
},

View File

@ -5,6 +5,7 @@ the editor that powers VS Code.
The editor functionality can be extended by its extension mechanism.
Extension can be developed/released/isntalled by the editor itself.
### Change logs
- 0.2.6-b: Fix resizer bug on new UI API
- 0.2.5-b: Fix setting bug with new AntOS setting API
- 0.2.3-b: Minor changes to adapt the core UI to the new AntOS 2.0.x
- 0.2.3-b: Allow reload current file via context menu in case of external changes

Binary file not shown.

View File

@ -3,6 +3,7 @@ A simple yet powerful code/text editor.
CodePad is a text editor based on the ACE editor.
## Change logs
- v0.1.8-a: fix resizer bug on new UI API
- v0.1.7-a: fix setting bug using new AntOS setting API
- v0.1.6-a: adapt to new AntOS v2.0.x
- v0.1.5-a: CodePad moved out of AntOS based system as regular AntOS package

Binary file not shown.

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

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long