mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-24 19:28:21 +01:00
update about
This commit is contained in:
parent
8fd278c7f1
commit
0209e7ad8d
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -14,3 +14,8 @@ afx-app-window[data-id = "About"] div[data-id="container"]
|
||||
{
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
afx-app-window[data-id = "About"] img
|
||||
{
|
||||
max-width: 100%;
|
||||
}
|
@ -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);
|
@ -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.
@ -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) ->
|
||||
|
@ -13,3 +13,8 @@ afx-app-window[data-id = "About"] div[data-id="container"]
|
||||
{
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
afx-app-window[data-id = "About"] img
|
||||
{
|
||||
max-width: 100%;
|
||||
}
|
@ -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"],
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user