509 Commits

Author SHA1 Message Date
Jon Linklater-Johnson
2ac195c5bf Fix issue with SQLite store 2012-08-25 11:47:33 +02:00
Jon Linklater-Johnson
fa5d513783 Switched 'report abuse' button to be a posted button instead of an getted link to prevent (unlilkely) browser crawlers report everything 2012-08-25 11:45:37 +02:00
Jon Linklater-Johnson
17746888ac Static roots for edit button assests 2012-08-25 11:44:12 +02:00
Jon Linklater-Johnson
99527cb86b Implemented emailing of abuse reporting 2012-08-25 11:44:12 +02:00
Jon Linklater-Johnson
b1faabb9d5 Checking for latest revision when returning a 404 2012-08-25 11:41:25 +02:00
Jon Linklater-Johnson
7e8d1099cb Return 404 for reported bins 2012-08-25 11:41:25 +02:00
Jon Linklater-Johnson
fb47266f93 Updated bin model for report abuse functionallity 2012-08-25 11:41:25 +02:00
Jon Linklater-Johnson
43c94f6f8e Add store methods for abuse reporting 2012-08-25 11:41:25 +02:00
Remy Sharp
2b2bf82a59 Merge pull request #299 from remy/feature/unicode
Support additional unicode characters
2012-08-24 01:34:01 -07:00
Remy Sharp
a4eb247ad4 Support log in using email as well as username. Fixes #314 2012-08-21 23:16:06 +01:00
Remy Sharp
40137a170c Create revision correctly updates "last_updated" making it set to /[user]/last/ 2012-08-21 13:59:27 +01:00
Remy Sharp
3b1f6f48cd Send reload even without the output open (only if we have write access) 2012-08-17 16:43:05 +01:00
Remy Sharp
1fefc3fc84 Don't look for recent bins that haven't been updated…obviously 2012-08-17 15:21:41 +01:00
Remy Sharp
9d432ebc63 Two cheap attempts to clear up memory - EventSource auto reconnects, so that's nice. 2012-08-16 23:56:17 +01:00
Remy Sharp
4c4ef65d77 Allow /[user]/last to *always* receive latest content.
Might need to be wary of leaky memory, but I'm pretty sure it's okay.
2012-08-16 16:44:44 +01:00
Remy Sharp
ce2a18b695 Logger was being ignored! 2012-08-16 16:43:54 +01:00
Remy Sharp
9cdfe7bd16 Remove the setInterval code that screws over hackers using webhive shit, but fixes #312 & fixes #309
Really need the report abuse code live ASAP though @binarytales
2012-08-16 00:25:23 +01:00
Remy Sharp
178e536db3 Bit of defensive code, and keep streams alive with an empty message. 2012-08-16 00:24:22 +01:00
Remy Sharp
e497310909 Reduce allowed headers 2012-08-16 00:23:24 +01:00
Remy Sharp
85f1ce7d18 Added a reload event to the stream, and supporting CORS
(for a secret project)
2012-08-15 23:40:24 +01:00
Aron Carroll
2930ba2192 Fix support for custom subdomains 2012-08-14 20:05:23 +01:00
Remy Sharp
9b5606332a Make sure the csrf method is *always* called when GET, HEAD or OPTION. Fixes #303
Because it's in there that the csrf token is set, regardless of whether
it's checked.
2012-08-13 20:35:32 +01:00
Aron Carroll
d826022300 Lint and reinstating logging 2012-08-10 13:57:07 +01:00
Remy Sharp
824a174862 updated csrf to support custom ignored routes 2012-08-10 13:06:51 +01:00
Aron Carroll
159b40c177 Set the charset of the database on connection
This is part of the work needed to support the supplementary unicode
characters as described in #278.
2012-08-10 12:39:37 +01:00
Remy Sharp
3b76eaa658 Merge branch 'master' of github.com:remy/jsbin 2012-08-07 13:00:30 +01:00
Remy Sharp
e5e2a905fb Fixed embedding - updates on save wasn't populating correctly. 2012-08-07 13:00:06 +01:00
Aron Carroll
49ff16bc65 Don't create spike session objects until needed 2012-08-03 17:59:45 +01:00
Aron Carroll
cc7fe3d83b Pass checksum into jsbin.state after a save #234
After a bin is created without Ajax the checksum is stored in a
flash message and loaded on redirect in the edit page.
2012-08-03 17:22:13 +01:00
Aron Carroll
b001559f5c Add use helper.editUrlForBin() when redirecting 2012-08-03 17:22:13 +01:00
Aron Carroll
7d56a94302 Remove code that loads the user history inline 2012-08-03 17:00:53 +01:00
Aron Carroll
9654168e7b Remove debugging modules... 2012-08-03 15:49:34 +01:00
Aron Carroll
61618e7f10 Uncomment debug code and lint the node code 2012-08-03 15:37:25 +01:00
Aron Carroll
1a23cf51f9 Improve memory management in spike.js
* Clean up session objects when we have no subscribers.
 * Always remove the pending object on timeout. This should hopefully
   stop us hoarding the content of bins with no listeners.
2012-08-03 15:29:05 +01:00
Aron Carroll
d9c2cd4a83 Lint the node source 2012-08-03 13:04:48 +01:00
Remy Sharp
6375c84193 Fixed the /list url and defer getting the user's history in an onready ajax request. Fixes #212 2012-07-31 23:15:15 +01:00
Remy Sharp
141e9c91e9 Only hash the stack, not the entire body 2012-07-30 22:24:19 +01:00
Remy Sharp
122fb9d22b blocking setinterval 2012-07-30 19:00:46 +01:00
Remy Sharp
e347346dc0 Allow JSBIN_URL to change BOTH the port and the url port - important for the executable 2012-07-27 18:41:45 +01:00
Remy Sharp
de689c3165 Allow developers to hook in before and after jsbin server configure 2012-07-27 18:11:12 +01:00
Remy Sharp
df907c28ae Fixed sqlite corruption of panel.settings in the database 2012-07-27 16:44:10 +01:00
Remy Sharp
d784b9680b Fixed looking for config in good lord THE WRONG PLACE!!!!!! 2012-07-27 15:09:07 +01:00
Remy Sharp
0b18c1edfe jsbin binary funky times - support logger on command line 2012-07-27 14:57:03 +01:00
Remy Sharp
c48176d1fe Log die! 2012-07-27 14:20:54 +01:00
Remy Sharp
31960336d7 Make logger a config option 2012-07-27 14:18:05 +01:00
Remy Sharp
8eb7f644a7 Cleaned headers for error email. 2012-07-27 14:07:53 +01:00
Remy Sharp
2faf997cfa Upgrade error reporting to include headers and hash the subject 2012-07-27 14:00:19 +01:00
Remy Sharp
d6261a06db Fixed the crash error (indexOf) on method 2012-07-27 13:59:51 +01:00
Aron Carroll
9f64efb651 Fix undefined error in the notFound() handler 2012-07-24 08:41:34 +01:00
Aron Carroll
bf76b8a246 Clean up error handling code
* Handle error status codes being passed to next().
 * Create renderPage() functions in the error handler.
 * Try and always show a nice error page.
 * Distinguish between bin not found and other generic 404's.
2012-07-23 23:07:50 +01:00