Permalink
Browse files

initial version v0.1

  • Loading branch information...
1 parent 213a1bc commit d83542f0d2985c0c4898e9bc3e4a36529258bc92 @seafoox committed Feb 28, 2012
Showing with 45,592 additions and 0 deletions.
  1. +10 −0 .gitignore
  2. +35 −0 app.js
  3. +1,051 −0 build/build.xml
  4. +50 −0 build/createproject.sh
  5. +7 −0 build/project.xml
  6. +6 −0 build/runbuildscript.bat
  7. BIN build/tools/ant-contrib-1.0b3.jar
  8. BIN build/tools/closure-compiler-v1346.jar
  9. +11,138 −0 build/tools/csslint-rhino.js
  10. +5,904 −0 build/tools/fulljshint.js
  11. +6,651 −0 build/tools/fulljslint.js
  12. BIN build/tools/htmlcompressor-1.4.3.jar
  13. BIN build/tools/jpegtran.exe
  14. +21 −0 build/tools/optipng-0.6.4-exe/LICENSE.txt
  15. BIN build/tools/optipng-0.6.4-exe/optipng.exe
  16. BIN build/tools/rhino.jar
  17. BIN build/tools/yuicompressor-2.4.5.jar
  18. +1 −0 node_modules/.bin/express
  19. +19 −0 server.js
  20. +506 −0 static/.htaccess
  21. BIN static/apple-touch-icon-114x114-precomposed.png
  22. BIN static/apple-touch-icon-57x57-precomposed.png
  23. BIN static/apple-touch-icon-72x72-precomposed.png
  24. BIN static/apple-touch-icon-precomposed.png
  25. BIN static/apple-touch-icon.png
  26. +25 −0 static/crossdomain.xml
  27. +581 −0 static/css/bootstrap-responsive.css
  28. +4 −0 static/css/bootstrap-responsive.min.css
  29. +3,496 −0 static/css/bootstrap.css
  30. +632 −0 static/css/bootstrap.min.css
  31. BIN static/favicon.ico
  32. BIN static/img/glyphicons-halflings-white.png
  33. BIN static/img/glyphicons-halflings.png
  34. +1 −0 static/js/bootstrap.min.js
  35. +4 −0 static/js/jquery-1.7.1.min.js
  36. +106 −0 static/js/twitter-dev/README.md
  37. +94 −0 static/js/twitter-dev/bootstrap-alert.js
  38. +100 −0 static/js/twitter-dev/bootstrap-button.js
  39. +157 −0 static/js/twitter-dev/bootstrap-carousel.js
  40. +136 −0 static/js/twitter-dev/bootstrap-collapse.js
  41. +92 −0 static/js/twitter-dev/bootstrap-dropdown.js
  42. +210 −0 static/js/twitter-dev/bootstrap-modal.js
  43. +95 −0 static/js/twitter-dev/bootstrap-popover.js
  44. +125 −0 static/js/twitter-dev/bootstrap-scrollspy.js
  45. +130 −0 static/js/twitter-dev/bootstrap-tab.js
  46. +270 −0 static/js/twitter-dev/bootstrap-tooltip.js
  47. +51 −0 static/js/twitter-dev/bootstrap-transition.js
  48. +271 −0 static/js/twitter-dev/bootstrap-typeahead.js
  49. +1,720 −0 static/js/twitter-dev/bootstrap.js
  50. +49 −0 static/js/twitter-dev/tests/index.html
  51. +41 −0 static/js/twitter-dev/tests/unit/bootstrap-alert.js
  52. +77 −0 static/js/twitter-dev/tests/unit/bootstrap-button.js
  53. +25 −0 static/js/twitter-dev/tests/unit/bootstrap-collapse.js
  54. +53 −0 static/js/twitter-dev/tests/unit/bootstrap-dropdown.js
  55. +85 −0 static/js/twitter-dev/tests/unit/bootstrap-modal.js
  56. +93 −0 static/js/twitter-dev/tests/unit/bootstrap-popover.js
  57. +31 −0 static/js/twitter-dev/tests/unit/bootstrap-scrollspy.js
  58. +45 −0 static/js/twitter-dev/tests/unit/bootstrap-tab.js
  59. +62 −0 static/js/twitter-dev/tests/unit/bootstrap-tooltip.js
  60. +13 −0 static/js/twitter-dev/tests/unit/bootstrap-transition.js
  61. +128 −0 static/js/twitter-dev/tests/unit/bootstrap-typeahead.js
  62. +9,252 −0 static/js/twitter-dev/tests/vendor/jquery.js
  63. +232 −0 static/js/twitter-dev/tests/vendor/qunit.css
  64. +1,510 −0 static/js/twitter-dev/tests/vendor/qunit.js
  65. +5 −0 static/robots.txt
  66. +25 −0 views/404.ejs
  67. +28 −0 views/500.ejs
  68. +81 −0 views/layout.ejs
  69. +58 −0 views/template.ejs
View
@@ -0,0 +1,10 @@
+# Project folders #
+###################
+node_modules/
+
+# OS generated files #
+######################
+.DS_Store*
+ehthumbs.db
+Icon?
+Thumbs.db
View
35 app.js
@@ -0,0 +1,35 @@
+var express = require('express');
+var app = express.createServer();
+
+exports.init = function(port) {
+
+ app.configure(function(){
+ app.set('views', __dirname + '/views');
+ app.set('view engine', 'ejs');
+ app.use(express.bodyParser());
+ app.use(express.methodOverride());
+ app.use(express.static(__dirname + '/static'));
+ app.use(app.router);
+ app.enable("jsonp callback");
+ });
+
+ app.configure('development', function(){
+ app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
+ // app.use(express.logger({ format: ':method :url' }));
+ });
+
+ app.configure('production', function(){
+ app.use(express.errorHandler());
+ });
+
+
+ app.error(function(err, req, res, next){
+ res.render('500.ejs', { locals: { error: err },status: 500 });
+ });
+
+ app.listen(port);
+
+ console.log("Listening on port %d in %s mode", app.address().port, app.settings.env);
+
+ return app;
+}
Oops, something went wrong.

0 comments on commit d83542f

Please sign in to comment.