Permalink
Browse files

Updating the demo.

  • Loading branch information...
1 parent d3d939e commit 913fdb35defcb4ce53d854e2366bc7188e3443a6 @prettymuchbryce committed Nov 18, 2013
Showing with 13,829 additions and 35,911 deletions.
  1. +19 −16 demo/app.js
  2. +12 −3 demo/package.json
  3. BIN demo/static/assets/logo.png
  4. BIN demo/static/assets/tiles.png
  5. +6,848 −0 demo/static/bootstrap/css/bootstrap.css
  6. +0 −1,109 demo/static/css/bootstrap-responsive.css
  7. +0 −9 demo/static/css/bootstrap-responsive.min.css
  8. +0 −6,167 demo/static/css/bootstrap.css
  9. +0 −9 demo/static/css/bootstrap.min.css
  10. +3,746 −0 demo/static/css/flat-ui.css
  11. +0 −1,188 demo/static/css/jquery-ui.css
  12. +112 −0 demo/static/css/style.css
  13. +0 −74 demo/static/demo.html
  14. BIN demo/static/fonts/Flat-UI-Icons.woff
  15. BIN demo/static/fonts/lato/lato-regular-webfont.woff
  16. BIN demo/static/images/favicon.ico
  17. BIN demo/static/img/bg.png
  18. BIN demo/static/img/glyphicons-halflings-white.png
  19. BIN demo/static/img/glyphicons-halflings.png
  20. +180 −0 demo/static/img/sprites.json
  21. BIN demo/static/img/sprites.png
  22. +955 −0 demo/static/js/async.js
  23. +412 −0 demo/static/js/bootstrap-select.js
  24. +251 −0 demo/static/js/bootstrap-switch.js
  25. +0 −2,280 demo/static/js/bootstrap.js
  26. +7 −5 demo/static/js/bootstrap.min.js
  27. +349 −0 demo/static/js/easy-star-demo.js
  28. +1 −0 demo/static/js/easystar-0.1.5.min.js
  29. +112 −0 demo/static/js/flatui-checkbox.js
  30. +141 −0 demo/static/js/flatui-radio.js
  31. +2 −0 demo/static/js/jquery-1.8.3.min.js
  32. +6 −0 demo/static/js/jquery-ui-1.10.3.custom.min.js
  33. +157 −0 demo/static/js/jquery.placeholder.js
  34. +355 −0 demo/static/js/jquery.tagsinput.js
  35. +11 −0 demo/static/js/jquery.ui.touch-punch.min.js
  36. +15 −0 demo/static/js/pixi.js
  37. +16 −0 demo/static/js/tweenjs.min.js
  38. +0 −135 demo/static/lib/easeljs-0.6.1.min.js
  39. +0 −1 demo/static/lib/easystar-0.1.5.min.js
  40. +0 −9,597 demo/static/lib/jquery-1.9.1.js
  41. +0 −15,003 demo/static/lib/jquery-ui.js
  42. +0 −32 demo/static/lib/tweenjs-0.3.0.min.js
  43. +0 −283 demo/static/src/demo.js
  44. +122 −0 demo/views/index.html
View
@@ -1,22 +1,25 @@
-var express = require("express"),
- app = express(),
- port = parseInt(process.env.PORT, 10) || 3000;
-
-app.get("/", function(req, res) {
- res.redirect("/demo.html");
+var express = require('express');
+var app = express();
+var consolidate = require('consolidate');
+
+app.engine('html', consolidate.mustache);
+app.use(express.bodyParser());
+app.use(express.logger());
+
+// set .html as the default extension
+app.set('view engine', 'html');
+app.set('views', __dirname + '/views');
+
+app.configure(function() {
+ app.use(express.static(__dirname + '/static'));
});
-app.configure(function(){
- app.use(express.methodOverride());
- app.use(express.bodyParser());
- app.use(express.static(__dirname + '/static'));
- app.use(express.errorHandler({
- dumpExceptions: true,
- showStack: true
- }));
- app.use(app.router);
+app.get('/', function(req, res){
+ res.render('index');
});
+var port = 3000;
+
app.listen(port);
-console.log("Visit 127.0.0.1:3000 in your web browser to view the demo.")
+console.log('Express server started on port %s', port);
View
@@ -1,7 +1,16 @@
{
- "name": "easystarjs-example",
- "version": "0.1.4",
+ "name": "easystarjsdemo",
+ "version": "0.0.1",
+ "description": "",
+ "main": "app.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "",
+ "license": "MIT",
"dependencies": {
- "express": "~3.2.4"
+ "express": "~3.4.4",
+ "consolidate": "~0.9.1",
+ "mustache": "~0.7.3"
}
}
View
Deleted file not rendered
Deleted file not rendered
Oops, something went wrong.

0 comments on commit 913fdb3

Please sign in to comment.