add packages

This commit is contained in:
Xuan Sang LE
2018-04-14 15:52:19 +00:00
parent 1d4957b4c5
commit 2d7acf3f35
21 changed files with 1222 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# About
This is an example project, generated by AntOS Development Kit
## Howto
1. Open the project.apj file with AntOSDK (simply double Click on it)
2. Modify the UI in *assets/scheme.html*
3. Modify application code in *coffees/main.coffee*
4. Modify CSS style in *css/main.css*
5. Other files need to be copied: put in to assets
## Set up build target
Click **Menu> Build > Build Option** or simply hit **ALT-Y**
In the build options dialog, add or remove files that need to be
included into the build
Click **Save**
## Build application
* To build: **Menu > Build > Build** or **ALT-C**
* To build and run: **Menu > Build > Build and Run** or **CTRL-R**
* To release: **Menu > Build > Build release** or **ALT-P**

28
About/build/debug/main.js Normal file
View File

@ -0,0 +1,28 @@
(function() {
var About;
About = class About extends this.OS.GUI.BaseApplication {
constructor(args) {
super("About", args);
}
main() {
var me;
me = this;
this.container = this.find("container");
return "os://README.md".asFileHandler().read(function(txt) {
var converter;
converter = new showdown.Converter();
return ($(me.container)).html(converter.makeHtml(txt));
});
}
};
About.singleton = true;
About.dependencies = ["showdown.min"];
this.OS.register("About", About);
}).call(this);

View File

@ -0,0 +1,13 @@
{
"app":"About",
"name":"About",
"description":"AntOS about",
"info":{
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.1-a",
"category":"Other",
"iconclass":"fa fa-question-circle",
"mimes":["none"]
}

View File

@ -0,0 +1,5 @@
<afx-app-window apptitle="__(About AntOS)" width="450" height="500" data-id="About">
<afx-hbox >
<div data-id="container" style="padding:10px;overflow:auto;"></div>
</afx-hbox>
</afx-app-window>