Commit Graph

677 Commits (73b536de951c190df5b35136391966a2b9a2e283)

Author SHA1 Message Date
Berkeley Martinez ab14b32d19 middleware using next should specify it in arguments 2015-03-17 20:42:09 -07:00
Berkeley Martinez 7b449e7a5b Add returns to error handlers
add missing next to arguments for middleware
2015-03-17 20:39:27 -07:00
Berkeley Martinez 9e67ebf3c8 Merge pull request #204 from jameskopacz/jameskopacz-patch-199
Dev server crash fix
2015-03-17 20:10:29 -07:00
Michael Q Larson f1dcb4c373 start fixing the password in scope potential corner case security issue 2015-03-17 17:22:58 -07:00
Quincy Larson f144e84310 Merge pull request #214 from MrRenter/upvoteFix
Upvote fix
2015-03-17 15:48:15 -07:00
Michael Q Larson 95c249afc6 Merge branch 'master' of https://github.com/FreeCodeCamp/freecodecamp
Conflicts:
	.gitignore
2015-03-17 15:41:52 -07:00
Nathan Leniz 514b5ea572 fix bug in server side checking for username, closes #219 2015-03-18 07:15:25 +09:00
Nathan Leniz c9dd6366ec Compare against userIds 2015-03-18 05:01:14 +09:00
Michael Q Larson f3f6d0d16e update title for portfolio views and add public/js/bundle.js to gitignore 2015-03-17 10:06:17 -07:00
Nathan Leniz 8b491ed27e Fix display of comments if user is not logged in, disable reply button if no user, reject attempted comments if no user and no author 2015-03-17 17:44:52 +09:00
Renter 7d83453259 Update story.js
fixed link 151 spacing
2015-03-17 03:32:41 -04:00
MrRenter 2d5b34802b so spaces and tabs are totally differnt...whitespace fixes 2015-03-17 03:20:07 -04:00
MrRenter 1320a14851 fixed crash bug if user was logged off 2015-03-17 03:15:00 -04:00
MrRenter c9970c1725 Hide upvote arrow on news page if already upvoted. Make it disappear on upvote 2015-03-17 03:00:37 -04:00
jameskopacz 09a1463744 Dev crash err handling 2015-03-14 19:25:56 -05:00
jameskopacz cf4c680874 Dev server crash fix 2015-03-14 18:13:08 -05:00
Michael Q Larson 8e8711d947 add @rybar's new placeholder camper image and fix the broken logic that was supposed to update it for existing users 2015-03-11 23:58:16 -07:00
Nathan Leniz ef24ca746c Allow the use of quotation marks in original post and comments in camper news 2015-03-12 08:20:23 +09:00
Michael Q Larson 09f7be37ee make reply button consistent with discuss button throughout camper news 2015-03-10 10:22:20 -07:00
Michael Q Larson 526d874d1b add logic to truncate long headlines fetched from websites 2015-03-10 10:05:29 -07:00
Quincy Larson c0702b9d04 Merge pull request #180 from terakilobyte/master
MOre news updates
2015-03-09 16:39:04 -07:00
Nathan Leniz 5ddc87a072 Missing next declaration 2015-03-10 08:18:17 +09:00
Nathan Leniz d6a6834971 Validate min length of 5 for username, 8 for password 2015-03-10 08:17:10 +09:00
Nathan Leniz a65216e29e don't throw err on mongo errors but send 500 and call next 2015-03-10 08:15:43 +09:00
Michael Q Larson 09e42df355 update sitemap 2015-03-09 07:18:31 -07:00
Nathan Leniz 64d1c4a908 Server side checking of user input before allowing signup. 2015-03-09 18:35:56 +09:00
Nathan Leniz 3bfad2e272 Sanitize HTML on comments and story submission and properly use req.params. Code review cleanup 2015-03-09 18:30:37 +09:00
Nathan Leniz 55b047aa32 Refactor resources.js to include meta description. 2015-03-09 18:21:41 +09:00
Nathan Leniz eb991c4f15 Add image fetching for articles that support the og:image meta tag 2015-03-09 13:08:39 +09:00
Nathan Leniz 3b3de541b3 Update username for stories and comments on username change in profile 2015-03-09 11:59:50 +09:00
Nathan Leniz bc06c69a7b update user pictures on page fetch for learn-to-code 2015-03-09 07:59:18 +09:00
Michael Q Larson 8d2552fe57 give users without images a default image and retroactively give that to all their stories and comments and also make some UI changes to stories. 2015-03-08 15:39:36 -07:00
Michael Q Larson 4529558ce4 Merge branch 'master' of https://github.com/FreeCodeCamp/freecodecamp 2015-03-08 15:16:50 -07:00
Michael Q Larson 37c98a95ed add check for missing image 2015-03-08 15:16:44 -07:00
Nathan Leniz 7a56d4fcb2 Remove debug/console.log statements 2015-03-09 06:58:08 +09:00
Nathan Leniz 8608f48d8c Delete seed tasks, email signup now defaults a picture 2015-03-09 06:51:47 +09:00
Nathan Leniz 38dc4378df Add ranking algorithm to decay posts over time, add default image to user instead of gravatar 2015-03-09 06:09:51 +09:00
Nathan Leniz bd81c678f9 Add story limiting for hotStories, not working on recentStories 2015-03-08 20:36:13 +09:00
Nathan Leniz 6283ec1174 resolve show.jade merge conflict 2015-03-08 18:50:28 +09:00
Nathan Leniz de91be44da comment submit time bug fixed 2015-03-08 18:48:20 +09:00
Michael Q Larson aacb0070b3 add the nonprofit projects guide view and change all our nonbreaking spaces to smaller, more natural looking spaces 2015-03-08 01:36:09 -08:00
Nathan Leniz f367a0310e Finalizing display issues for news release 2015-03-08 16:50:51 +09:00
Nathan Leniz 1edc1aa3cf Begin refactoring story lists to order list, remove separate rank div 2015-03-08 12:32:35 +09:00
Nathan Leniz 790a2d987b Fighting CSS 2015-03-08 11:53:03 +09:00
Michael Q Larson 0a741f0e54 further ux improvements to branch 2015-03-07 17:38:47 -08:00
Michael Q Larson 49886ca097 remove node-rest-client and use request 2015-03-07 15:57:30 -08:00
Nathan Leniz b776be58e5 Finish full functionality for intial release of camper news 2015-03-07 20:51:20 +09:00
Nathan Leniz a3769f6507 Story submission now with a description, refactor show to display description above comment box 2015-03-07 18:26:49 +09:00
Nathan Leniz 9bea52d42f Refactor post flow, get url info back from server, redirect to final submission form 2015-03-07 17:42:22 +09:00
Nathan Leniz b655cb7532 Title scraping in resource.js getURLTitle function 2015-03-07 16:08:15 +09:00
Nathan Leniz 39d66ea0da Merge branch 'master' into news 2015-03-07 15:23:56 +09:00
Michael Q Larson e6cf415f88 fix an issue of unathenticated users not being able to access challenges 2015-03-06 17:49:14 -08:00
Nathan Leniz 76842ee713 Respond with 404 if no query found ref #151 2015-03-07 04:51:00 +09:00
Nathan Leniz 89dd38cbac Fix minor bugs 2015-03-07 03:55:59 +09:00
Nathan Leniz be32cd51b8 Added text-index searching 2015-03-07 03:06:38 +09:00
Nathan Leniz 6910ed0aea Nesting of comments in view, disabling comment form display button on button click 2015-03-07 01:57:09 +09:00
Nathan Leniz aad15b88ba fudging around with interpreting opengraph info in resources.js 2015-03-06 17:25:28 +09:00
Michael Q Larson c8c396981a update sitemap 2015-03-06 00:13:58 -08:00
Nathan Leniz 6fc72de232 add basic text search for post headlines 2015-03-06 09:20:30 +09:00
Nathan Leniz 0276c6867e Display hot/recent/submit/search views correctly through index 2015-03-06 08:20:49 +09:00
Nathan Leniz 5440efc729 Wire hot, recent, submit, and search views in app and controller, modified button navigation to fetch their routes 2015-03-06 08:11:18 +09:00
Michael Q Larson f1f3258fe3 Merge branch 'news' of https://github.com/FreeCodeCamp/freecodecamp into news 2015-03-05 13:42:14 -08:00
Nathan Leniz 046a209637 Comment submission now works on main story, need to refresh page after submission to display new comment 2015-03-06 06:08:40 +09:00
Michael Q Larson 7e14990698 Merge branch 'news' of https://github.com/FreeCodeCamp/freecodecamp into news 2015-03-05 10:56:31 -08:00
Michael Q Larson 4c0ff3b5ed Merge branch 'master' of https://github.com/FreeCodeCamp/freecodecamp into news
Conflicts:
	views/partials/navbar.jade
2015-03-05 10:56:06 -08:00
Nathan Leniz 8552a06ac6 Add url correcting in case user forgets http:// or https:// so url works properly in show view, remove upvote arrows from index view 2015-03-05 19:54:31 +09:00
Nathan Leniz 40a42e29c2 Fixed url redirect after submission, upvoting now works 2015-03-05 19:40:44 +09:00
Nathan Leniz 41442a540f Need to work on story redirect after submission, fix url link in stories/show 2015-03-05 19:21:26 +09:00
Michael Q Larson d8b8373b70 do some refactoring of the camper news views 2015-03-03 19:55:04 -08:00
Nathan Leniz 6ac780e836 Rewire upvote to use post and req.body instead of req.params, add logic on click handler to reject upvotes if the user has already upvoted, coment display now works 2015-03-04 07:15:00 +09:00
Michael Q Larson 3416353baf remove mention of forum from fcc 2015-03-03 11:31:16 -08:00
Nathan Leniz 4b84b49d07 Added start of individual post view and post lists view, wired upvoting functionality for individual posts 2015-03-03 22:03:33 +09:00
Nathan Leniz 94bbb7a4a5 Beginnings of the show individual post view 2015-03-03 19:50:16 +09:00
Nathan Leniz 52e494407b Get initial view working, sort out mongo mess with seed file 2015-03-03 19:23:56 +09:00
Michael Q Larson b7a95ee56f passing off hacker news clone to Nathan and his pair 2015-03-03 01:41:32 -08:00
Michael Q Larson a524ffdde0 beautify learn-to-code 2015-02-26 14:38:22 -08:00
Michael Q Larson 120cc113b9 current work on d3 2015-02-22 23:47:30 -08:00
Michael Q Larson 55f892a974 Merge branch 'ux-improvements' of https://github.com/FreeCodeCamp/freecodecamp into ux-improvements 2015-02-22 18:16:42 -08:00
Michael Q Larson fc1d560a89 start refactoring points into progressTimestamps which is essentially points with timestamps 2015-02-22 18:16:26 -08:00
Nathan Leniz ddf96c2ef2 Add modal popups to all courseware views 2015-02-22 19:35:55 +09:00
Nathan Leniz 3e65298e35 All coursewares list now displays properly, coursewares properly direct to the follow on, courseware controller now properly finds the next courseware 2015-02-22 18:23:50 +09:00
Nathan Leniz b5a449cb1c Cross off completed bonfires in list of all bonfires in modal 2015-02-22 17:36:43 +09:00
Nathan Leniz a197e99b1e Starting bonfires view partial, ajax call works, need to work into view 2015-02-22 16:27:38 +09:00
Nathan Leniz 8a5e3d9a9a Merge branch 'ux-improvements' of https://github.com/freecodecamp/freecodecamp into ux-improvements 2015-02-22 14:58:50 +09:00
Nathan Leniz 89eb361ec3 Merge master 2015-02-22 14:58:45 +09:00
Michael Q Larson 53bbe90290 find a son format that works with d3 2015-02-21 21:45:25 -08:00
Michael Q Larson 74f6fc6763 continue work trying to get d3 to work 2015-02-20 23:55:19 -08:00
Michael Q Larson 174ed6122b fix an issue of bonfire not lowercasing input from the user when accepting a pairedWith username 2015-02-20 00:13:07 -08:00
Michael Q Larson 85f6c6eb4d make both score and picture redirect to portfolio, make chat and forum links redirect universally regardless of completion of challenges, simplify accounts page 2015-02-19 16:33:08 -08:00
Michael Q Larson 749954542f refactor learn-to-code view to look more visual and have fewer components 2015-02-18 22:58:10 -08:00
Michael Q Larson 4ef8e7eda4 reverse the attempts to allow cross site scripts and just use relative paths for now 2015-02-17 15:35:16 -08:00
Michael Q Larson 5d9e82f9cb update format of AJAX call to json 2015-02-17 15:08:57 -08:00
Michael Q Larson 312debdb95 send json 2015-02-17 14:57:11 -08:00
Michael Q Larson 09e9dcefe0 attempt to configure mimetype for ajax calls 2015-02-17 14:52:46 -08:00
Michael Q Larson 0d3ee3c2b4 add screen hero installation view 2015-02-17 14:10:15 -08:00
Michael Q Larson 449589827c add ajax for github calls 2015-02-17 13:31:59 -08:00
Michael Q Larson 8e209d6bca start refactoring the learn-to-code view to use ajax 2015-02-16 23:35:02 -08:00
Michael Q Larson 1742be2efa Merge branch 'master' of https://github.com/FreeCodeCamp/freecodecamp 2015-02-16 17:56:13 -08:00
Michael Q Larson 03f8ddf6c0 slight changes to announcements and remove errant debug statement. 2015-02-16 17:56:01 -08:00
Michael Q Larson d279ac6d1b add announcements and make the github api calls more robust 2015-02-16 17:48:42 -08:00
Michael Q Larson 762ee8aa26 fix about view to render data from github 2015-02-16 01:21:40 -08:00
Michael Q Larson 9dd1558f1c update the about page and make it the root 2015-02-15 23:59:03 -08:00
Nathan Leniz d0c2f6ccca Fixing up more bonfires 2015-02-16 00:03:35 -05:00
Nathan Leniz 3d7c7cf6b3 Remove debug statements from the server 2015-02-14 22:42:10 -05:00
Nathan Leniz 68ad6f9831 Added in debug statements to diagnose problem in production 2015-02-14 21:55:24 -05:00
Nathan Leniz d66f6bebf5 Merge branch 'master' of https://github.com/freecodecamp/freecodecamp 2015-02-14 21:49:04 -05:00
Nathan Leniz 4f6a6bd8f0 Clean up username validation in bonfires and remove red border from input field if user deletes all input 2015-02-14 21:48:48 -05:00
Michael Q Larson a22e472fb2 update the showVideo view 2015-02-13 18:40:39 -08:00
Nathan Leniz b5c0ad9942 Building out new challenge framework to allow controller to determine view type for challenge 2015-02-13 20:55:49 -05:00
Michael Q Larson bafba0b16f make some copy changes reflecting our shift to coderbyte 2015-02-13 11:01:12 -08:00
Michael Q Larson 43da6d16ff fix trello integration and make minor changes to courseware.json 2015-02-12 22:59:06 -08:00
Nathan Leniz d8baf3d588 Fix so routing handles /coursewares and /coursewares/ 2015-02-09 14:29:03 -05:00
Michael Q Larson b32d0219af remove errant comma 2015-02-09 07:57:53 -08:00
Michael Q Larson b84c514c29 Merge branch 'master' of https://github.com/FreeCodeCamp/freecodecamp 2015-02-08 23:46:23 -08:00
Michael Q Larson b71453f4e2 update the first 13 courseware challenges and remove some silly compliments 2015-02-08 23:46:08 -08:00
Nathan Leniz 0689793ef8 Remove debug statement 2015-02-08 14:25:26 -05:00
Nathan Leniz 9808db4f30 Fixing undefined challengeName on info pages 2015-02-08 14:24:42 -05:00
Nathan Leniz f572e4cb77 Simple fix for requesting challenges over challenge 53 2015-02-08 12:39:00 -05:00
Nathan Leniz 2b0428fe51 Fix old redirect in courseware.js 2015-02-08 00:57:37 -05:00
Michael Q Larson 180699adb2 Wiring up analytics for courseware, unifying analytics between coursewares and bonfires, general housekeeping tasks for live push 2015-02-07 21:11:26 -08:00
Michael Q Larson 4f9474bc3a Add hotkey to go to next challenge/bonfire from completion modal, keep editor in focus on exiting completion modal, allow for courseware to theoretically work in production and development. 2015-02-06 16:55:48 -08:00
Nathan Leniz e2ab4438f5 Merge branch 'master' into courseware
Conflicts:
	controllers/bonfire.js
	controllers/resources.json
	views/bonfire/show.jade
2015-02-06 14:39:16 -05:00
Nathan Leniz 0313fd9751 Fixed routing for unfound coursewares 2015-02-06 14:28:28 -05:00
Nathan Leniz f627c156fc Tab now inserts two spaces, the path "coursewares/" is no longer broken 2015-02-06 12:36:55 -05:00
Nathan Leniz dcb057a175 Fixing routing issue for unfound bonfires 2015-02-06 01:51:54 -05:00
Michael Q Larson 2314ab91c2 remove comma from resources that was haphazardly left there 2015-02-05 14:02:02 -08:00
Michael Q Larson bccc37f55d add more compliments and remove image validation from the profile image field 2015-02-05 13:56:44 -08:00
Nathan Leniz 5898de7ab9 Changes to courseware and bonfire controller to handle direction to next challenge if the user has completed all offerings, also show a flash message letting them know why they are being redirected 2015-02-04 23:27:57 -05:00
Michael Q Larson adfe5588d6 wire in points for courseware and bonfire 2015-02-04 19:39:57 -08:00
Michael Q Larson 98286e19d1 fix formatting of modals and make them less likely to accidentally wrap the compliment text 2015-02-04 19:00:40 -08:00
Nathan Leniz d47482fdcc Merge branch 'master' into courseware 2015-02-04 21:28:41 -05:00
Nathan Leniz 9246d7f663 Hooked courseware up to mongo correctly, persisting solutions and configured controller to correctly pass user to next course or return to first if all are completed 2015-02-04 21:28:10 -05:00
Nathan Leniz 161582f6c9 courseware testing implemented 2015-02-04 19:59:51 -05:00
Nathan Leniz 26ee23ddf9 Fix for fibonacci challenge, fix routing issue for bonfire lookup 2015-02-04 15:32:31 -05:00
Nathan Leniz c487ddf18e Cleaning up bonfire.js 2015-02-04 14:59:45 -05:00
Nathan Leniz 9193ba04e0 Fix pathing bug for users who are not logged in and type /bonfires/ 2015-02-04 00:41:25 -05:00
Michael Q Larson f1000c3189 Merge branch 'master' into courseware
Conflicts:
	controllers/bonfire.js
	views/layout.jade
2015-02-02 23:32:46 -08:00
Michael Q Larson 78e473b4d2 another minor change to compliments 2015-02-02 23:03:50 -08:00
Nathan Leniz 43234825cf Removing needless CDN call, optimizing account view for slow page loads 2015-02-03 01:00:12 -05:00
Michael Q Larson f059bc33d8 add courseware controller and routes 2015-02-01 23:35:27 -08:00
Michael Q Larson 0ee291878a remove term code campers from codebase - replace with camper. Move bulky function from app.js to bonfire.js 2015-02-01 22:39:59 -08:00
Michael Q Larson 6ece608f01 update compliments 2015-02-01 22:00:19 -08:00
Michael Q Larson afab456ad9 start adding Courseware controllers, routes etc. 2015-02-01 14:22:34 -08:00
Nathan 186c090a20 Merge pull request #66 from FreeCodeCamp/update-url
update bonfire URL on regex match if incomplete url
2015-01-31 17:34:52 -08:00
Michael Q Larson 4c8c346a77 Revert "first commit with working iframe pulling data from code editor"
This reverts commit d7d4727c0f.
2015-01-31 16:56:23 -08:00
Michael Q Larson 0a49890517 Merge branch 'master' into angular-images
Conflicts:
	controllers/user.js
	views/account/account.jade
2015-01-31 16:44:56 -08:00
Michael Q Larson d26a4efea4 improve angular validation on images and trim input so trailing whitespace is ignored on save 2015-01-31 16:41:33 -08:00
Michael Q Larson 4d49875b8e Revert "start process of updating youtube videos on live-pair-programming"
This reverts commit 7b0b12d348.
2015-01-31 00:07:05 -08:00
Michael Q Larson a660e832b8 add welcome mailer for email signups and fix an issue with the angular validations 2015-01-31 00:04:35 -08:00
Michael Q Larson 7b0b12d348 start process of updating youtube videos on live-pair-programming 2015-01-30 23:59:21 -08:00