aboutsummaryrefslogtreecommitdiff
path: root/js/io/ui/new-file-dialog/new-file-workflow-model.js
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/ui/new-file-dialog/new-file-workflow-model.js
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/ui/new-file-dialog/new-file-workflow-model.js')
-rwxr-xr-xjs/io/ui/new-file-dialog/new-file-workflow-model.js101
1 files changed, 2 insertions, 99 deletions
diff --git a/js/io/ui/new-file-dialog/new-file-workflow-model.js b/js/io/ui/new-file-dialog/new-file-workflow-model.js
index bcaf8132..892dd3cf 100755
--- a/js/io/ui/new-file-dialog/new-file-workflow-model.js
+++ b/js/io/ui/new-file-dialog/new-file-workflow-model.js
@@ -42,105 +42,8 @@ exports.NewFileWorkflowModel = Object.create(Object.prototype, {
42 }, 42 },
43 43
44 projectTypeData:{ 44 projectTypeData:{
45 writable:false, 45 writable:true,
46 enumerable:false, 46 enumerable:false,
47 value:{//dummy data for testing 47 value:{}
48 "categories":{
49 "children":["newFile", "newProject", "fromTemplate"]
50 },
51 "newProject":{
52 "type":"directory",
53 "name":"New Project",
54 "uri":"newProject",
55 "children":["animation", "bannerAd", "montageComponent", "androidApp"]
56 },
57 "newFile":{
58 "name":"Blank Template",
59 "uri":"newFile",
60 "type":"directory",
61 "children":["htmlTemplate", "javascriptTemplate", "cssTemplate"]
62 },
63 "fromTemplate":{
64 "name":"From Template",
65 "uri":"fromTemplate",
66 "type":"directory",
67 "children":["xoomApp", "website", "iosApp"]
68 },
69 "bannerAd":{
70 "name":"Banner Ad",
71 "uri":"bannerAd",
72 "type":"file",
73 "children":["176x208", "176x220", "208x320", "230x240", "208x320", "230x240", "208x320", "230x240"]
74 },
75 "animation":{
76 "name":"Animation",
77 "uri":"animation",
78 "type":"file",
79 "children":["176x208", "176x220", "208x320", "230x240"]
80 },
81 "montageComponent":{
82 "name":"Montage Component",
83 "uri":"montageComponent",
84 "type":"file",
85 "children":["176x208", "176x208", "176x220", "208x320", "230x240","176x208", "176x220", "208x320", "230x240"]
86 },
87 "androidApp":{
88 "name":"Android App",
89 "uri":"androidApp",
90 "type":"file",
91 "children":["176x208", "176x220"]
92 },
93 "xoomApp":{
94 "name":"Xoom Application",
95 "uri":"xoomApp",
96 "type":"file",
97 "children":["176x208", "176x208", "176x220", "208x320", "176x220", "208x320", "230x240"]
98 },
99 "iosApp":{
100 "name":"iOS Application",
101 "uri":"iosApp",
102 "type":"file",
103 "children":["176x208"]
104 },
105 "176x208":{
106 "name":"176 x 208",
107 "uri":"176x208",
108 "type":"file"
109 },
110 "176x220":{
111 "name":"176 x 220",
112 "uri":"176x220",
113 "type":"file"
114 },
115 "208x320":{
116 "name":"208 x 320",
117 "uri":"208x320",
118 "type":"file"
119 },
120 "htmlTemplate":{
121 "name":"HTML",
122 "uri":"htmlTemplate",
123 "type":"file",
124 "children":["defaultTemplate", "xoomApp", "iosApp", "androidApp", "bannerAd"]
125 },
126 "cssTemplate":{
127 "name":"CSS",
128 "uri":"cssTemplate",
129 "type":"file",
130 "children":["defaultTemplate"]
131 },
132 "javascriptTemplate":{
133 "name":"JavaScript",
134 "uri":"javascriptTemplate",
135 "type":"file",
136 "children":["defaultTemplate"]
137 },
138 defaultTemplate:{
139 "name": "default",
140 "uri": "defaultTemplate",
141 "type":"file"
142 }
143
144 }
145 } 48 }
146}); 49});