mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-31 05:00:39 +02:00
add more test, convert CodePad to type scipt
This commit is contained in:
17
src/packages/CodePad/templates/ext-extension.tpl
Normal file
17
src/packages/CodePad/templates/ext-extension.tpl
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
10
src/packages/CodePad/templates/ext-main.tpl
Normal file
10
src/packages/CodePad/templates/ext-main.tpl
Normal 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"
|
15
src/packages/CodePad/templates/sdk-README.tpl
Normal file
15
src/packages/CodePad/templates/sdk-README.tpl
Normal 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
|
7
src/packages/CodePad/templates/sdk-main.tpl
Normal file
7
src/packages/CodePad/templates/sdk-main.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
class {0} extends this.OS.application.BaseApplication
|
||||
constructor: ( args ) ->
|
||||
super "{0}", args
|
||||
|
||||
main: () ->
|
||||
|
||||
this.OS.register "{0}", {0}
|
14
src/packages/CodePad/templates/sdk-package.tpl
Normal file
14
src/packages/CodePad/templates/sdk-package.tpl
Normal 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": {}
|
||||
}
|
8
src/packages/CodePad/templates/sdk-project.tpl
Normal file
8
src/packages/CodePad/templates/sdk-project.tpl
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "{0}",
|
||||
"root": "{1}",
|
||||
"css": [],
|
||||
"javascripts": [],
|
||||
"coffees": ["coffees/main.coffee"],
|
||||
"copies": ["assets/scheme.html", "package.json", "README.md"]
|
||||
}
|
3
src/packages/CodePad/templates/sdk-scheme.tpl
Normal file
3
src/packages/CodePad/templates/sdk-scheme.tpl
Normal file
@ -0,0 +1,3 @@
|
||||
<afx-app-window apptitle="{0}" width="500" height="400" data-id="{0}">
|
||||
<afx-hbox ></afx-hbox>
|
||||
</afx-app-window>
|
Reference in New Issue
Block a user