1043 Commits

Author SHA1 Message Date
Aron Carroll
a5cd69c46a Add "created" and "updated" events to BinHandler
It's possible these events should be triggered on the model level but
this works nicely at the moment. Also removed the spike.ping code
from the BinHandler.
2012-06-10 14:17:30 +01:00
Aron Carroll
d407301f79 Add utils.extend() for extending objects 2012-06-10 14:08:30 +01:00
Aron Carroll
66f8d28dd8 Move the spike code into BinHandler and remove old handlers.js 2012-06-10 14:07:02 +01:00
Aron Carroll
de04505b8b Now apply default values to the database results if null
This allows us to assume that the HTML, CSS and JavaScript will always
be a string.
2012-06-10 14:05:47 +01:00
Aron Carroll
592a23b6c3 Add a handle serve command to the makefile
Will optionally load config.node.json if it exists. Run using:

    $ make serve
2012-06-10 13:47:16 +01:00
Aron Carroll
b4edf514f0 Ignore all config files that are not config.default.json 2012-06-10 13:46:41 +01:00
Aron Carroll
164b56531c Merge branch 'feature/node' into 'feature/spike'
Conflicts:
	lib/app.js
	lib/handlers.js
	package.json
2012-06-10 12:24:02 +01:00
Remy Sharp
a5f81a64ea Don't need this rule as the file requested will be real 2012-06-09 09:44:39 +01:00
Remy Sharp
8350c54d82 Removed hard coded /3/ in rewritebase 2012-06-09 09:31:16 +01:00
Remy Sharp
b12ee6d447 Changed jsbin.js include depending on production or dev
This way it means we don't need a route for the production version of
the script and it hits the real file.
2012-06-09 09:29:52 +01:00
Remy Sharp
a3dac4d9b5 Fixed subdirectory serving 2012-06-08 15:43:01 +01:00
Remy Sharp
03e6d2d02d -chosen 2012-06-08 14:46:38 +01:00
Remy Sharp
c67667ae6f Animate the share url 2012-06-08 13:53:08 +01:00
Remy Sharp
490f177d4b Fixed login box title 2012-06-08 13:27:34 +01:00
Remy Sharp
55c86d0fa5 Removed default JS - not sure if this is permanent. 2012-06-08 13:22:11 +01:00
Remy Sharp
cca3c619ec Made easter egg a consistent keyboard shortcut 2012-06-08 13:19:11 +01:00
Remy Sharp
8ec6a27530 "Include" => "Include Library" 2012-06-08 13:18:57 +01:00
Remy Sharp
c238e6ea51 Move to using PATH instead of ROOT. Fixes #173 2012-06-08 00:01:59 +01:00
Remy Sharp
0dddab0019 fixed htaccess to support subdirs - need to test more, but looking solid 2012-06-07 23:52:27 +01:00
Remy Sharp
57563a9a38 New window for external help links 2012-06-06 08:43:56 +02:00
Remy Sharp
f3f2952dc2 Fixed both history preview url, and always format with /1 if no rev.
Note that there's a bug ref #172
2012-06-04 22:28:25 +02:00
Remy Sharp
af318cd29f Moved url help above history 2012-06-04 22:26:10 +02:00
Remy Sharp
c7b18cc2ad Fixed log in in PHP version. 2012-06-04 20:31:24 +02:00
Remy Sharp
f8825bf7a3 Stray HTML comment 2012-06-04 20:31:10 +02:00
Remy Sharp
8bc6d0bb5d Fixed PHP saving version - corrupted code urls. Fixes #171 2012-06-04 20:21:15 +02:00
Aron Carroll
b5448362fa Remove trailing / in $code_id_path in PHP app 2012-06-03 22:48:04 +01:00
Aron Carroll
382f8575ff URL's returned by PHP app no longer have broken urls 2012-06-03 22:47:31 +01:00
Aron Carroll
fbb2393b59 Fix missing slash in save form action. Fixes #171 2012-06-03 22:46:22 +01:00
Aron Carroll
c2ec5b9e19 Add missing code_id_* template variables 2012-06-03 22:45:55 +01:00
Aron Carroll
87a99bb670 Make helpers.getUrlForBin() always return a valid url 2012-06-03 22:45:09 +01:00
Remy Sharp
77a9b0ccf8 URL help screen 2012-06-03 13:48:01 +02:00
Remy Sharp
358b05f0ea Turned help in to a drop down menu 2012-06-03 13:34:34 +02:00
Remy Sharp
93335169dd Removed logging 2012-06-03 13:34:19 +02:00
Remy Sharp
d77c8679b2 Allow for external navigation on the drop down menu
Still not 100% perfect, we should really detect a click handler, but
it's pretty solid for jsbin
2012-06-03 13:34:09 +02:00
Remy Sharp
6e04195702 Fixed the height of the JS panel when errors appear 2012-06-03 10:37:31 +02:00
Remy Sharp
a9666eef86 Can't remember, but I'm sure it's important… 2012-06-03 10:37:31 +02:00
Remy Sharp
8b629ec839 added animated version of The Dude 2012-06-03 10:37:31 +02:00
Remy Sharp
26284047fc bin.javascript was undefined so we default the value just in case 2012-05-29 23:40:14 +01:00
Aron Carroll
1f3444fc39 Now correctly handling subdomains without a custom config 2012-05-27 12:59:16 +01:00
Aron Carroll
f08d133bde No adding custom css into base template 2012-05-27 12:29:07 +01:00
Aron Carroll
a4f23881cb Fixed loading of custom CSS into PHP application 2012-05-27 12:28:05 +01:00
Aron Carroll
c466eb2d27 Allow a custom settings property to be set on the jsbin object 2012-05-27 12:02:56 +01:00
Aron Carroll
409d0458a5 Add settings property to jsbin object 2012-05-27 11:59:38 +01:00
Aron Carroll
3c2ab490db Add settings property to jsbin object in PHP app 2012-05-27 11:59:11 +01:00
Aron Carroll
7eb1ebfd38 Load custom user files into the editor based on subdomain 2012-05-26 19:14:59 +01:00
Aron Carroll
0eae778cd2 Rename custom config key from default to defaults 2012-05-26 19:14:59 +01:00
Aron Carroll
79a730bd40 Move custom configs out of json into files 2012-05-26 19:14:59 +01:00
Aron Carroll
6f16cfa3ac Detect sub-domains and update relevant url settings 2012-05-26 19:14:58 +01:00
Aron Carroll
a7b7d02abf Add a custom module for loading config files 2012-05-26 19:14:58 +01:00
Aron Carroll
739d41961d Fixed the insertion of custom CSS into the PHP app 2012-05-26 19:13:47 +01:00