From 6890662caba94598675679f40dbb725301c93e98 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Thu, 2 Feb 2012 17:45:22 -0800 Subject: integrated new file dialog with the template descriptor.json and document-controller.js Signed-off-by: Ananya Sen --- .../ui/new-file-dialog/new-file-workflow-model.js | 101 +-------------------- 1 file changed, 2 insertions(+), 99 deletions(-) (limited to 'js/io/ui/new-file-dialog/new-file-workflow-model.js') 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, { }, projectTypeData:{ - writable:false, + writable:true, enumerable:false, - value:{//dummy data for testing - "categories":{ - "children":["newFile", "newProject", "fromTemplate"] - }, - "newProject":{ - "type":"directory", - "name":"New Project", - "uri":"newProject", - "children":["animation", "bannerAd", "montageComponent", "androidApp"] - }, - "newFile":{ - "name":"Blank Template", - "uri":"newFile", - "type":"directory", - "children":["htmlTemplate", "javascriptTemplate", "cssTemplate"] - }, - "fromTemplate":{ - "name":"From Template", - "uri":"fromTemplate", - "type":"directory", - "children":["xoomApp", "website", "iosApp"] - }, - "bannerAd":{ - "name":"Banner Ad", - "uri":"bannerAd", - "type":"file", - "children":["176x208", "176x220", "208x320", "230x240", "208x320", "230x240", "208x320", "230x240"] - }, - "animation":{ - "name":"Animation", - "uri":"animation", - "type":"file", - "children":["176x208", "176x220", "208x320", "230x240"] - }, - "montageComponent":{ - "name":"Montage Component", - "uri":"montageComponent", - "type":"file", - "children":["176x208", "176x208", "176x220", "208x320", "230x240","176x208", "176x220", "208x320", "230x240"] - }, - "androidApp":{ - "name":"Android App", - "uri":"androidApp", - "type":"file", - "children":["176x208", "176x220"] - }, - "xoomApp":{ - "name":"Xoom Application", - "uri":"xoomApp", - "type":"file", - "children":["176x208", "176x208", "176x220", "208x320", "176x220", "208x320", "230x240"] - }, - "iosApp":{ - "name":"iOS Application", - "uri":"iosApp", - "type":"file", - "children":["176x208"] - }, - "176x208":{ - "name":"176 x 208", - "uri":"176x208", - "type":"file" - }, - "176x220":{ - "name":"176 x 220", - "uri":"176x220", - "type":"file" - }, - "208x320":{ - "name":"208 x 320", - "uri":"208x320", - "type":"file" - }, - "htmlTemplate":{ - "name":"HTML", - "uri":"htmlTemplate", - "type":"file", - "children":["defaultTemplate", "xoomApp", "iosApp", "androidApp", "bannerAd"] - }, - "cssTemplate":{ - "name":"CSS", - "uri":"cssTemplate", - "type":"file", - "children":["defaultTemplate"] - }, - "javascriptTemplate":{ - "name":"JavaScript", - "uri":"javascriptTemplate", - "type":"file", - "children":["defaultTemplate"] - }, - defaultTemplate:{ - "name": "default", - "uri": "defaultTemplate", - "type":"file" - } - - } + value:{} } }); -- cgit v1.2.3