add more test, convert CodePad to type scipt

This commit is contained in:
Xuan Sang LE
2020-06-03 23:43:08 +02:00
parent af496b0aac
commit 6e95994892
36 changed files with 2818 additions and 1471 deletions

View File

@ -0,0 +1,17 @@
{
"root": "{1}",
"javascripts": [],
"coffees": ["{0}.coffee"],
"copies": [],
"meta": {
"name": "{0}",
"text": "{0}",
"version": "0.0.1-a",
"actions" : [
{
"text": "__(Example action)",
"name": "test"
}
]
}
}

View File

@ -0,0 +1,10 @@
# import the CodePad application module
App = this.OS.application.CodePad
# define the extension
class App.extensions.{0} extends App.BaseExtension
constructor: (app) ->
super app
test: () ->
@notify "Test action is invoked"

View File

@ -0,0 +1,15 @@
# {0}
This is an example project, generated by AntOS Development Kit
## Howto
Use the CodePad command palette to access to the SDK functionalities:
1. Create new project
2. Init the project from the current folder located in side bar
3. Build and run the project
4. Release the project in zip package
## Set up build target
Open the `project.json` file from the current project tree and add/remove
build target entries. Save the file

View File

@ -0,0 +1,7 @@
class {0} extends this.OS.application.BaseApplication
constructor: ( args ) ->
super "{0}", args
main: () ->
this.OS.register "{0}", {0}

View File

@ -0,0 +1,14 @@
{
"app":"{0}",
"name":"{0}",
"description":"{0}",
"info":{
"author": "",
"email": ""
},
"version":"0.0.1-a",
"category":"Other",
"iconclass":"fa fa-adn",
"mimes":["none"],
"locale": {}
}

View File

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

View File

@ -0,0 +1,3 @@
<afx-app-window apptitle="{0}" width="500" height="400" data-id="{0}">
<afx-hbox ></afx-hbox>
</afx-app-window>