From 2109cd4da39fb0eff0fd079f597b7135b11b96ce Mon Sep 17 00:00:00 2001 From: declerambaul Date: Fri, 13 Apr 2012 17:42:10 +0200 Subject: [PATCH] Creating d3 testing branch. Added d3 to modules.yaml. geo.jade for displaying the world graph --- lib/server/server.co | 3 +++ www/css/geo-display.styl | 8 ++++++++ www/geo.jade | 10 ++++++++++ www/modules.yaml | 1 + 4 files changed, 22 insertions(+), 0 deletions(-) create mode 100644 www/css/geo-display.styl create mode 100644 www/geo.jade diff --git a/lib/server/server.co b/lib/server/server.co index e988ac6..291959f 100755 --- a/lib/server/server.co +++ b/lib/server/server.co @@ -190,6 +190,9 @@ app.get '/datasources/all', (req, res, next) -> app.get '/', (req, res) -> res.render 'dashboard' +app.get '/geo', (req, res) -> + res.render 'geo' + app.get '/:type/:action/?', (req, res, next) -> {type, action} = req.params if exists "#WWW/#type/#action.jade" diff --git a/www/css/geo-display.styl b/www/css/geo-display.styl new file mode 100644 index 0000000..e1d53af --- /dev/null +++ b/www/css/geo-display.styl @@ -0,0 +1,8 @@ +@import 'colors' +@import 'nib' + +section.map + position relative + max-width 900px + margin 0 auto + diff --git a/www/geo.jade b/www/geo.jade new file mode 100644 index 0000000..b16ddac --- /dev/null +++ b/www/geo.jade @@ -0,0 +1,10 @@ +extends layout + +block title + title Geolocation + +append styles + mixin css('geo-display.css') + +block main-scripts + script(src="/js/kraken/main-geo.js?"+version) diff --git a/www/modules.yaml b/www/modules.yaml index c217b2d..cceb821 100644 --- a/www/modules.yaml +++ b/www/modules.yaml @@ -37,6 +37,7 @@ dev: - jade.runtime.min - moment.mod.min - dygraph + - d3 - suffix: .mod.js paths: -- 1.7.0.4