mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-08 14:38:28 +01:00
29 lines
582 B
JavaScript
29 lines
582 B
JavaScript
|
(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);
|