507 Commits

Author SHA1 Message Date
Matthew O'Riordan
fe0c142de7 API should return latest bin revision if not specified 2013-05-20 07:24:54 +02:00
Matthew O'Riordan
a234941cf3 API can require an API key for a user (disallow anonymous) 2013-05-20 07:18:57 +02:00
Matthew O'Riordan
52fa78aa31 API middleware adding req.isApi 2013-05-19 16:36:03 +02:00
Matthew O'Riordan
24e397b1fb Create revision for bin API end point 2013-05-19 16:27:34 +02:00
Matthew O'Riordan
666ab20a2e Remove annoying console output from SQLite driver 2013-05-19 15:57:19 +02:00
Matthew O'Riordan
7c8d63aa78 Send JSON response for API errors 2013-05-19 14:35:17 +02:00
Matthew O'Riordan
364dec1b25 Modify middleware to bypass CSRF for exact or regex matches 2013-05-19 14:16:48 +02:00
Matthew O'Riordan
3457710bbd Create Bin via API route 2013-05-19 11:49:43 +02:00
Matthew O'Riordan
d7ab06a11a Route bug fix for API requests without revision 2013-05-18 18:29:13 +02:00
Matthew O'Riordan
6b36b05853 API for retrieving a bin by ID and revision 2013-05-18 17:57:46 +02:00
Remy Sharp
1977bb024f Merge pull request #598 from remy/fix/bling-bling-587
Don't use replace to swap in code with dollars in it, fix #587.
2013-05-17 05:20:37 -07:00
Tom Ashworth
099d21b118 Remove lots of logging. 2013-05-16 14:50:12 +01:00
Tom Ashworth
03089ddf7a Rename file-db to file.js, and support new revisions. 2013-05-16 14:49:43 +01:00
Tom Ashworth
6c2b145478 Support creating of bins with file-db. 2013-05-16 14:49:27 +01:00
Tom Ashworth
66d699525c Don't use replace to swap in code with dollars in it, fix #587. 2013-05-16 14:40:46 +01:00
Remy Sharp
40d33475a1 Try moving cancel of focus event to earlier in code 2013-05-14 18:26:53 +01:00
Tom Ashworth
214517fd40 Resolve config from cwd and document the JSBIN_CONFIG variable. 2013-05-01 09:39:52 +01:00
Tom Ashworth
fcd9716278 Resolve custom config paths before loading the file. 2013-04-30 15:50:45 +01:00
Remy Sharp
68323aee1b separate the tracking of application over the rendered views 2013-04-21 10:57:26 +01:00
Remy Sharp
6c81c6159e support /about again 2013-04-09 14:46:19 +01:00
Remy Sharp
6861fd7bac removed logging, and fixed sqlite module - was using completely the wrong method 2013-04-06 10:41:13 +01:00
Remy Sharp
be56fa0db8 If logged-in user created first revision of a bin, then they "own" the bin url - and other users will only be able to clone the url 2013-04-05 22:09:12 +01:00
Remy Sharp
fc18e6e722 Fixed #481. Somehow the coffeescript serverside compiler was NEVER working. Not sure how I missed this. Also updated to coffee-script 1.6.2 2013-03-28 10:25:07 +00:00
Remy Sharp
3a18cc3446 put archiveBin back in to sqlite module 2013-03-16 07:01:16 -04:00
Remy Sharp
ea37a303e2 reverting change to SQL - only server change that could be causing cpu spike. ref #511 2013-03-13 09:03:03 +00:00
Remy Sharp
09b27214d8 increase amount of data sent back (and remove legacy codemirror). ref #511 2013-03-11 17:27:18 +00:00
Remy Sharp
c6b09e08d6 echo version when jsbin runs 2013-02-21 11:20:57 +00:00
Remy Sharp
c890fe8b56 fixed archives again - got killed via the query update 2013-02-19 22:29:46 +00:00
Tom Ashworth
e48d568bf0 Track user query times. 2013-02-14 15:58:54 +00:00
Tom Ashworth
9e45a8f3e0 Track bin query times. 2013-02-14 15:53:23 +00:00
Tom Ashworth
61db8cd38e Monitoring spikes, db method calls and errors. 2013-02-14 15:30:33 +00:00
Remy Sharp
e3fe6d34bf remove the "about" causing wide col 2013-02-12 23:58:35 +00:00
Remy Sharp
f8b19416e5 revive the good home query 2013-02-12 23:10:22 +00:00
Remy Sharp
250e9846d9 read .js from a post in case .javascript is missing 2013-02-07 16:15:49 +00:00
Remy Sharp
8ffd937423 fixed sending json back to an HTML ajax request, and just send the snippet if it is an HTML ajax request 2013-01-17 16:54:54 +00:00
Remy Sharp
7489bf933a allow user to navigate to other user home listings via /user/rem 2013-01-17 16:10:47 +00:00
Remy Sharp
2599dbc157 expose the public /list/:user pages again 2013-01-17 13:00:52 +00:00
Tom Ashworth
8d17711baa Allow for 1 month timespans. 2013-01-17 11:42:21 +00:00
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