Update About

This commit is contained in:
DanyLE 2022-07-22 20:42:12 +02:00
parent f38c586c67
commit 9fa5258ff6
11 changed files with 100 additions and 34 deletions

View File

@ -4,6 +4,8 @@ This is an example project, generated by AntOS Development Kit
It is used to show the change logs of the current AntOS version It is used to show the change logs of the current AntOS version
## Change logs ## Change logs
### v0.1.0-b
* Beta state, read README file from the current OS
### v0.0.7-a ### v0.0.7-a
* Change app category to Utility * Change app category to Utility

81
About/build.json Normal file
View File

@ -0,0 +1,81 @@
{
"name": "About",
"targets": {
"init": {
"jobs": [
{
"name": "vfs-mkdir",
"data": [
"build",
"build/debug",
"build/release"
]
}
]
},
"coffee": {
"require": [
"coffee"
],
"jobs": [
{
"name": "coffee-compile",
"data": {
"src": [
"coffees/main.coffee"
],
"dest": "build/debug/main.js"
}
}
]
},
"uglify": {
"require": [
"terser"
],
"jobs": [
{
"name": "terser-uglify",
"data": [
"build/debug/main.js"
]
}
]
},
"copy": {
"jobs": [
{
"name": "vfs-cp",
"data": {
"src": [
"assets/scheme.html",
"package.json",
"README.md"
],
"dest": "build/debug"
}
}
]
},
"release": {
"require": [
"zip"
],
"depend": [
"init",
"coffee",
"uglify",
"copy"
],
"jobs": [
{
"name": "zip-mk",
"data": {
"src": "build/debug",
"dest": "build/release/About.zip"
}
}
]
}
}
}

View File

@ -4,6 +4,8 @@ This is an example project, generated by AntOS Development Kit
It is used to show the change logs of the current AntOS version It is used to show the change logs of the current AntOS version
## Change logs ## Change logs
### v0.1.0-b
* Beta state, read README file from the current OS
### v0.0.7-a ### v0.0.7-a
* Change app category to Utility * Change app category to Utility

View File

@ -1,21 +0,0 @@
afx-app-window[data-id = "About"] a:link,
afx-app-window[data-id = "About"] a:visited,
afx-app-window[data-id = "About"] a:hover
{
color:#df3154;
}
afx-app-window[data-id = "About"] afx-hbox[data-id="wrapper"]
{
overflow-x: hidden;
overflow-y:auto;
}
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 +1 @@
(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); (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="os://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", "author": "Xuan Sang LE",
"email": "xsang.le@gmail.com" "email": "xsang.le@gmail.com"
}, },
"version":"0.0.7-a", "version":"0.1.0-b",
"category":"Utility", "category":"Utility",
"iconclass":"fa fa-question-circle", "iconclass":"fa fa-question-circle",
"mimes":["none"], "mimes":["none"],

Binary file not shown.

View File

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

View File

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

View File

@ -1,8 +0,0 @@
{
"name": "About",
"css": ["css/main.css"],
"javascripts": [],
"ts": [],
"coffees": ["coffees/main.coffee"],
"copies": ["assets/scheme.html", "package.json", "README.md"]
}

View File

@ -5,7 +5,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/About/README.md", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/About/README.md",
"category": "Utility", "category": "Utility",
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"version": "0.0.7-a", "version": "0.1.0-b",
"dependencies": [], "dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/About/build/release/About.zip" "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/About/build/release/About.zip"
}, },
@ -69,6 +69,16 @@
"dependencies": ["Antunnel@0.2.0-b"], "dependencies": ["Antunnel@0.2.0-b"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/AntunnelPlugins/build/release/AntunnelPlugins.zip" "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/AntunnelPlugins/build/release/AntunnelPlugins.zip"
}, },
{
"pkgname": "AntunnelTestClient",
"name": "AntunnelTestClient",
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/AntunnelTestClient/README.md",
"category": "Development",
"author": "Dany LE",
"version": "0.1.0-a",
"dependencies": ["Antunnel@0.2.1-b"],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/AntunnelTestClient/build/release/AntunnelTestClient.zip"
},
{ {
"pkgname": "Archive", "pkgname": "Archive",
"name": "Archive", "name": "Archive",