Permalink
Browse files

All app code under census directory

  • Loading branch information...
pwalsh committed Jun 19, 2015
1 parent a572c86 commit 2e7816c20f3f7585d7aa6e0d362de4b81767f209
Showing with 10 additions and 10 deletions.
  1. +1 −0 .gitignore
  2. +1 −2 Procfile
  3. +1 −1 bin/census
  4. +1 −1 { → census}/app.js
  5. 0 { → census}/cli/index.js
  6. +5 −5 { → census}/config/index.js
  7. 0 { → census}/content/about.md
  8. 0 { → census}/content/contribute.md
  9. 0 { → census}/content/faq.md
  10. 0 { → census}/content/login.md
  11. 0 { → census}/content/review.md
  12. 0 { → census}/content/submit.md
  13. 0 { → census}/controllers/admin.js
  14. 0 { → census}/controllers/api.js
  15. 0 { → census}/controllers/auth.js
  16. 0 { → census}/controllers/census.js
  17. 0 { → census}/controllers/mixins.js
  18. 0 { → census}/controllers/pages.js
  19. 0 { → census}/filters.js
  20. 0 { → census}/loaders/batchLoader.js
  21. 0 { → census}/loaders/dataMapper/main.js
  22. 0 { → census}/loaders/includes/dbTransactions.js
  23. 0 { → census}/loaders/includes/entitiesConstructor.js
  24. 0 { → census}/loaders/includes/spreadSheetHandler.js
  25. 0 { → census}/loaders/index.js
  26. 0 { → census}/loaders/utils.js
  27. 0 { → census}/locale/en/LC_MESSAGES/messages.po
  28. 0 { → census}/locale/es/LC_MESSAGES/messages.po
  29. 0 { → census}/locale/templates/LC_MESSAGES/messages.pot
  30. 0 { → census}/locales/en/messages.js
  31. 0 { → census}/locales/en/messages.json
  32. 0 { → census}/locales/es/messages.js
  33. 0 { → census}/locales/es/messages.json
  34. 0 { → census}/middlewares/index.js
  35. 0 { → census}/middlewares/reloadEntities.js
  36. 0 { → census}/models/dataset.js
  37. 0 { → census}/models/entry.js
  38. 0 { → census}/models/index.js
  39. 0 { → census}/models/mixins.js
  40. 0 { → census}/models/place.js
  41. 0 { → census}/models/question.js
  42. 0 { → census}/models/registry.js
  43. 0 { → census}/models/site.js
  44. 0 { → census}/models/user.js
  45. BIN { → census}/public/css/BebasNeue-webfont.eot
  46. 0 { → census}/public/css/BebasNeue-webfont.svg
  47. BIN { → census}/public/css/BebasNeue-webfont.ttf
  48. BIN { → census}/public/css/BebasNeue-webfont.woff
  49. BIN { → census}/public/css/census-map.png
  50. BIN { → census}/public/css/flip.png
  51. BIN { → census}/public/css/header-map.png
  52. BIN { → census}/public/css/logo-icon.png
  53. BIN { → census}/public/css/man.png
  54. BIN { → census}/public/css/map.png
  55. BIN { → census}/public/css/megaphone.png
  56. BIN { → census}/public/css/navpulldown.png
  57. BIN { → census}/public/css/rating-preview.png
  58. BIN { → census}/public/css/stripes.png
  59. 0 { → census}/public/css/style.css
  60. BIN { → census}/public/css/wmd-buttons.png
  61. BIN { → census}/public/css/woman.png
  62. 0 { → census}/public/data/ccodes.json
  63. 0 { → census}/public/data/logd.json
  64. 0 { → census}/public/data/summary.json
  65. 0 { → census}/public/data/world.svg
  66. BIN { → census}/public/favicon.ico
  67. 0 { → census}/public/reloadDashboard.html
  68. 0 { → census}/public/robots.txt
  69. 0 { → census}/public/src/census.js
  70. 0 { → census}/public/src/common.js
  71. 0 { → census}/public/src/submit.js
  72. 0 { → census}/public/vendor/Markdown.Converter.js
  73. 0 { → census}/public/vendor/Markdown.Editor.js
  74. 0 { → census}/public/vendor/Markdown.Sanitizer.js
  75. 0 { → census}/public/vendor/chroma.pack.min.js
  76. 0 { → census}/public/vendor/readmore.min.js
  77. 0 { → census}/public/vendor/sticky.min.js
  78. 0 { → census}/routes/admin.js
  79. 0 { → census}/routes/api.js
  80. 0 { → census}/routes/auth.js
  81. 0 { → census}/routes/census.js
  82. 0 { → census}/routes/i18n.js
  83. 0 { → census}/routes/index.js
  84. 0 { → census}/routes/pages.js
  85. 0 { → census}/routes/redirects.js
  86. 0 { → census}/routes/utils.js
  87. 0 { → census}/views/_snippets/datasets.html
  88. 0 { → census}/views/_snippets/entry-summary-row.html
  89. 0 { → census}/views/_snippets/key.html
  90. 0 { → census}/views/_snippets/missing_place_button.html
  91. 0 { → census}/views/_snippets/questions.html
  92. 0 { → census}/views/_snippets/reviewer_actions.html
  93. 0 { → census}/views/_snippets/share_page_buttons.html
  94. 0 { → census}/views/_snippets/share_submission_buttons.html
  95. 0 { → census}/views/base.html
  96. 0 { → census}/views/changes.html
  97. 0 { → census}/views/country/dataset.html
  98. 0 { → census}/views/country/entry.html
  99. 0 { → census}/views/country/place.html
  100. 0 { → census}/views/dashboard.html
  101. 0 { → census}/views/login.html
  102. 0 { → census}/views/overview.html
  103. 0 { → census}/views/submission/create.html
  104. 0 { → census}/views/submission/form-core.html
  105. 0 { → census}/views/submission/review.html
  106. +1 −1 package.json
  107. 0 { → scripts}/process.py
View
@@ -11,3 +11,4 @@ sandbox/*
.env*
.deploy.js
.DS_Store
npm-debug.log
View
@@ -1,2 +1 @@
web: node run.js
web: npm start
View
@@ -7,7 +7,7 @@ var path = require('path')
, os = require('os')
, colors = require('colors')
, cli = require('../cli')
, cli = require('.census/cli')
;
var argv = optimist
View
@@ -51,7 +51,7 @@ app.set('views', viewPath);
app.set('models', models);
app.set('year', currentYear);
env = nunjucks.configure('views', {
env = nunjucks.configure('census/views', {
// autoescape: true,
express: app
});
File renamed without changes.
@@ -5,12 +5,12 @@ var path = require('path')
, marked = require('marked')
;
function getContent(path) {
return marked(fs.readFileSync(path, 'utf8'));
function getContent(filepath) {
return marked(fs.readFileSync(filepath, 'utf8'));
}
nconf.file({
file: path.join(path.dirname(__dirname), '/settings.json')
file: path.join(path.dirname(path.dirname(__dirname)), '/settings.json')
});
// this is the object that you want to override in your own local config
@@ -30,8 +30,8 @@ nconf.defaults({
contribute_page: '<h1>To set content for this page update your configuration file</h1>',
faq_page: '<h1>To set content for this page update your configuration file</h1>',
missing_place_html: '',
submit_page: getContent('content/submit.md'),
review_page: getContent('content/review.md'),
submit_page: getContent('census/content/submit.md'),
review_page: getContent('census/content/review.md'),
// default user db
user_database_key: '0AqR8dXc6Ji4JdGJXallkcjNOaFlmN1N5MXZkM1ZSbUE',
questions: process.env.QUESTIONS_URL || 'https://docs.google.com/a/okfn.org/spreadsheet/ccc?key=0AqR8dXc6Ji4JdFI0QkpGUEZyS0wxYWtLdG1nTk9zU3c#gid=0',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -63,7 +63,7 @@
"npm": "2.10.1"
},
"scripts": {
"start": "node app.js",
"start": "node census/app.js",
"test": "mocha tests --patient",
"postinstall": "compile-json locale i18n"
}
File renamed without changes.

0 comments on commit 2e7816c

Please sign in to comment.