Aron Carroll
a51920a9bd
Add basic ability to preview bins
...
This is currently only a partial implementation of the PHP app.
2012-04-23 09:47:32 +01:00
Aron Carroll
f14555a272
Fix issue with utils.titleFromBin() where there is no CSS
2012-04-23 09:47:08 +01:00
Aron Carroll
09abcd34d5
Return bin title on successful creation
2012-04-23 08:58:49 +01:00
Aron Carroll
d3047c4f75
Implement utils.titleForBin() to return title
...
This currently returns the title extracted from the HTML first unlike
the PHP version. This seems to make the most sense but need to check
with @remy.
2012-04-23 08:57:10 +01:00
Aron Carroll
b2d53ec0ee
Update code to use flatten module to convert the settings object
2012-04-22 19:26:29 +01:00
Aron Carroll
261ebc047b
Update app.js to require gobo module
2012-04-22 19:09:50 +01:00
Aron Carroll
20a7ea5b3c
Add support for saving a bin revision
...
Support is still very basic but a revision can be created, streaming
is not yet supported as we are waiting on sessions.
2012-04-22 19:00:07 +01:00
Aron Carroll
d35c51176a
Add sql template for updating a bin panel
2012-04-22 18:59:27 +01:00
Aron Carroll
83b35ca08c
Move other database methods into bin model
2012-04-20 19:20:20 +01:00
Aron Carroll
2081a5a23e
Fixed "latest" redirect handlers
2012-04-20 19:20:01 +01:00
Aron Carroll
6d288d84e3
Add ability to create new bins
2012-04-20 19:06:07 +01:00
Aron Carroll
9f9c228b7f
Add models directory for common model objects
2012-04-20 19:05:41 +01:00
Aron Carroll
80b2a4c078
Merge branch 'next/3' into feature/node
...
Conflicts:
index.php
2012-04-20 17:53:54 +01:00
Aron Carroll
38b6728d72
Fix a couple of issues in the bin code generator
2012-04-20 17:28:29 +01:00
Aron Carroll
24a96c9567
Add code for generating a new bin id
2012-04-20 17:23:27 +01:00
Aron Carroll
c73e2459e9
Added utils.shortcode() to generate a bin id
2012-04-20 17:23:08 +01:00
Aron Carroll
fd3affab9a
Add SQL strings for creating and updating bins
2012-04-20 17:22:38 +01:00
Aron Carroll
9facbb17c2
Moved sql.js into a JSON file so it can be used by the PHP app
2012-04-20 15:15:09 +01:00
Aron Carroll
f58dffcfb3
Tidied up the "source" action
2012-04-20 15:09:59 +01:00
Aron Carroll
e35adaa7cc
Add middleware module for common middleware
...
(Need to work on my messages)
2012-04-20 15:03:03 +01:00
Aron Carroll
c31c5b68e4
Add support for "source" action
2012-04-20 14:48:57 +01:00
Aron Carroll
3c72f89039
Add utils module for small utils…
2012-04-20 14:48:23 +01:00
Aron Carroll
a5f67048b9
Add middleware to redirect to urls without trailing slash
2012-04-19 18:35:46 +01:00
Aron Carroll
bb5c23c790
Now replace text within req.path rather than req.url for redirects
2012-04-19 18:31:29 +01:00
Aron Carroll
519d60ee55
Tidy up the route files
2012-04-19 18:20:41 +01:00
Aron Carroll
70b0ccd7b0
Add "latest" action to redirect to newest bin revision
...
Also implemented file extensions to load the raw bin source.
2012-04-19 18:15:24 +01:00
Aron Carroll
8f251be49e
Use Express' nifty .param() method to load bins
2012-04-19 17:31:43 +01:00
Aron Carroll
d9f7cba17c
Build and serve development JavaScript
2012-04-19 17:28:06 +01:00
Aron Carroll
5ecc100f27
Create templates for the default and not found panels
2012-04-19 16:38:55 +01:00
Aron Carroll
cdad54b4f7
Fix issue with MySQL not found errors
2012-04-19 16:38:28 +01:00
Aron Carroll
f3e954bdea
Add ability to load bins from the database
2012-04-19 14:47:05 +01:00
Aron Carroll
cd333a15f6
Add a very basic store object
...
This is designed to have very light getter/setter methods that can
easily be implemented using any persistence layer. Currently there
is a MySQL layer. This may grow unwieldy in the future in which case
it should be easy to move to a ORM or whatnot.
2012-04-19 14:43:55 +01:00
Aron Carroll
6fb556798c
Update PHP and JS config parsers to handle nested JSON
2012-04-19 14:43:04 +01:00
Aron Carroll
7a3a05f5f6
Hastily updated node app to load without error
2012-04-17 18:30:59 +01:00
Aron Carroll
b607036e4b
Fix issue with config module skipping local keys
2012-04-17 18:29:54 +01:00
Aron Carroll
66efbb30f6
Hook up index root to the mustache template
2012-04-17 16:43:35 +01:00
Aron Carroll
6bcbf10991
Add new config files for node app
2012-04-17 16:42:08 +01:00
Aron Carroll
4924ac55bc
Add mustache templating to the node app via hogan.js
2012-04-17 15:40:09 +01:00
Aron Carroll
b33eafc06f
Add support for serving static files and logging
2012-04-17 12:28:27 +01:00
Aron Carroll
3e8722db3f
Create a basic Express app
2012-04-17 12:12:04 +01:00
Aron Carroll
ef05666727
Move PHP codebase into ./public directory
...
Updated all relevant paths to point to new locations. Webs servers will
need to be updated to point to ./public. The build script remains in the
root and will work as before.
2012-04-17 11:38:35 +01:00
remy
dec0c731bc
Build script simplified and HOST PHP var used across the app, so it should be easier to deploy to your own machine.
2011-02-19 19:53:28 +00:00
remy
7a49d8b928
Some fixes for IE9 (because of bugs in IE9 around testing the console object)
2010-09-16 23:36:56 +01:00
Remy Sharp
5db19ee6a2
New navigation style and logic around the revert showing or not to help users understand how it works f:4
2010-01-22 17:15:20 +00:00
Remy Sharp
203669cff5
Supporting revisions on js bins
2010-01-15 17:44:34 +00:00
Remy Sharp
0d803df61e
Fixed rendered output if slashes being added (must re-test), include "Edit in JS Bin" on saved edits. Tweaked UI for "save my template"
2010-01-12 01:02:11 +00:00
Remy Sharp
71420ef413
Fixed production versioning and created php simple make file for production JS. Also moved sprockets in to lib (and adding google compiler)
2010-01-06 01:38:15 +00:00