Creating d3 testing branch. Added d3 to modules.yaml. geo.jade for displaying the...
authordeclerambaul <fabian.kaelin@gmail.com>
Fri, 13 Apr 2012 15:42:10 +0000 (17:42 +0200)
committerdeclerambaul <fabian.kaelin@gmail.com>
Fri, 13 Apr 2012 15:42:10 +0000 (17:42 +0200)
lib/server/server.co
www/css/geo-display.styl [new file with mode: 0644]
www/geo.jade [new file with mode: 0644]
www/modules.yaml

index e988ac6..291959f 100755 (executable)
@@ -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 (file)
index 0000000..e1d53af
--- /dev/null
@@ -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 (file)
index 0000000..b16ddac
--- /dev/null
@@ -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)
index c217b2d..cceb821 100644 (file)
@@ -37,6 +37,7 @@ dev:
         - jade.runtime.min
         - moment.mod.min
         - dygraph
+        - d3
 
 -   suffix: .mod.js
     paths: