419 Commits

Author SHA1 Message Date
Tom Ashworth
de32b5b964 Remove some more logs. 2013-01-14 15:15:21 +00:00
Tom Ashworth
fbe6a22785 Use archive (not active) everywhere. 2013-01-14 15:14:09 +00:00
Tom Ashworth
653622b5f9 Bins are archiveable. 2013-01-14 15:05:20 +00:00
Tom Ashworth
4e60279529 Fix whitespace error. 2013-01-14 14:30:35 +00:00
Tom Ashworth
9bee7a91a1 UI for archive toggle. 2013-01-14 14:10:18 +00:00
Tom Ashworth
06cb5b9182 Fix SQLite errors & bring up to speed with MySQL driver, address #353. 2013-01-11 10:40:27 +00:00
Tom Ashworth
aaeb535906 Check DB adapter before allowing it to be used. 2013-01-11 09:53:33 +00:00
Tom Ashworth
885e3b74bf Display date not 'a long time ago' on home list. 2013-01-10 16:34:12 +00:00
Remy Sharp
6cb7fc0b8f additional reserved terms - praying they not gone already, and forwarding /video to the youtube playlist of tips 2013-01-10 15:00:17 +00:00
Remy Sharp
9b7fa6bb2f Merge branch 'master' of github.com:remy/jsbin 2013-01-10 14:45:16 +00:00
Remy Sharp
39f5a2404e upgraded to Express 3.0.x 2013-01-10 14:45:12 +00:00
Remy Sharp
eeb62a359a Merge pull request #377 from remy/upload-limit
Check bin content file size before parsing request
2013-01-10 04:19:27 -08:00
Tom Ashworth
0cc499a7d3 add support to the owners table for panels with content, and unified the setBinOwner, setBinForUser, assignBin, et al 2013-01-09 16:50:33 +00:00
Tom Ashworth
d0d1bc4d94 Use created date from sandbox to fix missing timestamps. 2013-01-09 12:14:18 +00:00
Tom Ashworth
cd2dff7202 Chunk the owners table to populate it slowly. 2013-01-09 10:23:37 +00:00
Tom Ashworth
cffe592468 Merge branch 'master' of github.com:remy/jsbin 2013-01-08 15:10:26 +00:00
Tom Ashworth
908e083408 Use date in touchOwnership params to overwrite touch. 2013-01-08 15:09:54 +00:00
Tom Ashworth
4ae07c5a7a Use last_updated, not created, and sort the revisions within a group. 2013-01-08 14:36:14 +00:00
Remy Sharp
16aa85f304 Merge pull request #450 from remy/fix/db-409
Store bin summary in owners table
2013-01-08 04:25:10 -08:00
Remy Sharp
fbc8576091 Merge pull request #443 from remy/fix/404-link-442
Use the root URL on the 404 page, fix #442
2013-01-08 03:39:21 -08:00
Tom Ashworth
20cc16186a Population tool. 2013-01-08 11:00:24 +00:00
Tom Ashworth
85d641966e If bin has no created date, set it to now. 2013-01-07 15:02:28 +00:00
Tom Ashworth
1e0e62f377 Restore missing backtick and put error handler before use of results. 2013-01-07 14:19:34 +00:00
Tom Ashworth
892b6427b1 Include created in getBinsByUser query. 2013-01-07 13:57:11 +00:00
Tom Ashworth
60705961a8 Use summary in renderCreated. 2013-01-07 13:25:47 +00:00
Tom Ashworth
a2ab11eb96 Show bin summary in user's history. 2013-01-07 12:41:28 +00:00
Tom Ashworth
be3ffbb4fc Add summary when bin created, saved and updated. 2013-01-07 12:36:52 +00:00
Tom Ashworth
ef26dfd41d Update SQL with owners.summary 2013-01-07 12:01:08 +00:00
Tom Ashworth
8323a7f65f Use the root URL on the 404 page, fix #442 2013-01-04 09:38:26 +00:00
Tom Ashworth
5b9c9b76f9 Fix ordering of code in HTML-lite pages + prettify 2013-01-03 14:16:31 +00:00
Tom Ashworth
3c7a8f04f2 Merge branch 'master' into upload-limit 2012-12-31 13:51:49 +00:00
Tom Ashworth
820405dd13 Update to make mergable. 2012-12-31 13:37:35 +00:00
Remy Sharp
c968a26e27 get gist support back in #382 - but it is auto-saving which I'm not keen on 2012-12-20 14:58:30 +00:00
Tom Ashworth
4c4f83a45c Add max age of a year to cookies, fix 408 2012-12-11 14:25:12 +00:00
Remy Sharp
9178a188ec fix csrf bug throwing when using a custom domain 2012-12-10 12:36:28 +00:00
Aron Carroll
7274bab3dc Only parse the upload limit option once 2012-10-27 18:40:00 +01:00
Aron Carroll
2caed53c1c Improve API for setting max request limit
Renamed the key to "max-request-size" and allow units to be provided
rather than just a number. The default is now 1MB.
2012-10-27 18:11:52 +01:00
Tom Ashworth
e4ddf0b572 Clean up to HTML representation, and only do it if the character is present. 2012-10-17 10:37:48 +01:00
Tom Ashworth
d9dd88fee3 Cleaned up a bit. 2012-10-16 16:23:12 +01:00
Tom Ashworth
c88a8b0e18 Add cleanup method to utils to swap out bad characters, fix #129. 2012-10-16 16:19:21 +01:00
Aron Carroll
fd3493da4d Include the limitContentLength() middleware in the app 2012-10-11 19:50:19 +02:00
Aron Carroll
2fc79eff0f Add a 413 Request Entity Too Large error object 2012-10-11 19:49:59 +02:00
Aron Carroll
48e51ba19b Add middleware for catching large posts
This will return an error response that isn't currently picked up by
the JS Bin front end, but it does stop MySQL throwing exceptions. It
can be turned off by setting the "bin max-size" to 0 or null.
2012-10-11 19:48:53 +02:00
Aron Carroll
908bf5b61e Added an error object for a 403 Forbidden status 2012-10-11 10:21:43 +02:00
Aron Carroll
916efcd08c Remove support for parsing multipart form content
This is causing errors when users create bins containing multipart forms
and submit them. The server attempts to parse them before they hit the
router layer. So now only json and url encoded data is supported.
2012-10-11 10:19:15 +02:00
Remy Sharp
952bfb43c4 another attempt to fix the home page listing the actual code - fixed by sending less data from mysql to node by using substr...think it actually works! 2012-10-04 13:21:40 +01:00
Aron Carroll
547724b3b4 Improve subdomain handling. Fixes #348
We now detect subdomains by taking anything before the "url host"
option rather than assuming the host will always be x.y.

So if the host is "localhost:3000" then "subdomain" will be
extracted for requests to "subdomain.localhost:3000".
2012-09-26 18:35:37 +01:00
Aron Carroll
e96cbc7a07 Add soak and flatten as npm modules. #338
This allows JSBin to be installed behind networks that block the
git:// protocol.
2012-09-19 09:34:41 +01:00
Remy Sharp
fa322f6414 Filthy way of getting home listing working again.
This solution is obviously a hack, and doesn't provide the detected
content, but gets the history working again to browse. Something's
wrong with the innodb tables and causes the database to hang (looking
for help here!).

Ref #333
2012-09-12 00:13:00 +01:00
Aron Carroll
f95a33f760 Linting node source 2012-09-09 22:50:52 +01:00