move some optional packages to new repository

This commit is contained in:
Xuan Sang LE
2020-05-20 23:13:28 +02:00
parent 36d1797c24
commit 5cabfc4569
159 changed files with 52544 additions and 58 deletions

View File

@ -1,24 +1,4 @@
# 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**
It is used to show the change logs of the current AntOS version

View File

@ -1,4 +1,5 @@
(function() {
void 0;
var About;
About = class About extends this.OS.GUI.BaseApplication {
@ -7,13 +8,19 @@
}
main() {
var me;
var me, path;
me = this;
this.container = this.find("container");
return "os://README.md".asFileHandler().read(function(txt) {
path = "os://README.md";
path.asFileHandle().read().then(function(txt) {
var converter;
converter = new showdown.Converter();
return ($(me.container)).html(converter.makeHtml(txt));
}).catch(() => {
return this.notify(__("Unable to read: {0}", path));
});
return this.find("btnclose").set("onbtclick", () => {
return this.quit();
});
}
@ -21,7 +28,7 @@
About.singleton = true;
About.dependencies = ["showdown.min"];
About.dependencies = ["os://scripts/showdown.min.js"];
this.OS.register("About", About);

View File

@ -1,6 +1,6 @@
{
"app":"About",
"name":"About",
"name":"__(About AntOS)",
"description":"AntOS about",
"info":{
"author": "Xuan Sang LE",
@ -9,5 +9,11 @@
"version":"0.0.1-a",
"category":"Other",
"iconclass":"fa fa-question-circle",
"mimes":["none"]
"mimes":["none"],
"locales": {
"fr_FR": {
"Unable to read: {0}": "Impossible de lire: {0}",
"About AntOS": "A propos d'AntOS"
}
}
}

View File

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