aboutsummaryrefslogtreecommitdiff
path: root/js/io/templates
diff options
context:
space:
mode:
authorAnanya Sen2012-02-02 17:45:22 -0800
committerAnanya Sen2012-02-02 17:45:22 -0800
commit6890662caba94598675679f40dbb725301c93e98 (patch)
treed1e3ded939e41a2b484a4c98b48e3b3976a71c63 /js/io/templates
parent476a25e8a662270dfe5b37c560e4235f02b146e4 (diff)
downloadninja-6890662caba94598675679f40dbb725301c93e98.tar.gz
integrated new file dialog with the template descriptor.json and document-controller.js
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/templates')
-rw-r--r--js/io/templates/descriptor.json64
1 files changed, 43 insertions, 21 deletions
diff --git a/js/io/templates/descriptor.json b/js/io/templates/descriptor.json
index 3d8391c5..d8fb7da4 100644
--- a/js/io/templates/descriptor.json
+++ b/js/io/templates/descriptor.json
@@ -1,51 +1,73 @@
1{ 1{
2 "categories":{ 2 "categories":{
3 "children":["newFile"] 3 "children":["/"]
4 }, 4 },
5 "newFile":{ 5 "/":{
6 "name":"Blank Template", 6 "name":"Blank File",
7 "uri":"/", 7 "uri":"/",
8 "type":"directory", 8 "type":"directory",
9 "children":["html", "js", "css", "json", "php", "pl", "py", "rb"] 9 "children":["files/html.txt", "files/js.txt", "files/css.txt", "files/json.txt", "files/php.txt", "files/pl.txt", "files/py.txt", "files/rb.txt"]
10 }, 10 },
11 "html":{ 11 "files/html.txt":{
12 "name":"HTML", 12 "name":"HTML",
13 "uri":"files/html.txt", 13 "uri":"files/html.txt",
14 "type":"file" 14 "type":"file",
15 "fileExtension":".html",
16 "children":["defaultTemplate"]
15 }, 17 },
16 "js":{ 18 "files/js.txt":{
17 "name":"JavaScript", 19 "name":"JavaScript",
18 "uri":"files/js.txt", 20 "uri":"files/js.txt",
19 "type":"file" 21 "type":"file",
22 "fileExtension":".js",
23 "children":["defaultTemplate"]
20 }, 24 },
21 "css":{ 25 "files/css.txt":{
22 "name":"Cascading Style Sheets", 26 "name":"Cascading Style Sheets",
23 "uri":"files/css.txt", 27 "uri":"files/css.txt",
24 "type":"file" 28 "type":"file",
29 "fileExtension":".css",
30 "children":["defaultTemplate"]
25 }, 31 },
26 "json":{ 32 "files/json.txt":{
27 "name":"JSON", 33 "name":"JSON",
28 "uri":"files/json.txt", 34 "uri":"files/json.txt",
29 "type":"file" 35 "type":"file",
36 "fileExtension":".json",
37 "children":["defaultTemplate"]
30 }, 38 },
31 "php":{ 39 "files/php.txt":{
32 "name":"PHP", 40 "name":"PHP",
33 "uri":"files/php.txt", 41 "uri":"files/php.txt",
34 "type":"file" 42 "type":"file",
43 "fileExtension":".php",
44 "children":["defaultTemplate"]
35 }, 45 },
36 "pl":{ 46 "files/pl.txt":{
37 "name":"Perl", 47 "name":"Perl",
38 "uri":"files/pl.txt", 48 "uri":"files/pl.txt",
39 "type":"file" 49 "type":"file",
50 "fileExtension":".pl",
51 "children":["defaultTemplate"]
40 }, 52 },
41 "py":{ 53 "files/py.txt":{
42 "name":"Python", 54 "name":"Python",
43 "uri":"files/py.txt", 55 "uri":"files/py.txt",
44 "type":"file" 56 "type":"file",
57 "fileExtension":".py",
58 "children":["defaultTemplate"]
45 }, 59 },
46 "rb":{ 60 "files/rb.txt":{
47 "name":"Ruby", 61 "name":"Ruby",
48 "uri":"files/rb.txt", 62 "uri":"files/rb.txt",
49 "type":"file" 63 "type":"file",
50 } 64 "fileExtension":".rb",
65 "children":["defaultTemplate"]
66 },
67 "defaultTemplate":{
68 "name": "Basic",
69 "uri": "defaultTemplate",
70 "type":"file"
71 }
72
51} \ No newline at end of file 73} \ No newline at end of file