244 Commits

Author SHA1 Message Date
Remy Sharp
fc73f1525d Live now moved to "/watch" 2012-07-08 00:09:23 +01:00
Aron Carroll
54f1dbc86a Remove incorrect "not-found" error. Ticket #213 2012-07-07 20:00:27 +01:00
Remy Sharp
1a95be4a98 Reversing @aron's port logic (this broke launching the server behind a proxy) 2012-07-07 10:05:20 +01:00
Remy Sharp
8ef5a542c5 Fix error in url method 2012-07-07 10:00:48 +01:00
Remy Sharp
2e411b26c9 Don't read the port from the env - because we can't proxy with it 2012-07-07 09:56:04 +01:00
Remy Sharp
5b4df8bbc5 Merge branch 'feature/node' of github.com:remy/jsbin into feature/node 2012-07-07 09:14:46 +01:00
Remy Sharp
b1d93ba50f Point spike scripts to static server 2012-07-07 09:14:27 +01:00
Aron Carroll
c1089ecfa6 Handle unloaded bins correctly 2012-07-07 00:10:58 +01:00
Aron Carroll
69a623952a Remove gobo, may he rest in peace 2012-07-07 00:03:56 +01:00
Aron Carroll
ed926fafd5 Sort out the port assignment in app.js 2012-07-06 23:58:40 +01:00
Aron Carroll
67af83123d Greatly improve how redirects are handled. Closes #198
Referrer is now used by default unless a form specifies an alternative.
2012-07-06 22:27:52 +01:00
Aron Carroll
40ad33c178 Define the "basepath" app setting 2012-07-06 22:27:34 +01:00
Aron Carroll
81155381f2 Improve SQLite handling of bin defaults 2012-07-06 22:27:09 +01:00
Aron Carroll
4653997543 Update session when email changes 2012-07-06 21:50:36 +01:00
Aron Carroll
4205c0e434 Fix typo in SessionHandler 2012-07-06 21:50:21 +01:00
Aron Carroll
95f0b688f6 Add app.connect() function to allow database connections 2012-07-06 21:49:29 +01:00
Aron Carroll
5df51d7c26 Remove sqlite_templates.json. Whoop! 2012-07-06 21:48:56 +01:00
Aron Carroll
6f50501c74 Update SQLite adapter to work with sql_templates.json 2012-07-06 21:48:12 +01:00
Aron Carroll
c52a6ebebb Send an error response if unable to render files 2012-07-06 19:15:26 +01:00
Aron Carroll
c7d282ecaa Fix the display of the bin url on creation 2012-07-06 17:55:00 +01:00
Aron Carroll
a3e6ad471d Use utils.inherit() to tidy up SQLite file 2012-07-06 17:47:24 +01:00
Aron Carroll
0e83bb3d40 Tidy up SQLite adapter a little more 2012-07-06 17:45:33 +01:00
Aron Carroll
064d1a5751 Using utils.inherit() in MySQL adapter 2012-07-06 17:44:29 +01:00
Aron Carroll
69e208afde Update SQLite adapter to use sql_templates.json
This is completely untested. Please don't hurt me if it doesn't work!
2012-07-06 17:20:18 +01:00
Aron Carroll
29bdb842c3 Remove all instances of NOW() from the sql templates 2012-07-06 17:12:25 +01:00
Aron Carroll
1ea3f7cfae Show flash messages when requesting email reset 2012-07-06 16:58:47 +01:00
Aron Carroll
106e25650c Add a very simple flash message middleware 2012-07-06 16:58:17 +01:00
Aron Carroll
62ba03e8a1 User is now redirected to JSBin home to reset thier password 2012-07-06 16:27:15 +01:00
Aron Carroll
41547acd68 Allow helpers.url() to be called with no argument 2012-07-06 16:27:15 +01:00
Aron Carroll
cc21fda54d Only show name error message if name param is provided 2012-07-06 16:27:15 +01:00
Aron Carroll
025ab3a68e Pass a gravatar url into the index.html template 2012-07-06 16:27:15 +01:00
Aron Carroll
c18cd88ed3 Add utils.gravatar() for creating gravatar urls 2012-07-06 16:26:28 +01:00
Aron Carroll
ba3281ab94 Using new account route handler 2012-07-06 16:26:28 +01:00
Aron Carroll
f196a40b28 Implemented the remaining account methods 2012-07-06 16:25:02 +01:00
Aron Carroll
a181c237fa Checking for existence of username before creating account 2012-07-06 16:24:17 +01:00
Aron Carroll
a52e29a18c Implemented a router handler for the /sethome endpoint 2012-07-06 16:24:17 +01:00
Aron Carroll
d33f13fcaa Bail early if no name is provided when loading user 2012-07-06 16:24:17 +01:00
Aron Carroll
10dd2dc5e8 Now using SessionHandler#setUserSession() consistently 2012-07-06 16:24:17 +01:00
Remy Sharp
901be2edea Normalised where the session was set 2012-07-05 00:26:55 +01:00
Remy Sharp
51ce867102 Easy urls, plus adding gravatar support like PHP version 2012-07-05 00:26:42 +01:00
Remy Sharp
57ce5ec7ac Allow user to use permalink /rem/last for easy device testing 2012-07-05 00:26:14 +01:00
Remy Sharp
3c0f8083ff Adding static support 2012-07-03 23:21:09 +01:00
Remy Sharp
bca1846d45 Disabled helper - it wasn't there to allow for proxying 2012-07-03 23:03:42 +01:00
Remy Sharp
c54f28fc52 Fixed order of code, helper was being created with production set to false before reading config 2012-07-03 22:46:47 +01:00
Remy Sharp
e32f37bd9a Not /that/ useful, but affords me some stats. 2012-07-03 00:13:34 +01:00
Remy Sharp
2962c25433 Codecasting support. Yeah, seriously, that's all it took. 2012-07-03 00:00:09 +01:00
Remy Sharp
8867dbceab Merge branch 'feature/node' of github.com:remy/jsbin into feature/node 2012-07-02 00:27:34 +01:00
Aron Carroll
857e80f500 Remove debugger statement 2012-07-02 00:12:26 +01:00
Remy Sharp
3c373b50c4 Named the robot: Dave.
There's not a great reason, but it makes sense in my head.
2012-07-01 23:57:00 +01:00
Aron Carroll
665c045a8e Lint the codebase 2012-07-01 21:21:59 +01:00