From 08a1a5debe1d2d940a6afba01492579bacae2f97 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Wed, 1 Oct 2014 17:01:36 -0400 Subject: [PATCH] Better directory structure. --- src/index.html | 27 -------------------------- src/{app => js}/config.js | 0 src/{app => js}/crawler.js | 0 src/{app => js}/main.js | 0 src/{app => js}/model/map.js | 0 src/{app => js/parsers}/scopus.js | 0 src/{app => js}/views/main_menu.js | 2 +- src/{app => js}/views/show_map.js | 0 src/package.json | 2 +- src/templates/index.html | 25 ++++++++++++++++++++++++ src/{app => }/templates/main_menu.html | 0 11 files changed, 27 insertions(+), 29 deletions(-) delete mode 100644 src/index.html rename src/{app => js}/config.js (100%) rename src/{app => js}/crawler.js (100%) rename src/{app => js}/main.js (100%) rename src/{app => js}/model/map.js (100%) rename src/{app => js/parsers}/scopus.js (100%) rename src/{app => js}/views/main_menu.js (93%) rename src/{app => js}/views/show_map.js (100%) create mode 100644 src/templates/index.html rename src/{app => }/templates/main_menu.html (100%) diff --git a/src/index.html b/src/index.html deleted file mode 100644 index 0f831f2..0000000 --- a/src/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - Scholarium - - - - - - - - - - - - - - - - - - - -
- - - diff --git a/src/app/config.js b/src/js/config.js similarity index 100% rename from src/app/config.js rename to src/js/config.js diff --git a/src/app/crawler.js b/src/js/crawler.js similarity index 100% rename from src/app/crawler.js rename to src/js/crawler.js diff --git a/src/app/main.js b/src/js/main.js similarity index 100% rename from src/app/main.js rename to src/js/main.js diff --git a/src/app/model/map.js b/src/js/model/map.js similarity index 100% rename from src/app/model/map.js rename to src/js/model/map.js diff --git a/src/app/scopus.js b/src/js/parsers/scopus.js similarity index 100% rename from src/app/scopus.js rename to src/js/parsers/scopus.js diff --git a/src/app/views/main_menu.js b/src/js/views/main_menu.js similarity index 93% rename from src/app/views/main_menu.js rename to src/js/views/main_menu.js index 4288c3c..efef700 100644 --- a/src/app/views/main_menu.js +++ b/src/js/views/main_menu.js @@ -5,7 +5,7 @@ MainMenuView.prototype.render = function(container) var main_menu_div = document.createElement("div"); $(main_menu_div).addClass("main_menu"); - $(main_menu_div).load("app/templates/main_menu.html", function() + $(main_menu_div).load("app://root/templates/main_menu.html", function() { document.forms[0].onsubmit = function() { diff --git a/src/app/views/show_map.js b/src/js/views/show_map.js similarity index 100% rename from src/app/views/show_map.js rename to src/js/views/show_map.js diff --git a/src/package.json b/src/package.json index 1f8ab41..768415f 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "Scholarium", "version": "0.1-pre", - "main": "index.html", + "main": "app://root/templates/index.html", "window": { "toolbar": false, "min_width": 400, diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..485594c --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,25 @@ + + + + Scholarium + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/app/templates/main_menu.html b/src/templates/main_menu.html similarity index 100% rename from src/app/templates/main_menu.html rename to src/templates/main_menu.html