From 33e655cbbb0816340c5a2e5d5cc0a6b0c7d9f53c Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Wed, 1 Feb 2012 23:31:36 -0800 Subject: File IO clean up and setting up Cleaned up file IO templates and removed app-caching from Ninja since it would be needed. Setting up io-mediator to hook up to controller. Still need to address naming conventions and clean up more in the io directory. --- js/io/templates/descriptor.json | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 js/io/templates/descriptor.json (limited to 'js/io/templates/descriptor.json') diff --git a/js/io/templates/descriptor.json b/js/io/templates/descriptor.json new file mode 100644 index 00000000..3d8391c5 --- /dev/null +++ b/js/io/templates/descriptor.json @@ -0,0 +1,51 @@ +{ + "categories":{ + "children":["newFile"] + }, + "newFile":{ + "name":"Blank Template", + "uri":"/", + "type":"directory", + "children":["html", "js", "css", "json", "php", "pl", "py", "rb"] + }, + "html":{ + "name":"HTML", + "uri":"files/html.txt", + "type":"file" + }, + "js":{ + "name":"JavaScript", + "uri":"files/js.txt", + "type":"file" + }, + "css":{ + "name":"Cascading Style Sheets", + "uri":"files/css.txt", + "type":"file" + }, + "json":{ + "name":"JSON", + "uri":"files/json.txt", + "type":"file" + }, + "php":{ + "name":"PHP", + "uri":"files/php.txt", + "type":"file" + }, + "pl":{ + "name":"Perl", + "uri":"files/pl.txt", + "type":"file" + }, + "py":{ + "name":"Python", + "uri":"files/py.txt", + "type":"file" + }, + "rb":{ + "name":"Ruby", + "uri":"files/rb.txt", + "type":"file" + } +} \ No newline at end of file -- cgit v1.2.3 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 --- js/io/templates/descriptor.json | 64 +++++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 21 deletions(-) (limited to 'js/io/templates/descriptor.json') 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 @@ { "categories":{ - "children":["newFile"] + "children":["/"] }, - "newFile":{ - "name":"Blank Template", + "/":{ + "name":"Blank File", "uri":"/", "type":"directory", - "children":["html", "js", "css", "json", "php", "pl", "py", "rb"] + "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"] }, - "html":{ + "files/html.txt":{ "name":"HTML", "uri":"files/html.txt", - "type":"file" + "type":"file", + "fileExtension":".html", + "children":["defaultTemplate"] }, - "js":{ + "files/js.txt":{ "name":"JavaScript", "uri":"files/js.txt", - "type":"file" + "type":"file", + "fileExtension":".js", + "children":["defaultTemplate"] }, - "css":{ + "files/css.txt":{ "name":"Cascading Style Sheets", "uri":"files/css.txt", - "type":"file" + "type":"file", + "fileExtension":".css", + "children":["defaultTemplate"] }, - "json":{ + "files/json.txt":{ "name":"JSON", "uri":"files/json.txt", - "type":"file" + "type":"file", + "fileExtension":".json", + "children":["defaultTemplate"] }, - "php":{ + "files/php.txt":{ "name":"PHP", "uri":"files/php.txt", - "type":"file" + "type":"file", + "fileExtension":".php", + "children":["defaultTemplate"] }, - "pl":{ + "files/pl.txt":{ "name":"Perl", "uri":"files/pl.txt", - "type":"file" + "type":"file", + "fileExtension":".pl", + "children":["defaultTemplate"] }, - "py":{ + "files/py.txt":{ "name":"Python", "uri":"files/py.txt", - "type":"file" + "type":"file", + "fileExtension":".py", + "children":["defaultTemplate"] }, - "rb":{ + "files/rb.txt":{ "name":"Ruby", "uri":"files/rb.txt", - "type":"file" - } + "type":"file", + "fileExtension":".rb", + "children":["defaultTemplate"] + }, + "defaultTemplate":{ + "name": "Basic", + "uri": "defaultTemplate", + "type":"file" + } + } \ No newline at end of file -- cgit v1.2.3 From 04d375a02e44d1c11054ace16cd243ada8e6bd23 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Thu, 9 Feb 2012 00:05:25 -0800 Subject: Fixing URI for templates, need UI to use correct data --- js/io/templates/descriptor.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'js/io/templates/descriptor.json') diff --git a/js/io/templates/descriptor.json b/js/io/templates/descriptor.json index d8fb7da4..f28455fa 100644 --- a/js/io/templates/descriptor.json +++ b/js/io/templates/descriptor.json @@ -10,56 +10,56 @@ }, "files/html.txt":{ "name":"HTML", - "uri":"files/html.txt", + "uri":"/js/io/templates/files/html.txt", "type":"file", "fileExtension":".html", "children":["defaultTemplate"] }, "files/js.txt":{ "name":"JavaScript", - "uri":"files/js.txt", + "uri":"/js/io/templates/files/files/js.txt", "type":"file", "fileExtension":".js", "children":["defaultTemplate"] }, "files/css.txt":{ "name":"Cascading Style Sheets", - "uri":"files/css.txt", + "uri":"/js/io/templates/files/css.txt", "type":"file", "fileExtension":".css", "children":["defaultTemplate"] }, "files/json.txt":{ "name":"JSON", - "uri":"files/json.txt", + "uri":"/js/io/templates/files/json.txt", "type":"file", "fileExtension":".json", "children":["defaultTemplate"] }, "files/php.txt":{ "name":"PHP", - "uri":"files/php.txt", + "uri":"/js/io/templates/files/php.txt", "type":"file", "fileExtension":".php", "children":["defaultTemplate"] }, "files/pl.txt":{ "name":"Perl", - "uri":"files/pl.txt", + "uri":"/js/io/templates/files/pl.txt", "type":"file", "fileExtension":".pl", "children":["defaultTemplate"] }, "files/py.txt":{ "name":"Python", - "uri":"files/py.txt", + "uri":"/js/io/templates/files/py.txt", "type":"file", "fileExtension":".py", "children":["defaultTemplate"] }, "files/rb.txt":{ "name":"Ruby", - "uri":"files/rb.txt", + "uri":"/js/io/templates/files/rb.txt", "type":"file", "fileExtension":".rb", "children":["defaultTemplate"] -- cgit v1.2.3 From c9d0cb73698066247c6267bba8fa446a979565fb Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Thu, 9 Feb 2012 11:12:21 -0800 Subject: fixed templates descriptor, changed validation to on key up, fixed minor ui issues Signed-off-by: Ananya Sen --- js/io/templates/descriptor.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'js/io/templates/descriptor.json') diff --git a/js/io/templates/descriptor.json b/js/io/templates/descriptor.json index f28455fa..20870934 100644 --- a/js/io/templates/descriptor.json +++ b/js/io/templates/descriptor.json @@ -6,58 +6,58 @@ "name":"Blank File", "uri":"/", "type":"directory", - "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"] + "children":["/js/io/templates/files/html.txt", "/js/io/templates/files/files/js.txt", "/js/io/templates/files/css.txt", "/js/io/templates/files/json.txt", "/js/io/templates/files/php.txt", "/js/io/templates/files/pl.txt", "/js/io/templates/files/py.txt", "/js/io/templates/files/rb.txt"] }, - "files/html.txt":{ + "/js/io/templates/files/html.txt":{ "name":"HTML", "uri":"/js/io/templates/files/html.txt", "type":"file", "fileExtension":".html", "children":["defaultTemplate"] }, - "files/js.txt":{ + "/js/io/templates/files/files/js.txt":{ "name":"JavaScript", "uri":"/js/io/templates/files/files/js.txt", "type":"file", "fileExtension":".js", "children":["defaultTemplate"] }, - "files/css.txt":{ + "/js/io/templates/files/css.txt":{ "name":"Cascading Style Sheets", "uri":"/js/io/templates/files/css.txt", "type":"file", "fileExtension":".css", "children":["defaultTemplate"] }, - "files/json.txt":{ + "/js/io/templates/files/json.txt":{ "name":"JSON", "uri":"/js/io/templates/files/json.txt", "type":"file", "fileExtension":".json", "children":["defaultTemplate"] }, - "files/php.txt":{ + "/js/io/templates/files/php.txt":{ "name":"PHP", "uri":"/js/io/templates/files/php.txt", "type":"file", "fileExtension":".php", "children":["defaultTemplate"] }, - "files/pl.txt":{ + "/js/io/templates/files/pl.txt":{ "name":"Perl", "uri":"/js/io/templates/files/pl.txt", "type":"file", "fileExtension":".pl", "children":["defaultTemplate"] }, - "files/py.txt":{ + "/js/io/templates/files/py.txt":{ "name":"Python", "uri":"/js/io/templates/files/py.txt", "type":"file", "fileExtension":".py", "children":["defaultTemplate"] }, - "files/rb.txt":{ + "/js/io/templates/files/rb.txt":{ "name":"Ruby", "uri":"/js/io/templates/files/rb.txt", "type":"file", -- cgit v1.2.3 From ad0ee69be3512325ede94738f23597086a141a3e Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Fri, 10 Feb 2012 01:55:30 -0800 Subject: file open and file new integrated again Signed-off-by: Ananya Sen --- js/io/templates/descriptor.json | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'js/io/templates/descriptor.json') diff --git a/js/io/templates/descriptor.json b/js/io/templates/descriptor.json index 20870934..acc03979 100644 --- a/js/io/templates/descriptor.json +++ b/js/io/templates/descriptor.json @@ -6,60 +6,60 @@ "name":"Blank File", "uri":"/", "type":"directory", - "children":["/js/io/templates/files/html.txt", "/js/io/templates/files/files/js.txt", "/js/io/templates/files/css.txt", "/js/io/templates/files/json.txt", "/js/io/templates/files/php.txt", "/js/io/templates/files/pl.txt", "/js/io/templates/files/py.txt", "/js/io/templates/files/rb.txt"] + "children":["js/io/templates/files/html.txt", "js/io/templates/files/js.txt", "js/io/templates/files/css.txt", "js/io/templates/files/json.txt", "js/io/templates/files/php.txt", "js/io/templates/files/pl.txt", "js/io/templates/files/py.txt", "js/io/templates/files/rb.txt"] }, - "/js/io/templates/files/html.txt":{ + "js/io/templates/files/html.txt":{ "name":"HTML", - "uri":"/js/io/templates/files/html.txt", + "uri":"js/io/templates/files/html.txt", "type":"file", "fileExtension":".html", "children":["defaultTemplate"] }, - "/js/io/templates/files/files/js.txt":{ + "js/io/templates/files/js.txt":{ "name":"JavaScript", - "uri":"/js/io/templates/files/files/js.txt", + "uri":"js/io/templates/files/js.txt", "type":"file", "fileExtension":".js", "children":["defaultTemplate"] }, - "/js/io/templates/files/css.txt":{ + "js/io/templates/files/css.txt":{ "name":"Cascading Style Sheets", - "uri":"/js/io/templates/files/css.txt", + "uri":"js/io/templates/files/css.txt", "type":"file", "fileExtension":".css", "children":["defaultTemplate"] }, - "/js/io/templates/files/json.txt":{ + "js/io/templates/files/json.txt":{ "name":"JSON", - "uri":"/js/io/templates/files/json.txt", + "uri":"js/io/templates/files/json.txt", "type":"file", "fileExtension":".json", "children":["defaultTemplate"] }, - "/js/io/templates/files/php.txt":{ + "js/io/templates/files/php.txt":{ "name":"PHP", - "uri":"/js/io/templates/files/php.txt", + "uri":"js/io/templates/files/php.txt", "type":"file", "fileExtension":".php", "children":["defaultTemplate"] }, - "/js/io/templates/files/pl.txt":{ + "js/io/templates/files/pl.txt":{ "name":"Perl", - "uri":"/js/io/templates/files/pl.txt", + "uri":"js/io/templates/files/pl.txt", "type":"file", "fileExtension":".pl", "children":["defaultTemplate"] }, - "/js/io/templates/files/py.txt":{ + "js/io/templates/files/py.txt":{ "name":"Python", - "uri":"/js/io/templates/files/py.txt", + "uri":"js/io/templates/files/py.txt", "type":"file", "fileExtension":".py", "children":["defaultTemplate"] }, - "/js/io/templates/files/rb.txt":{ + "js/io/templates/files/rb.txt":{ "name":"Ruby", - "uri":"/js/io/templates/files/rb.txt", + "uri":"js/io/templates/files/rb.txt", "type":"file", "fileExtension":".rb", "children":["defaultTemplate"] -- cgit v1.2.3