mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-08 06:28:29 +01:00
update
This commit is contained in:
parent
2d7acf3f35
commit
10a0225fbf
@ -1,7 +1,10 @@
|
|||||||
<afx-app-window apptitle="Lua Playground" width="500" height="450" data-id="LuaPlayground">
|
<afx-app-window apptitle="Lua Playground" width="500" height="450" data-id="LuaPlayground">
|
||||||
<afx-vbox >
|
<afx-vbox >
|
||||||
<div data-id="editorea"></div>
|
<div data-id="editorea"></div>
|
||||||
<afx-resizer data-height="5"></afx-resizer>
|
<afx-resizer data-height="1"></afx-resizer>
|
||||||
|
<afx-hbox data-height="20" data-id="bottom-vbox">
|
||||||
|
<afx-button data-id = "log-clear" data-width="25" iconclass="fa fa-trash"></afx-button>
|
||||||
|
</afx-hbox>
|
||||||
<div data-id="output"></div>
|
<div data-id="output"></div>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
</afx-app-window>
|
</afx-app-window>
|
@ -17,3 +17,12 @@ afx-app-window[data-id="LuaPlayground"] afx-resizer{
|
|||||||
background-color: #2f3129;
|
background-color: #2f3129;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
|
afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] {
|
||||||
|
background-color:#2f3129;
|
||||||
|
}
|
||||||
|
afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] afx-button button{
|
||||||
|
background-color:#2f3129;
|
||||||
|
color:white;
|
||||||
|
border:0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
@ -23,7 +23,13 @@
|
|||||||
this.on("vboxchange", function() {
|
this.on("vboxchange", function() {
|
||||||
return me.editor.resize();
|
return me.editor.resize();
|
||||||
});
|
});
|
||||||
return this.socket = null;
|
(this.find("log-clear")).set("onbtclick", function(e) {
|
||||||
|
return me.log("clean");
|
||||||
|
});
|
||||||
|
this.socket = null;
|
||||||
|
return this.bindKey("CTRL-R", function() {
|
||||||
|
return me.run();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menu() {
|
menu() {
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
<afx-app-window apptitle="Lua Playground" width="500" height="450" data-id="LuaPlayground">
|
<afx-app-window apptitle="Lua Playground" width="500" height="450" data-id="LuaPlayground">
|
||||||
<afx-vbox >
|
<afx-vbox >
|
||||||
<div data-id="editorea"></div>
|
<div data-id="editorea"></div>
|
||||||
<afx-resizer data-height="5"></afx-resizer>
|
<afx-resizer data-height="1"></afx-resizer>
|
||||||
|
<afx-hbox data-height="20" data-id="bottom-vbox">
|
||||||
|
<afx-button data-id = "log-clear" data-width="25" iconclass="fa fa-trash"></afx-button>
|
||||||
|
</afx-hbox>
|
||||||
<div data-id="output"></div>
|
<div data-id="output"></div>
|
||||||
</afx-vbox>
|
</afx-vbox>
|
||||||
</afx-app-window>
|
</afx-app-window>
|
@ -17,9 +17,10 @@ class LuaPlayground extends this.OS.GUI.BaseApplication
|
|||||||
@editor.setTheme "ace/theme/monokai"
|
@editor.setTheme "ace/theme/monokai"
|
||||||
@on "vboxchange", () ->
|
@on "vboxchange", () ->
|
||||||
me.editor.resize()
|
me.editor.resize()
|
||||||
|
(@find "log-clear").set "onbtclick", (e) ->
|
||||||
|
me.log "clean"
|
||||||
@socket = null
|
@socket = null
|
||||||
|
@bindKey "CTRL-R", () -> me.run()
|
||||||
menu: () ->
|
menu: () ->
|
||||||
me = @
|
me = @
|
||||||
menu = [{
|
menu = [{
|
||||||
|
@ -16,3 +16,12 @@ afx-app-window[data-id="LuaPlayground"] afx-resizer{
|
|||||||
background-color: #2f3129;
|
background-color: #2f3129;
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
}
|
}
|
||||||
|
afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] {
|
||||||
|
background-color:#2f3129;
|
||||||
|
}
|
||||||
|
afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] afx-button button{
|
||||||
|
background-color:#2f3129;
|
||||||
|
color:white;
|
||||||
|
border:0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
{"name":"LuaPlayground","root":"home://antosdk-apps/LuaPlayground","css":["css/main.css"],"javascripts":[],"coffees":["coffees/main.coffee"],"copies":["assets/scheme.html","package.json","README.md"]}
|
{"name":"LuaPlayground","root":"home://workspace/LuaPlayground","css":["css/main.css"],"javascripts":[],"coffees":["coffees/main.coffee"],"copies":["assets/scheme.html","package.json","README.md"]}
|
Loading…
Reference in New Issue
Block a user