diff --git a/public/index.html b/public/index.html index c595b2e..65ddc46 100644 --- a/public/index.html +++ b/public/index.html @@ -1,15 +1,41 @@ - -{ "_availableModes" : [ +{ + "navigation": { + "collection": "app", + "name": "navigation" + }, + "user": { + "collection": "users" + }, + "main": { + "collection": "app", + "name": "main" + }, + "viewModel": { + "main": + { + "editorId": "editor", + "mapping" : { + "ignore": ["name", "version"] + } + }, + "navigation": + { + "mapping": {}, + "elementId": "navigation" + } + } +}{ +"_availableModes" : [ { "name": "none", "ace":"none" }, { "name": "HTML", "ace":"html" }, { "name": "Style", "ace":"css" }, { "name": "Behaviour", "ace":"javascript" }, { "name": "Text", "ace":"markdown" }, { "name": "JSON", "ace":"json" } - ] -} - +] +} + @@ -40,6 +66,13 @@ + @@ -83,7 +116,7 @@ - + @@ -102,141 +135,151 @@ - - - diff --git a/public/templates/navigation.json b/public/templates/navigation.json new file mode 100644 index 0000000..6197ce9 --- /dev/null +++ b/public/templates/navigation.json @@ -0,0 +1,128 @@ +{ + "links": { + "prototyper": { + "title": "Prototyper", + "links": { + "editor": { + "title": "Editor", + "url": "/page/app/main.index.html", + "icon_class": "icon-home" + }, + "importer": { + "title": "Import index", + "url": "/importer/index.html", + "icon_class": "icon-refresh" + }, + "readme": { + "title": "Readme", + "url": "/page/app/main.readme.md", + "icon_class": "icon-info-sign" + } + + } + }, + "references": { + "title": "Reference", + "links": { + "frontend": { + "title": "Backend", + "links": { + "bootstrap": { + "title": "Bootstrap", + "links": { + "button-generator": { + "title": "Button Generator", + "url": "http://www.plugolabs.com/twitter-bootstrap-button-generator/" + } + } + }, + "markdown": { + "title": "Markdown", + "links": { + "syntax": { + "title": "Syntax", + "url": "http://daringfireball.net/projects/markdown/syntax" + } + + } + }, + "knockout": { + "title": "Knockout", + "links": { + "homepage": { + "title": "Home page", + "url": "http://knockoutjs.com/index.html" + }, + "documentation": { + "title": "Documentation", + "url": "http://knockoutjs.com/documentation/introduction.html" + }, + "plugins-mapping": { + "title": "Mapping Plugin", + "url": "http://knockoutjs.com/documentation/plugins-mapping.html" + } + } + }, + "sharejs": { + "title": "ShareJS", + "url": "https://github.com/josephg/ShareJS/wiki" + }, + "underscore": { + "title": "Underscore", + "url": "http://underscorejs.org/" + } + } + }, + "backend": { + "title": "Backend", + "links": { + "node": { + "title": "NodeJS", + "links": { + "homepage": { + "title": "Homepage", + "url": "http://nodejs.org" + }, + "api": { + "title": "API", + "url": "http://nodejs.org/api/" + } + } + }, + "express": { + "title": "ExpressJS", + "links": { + "homepage": { + "title": "Homepage", + "url": "http://expressjs.com" + }, + "api": { + "title": "API", + "url": "http://expressjs.com/api.html" + } + } + }, + "mongodb": { + "title": "MongoDB", + "links": { + "nodedriver": { + "title": "MongoDB Node.JS Driver", + "url": "http://mongodb.github.io/node-mongodb-native/contents.html" + } + } + }, + "sharejs": { + "title": "ShareJS", + "url": "https://github.com/josephg/ShareJS/wiki" + }, + "underscore": { + "title": "Underscore", + "url": "http://underscorejs.org/" + } + + } + } + } + } + } +} \ No newline at end of file