update LuaPlayground + add Docify

This commit is contained in:
lxsang 2020-11-19 20:07:28 +00:00
parent e3862fb0f5
commit dbe567aad9
20 changed files with 160 additions and 357 deletions

15
Docify/README.md Normal file
View File

@ -0,0 +1,15 @@
# Docify
This is an example project, generated by AntOS Development Kit
## Howto
Use the CodePad command palette to access to the SDK functionalities:
1. Create new project
2. Init the project from the current folder located in side bar
3. Build and run the project
4. Release the project in zip package
## Set up build target
Open the `project.json` file from the current project tree and add/remove
build target entries. Save the file

1
Docify/api/api.lua Normal file
View File

@ -0,0 +1 @@
result("Hello from server side")

22
Docify/assets/scheme.html Normal file
View File

@ -0,0 +1,22 @@
<afx-app-window apptitle="Docify" width="700" height="400" data-id="Docify">
<afx-hbox >
<div data-width="5"></div>
<afx-vbox data-width="150">
<afx-label class="header" iconclass = "fa fa-bars" text="__(Categories)" data-height="22"></afx-label>
<afx-tree-view data-id="catview"></afx-tree-view>
<afx-hbox data-height="30">
<div data-width="5"></div>
<afx-button data-width = "25" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-width = "25" text = "" iconclass = "fa fa-minus-circle"></afx-button>
<afx-button data-width = "25" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
</afx-hbox>
</afx-vbox>
<afx-resizer data-width="4"></afx-resizer>
<afx-vbox data-width = "300">
<afx-grid-view data-id="gridview"></afx-grid-view>
</afx-vbox>
<afx-resizer data-width="4"></afx-resizer>
<afx-vbox></afx-vbox>
</afx-hbox>
</afx-app-window>

View File

@ -0,0 +1,15 @@
# Docify
This is an example project, generated by AntOS Development Kit
## Howto
Use the CodePad command palette to access to the SDK functionalities:
1. Create new project
2. Init the project from the current folder located in side bar
3. Build and run the project
4. Release the project in zip package
## Set up build target
Open the `project.json` file from the current project tree and add/remove
build target entries. Save the file

View File

@ -0,0 +1,5 @@
afx-app-window[data-id = "Docify"] .header .label-text
{
font-weight: bold !important;
}

View File

@ -0,0 +1,15 @@
(function() {
var Docify;
Docify = class Docify extends this.OS.application.BaseApplication {
constructor(args) {
super("Docify", args);
}
main() {}
};
this.OS.register("Docify", Docify);
}).call(this);

View File

@ -0,0 +1,15 @@
{
"pkgname": "Docify",
"app":"Docify",
"name":"Docify",
"description":"Docify",
"info":{
"author": "",
"email": ""
},
"version":"0.0.1-a",
"category":"Other",
"iconclass":"fa fa-adn",
"mimes":["none"],
"locale": {}
}

View File

@ -0,0 +1,22 @@
<afx-app-window apptitle="Docify" width="700" height="400" data-id="Docify">
<afx-hbox >
<div data-width="5"></div>
<afx-vbox data-width="150">
<afx-label class="header" iconclass = "fa fa-bars" text="__(Categories)" data-height="22"></afx-label>
<afx-tree-view data-id="catview"></afx-tree-view>
<afx-hbox data-height="30">
<div data-width="5"></div>
<afx-button data-width = "25" text = "" iconclass = "fa fa-plus-circle"></afx-button>
<afx-button data-width = "25" text = "" iconclass = "fa fa-minus-circle"></afx-button>
<afx-button data-width = "25" text = "" iconclass = "fa fa-pencil-square-o"></afx-button>
</afx-hbox>
</afx-vbox>
<afx-resizer data-width="4"></afx-resizer>
<afx-vbox data-width = "300">
<afx-grid-view data-id="gridview"></afx-grid-view>
</afx-vbox>
<afx-resizer data-width="4"></afx-resizer>
<afx-vbox></afx-vbox>
</afx-hbox>
</afx-app-window>

View File

@ -0,0 +1,7 @@
class Docify extends this.OS.application.BaseApplication
constructor: ( args ) ->
super "Docify", args
main: () ->
this.OS.register "Docify", Docify

4
Docify/css/main.css Normal file
View File

@ -0,0 +1,4 @@
afx-app-window[data-id = "Docify"] .header .label-text
{
font-weight: bold;
}

15
Docify/package.json Normal file
View File

@ -0,0 +1,15 @@
{
"pkgname": "Docify",
"app":"Docify",
"name":"Docify",
"description":"Docify",
"info":{
"author": "",
"email": ""
},
"version":"0.0.1-a",
"category":"Other",
"iconclass":"fa fa-adn",
"mimes":["none"],
"locale": {}
}

8
Docify/project.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "Docify",
"root": "home://workspace/antosdk-apps/Docify",
"css": ["css/main.css"],
"javascripts": [],
"coffees": ["coffees/main.coffee"],
"copies": ["assets/scheme.html", "api/api.lua", "package.json", "README.md"]
}

View File

@ -1,4 +1,8 @@
#LuaPlayground #LuaPlayground
Application for serverside code testing and analytics tool. Application for serverside code testing and analytics tool.
It allows to execute lua code on the server from the browser It allows to execute lua code on the server from the browser
## Change logs
* 0.0.5-a: Fix worker path error

View File

@ -1,4 +1,8 @@
#LuaPlayground #LuaPlayground
Application for serverside code testing and analytics tool. Application for serverside code testing and analytics tool.
It allows to execute lua code on the server from the browser It allows to execute lua code on the server from the browser
## Change logs
* 0.0.5-a: Fix worker path error

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LEs", "author": "Xuan Sang LEs",
"email": "xsang.le@gmail.com" "email": "xsang.le@gmail.com"
}, },
"version":"0.0.4-a", "version":"0.0.5-a",
"category":"System", "category":"System",
"iconclass":"fa fa-adn", "iconclass":"fa fa-adn",
"mimes":["none"] "mimes":["none"]

View File

@ -149,7 +149,7 @@ class LuaPlayground extends this.OS.application.BaseApplication
main: () -> main: () ->
@datarea = @find "editorea" @datarea = @find "editorea"
@output = @find "output" @output = @find "output"
ace.config.set('basePath', '/scripts/ace') ace.config.set('basePath', "#{window.location.pathname}/scripts/ace")
@.editor = ace.edit @datarea @.editor = ace.edit @datarea
@.editor.setOptions { @.editor.setOptions {
enableBasicAutocompletion: true, enableBasicAutocompletion: true,

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LEs", "author": "Xuan Sang LEs",
"email": "xsang.le@gmail.com" "email": "xsang.le@gmail.com"
}, },
"version":"0.0.4-a", "version":"0.0.5-a",
"category":"System", "category":"System",
"iconclass":"fa fa-adn", "iconclass":"fa fa-adn",
"mimes":["none"] "mimes":["none"]

View File

@ -95,7 +95,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/LuaPlayground/README.md", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/LuaPlayground/README.md",
"category": "System", "category": "System",
"author": "Xuan Sang LEs", "author": "Xuan Sang LEs",
"version": "0.0.4-a", "version": "0.0.5-a",
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/LuaPlayground/build/release/LuaPlayground.zip" "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/LuaPlayground/build/release/LuaPlayground.zip"
}, },
{ {