update about

This commit is contained in:
mrsang 2021-03-25 23:30:48 +01:00
parent 8fd278c7f1
commit 0209e7ad8d
11 changed files with 21 additions and 38 deletions

View File

@ -5,6 +5,9 @@ It is used to show the change logs of the current AntOS version
## Change logs
### v0.0.6-a
* Use README page available on github
### v0.0.5-a
* Fix cotent padding is not correct on some browsers

View File

@ -5,6 +5,9 @@ It is used to show the change logs of the current AntOS version
## Change logs
### v0.0.6-a
* Use README page available on github
### v0.0.5-a
* Fix cotent padding is not correct on some browsers

View File

@ -13,4 +13,9 @@ afx-app-window[data-id = "About"] afx-hbox[data-id="wrapper"]
afx-app-window[data-id = "About"] div[data-id="container"]
{
text-align: justify;
}
afx-app-window[data-id = "About"] img
{
max-width: 100%;
}

View File

@ -1,34 +1 @@
(function() {
var About;
About = class About extends this.OS.application.BaseApplication {
constructor(args) {
super("About", args);
}
main() {
var me, path;
me = this;
this.container = this.find("container");
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").onbtclick = () => {
return this.quit();
};
}
};
About.singleton = true;
About.dependencies = ["os://scripts/showdown.min.js"];
this.OS.register("About", About);
}).call(this);
(function(){var t;(t=class extends this.OS.application.BaseApplication{constructor(t){super("About",t)}main(){var t,n;return t=this,this.container=this.find("container"),(n="https://raw.githubusercontent.com/lxsang/antos/master/README.md").asFileHandle().read().then((function(n){var i;return i=new showdown.Converter,$(t.container).html(i.makeHtml(n))})).catch(()=>this.notify(__("Unable to read: {0}",n))),this.find("btnclose").onbtclick=()=>this.quit()}}).singleton=!0,t.dependencies=["os://scripts/showdown.min.js"],this.OS.register("About",t)}).call(this);

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.5-a",
"version":"0.0.6-a",
"category":"Other",
"iconclass":"fa fa-question-circle",
"mimes":["none"],

Binary file not shown.

View File

@ -5,7 +5,7 @@ class About extends this.OS.application.BaseApplication
main: () ->
me = @
@container = @find "container"
path = "os://README.md"
path = "https://raw.githubusercontent.com/lxsang/antos/master/README.md"
path.asFileHandle()
.read()
.then (txt) ->

View File

@ -12,4 +12,9 @@ afx-app-window[data-id = "About"] afx-hbox[data-id="wrapper"]
afx-app-window[data-id = "About"] div[data-id="container"]
{
text-align: justify;
}
afx-app-window[data-id = "About"] img
{
max-width: 100%;
}

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.5-a",
"version":"0.0.6-a",
"category":"Other",
"iconclass":"fa fa-question-circle",
"mimes":["none"],

View File

@ -5,7 +5,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/About/README.md",
"category": "Other",
"author": "Xuan Sang LE",
"version": "0.0.5-a",
"version": "0.0.6-a",
"dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/About/build/release/About.zip"
},